1
0
mirror of https://github.com/ilyakooo0/urbit.git synced 2024-12-23 23:12:04 +03:00
urbit/pkg/arvo/sur/aggregator.hoon

52 lines
908 B
Plaintext
Raw Normal View History

2021-05-21 16:07:08 +03:00
/+ naive, ethereum
::
|%
+$ keccak @ux
::
+$ tx-status
$: status=?(%unknown %pending %sending %confirmed %failed)
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
==
::
:: TODO: add submission time?
::
+$ roller-tx [status=tx-status hash=keccak type=l2-tx]
::
+$ 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)
==
--