From c94498120a813c78980ec97fef4d7ac6e6de697e Mon Sep 17 00:00:00 2001 From: josh-wong Date: Mon, 19 Feb 2024 07:34:03 +0000 Subject: [PATCH] AUTO: Sync ScalarDL docs (versioned) to docs site repo --- docs/3.7/getting-started.md | 8 ++++---- docs/3.8/getting-started.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/3.7/getting-started.md b/docs/3.7/getting-started.md index 51b8bb38..3c9f5609 100644 --- a/docs/3.7/getting-started.md +++ b/docs/3.7/getting-started.md @@ -115,7 +115,7 @@ Next, let's register your certificate to ScalarDL Ledger. Please check [caclient This time, let's use a simple tool to register your certificate as follows. ```shell -client/bin/scalardl register-cert --properties client.properties +client/bin/register-cert --properties client.properties ``` The registered certificate will allow you to register and execute contracts and will also be used for detecting Byzantine faults in databases. @@ -176,7 +176,7 @@ This will generate `build/classes/java/main/com/org1/contract/StateUpdater.class Let's register your contract. Here again we use a simple tool. ```shell -client/bin/scalardl register-contract --properties client.properties --contract-id StateUpdater --contract-binary-name com.org1.contract.StateUpdater --contract-class-file build/classes/java/main/com/org1/contract/StateUpdater.class +client/bin/register-contract --properties client.properties --contract-id StateUpdater --contract-binary-name com.org1.contract.StateUpdater --contract-class-file build/classes/java/main/com/org1/contract/StateUpdater.class ``` Please set a globally unique ID for the contract ID (e.g. `StateUpdater` in the above command). @@ -189,7 +189,7 @@ For example, let's think about a voting application. In the application, anyone Now you are ready to execute the contract with the following command. ```shell -client/bin/scalardl execute-contract --properties client.properties --contract-id StateUpdater --contract-argument '{"asset_id":"some_asset", "state":3}' +client/bin/execute-contract --properties client.properties --contract-id StateUpdater --contract-argument '{"asset_id":"some_asset", "state":3}' ``` In the contract argument, the value specified with the key `asset_id` must be unique globally for each asset. @@ -199,7 +199,7 @@ In the contract argument, the value specified with the key `asset_id` must be un You can validate the states of Ledger by executing the following command. ```shell -client/bin/scalardl validate-ledger --properties client.properties --asset-id="some_asset" +client/bin/validate-ledger --properties client.properties --asset-id="some_asset" ``` What the validation does is depending on how you set up and configure ScalarDL. diff --git a/docs/3.8/getting-started.md b/docs/3.8/getting-started.md index 51b8bb38..3c9f5609 100644 --- a/docs/3.8/getting-started.md +++ b/docs/3.8/getting-started.md @@ -115,7 +115,7 @@ Next, let's register your certificate to ScalarDL Ledger. Please check [caclient This time, let's use a simple tool to register your certificate as follows. ```shell -client/bin/scalardl register-cert --properties client.properties +client/bin/register-cert --properties client.properties ``` The registered certificate will allow you to register and execute contracts and will also be used for detecting Byzantine faults in databases. @@ -176,7 +176,7 @@ This will generate `build/classes/java/main/com/org1/contract/StateUpdater.class Let's register your contract. Here again we use a simple tool. ```shell -client/bin/scalardl register-contract --properties client.properties --contract-id StateUpdater --contract-binary-name com.org1.contract.StateUpdater --contract-class-file build/classes/java/main/com/org1/contract/StateUpdater.class +client/bin/register-contract --properties client.properties --contract-id StateUpdater --contract-binary-name com.org1.contract.StateUpdater --contract-class-file build/classes/java/main/com/org1/contract/StateUpdater.class ``` Please set a globally unique ID for the contract ID (e.g. `StateUpdater` in the above command). @@ -189,7 +189,7 @@ For example, let's think about a voting application. In the application, anyone Now you are ready to execute the contract with the following command. ```shell -client/bin/scalardl execute-contract --properties client.properties --contract-id StateUpdater --contract-argument '{"asset_id":"some_asset", "state":3}' +client/bin/execute-contract --properties client.properties --contract-id StateUpdater --contract-argument '{"asset_id":"some_asset", "state":3}' ``` In the contract argument, the value specified with the key `asset_id` must be unique globally for each asset. @@ -199,7 +199,7 @@ In the contract argument, the value specified with the key `asset_id` must be un You can validate the states of Ledger by executing the following command. ```shell -client/bin/scalardl validate-ledger --properties client.properties --asset-id="some_asset" +client/bin/validate-ledger --properties client.properties --asset-id="some_asset" ``` What the validation does is depending on how you set up and configure ScalarDL.