Skip to content

Commit 2a44a82

Browse files
committed
docs: Document rofl top-up command
1 parent 9dc7f63 commit 2a44a82

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

docs/rofl.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,19 @@ offer:
194194

195195
[ROFL marketplace]: https://github.com/oasisprotocol/oasis-sdk/blob/main/docs/rofl/features/marketplace.mdx
196196

197+
## Top-up payment for the machine {#top-up}
198+
199+
Run `rofl machine top-up` to extend the rental of the machine obtained from
200+
the [ROFL marketplace]. The rental is extended under the terms of the original
201+
offer. Specify the extension period with [`--term`][term-flags] and
202+
[`--term-count`][term-flags] parameters.
203+
204+
![code shell](../examples/rofl/machine-top-up.in.static)
205+
206+
![code](../examples/rofl/machine-top-up.out.static)
207+
208+
[term-flags]: #deploy
209+
197210
## Advanced
198211

199212
### Upgrade ROFL app dependencies {#upgrade}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oasis rofl machine top-up --term hour --term-count 12
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Using provider: oasis1qp2ens0hsp7gh23wajxa4hpetkdek3swyyulyrmz (oasis1qp2ens0hsp7gh23wajxa4hpetkdek3swyyulyrmz)
2+
Top-up machine: default [000000000000022a]
3+
Top-up term: 12 x hour
4+
Unlock your account.
5+
? Passphrase:
6+
You are about to sign the following transaction:
7+
Format: plain
8+
Method: roflmarket.InstanceTopUp
9+
Body:
10+
{
11+
"provider": "oasis1qp2ens0hsp7gh23wajxa4hpetkdek3swyyulyrmz",
12+
"id": "000000000000022a",
13+
"term": 1,
14+
"term_count": 12
15+
}
16+
Authorized signer(s):
17+
1. AyZKkxNFeyqLI5HGTYqEmCcYxKGo/kueOzSHzdnrSePO (secp256k1eth)
18+
Nonce: 996
19+
Fee:
20+
Amount: 0.0013614 TEST
21+
Gas limit: 13614
22+
(gas price: 0.0000001 TEST per gas unit)
23+
24+
Network: testnet
25+
ParaTime: sapphire
26+
Account: dave
27+
? Sign this transaction? Yes
28+
(In case you are using a hardware-based signer you may need to confirm on device.)
29+
Broadcasting transaction...
30+
Transaction included in block successfully.
31+
Round: 12917124
32+
Transaction hash: 094ddc21c39acd96789153003016bda5d2a0077e7be11635bb755b6c49c287ac
33+
Execution successful.
34+
Machine topped up.

0 commit comments

Comments
 (0)