mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
90 lines
1.7 KiB
Plaintext
90 lines
1.7 KiB
Plaintext
:: dice: structures for L2 rollers
|
|
::
|
|
/+ naive, ethereum
|
|
::
|
|
|%
|
|
+$ 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
|
|
==
|
|
::
|
|
+$ roller-config
|
|
$: next-batch=time
|
|
frequency=@dr
|
|
resend-time=@dr
|
|
update-rate=@dr
|
|
contract=@ux
|
|
chain-id=@
|
|
slice=@dr
|
|
quota=@ud
|
|
==
|
|
::
|
|
+$ keccak @ux
|
|
::
|
|
+$ status
|
|
?(%unknown %pending %sending %confirmed %failed %cancelled)
|
|
::
|
|
+$ tx-status
|
|
$: =status
|
|
pointer=(unit l1-tx-pointer)
|
|
==
|
|
::
|
|
+$ l1-tx-pointer
|
|
$: =address:ethereum
|
|
nonce=@ud
|
|
==
|
|
::
|
|
+$ l2-tx
|
|
$? %transfer-point
|
|
%spawn
|
|
%configure-keys
|
|
%escape
|
|
%cancel-escape
|
|
%adopt
|
|
%reject
|
|
%detach
|
|
%set-management-proxy
|
|
%set-spawn-proxy
|
|
%set-transfer-proxy
|
|
==
|
|
::
|
|
+$ update
|
|
$% [%point =ship =point:naive new=owner old=(unit owner)]
|
|
[%tx =address:ethereum =roll-tx]
|
|
==
|
|
::
|
|
+$ hist-tx [p=time q=roll-tx]
|
|
+$ roll-tx [=ship =status hash=keccak type=l2-tx]
|
|
+$ pend-tx [force=? =address:naive =time =raw-tx:naive]
|
|
+$ send-tx [next-gas-price=@ud sent=? txs=(list raw-tx:naive)]
|
|
+$ part-tx
|
|
$% [%raw raw=octs]
|
|
[%don =tx:naive]
|
|
[%ful raw=octs =tx:naive] ::TODO redundant?
|
|
==
|
|
::
|
|
+$ rpc-send-roll
|
|
$: endpoint=@t
|
|
contract=address:ethereum
|
|
chain-id=@
|
|
pk=@
|
|
::
|
|
nonce=@ud
|
|
next-gas-price=@ud
|
|
txs=(list raw-tx:naive)
|
|
==
|
|
--
|