Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTO: Docs repo sync - ScalarDL #87

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/3.7/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand All @@ -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.
Expand All @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions docs/3.8/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand All @@ -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.
Expand All @@ -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.
Expand Down
Loading