Commit Graph

2353 Commits

Author SHA1 Message Date
yosoyubik
56df09cb12 naive: remove wrong cast 2021-07-03 12:50:38 +02:00
yosoyubik
8ada986f78 naive: support camel case rpc method name 2021-07-01 14:34:24 +02:00
yosoyubik
b14b7d131e naive: add rpc for retrieving roller configuration data 2021-06-29 07:45:44 +02:00
yosoyubik
af295b2f5e naive: add get-dns to azimuth-rpc 2021-06-28 13:01:04 +02:00
yosoyubik
845cd2090e naive: discard duplicate txs whe updatating predicted state 2021-06-28 07:46:09 +02:00
yosoyubik
5eb07edde5 naive: add ownership index to /app/azimuth 2021-06-28 07:26:47 +02:00
yosoyubik
8ea0ee004e naive: clean up updating predicted state 2021-06-24 16:56:32 +02:00
yosoyubik
d03d710796 naive: add index of points by ethereum address 2021-06-24 16:54:23 +02:00
yosoyubik
3289f84b71 naive: update history's tx status when predicting state 2021-06-22 15:15:33 +02:00
yosoyubik
2c2c7db981 naive: get point data from aggregator 2021-06-22 15:00:24 +02:00
yosoyubik
c715ef59fd naive: add cancel pending transaction 2021-06-21 11:27:36 +02:00
yosoyubik
845a2d1c1b naive: add l2 tx history by ethereum address 2021-06-16 17:03:21 +02:00
yosoyubik
066795c32c naive: add pending-by-address to aggregator 2021-06-14 15:00:15 +02:00
yosoyubik
0573232726 naive: add %noncefrom ship/proxy to rpc-api 2021-06-14 14:18:57 +02:00
yosoyubik
bc3d6e4ac7 Merge branch 'yu/naive-ordered-map' into naive/aggregator 2021-06-11 12:39:03 +02:00
yosoyubik
b52cf1aa1d naive: defer deriving predicted naive state in aggregator 2021-06-11 12:27:05 +02:00
yosoyubik
37ab836bcb naive: add latest +on map with parent order 2021-06-10 13:39:03 +02:00
yosoyubik
749f8e93f9 naive: add when %next-batch to rpc-api 2021-06-09 15:59:04 +02:00
yosoyubik
60ba0f81dd naive: add units for endpoint and nonce in aggregator 2021-06-09 15:37:37 +02:00
yosoyubik
0a5a69396c naive: remove setting nonce manually 2021-06-09 14:26:10 +02:00
yosoyubik
87be8c0e2d naive: wip use ordered map for points.nas 2021-06-09 14:20:58 +02:00
yosoyubik
0f0af88a31 naive: wip add ordered-map for points 2021-06-09 13:34:04 +02:00
yosoyubik
852881eff1 naive: rename nas to pre (predicted state) 2021-06-09 13:30:36 +02:00
yosoyubik
85c0c11257 naive: add time for next L2 batch to state 2021-06-09 13:05:17 +02:00
yosoyubik
b9c5d9e2e6 naive: listen to %resend timer 2021-06-07 13:09:16 +02:00
yosoyubik
ca2b626c4e naive: init aggregator timer on-init 2021-06-07 13:07:35 +02:00
yosoyubik
e7eaf3d2c6 naive: try updating predicted state on confirmed L2 tx 2021-06-07 11:41:02 +02:00
yosoyubik
e35a8b9e7f naive: cached naive state -> predicted naive state 2021-06-07 11:20:31 +02:00
yosoyubik
a01289145b naive: update aggregator cached naive state eagerly
The aggregator keeps a cached naive state that is recreated using the 
canonical L2 state from the %azimuth agent, every time a new L2 tx comes 
in via +take-tx (used by clients of the aggregator).

This makes the cached state ahead of the canonical L2 state, but 
recreated every time a client sends a tx, using the list of pending (not 
sent out to an ethereum node) and sending (waiting confirmation from 
L1). This step drops any pending and sending transactions that do not 
apply correctly.

Hearing about a new L2 tx confirmed in L1 (+on-naive-diff) removes such 
transaction from the sending list, but does not update the cached state, 
since this was already done when the L2 tx was seen in +take-tx.
2021-06-05 14:24:37 +02:00
yosoyubik
9c70e006a1 naive: fix wrong wire when receiving azimuth txs 2021-06-05 13:58:34 +02:00
yosoyubik
bac79bf55d naive: add get-spawned to rpc-api 2021-06-04 11:41:59 +02:00
yosoyubik
7e665b4fe8 naive: update wires and path in azimuth 2021-06-03 09:27:08 +02:00
yosoyubik
9c18638469 naive: update wires in aggregator 2021-06-03 09:26:13 +02:00
yosoyubik
82ab2b6b2d naive: use canonical state from azimuth in aggregator 2021-06-03 09:24:28 +02:00
yosoyubik
fc8e090a29 naive: add config action 2021-06-03 09:11:33 +02:00
yosoyubik
943eee1db6 naive: add ethereum signing address to aggregator sending map 2021-06-01 16:18:32 +02:00
yosoyubik
4642ece88f naive: use get-network for retrieving chain data 2021-06-01 14:28:17 +02:00
yosoyubik
5453722728 naive: give naive state after aggregator subscription 2021-06-01 14:23:53 +02:00
yosoyubik
9f3202eded naive: use cached naive state in aggregator 2021-06-01 13:56:56 +02:00
yosoyubik
5b0e785cf7 naive: choose contracts from mainnet, ropsten or local 2021-05-29 15:42:27 +02:00
yosoyubik
520225056a naive: send signature and raw tx for every tx in the roll
this assumes that the naive contract has a "fallback" function:

https://docs.soliditylang.org/en/v0.5.3/contracts.html#fallback-function
2021-05-29 14:57:57 +02:00
yosoyubik
98bef023cf naive: send updates to aggregator 2021-05-29 14:53:57 +02:00
yosoyubik
4cbf3d497b naive: update tx state in finding txs 2021-05-29 14:46:19 +02:00
yosoyubik
e834aface1 naive: subscribe to azimuth agent 2021-05-29 14:44:58 +02:00
yosoyubik
9abd6c3e72 naive: use gen-tx-octs from naive-transactions library 2021-05-29 14:44:16 +02:00
yosoyubik
a3ed3182bc naive: use contract/chain from azimuth library 2021-05-29 14:43:13 +02:00
yosoyubik
8b51b526d3 naive: add get-next-nonce thread 2021-05-29 14:40:13 +02:00
yosoyubik
47813a189a naive: hook up subscription to azimuth for %tx diffs 2021-05-23 15:49:55 +02:00
yosoyubik
001d58e539 naive: add parse raw tx in aggregator submit action 2021-05-23 14:59:29 +02:00
yosoyubik
766e2ab610 naive: capture rpc errors when sending l2 batches 2021-05-22 08:10:30 +02:00