Commit Graph

2324 Commits

Author SHA1 Message Date
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
yosoyubik
3cee0ff3b8 naive: import /lib/naive-transactions in aggregator 2021-05-21 15:21:09 +02:00
yosoyubik
937cc2ce44 naive: add aggregator sur 2021-05-21 15:07:08 +02:00
yosoyubik
9caa686173 naive: cast to _pending when updating pending-state 2021-05-21 14:29:40 +02:00
yosoyubik
fbb40b688e naive: add %failed for droppped l2 txs 2021-05-21 14:12:05 +02:00
yosoyubik
30bd648d7f json-rpc: move error response core to lib 2021-05-21 13:39:06 +02:00
yosoyubik
8532ef4bb0 naive: remove [] around function calls in scry paths 2021-05-21 13:00:45 +02:00
yosoyubik
6cdc3a1cae Merge branch 'naive/aggregator' into yu/azimuth-rpc 2021-05-21 12:34:33 +02:00
yosoyubik
ce35d07adb naive: remove redundant brackets 2021-05-21 12:34:29 +02:00
yosoyubik
f6adf083ad naive: use /v1/azimuth in rcp-api 2021-05-21 12:28:54 +02:00
yosoyubik
5862aa07ce naive: wip aggregator send thread 2021-05-21 12:16:57 +02:00
yosoyubik
9e7cb91398 Merge branch 'yu/azimuth-rpc' into naive/aggregator 2021-05-17 17:50:45 +02:00
yosoyubik
152cf894ff naive: hook rpc-api with aggregator 2021-05-17 17:49:41 +02:00
yosoyubik
7c57a35ccc naive: wip aggregator compiles
got it to compile and tested poke and scry from /app/azimuth-rpc.hoon
2021-05-17 17:48:49 +02:00
yosoyubik
154baceb8b Merge branch 'yu/azimuth-rpc' into naive/aggregator 2021-05-14 09:46:36 +02:00
yosoyubik
8ebb5e2d6c naive: add pending and tx status RPCs 2021-05-14 07:25:09 +02:00
yosoyubik
7ede24c3cc naive: first pass at tx history RPC 2021-05-14 07:25:04 +02:00
yosoyubik
ae8d98c467 naive: add jsonrpc parsing for sending pending rolls 2021-05-14 07:24:59 +02:00
yosoyubik
0380d18735 naive: add rpc response error codes 2021-05-14 07:24:43 +02:00
yosoyubik
36cdb9493d naive: add jsonrpc parsing for naive txs 2021-05-14 07:24:35 +02:00
yosoyubik
fe8c36dd3f naive: use agentio for scry point 2021-05-14 07:24:27 +02:00
yosoyubik
843fe4ce38 json-rpc: add validation for json-rpc request 2021-05-14 07:24:27 +02:00
yosoyubik
d8a24d7d6b naive: add json library for rpc responses 2021-05-14 07:24:16 +02:00
yosoyubik
0c704bb145 json-rpc: add response-to-json 2021-05-14 07:24:16 +02:00
yosoyubik
afd3c9b85e naive: add azimuth rpc api
Currently supports one endpoint 'get-point' that returns Azimuth Point
data (see +point in %/lib/naive.hoon), for a given ship.

To run it:

curl -X POST --data '{
  "jsonrpc": "2.0",
  "method": "get-point",
  "params": {"ship": "~sampel-palnet"},
  "id": 1234
}' http://localhost:8080/v1/azimuth
2021-05-14 07:23:59 +02:00
yosoyubik
31cc219997 naive: support "get point" scry 2021-05-14 07:23:58 +02:00
fang
9b62454bca
naive: wip aggregator
Includes logic for the core flow, but isn't fully hooked up to outside
sources/events yet. Probably doesn't compile. Plenty of TODOs remaining.
2021-05-13 17:21:35 +02:00
Philip Monk
75eeef544e
naive: store crypto suite number in state
We now store the raw crypto suite number, authentication key, and
encryption key.  App/azimuth converts this to a `pass` for jael's
benefit.
2021-04-28 20:51:43 -07:00
Philip Monk
b1091d0e98
Merge remote-tracking branch 'origin/master' into philip/naive 2021-04-28 20:30:07 -07:00
Philip Monk
5d52171a47
naive: add domain separator
To prevent replay across chains, eg from ropsten to mainnet.
Additionally, this introduces a version number, so we won't have to
worry about future signature formats being accidentally compatible with
this one.
2021-04-28 18:13:00 -07:00