2021-07-22 07:34:42 +03:00
|
|
|
:: dice: structures for L2 Rollers
|
|
|
|
::
|
2021-05-21 16:07:08 +03:00
|
|
|
/+ naive, ethereum
|
|
|
|
::
|
|
|
|
|%
|
2021-07-22 07:34:42 +03:00
|
|
|
+$ owners (jug address:naive ship)
|
|
|
|
::
|
2021-06-29 08:45:44 +03:00
|
|
|
+$ roller-config
|
|
|
|
$: next-batch=time
|
|
|
|
frequency=@dr
|
|
|
|
refresh-time=@dr
|
|
|
|
contract=@ux
|
|
|
|
chain-id=@
|
|
|
|
==
|
|
|
|
::
|
2021-05-21 16:07:08 +03:00
|
|
|
+$ keccak @ux
|
|
|
|
::
|
|
|
|
+$ tx-status
|
|
|
|
$: status=?(%unknown %pending %sending %confirmed %failed)
|
|
|
|
pointer=(unit l1-tx-pointer)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ l1-tx-pointer
|
|
|
|
$: =address:ethereum
|
|
|
|
nonce=@ud
|
|
|
|
==
|
|
|
|
::
|
2021-06-16 18:03:21 +03:00
|
|
|
+$ l2-tx
|
|
|
|
$? %transfer-point
|
|
|
|
%spawn
|
|
|
|
%configure-keys
|
|
|
|
%escape
|
|
|
|
%cancel-escape
|
|
|
|
%adopt
|
|
|
|
%reject
|
|
|
|
%detach
|
|
|
|
%set-management-proxy
|
|
|
|
%set-spawn-proxy
|
|
|
|
%set-transfer-proxy
|
|
|
|
==
|
|
|
|
::
|
2021-06-28 08:46:09 +03:00
|
|
|
:: TODO: add submission time?
|
|
|
|
::
|
2021-07-15 15:26:44 +03:00
|
|
|
+$ roller-tx [=ship status=tx-status hash=keccak type=l2-tx]
|
2021-06-16 18:03:21 +03:00
|
|
|
::
|
|
|
|
+$ pend-tx [force=? =address:naive =raw-tx:naive]
|
2021-05-21 16:07:08 +03:00
|
|
|
::
|
|
|
|
+$ 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)
|
|
|
|
==
|
2021-07-22 07:34:42 +03:00
|
|
|
--
|