Skip to content

Commit 7e8b7e0

Browse files
authored
Merge pull request #702 from oasisprotocol/matevz/docs/rofl-provider-cleanup
docs: Small cleanup for rofl provider cmd
2 parents 09d3e53 + a11cc83 commit 7e8b7e0

2 files changed

Lines changed: 28 additions & 27 deletions

File tree

docs/rofl.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -388,33 +388,7 @@ information and your offers.
388388

389389
An example provider configuration file looks like this:
390390

391-
```yaml title="rofl-provider.yaml"
392-
# Network name in your Oasis CLI
393-
network: testnet
394-
# ParaTime name in your Oasis CLI
395-
paratime: sapphire
396-
# Account name in your Oasis CLI
397-
provider: rofl_provider
398-
# List of Base64-encoded node IDs allowed to execute ROFL apps
399-
nodes:
400-
-
401-
# Address of the scheduler app
402-
scheduler_app: rofl1qrqw99h0f7az3hwt2cl7yeew3wtz0fxunu7luyfg
403-
# Account name or address of who receives ROFL machine rental payments
404-
payment_address: rofl_provider
405-
offers:
406-
- id: small # Short human-readable name
407-
resources:
408-
tee: tdx # Possible values: sgx, tdx
409-
memory: 4096 # In MiB
410-
cpus: 2
411-
storage: 20000 # In MiB
412-
payment:
413-
native: # Possible keys: native, evm
414-
terms:
415-
hourly: 10 # Possible keys: hourly, monthly, yearly
416-
capacity: 50 # Max number of actively rented machines
417-
```
391+
![code yaml title="rofl-provider.yaml"](../examples/rofl/rofl-provider.yaml)
418392

419393
#### Initialize a ROFL provider {#provider-init}
420394

examples/rofl/rofl-provider.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Network name in your Oasis CLI
2+
network: testnet
3+
# ParaTime name in your Oasis CLI
4+
paratime: sapphire
5+
# Account name in your Oasis CLI
6+
provider: rofl_provider
7+
# List of Base64-encoded node IDs allowed to execute ROFL apps
8+
nodes:
9+
- 5MsgQwijUlpH9+0Hbyors5jwmx7tTmKMA4c9leV3prI=
10+
# Address of the scheduler app:
11+
# - Sapphire Testnet: rofl1qrqw99h0f7az3hwt2cl7yeew3wtz0fxunu7luyfg
12+
# - Sapphire Mainnet: rofl1qr95suussttd2g9ehu3zcpgx8ewtwgayyuzsl0x2
13+
scheduler_app: rofl1qrqw99h0f7az3hwt2cl7yeew3wtz0fxunu7luyfg
14+
# Account name or address of who receives ROFL machine rental payments
15+
payment_address: rofl_provider
16+
offers:
17+
- id: small # Short human-readable name
18+
resources:
19+
tee: tdx # Possible values: sgx, tdx
20+
memory: 4096 # In MiB
21+
cpus: 2
22+
storage: 20000 # In MiB
23+
payment:
24+
native: # Possible keys: native, evm
25+
terms:
26+
hourly: 10 # Possible keys: hourly, monthly, yearly
27+
capacity: 50 # Max number of actively rented machines

0 commit comments

Comments
 (0)