Skip to content

Commit 2e6d28a

Browse files
authored
Merge pull request #4 from Rustdude/main
fix multiline commands
2 parents 635a4b7 + 9d26be6 commit 2e6d28a

File tree

6 files changed

+84
-84
lines changed

6 files changed

+84
-84
lines changed

docs/getting_started/create_account.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To create an account, type the following command below:
1919
```
2020
=== "Windows"
2121
```PowerShell
22-
pchain_client.exe keys create --name <NAME>
22+
./pchain_client.exe keys create --name <NAME>
2323
```
2424

2525
You will be asked to input your password to save the new keypair.
@@ -52,7 +52,7 @@ You can check the account balance using the account address (public key).
5252
```
5353
=== "Windows"
5454
```PowerShell
55-
pchain_client.exe query balance --address <PUBLIC_KEY>
55+
./pchain_client.exe query balance --address <PUBLIC_KEY>
5656
```
5757
<details><summary>Terminal Output</summary>
5858
```bash
@@ -74,7 +74,7 @@ To secure your keypair and money, you must export it and save it somewhere secur
7474
```
7575
=== "Windows"
7676
```PowerShell
77-
pchain_client.exe keys export --name <NAME>
77+
./pchain_client.exe keys export --name <NAME>
7878
```
7979

8080
You will be asked to input your password to export the keypair. The keypair will be saved in the current directory, in JSON format, with the same name as the keypair itself.
@@ -88,7 +88,7 @@ To add your keypair, type the following command below:
8888
```
8989
=== "Windows"
9090
```PowerShell
91-
pchain_client.exe keys import --public <PUBLIC_KEY> --private <PRIVATE_KEY> --name <NAME>
91+
./pchain_client.exe keys import --public <PUBLIC_KEY> --private <PRIVATE_KEY> --name <NAME>
9292
```
9393

9494
You will be asked to input your password to import the new keypair.

docs/getting_started/prepare_env.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ After installation of `pchain_client`, you had to update the Mainnet / Testnet e
7878
=== "Windows"
7979
```PowerShell
8080
# Mainnet
81-
pchain_client.exe config setup --url https://pchain-main-rpc02.parallelchain.io
81+
./pchain_client.exe config setup --url https://pchain-main-rpc02.parallelchain.io
8282
# Testnet
83-
pchain_client.exe config setup --url https://pchain-test-rpc02.parallelchain.io
83+
./pchain_client.exe config setup --url https://pchain-test-rpc02.parallelchain.io
8484
```
8585

8686
This command will write a `config.toml` file in the folder specified by the environment variable `PCHAIN_CLI_HOME`. It only needs to be executed once.

docs/getting_started/staking.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ First, before you stake, you have to lock up (stake) some balance tied to an ope
1717
=== "Linux / macOS"
1818
```bash
1919
./pchain_client transaction create \
20-
--nonce <NONCE> \
20+
--nonce <NONCE> \
2121
--gas-limit <GAS_LIMIT> \
2222
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
2323
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -28,14 +28,14 @@ First, before you stake, you have to lock up (stake) some balance tied to an ope
2828
```
2929
=== "Windows"
3030
```PowerShell
31-
pchain_client.exe transaction create \
32-
--nonce <NONCE> \
33-
--gas-limit <GAS_LIMIT> \
34-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
35-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
36-
deposit create \
37-
--operator <OPERATOR_ADDRESS> \
38-
--balance <BALANCE> \
31+
./pchain_client.exe transaction create `
32+
--nonce <NONCE> `
33+
--gas-limit <GAS_LIMIT> `
34+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
35+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
36+
deposit create `
37+
--operator <OPERATOR_ADDRESS> `
38+
--balance <BALANCE> `
3939
--auto-stake-rewards
4040
```
4141
The last flag for `auto-stake-rewards` is optional. By default, it is false. It indicates whether your rewards should be staked to the Pool in each epoch.
@@ -57,7 +57,7 @@ After creating a Deposit in a Pool, use the CLI subcommands `deposit top-up` if
5757
=== "Linux / macOS"
5858
```bash
5959
./pchain_client transaction create \
60-
--nonce <NONCE> \
60+
--nonce <NONCE> \
6161
--gas-limit <GAS_LIMIT> \
6262
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
6363
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -67,13 +67,13 @@ After creating a Deposit in a Pool, use the CLI subcommands `deposit top-up` if
6767
```
6868
=== "Windows"
6969
```PowerShell
70-
pchain_client.exe transaction create \
71-
--nonce <NONCE> \
72-
--gas-limit <GAS_LIMIT> \
73-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
74-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
75-
deposit top-up \
76-
--operator <OPERATOR_ADDRESS> \
70+
./pchain_client.exe transaction create `
71+
--nonce <NONCE> `
72+
--gas-limit <GAS_LIMIT> `
73+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
74+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
75+
deposit top-up `
76+
--operator <OPERATOR_ADDRESS> `
7777
--amount <AMOUNT>
7878
```
7979

@@ -85,7 +85,7 @@ You specified the flag `auto-stake-rewards` when you created the Deposit. You ca
8585
=== "Linux / macOS"
8686
```bash
8787
./pchain_client transaction create \
88-
--nonce <NONCE> \
88+
--nonce <NONCE> \
8989
--gas-limit <GAS_LIMIT> \
9090
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
9191
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -95,13 +95,13 @@ You specified the flag `auto-stake-rewards` when you created the Deposit. You ca
9595
```
9696
=== "Windows"
9797
```PowerShell
98-
pchain_client.exe transaction create \
99-
--nonce <NONCE> \
100-
--gas-limit <GAS_LIMIT> \
101-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
102-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
103-
deposit update-settings \
104-
--operator <OPERATOR_ADDRESS> \
98+
./pchain_client.exe transaction create `
99+
--nonce <NONCE> `
100+
--gas-limit <GAS_LIMIT> `
101+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
102+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
103+
deposit update-settings `
104+
--operator <OPERATOR_ADDRESS> `
105105
--auto-stake-rewards
106106
```
107107

@@ -113,7 +113,7 @@ After you create a Deposit to a Pool, you should now stake some amount of it to
113113
=== "Linux / macOS"
114114
```bash
115115
./pchain_client transaction create \
116-
--nonce <NONCE> \
116+
--nonce <NONCE> \
117117
--gas-limit <GAS_LIMIT> \
118118
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
119119
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -123,13 +123,13 @@ After you create a Deposit to a Pool, you should now stake some amount of it to
123123
```
124124
=== "Windows"
125125
```PowerShell
126-
pchain_client.exe transaction create \
127-
--nonce <NONCE> \
128-
--gas-limit <GAS_LIMIT> \
129-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
130-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
131-
stake stake \
132-
--operator <OPERATOR_ADDRESS> \
126+
./pchain_client.exe transaction create `
127+
--nonce <NONCE> `
128+
--gas-limit <GAS_LIMIT> `
129+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
130+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
131+
stake stake `
132+
--operator <OPERATOR_ADDRESS> `
133133
--max-amount <MAX_AMOUNT>
134134
```
135135

@@ -140,7 +140,7 @@ You can also unstake your stake on with the CLI subcommand `stake unstake`.
140140
=== "Linux / macOS"
141141
```bash
142142
./pchain_client transaction create \
143-
--nonce <NONCE> \
143+
--nonce <NONCE> \
144144
--gas-limit <GAS_LIMIT> \
145145
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
146146
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -150,11 +150,11 @@ You can also unstake your stake on with the CLI subcommand `stake unstake`.
150150
```
151151
=== "Windows"
152152
```PowerShell
153-
pchain_client.exe transaction create
154-
--nonce <NONCE> \
153+
./pchain_client.exe transaction create
154+
--nonce <NONCE> \
155155
--gas-limit <GAS_LIMIT> \
156156
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
157-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
157+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
158158
stake unstake \
159159
--operator <OPERATOR_ADDRESS> \
160160
--max-amount <MAX_AMOUNT>
@@ -176,10 +176,10 @@ Suppose you created the transaction file (i.e. `tx.json`) from the step [Creatin
176176
```
177177
=== "Windows"
178178
```PowerShell
179-
pchain_client.exe transaction append \
180-
--file <PATH_TO_TRANSACTION_FILE> \
181-
stake stake \
182-
--operator <OPERATOR_ADDRESS> \
179+
./pchain_client.exe transaction append `
180+
--file <PATH_TO_TRANSACTION_FILE> `
181+
stake stake `
182+
--operator <OPERATOR_ADDRESS> `
183183
--max-amount <MAX_AMOUNT>
184184
```
185185

@@ -193,7 +193,7 @@ Your Deposit can be increased due to reward distribution in each epoch. If you w
193193
=== "Linux / macOS"
194194
```bash
195195
./pchain_client transaction create
196-
--nonce <NONCE> \
196+
--nonce <NONCE> \
197197
--gas-limit <GAS_LIMIT> \
198198
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
199199
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -203,11 +203,11 @@ Your Deposit can be increased due to reward distribution in each epoch. If you w
203203
```
204204
=== "Windows"
205205
```PowerShell
206-
pchain_client.exe transaction create
207-
--nonce <NONCE> \
206+
./pchain_client.exe transaction create
207+
--nonce <NONCE> \
208208
--gas-limit <GAS_LIMIT> \
209209
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
210-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
210+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
211211
deposit withdraw \
212212
--operator <OPERATOR_ADDRESS> \
213213
--max-amount <MAX_AMOUNT>

docs/getting_started/transfer.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To create a transaction, you first need to know the `nonce` of your account, whi
1818
```
1919
=== "Windows"
2020
```PowerShell
21-
pchain_client.exe query nonce --address <YOUR_ACCOUNT_ADDRESS>
21+
./pchain_client.exe query nonce --address <YOUR_ACCOUNT_ADDRESS>
2222
```
2323
When you run this command, you'll see the output of your account's `nonce` value, like this:
2424
```bash
@@ -30,7 +30,7 @@ Next, to transfer tokens from your account to someone else's account using `pcha
3030
=== "Linux / macOS"
3131
```bash
3232
./pchain_client transaction create \
33-
--nonce <NONCE> \
33+
--nonce <NONCE> \
3434
--gas-limit <GAS_LIMIT> \
3535
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
3636
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -40,13 +40,13 @@ Next, to transfer tokens from your account to someone else's account using `pcha
4040
```
4141
=== "Windows"
4242
```PowerShell
43-
pchain_client.exe transaction create \
44-
--nonce <NONCE> \
45-
--gas-limit <GAS_LIMIT> \
46-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
47-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
48-
transfer \
49-
--recipient <RECIPIENT_ADDRESS> \
43+
./pchain_client.exe transaction create `
44+
--nonce <NONCE> `
45+
--gas-limit <GAS_LIMIT> `
46+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
47+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
48+
transfer `
49+
--recipient <RECIPIENT_ADDRESS> `
5050
--amount <AMOUNT_TO_TRANSFER>
5151
```
5252

@@ -89,7 +89,7 @@ You can check the transaction status using `pchain_client` with the following co
8989
```
9090
=== "Windows"
9191
```PowerShell
92-
pchain_client.exe query tx --hash <TRANSACTION_HASH>
92+
./pchain_client.exe query tx --hash <TRANSACTION_HASH>
9393
```
9494

9595
Make sure to replace `<TRANSACTION_HASH>` with the transaction hash that you want to check.
@@ -109,10 +109,10 @@ You may append an extra transfer transaction with `pchain_client`. After creatin
109109
```
110110
=== "Windows"
111111
```PowerShell
112-
pchain_client.exe transaction append \
113-
--file <PATH_TO_TRANSACTION_FILE>
114-
transfer \
115-
--recipient <RECIPIENT_ADDRESS> \
112+
./pchain_client.exe transaction append `
113+
--file <PATH_TO_TRANSACTION_FILE> `
114+
transfer `
115+
--recipient <RECIPIENT_ADDRESS> `
116116
--amount <AMOUNT_TO_TRANSFER>
117117
```
118118

docs/smart_contract_sdk/call_contract.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,28 @@ Here is the command to call a contract:
4444
=== "Linux / macOS"
4545
```bash
4646
./pchain_client transaction create \
47-
--nonce <NONCE> \
47+
--nonce <NONCE> \
4848
--gas-limit <GAS_LIMIT> \
4949
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
5050
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
5151
call \
52-
--target <CONTRACT_ADDRESS> \
52+
--target <CONTRACT_ADDRESS> \
5353
--method <contract_METHOD> \
5454
--arguments <CALL_ARGUMENT_FILE_PATH_WITH_FILE_NAME>
5555
--amount <AMOUNT_TO_CONTRACT> \
5656
```
5757
=== "Windows"
5858
```PowerShell
59-
pchain_client.exe transaction create \
60-
--nonce <NONCE> \
61-
--gas-limit <GAS_LIMIT> \
62-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
63-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
64-
call \
65-
--target <CONTRACT_ADDRESS> \
66-
--method <contract_METHOD> \
67-
--arguments <CALL_ARGUMENT_FILE_PATH_WITH_FILE_NAME>
68-
--amount <AMOUNT_TO_CONTRACT> \
59+
./pchain_client.exe transaction create `
60+
--nonce <NONCE> `
61+
--gas-limit <GAS_LIMIT> `
62+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
63+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
64+
call `
65+
--target <CONTRACT_ADDRESS> `
66+
--method <contract_METHOD> `
67+
--arguments <CALL_ARGUMENT_FILE_PATH_WITH_FILE_NAME> `
68+
--amount <AMOUNT_TO_CONTRACT>
6969
```
7070

7171
The gas limit required for the transaction depends on the complexity of the smart contract. For safety reasons, you can always set a higher gas limit. You can also test contract calls on testnet to reassure.
@@ -80,7 +80,7 @@ To query the resulting receipt of the transaction,
8080
```
8181
=== "Windows"
8282
```PowerShell
83-
pchain_client.exe query tx --hash <TRANSACTION_HASH>
83+
./pchain_client.exe query tx --hash <TRANSACTION_HASH>
8484
```
8585

8686
The commands stored in `transaction` and command receipts in `receipt` are following the same order. That means you can always find the corresponding transaction from a command receipt.
@@ -98,7 +98,7 @@ For example, if the contract method returns a u32 integer, the `return value` is
9898
```
9999
=== "Windows"
100100
```PowerShell
101-
pchain_client.exe parse call-result --value BAAAAAUAAAA --data-type u32
101+
./pchain_client.exe parse call-result --value BAAAAAUAAAA --data-type u32
102102
```
103103

104104
The output will be the parsed value of the `CallResult`, which in this case is `4`. For more details, you can use the `help` command to see the usage of the tool or take a look at the example `argument,json`.

docs/smart_contract_sdk/deploy_contract.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can deploy the contract using the pchain_client command line tool. You shoul
1414
=== "Linux / macOS"
1515
```bash
1616
./pchain_client transaction create
17-
--nonce <NONCE> \
17+
--nonce <NONCE> \
1818
--gas-limit <GAS_LIMIT> \
1919
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
2020
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -24,11 +24,11 @@ You can deploy the contract using the pchain_client command line tool. You shoul
2424
```
2525
=== "Windows"
2626
```PowerShell
27-
pchain_client.exe transaction create
28-
--nonce <NONCE> \
27+
./pchain_client.exe transaction create
28+
--nonce <NONCE> \
2929
--gas-limit <GAS_LIMIT> \
3030
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
31-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
31+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
3232
deploy \
3333
--contract-code <WASM_BINARY_PATH> \
3434
--cbi-version <CBI_VERSION>
@@ -48,5 +48,5 @@ If you want to store the contract file in your preferred location, you need to p
4848
```
4949
=== "Windows"
5050
```PowerShell
51-
pchain_client.exe query contract --address <CONTRACT_ADDRESS>
51+
./pchain_client.exe query contract --address <CONTRACT_ADDRESS>
5252
```

0 commit comments

Comments
 (0)