roller: add generators for config options

This commit is contained in:
yosoyubik 2021-11-07 10:36:46 +01:00
parent fb5ab3edfd
commit 5ea87c1f47
9 changed files with 25 additions and 12 deletions

View File

@ -83,18 +83,6 @@
:: orh: ordered tx history by (decreasing) timestamp
::
++ orh ((on time roll-tx) gth)
+$ net ?(%mainnet %ropsten %local)
::
+$ config
$% [%frequency frequency=@dr]
[%setkey pk=@]
[%endpoint endpoint=@t =net]
[%resend-time time=@dr]
[%update-rate rate=@dr]
[%slice slice=@dr]
[%quota quota=@ud]
[%wipe-nep ~]
==
::
+$ action
$% :: we need to include the address in submit so pending txs show up
@ -433,6 +421,7 @@
==
::
[%predict ~]
~& "predicting"
?+ +<.sign-arvo (on-arvo:def wire sign-arvo)
%wake
=. own.state canonical-owners:do

View File

@ -1,3 +1,4 @@
:: Submits a new L2 batch with all pending transactions
::
:- %say
|= *

View File

@ -0,0 +1,7 @@
:: Updates a configuration option for /app/roller
::
/- *dice
::
:- %say
|= [* [=config ~] ~]
[%roller-action %config config]

View File

@ -1,3 +1,4 @@
:: Configures /app/roller to listen to a local Ethereum node
::
:- %say
|= *

View File

@ -1,3 +1,4 @@
:: Modifies the number of txs a ship is allowed to send, per unit of time (slice)
::
:- %say
|= [* [quota=@ud ~] ~]

View File

@ -1,3 +1,4 @@
:: Configures /app/roller to listen to a Ropsten Infura node
::
:- %say
|= *

View File

@ -1,3 +1,4 @@
:: Loads a private key into the roller and retrieves its L1 nonce
::
:- %say
|= [* [pk=@t ~] ~]

View File

@ -1,3 +1,4 @@
:: Modifies the unit of time (e.g. ~d1) for each ship's quota
::
:- %say
|= [* [slice=@dr ~] ~]

View File

@ -5,6 +5,17 @@
|%
+$ owner [=proxy:naive =address:naive]
+$ owners (jug owner ship)
+$ net ?(%mainnet %ropsten %local)
::
+$ config
$% [%frequency frequency=@dr]
[%setkey pk=@]
[%endpoint endpoint=@t =net]
[%resend-time time=@dr]
[%update-rate rate=@dr]
[%slice slice=@dr]
[%quota quota=@ud]
==
::
+$ azimuth-config
$: refresh-rate=@dr