Skip to content

Commit eb1e100

Browse files
committed
refactor: update command examples to use placeholder for chain name in iApp guides
1 parent a44d059 commit eb1e100

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/guides/build-iapp/advanced/build-your-first-sgx-iapp.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ You can check your deployed apps with their index, let's check your last
395395
deployed app:
396396

397397
```bash twoslash
398-
iexec app show --chain arbitrum-mainnet
398+
iexec app show --chain {{chainName}}
399399
```
400400

401401
## Run the iApp
@@ -420,20 +420,20 @@ At any time you can:
420420
- view your balance
421421

422422
```bash twoslash
423-
iexec account show --chain arbitrum-mainnet
423+
iexec account show --chain {{chainName}}
424424
```
425425

426426
- deposit RLC from your wallet to your iExec Account
427427

428428
```bash twoslash
429-
iexec account deposit --chain arbitrum-mainnet <amount>
429+
iexec account deposit --chain {{chainName}} <amount>
430430
```
431431

432432
- withdraw RLC from your iExec account to your wallet \(only stake can be
433433
withdrawn\)
434434

435435
```bash twoslash
436-
iexec account withdraw --chain arbitrum-mainnet <amount>
436+
iexec account withdraw --chain {{chainName}} <amount>
437437
```
438438

439439
:::
@@ -478,13 +478,13 @@ is a 32Bytes hexadecimal string\).
478478
Download the result of your task
479479

480480
```bash twoslash
481-
iexec task show --chain arbitrum-mainnet <taskid> --download my-result
481+
iexec task show --chain {{chainName}} <taskid> --download my-result
482482
```
483483

484484
You can get your taskid with the command:
485485

486486
```bash twoslash
487-
iexec deal show --chain arbitrum-mainnet <dealid>
487+
iexec deal show --chain {{chainName}} <dealid>
488488
```
489489

490490
::: info
@@ -526,7 +526,7 @@ The conditions to use an app are defined in the **apporder**.
526526
Publish a new apporder for your application.
527527

528528
```bash twoslash
529-
iexec app publish --chain arbitrum-mainnet
529+
iexec app publish --chain {{chainName}}
530530
```
531531

532532
::: info
@@ -545,7 +545,7 @@ conditions defined in apporder.
545545
You can check the published apporders for your app
546546

547547
```bash twoslash
548-
iexec orderbook app --chain arbitrum-mainnet <your app address>
548+
iexec orderbook app --chain {{chainName}} <your app address>
549549
```
550550

551551
Congratulation you just created a decentralized application! Anyone can now

src/guides/build-iapp/advanced/result-callback.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const scaled = '9';
4848
// ---cut---
4949

5050
async function main() {
51-
// Your business logic here
51+
// Your business logic here ...
5252

5353
const abiCoder = new AbiCoder();
5454
const abiPayload = abiCoder.encode(
@@ -73,13 +73,13 @@ must implement `receiveResult(bytes32,bytes)`interface from
7373

7474
```solidity
7575
contract IExecCallbackReceiver {
76+
// Your business logic here ...
77+
7678
// ERC1154 - Callback processing
7779
function receiveResult(bytes32 _callID, bytes memory callback) external {
7880
// Parse results
7981
(uint256 timestamp, string memory pairAndPrecision, uint256 scaledValue) =
8082
abi.decode(callback, (uint256, string, uint256));
81-
82-
...business logic...
8383
}
8484
}
8585
```

0 commit comments

Comments
 (0)