Commit Graph

10336 Commits

Author SHA1 Message Date
drbeefsupreme
e60ef1a9d7
naive: l2 sponsorship tests with %manage 2021-07-15 17:28:08 -04:00
drbeefsupreme
e7ac8df71a
naive: l2 %detach %own tests 2021-07-15 17:00:47 -04:00
drbeefsupreme
0488b4b10d
naive: L2 adopt/reject/cancel tests 2021-07-15 16:41:12 -04:00
yosoyubik
c79a833678 aggregator: add ship to roller-tx in history 2021-07-15 14:26:44 +02:00
yosoyubik
794a14a12b azimuth-rpc: return hash of succesful l2 transaction 2021-07-15 14:23:08 +02:00
yosoyubik
fc04623d00 azimuth-rpc: remove raw l2 tx from required rpc arguments 2021-07-13 16:03:40 +02:00
yosoyubik
97a3c53827 aggregator-rpc: add rpc api for l2 aggregator 2021-07-13 15:22:25 +02:00
yosoyubik
2e9d412c21 azimuth-rpc: remove aggregator-related rpc code 2021-07-13 15:21:24 +02:00
yosoyubik
72d424e68a json-rpc: validate json-rpc method outside request parsing 2021-07-13 15:15:23 +02:00
yosoyubik
2787c157dd Merge remote-tracking branch 'origin/naive/preboot' into naive/aggregator 2021-07-09 12:54:38 +02:00
yosoyubik
c2dd622fe3 naive: derive predicted ownership in /app/aggregator 2021-07-08 16:45:27 +02:00
Fang
e0f7d09a97
azimuth-rpc: fill in missing code 2021-07-07 17:38:21 +02:00
Fang
124cf43d70
dawn: update vere's dawn for L2 preboot validation 2021-07-07 17:37:54 +02:00
Fang
70f960ab0f
azimuth: produce %noun-marked results on-peek
These were fake marks, which would give us trouble when asking for %noun
results. Now we just produce them as %noun results explicitly.
2021-07-07 17:35:07 +02:00
Fang
38e4e06e0b
json-rpc: support batch requests
Because this updates +validate-request, we must update azimuth-rpc
to match.

Naming of $batch-requests is admittedly a bit questionable...
2021-07-07 17:29:12 +02:00
Fang
0b1ff05a02
dawn: rip out /lib/json/rpc dependency
The functionality we need is minimal, so better to just reproduce
in-line instead of pulling in a questionable dependency.
2021-07-07 17:26:22 +02:00
Fang
19cb432ad2
dawn: fix /lib/vere compilation errors 2021-07-07 17:25:11 +02:00
Fang
9444537b8d
json-rpc: never crash when validating request
Instead produce the empty unit for failure cases, like the function
signature implies.
2021-07-06 23:10:05 +02:00
yosoyubik
14165a9215 naive: add missing aggregator-action in transfer-point 2021-07-06 19:49:19 +02:00
Fang
ecd1146461
Merge branch 'naive/aggregator' into naive/preboot 2021-07-06 17:02:36 +02:00
yosoyubik
56df09cb12 naive: remove wrong cast 2021-07-03 12:50:38 +02:00
Fang
f3b57d7b61
dawn: update for azimuth-rpc, wip
Contains the bulk of the changes, but is missing escape parsing,
doesn't handle missing optional fields nicely, and is mostly untested.
2021-07-03 00:51:19 +02:00
Fang
cb1a7cb76a
Merge branch 'm/multipass' into naive/preboot 2021-07-02 16:20:51 +02:00
yosoyubik
cf68f8b5c5 Merge remote-tracking branch 'origin/poprox/naive-tests' into naive/aggregator 2021-07-02 07:03:51 +02:00
yosoyubik
be79e0653c Merge remote-tracking branch 'origin/philip/naive' into naive/aggregator 2021-07-02 07:03:22 +02:00
yosoyubik
8ada986f78 naive: support camel case rpc method name 2021-07-01 14:34:24 +02:00
yosoyubik
c4f8d6c672 naive: return signature for pending txs as hex-encoded string 2021-06-29 07:46:29 +02:00
yosoyubik
b14b7d131e naive: add rpc for retrieving roller configuration data 2021-06-29 07:45:44 +02:00
drbeefsupreme
78521236a3
Merge branch 'philip/naive' into poprox/naive-tests 2021-06-28 15:33:51 -04:00
yosoyubik
af295b2f5e naive: add get-dns to azimuth-rpc 2021-06-28 13:01:04 +02:00
yosoyubik
3ca12235e5 naive: only accept hex-encoded signature and raw rpc arguments 2021-06-28 12:38:10 +02:00
yosoyubik
ed36304749 naive: also accept ship in rpc argument as number 2021-06-28 12:36:48 +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
e05234c179 naive: add gas to ju 2021-06-24 16:41:44 +02:00
yosoyubik
1e7e2e1193 naive: use lte to emphasize parent equality 2021-06-24 16:40:53 +02:00
yosoyubik
5b317acca5 naive: use 10 gwei for fallback-gas-price 2021-06-24 16:38:54 +02:00
Philip Monk
99955ce8d3
Merge remote-tracking branch 'origin/poprox/naive-tests' into philip/naive 2021-06-22 09:51:33 -10:00
Philip Monk
72b6e11e43
naive: update for L1 changes 2021-06-22 09:50:22 -10:00
drbeefsupreme
e9227dca7e
naive: %manage events working 2021-06-22 14:57:57 -04:00
drbeefsupreme
126f286ed5
naive: ~pidted-dacnum joins the party 2021-06-22 14:36:28 -04:00
drbeefsupreme
80fa78319a
naive: another forgotten test ship 2021-06-22 14:34:05 -04:00
drbeefsupreme
413df5570f
naive: apparently forgot a test planet 2021-06-22 14:30:06 -04:00
drbeefsupreme
ae3b2ec6af
naive: tests: nonces for proxies 2021-06-22 13:55:24 -04: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
drbeefsupreme
cd615524cd
naive: ownership testing 2021-06-17 17:46:52 -04:00
drbeefsupreme
01328c03af
naive: nonce testing on 2021-06-17 17:17:03 -04:00
drbeefsupreme
7dbf0a28d2
naive: ~red init 2021-06-17 16:43:58 -04:00
drbeefsupreme
68a9e397a3
naive: fix check on %spawn dominion %set-spawn-proxy 2021-06-17 14:38:22 -04:00
drbeefsupreme
1116c8eeb8
naive: %escape tests
succeeds for dominion %l2, fails for other dominion
2021-06-17 14:06:20 -04:00
drbeefsupreme
3ddb3b14d2
naive: rut-test description, slight refactor 2021-06-17 13:19:02 -04:00
fang
bdaad4cf84
kh: don't error during key validation
Instead produce an Either.
2021-06-17 17:42:44 +02:00
yosoyubik
7e9a2bcfcd naive: fix json param parsing in rpc-api 2021-06-17 15:12:10 +02:00
fang
f8d5a1644c
kh: improve naming and code style 2021-06-17 14:48:09 +02:00
yosoyubik
845a2d1c1b naive: add l2 tx history by ethereum address 2021-06-16 17:03:21 +02:00
drbeefsupreme
a7dbecd372
naive: fix %transfer-point test 2021-06-15 18:14:51 -04:00
drbeefsupreme
bf8155425c
naive: fix key set test 2021-06-15 18:11:47 -04:00
drbeefsupreme
e160485eb0
naive: working spawn tests 2021-06-15 18:07:20 -04:00
drbeefsupreme
5581094263
naive: refactor test state settesr 2021-06-15 17:29:48 -04:00
drbeefsupreme
4a533a17e6
naive: full state testing for mgmt 2021-06-15 16:29:17 -04:00
drbeefsupreme
d234fb4bb3
naive: spawn planet with planet test 2021-06-15 15:36:54 -04:00
drbeefsupreme
f921c8d4dc
naive: rewrite success-map 2021-06-15 15:20:47 -04:00
yosoyubik
33b9f76540 naive: account for raw-tx data size in gas limit 2021-06-15 07:22:55 +02:00
yosoyubik
4c4e0e70b8 naive: fix gas limit for l2 batch transaction 2021-06-14 17:21:57 +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
e513768b90 naive: wip scale gas limit with roll size 2021-06-11 16:41:17 +02:00
yosoyubik
bc3d6e4ac7 Merge branch 'yu/naive-ordered-map' into naive/aggregator 2021-06-11 12:39:03 +02:00
yosoyubik
121ee03fd0 naive: add hint to +por arm 2021-06-11 12:32:47 +02:00
yosoyubik
b52cf1aa1d naive: defer deriving predicted naive state in aggregator 2021-06-11 12:27:05 +02:00
drbeefsupreme
d16ef8beb1
naive: spawn test arms 2021-06-10 17:04:28 -04:00
drbeefsupreme
1b6d81a0c8
naive: %transfer-point tests 2021-06-10 15:59:38 -04:00
drbeefsupreme
3c2daa06b4
naive: match %configure-keys to skim:tx format 2021-06-10 15:34:42 -04:00
Philip Monk
e14ed392e6
naive: don't crash if we receive extra L1 logs 2021-06-10 09:22:51 -10:00
drbeefsupreme
4c7cdc253a
naive: spawn and xfer proxy tests 2021-06-10 15:19:31 -04:00
drbeefsupreme
3bba3e5ac0
naive: fix nonce set 2021-06-10 13:23:10 -04:00
drbeefsupreme
71c6b45bc4
naive: add test categories 2021-06-10 13:22:10 -04:00
drbeefsupreme
da53512560
naive: more style 2021-06-10 12:51:19 -04:00
drbeefsupreme
3c36a38181
naive: cleanup style 2021-06-10 12:43:33 -04: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
fang
2d01e1851f
Merge branch 'master' into m/multipass 2021-06-09 14:34:49 +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
ryjm
0142fce219 king: add crud event to jael 2021-06-09 05:54:57 -04:00
ryjm
8ad9d022a1 king: fix noun derivation 2021-06-09 01:50:34 -04:00
drbeefsupreme
0bf69a99a3
naive: new test system working for mgmt proxies
hopefully its all downhill from here
2021-06-08 19:04:08 -04: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