Leo
7e366b5da6
Update all Go dependencies to latest
...
...except for libp2p, which broke compatibility
between go-libp2p and go-libp2p-core:
https://github.com/libp2p/go-libp2p-core/issues/168
I explicitly updated all transitive dependencies using
go get -u ./..., so the top-level go.mod file grew to include those.
2020-10-16 20:48:53 +02:00
Leo
26387f43f5
Improve a log message for better comprehensibility
2020-10-08 18:00:37 +02:00
Hendrik Hofstadt
2747839bd4
bridge: use hash instead of big for signingMsg
...
Using Big could truncate padding which lead to hashes of len != 32
Closes #10
2020-08-31 20:17:51 +02:00
Hendrik Hofstadt
d537f976f9
bridge: setup pubsub before connecting to bootnodes; buffer observations
2020-08-31 16:11:09 +02:00
Leo
cb757192b3
bridge: wrap agent recv errors
2020-08-28 17:12:16 +02:00
Leo
072b4c4ddf
Add repo overview to README.md
2020-08-28 15:34:42 +02:00
Hendrik Hofstadt
f6750a3762
all: consider decimals on wrapped assets, fix VAA posting, fix solana account parsing
2020-08-28 15:10:42 +02:00
Hendrik Hofstadt
8e6dc495dc
bridge: remove VAA timeout
...
Closes #35
2020-08-28 08:49:46 +02:00
Hendrik Hofstadt
1eef0b3bce
bridge: use full token address
2020-08-28 08:35:59 +02:00
Leo
5a72d9029a
VAA guardian devnet submission
2020-08-27 17:46:40 +02:00
Leo
ed6b8d23de
Update supervisor library to fix negative backoff
...
Fixes #9
2020-08-24 21:06:12 +02:00
Leo
afa70fd473
Submit ETH VAAs to Solana for data availability
2020-08-24 16:13:27 +02:00
Leo
c370a94911
Remove instructions for running devnet_setup.sh
2020-08-22 11:03:20 +02:00
Leo
57ea6ae656
Submit the right VAA to devnet
2020-08-22 00:21:57 +02:00
Leo
ef2aab5998
Decouple lifecycle of processor and ethwatch
...
We now do an independent fetch of the guardian set.
2020-08-22 00:21:57 +02:00
Leo
30d921ec25
Always cancel contexts to avoid leaking goroutines
2020-08-21 23:48:02 +02:00
Leo
5b8c6e89bd
Ethereum lockup VAA submission to devnet
2020-08-21 23:40:03 +02:00
Leo
4b24a74547
agent: use max commitment and fix nonce type
...
It appears that single confirmation level is not useful
for transactions that depend on each other.
2020-08-21 22:53:31 +02:00
Leo
72289be8ee
Wire up Solana lockup watcher
2020-08-21 20:49:33 +02:00
Leo
b663e2dc56
Generalize token lockup processor
2020-08-21 13:00:44 +02:00
Leo
10621625f0
Handle supervisor.RunGroup error
2020-08-21 13:00:44 +02:00
Leo
935411c036
Refactor all node key management into nodekeys.go
2020-08-21 13:00:44 +02:00
Leo
d317164345
Rename ethwatch to ethlockup and run it in a runnable group with the watcher
...
This ensures that we re-fetch the guardian set when ethlockup dies.
2020-08-21 11:17:55 +02:00
Leo
9bb44eb0f5
Enable VAA submission to Solana
2020-08-21 00:06:38 +02:00
Leo
c381ed2459
Print initial guardian set bytes for devnet
2020-08-20 23:39:51 +02:00
Leo
b6b2d21bde
Fix race condition where p2p is faster than ETH
2020-08-20 22:24:33 +02:00
Leo
ec6e261c43
Receive own signatures
2020-08-20 22:05:25 +02:00
Leo
f1f2d0c8b8
Solana VAA submission stub
2020-08-20 21:48:58 +02:00
Leo
da8840e363
Update ABI for 9b3f7999
2020-08-20 21:04:32 +02:00
Leo
e1c760af6d
Update ABI for 9b3f7999
2020-08-20 20:26:21 +02:00
Hendrik Hofstadt
8f4127f781
Add slot to agent
2020-08-20 19:20:11 +02:00
Leo
d1c86a0eaa
bridge: use new eth devnet addresses and keygen
2020-08-19 17:38:55 +02:00
Hendrik Hofstadt
59449a30b3
Update VAA structure
2020-08-19 16:41:25 +02:00
Leo
d6ef9c932c
bridge: listen to eth lockups and aggregate signatures from all nodes
...
Improved devnet setup to generate deterministic node and guardian keys.
Devnet setup routine that configures a dynamic guardian set on Ethereum.
Configurable number of nodes in Tiltfile.
2020-08-19 14:24:38 +02:00
Leo
69d8125c67
ethereum: emit guardian set IDs in LogGuardianSetChanged
...
go-ethereum is having trouble parsing a log with structs.
2020-08-19 11:47:29 +02:00
Leo
8b34a3c534
ethereum: add getGuardianSet accessor
2020-08-18 16:19:28 +02:00
Leo
12873e5819
Add tooling to regenerate the Go ABI
2020-08-17 23:02:06 +02:00
Leo
a1dcc36df9
Handle ipfslog.SetLogLevel error
2020-08-17 23:02:06 +02:00
Leo
760d5541b7
Move loadGuardianKey and ethLockupProcessor out of main.go
2020-08-17 19:36:17 +02:00
Leo
7903402fa6
Deterministic hashes for ETH lockups
...
We're missing a nonce for truly unique hashes - for now, two
identical transfers will only be executed once.
2020-08-17 19:29:25 +02:00
Leo
bc3714fc73
Add nodeName to override hostname in gossip
2020-08-17 19:22:12 +02:00
Leo
955bcc93fe
bridge: devnet guardian key generation
2020-08-17 18:20:28 +02:00
Leo
9171eb89cb
Import Hendrik's vaa-test
2020-08-17 16:33:02 +02:00
Leo
e548bbbee3
devnet: add send-lockups.js truffle script to generate test lockups
2020-08-17 16:31:48 +02:00
Leo
d049aa08e7
pkg/ethereum: fix watcher lifecycle
2020-08-17 14:56:22 +02:00
Leo
c4d53247d3
bridge: fix p2p routine restart
...
Turns out, libp2p cannot be cleaned up so till this is fixed,
we have to exit if p2p dies.
Expose the root context to p2p and cancel it.
2020-08-17 14:55:51 +02:00
Leo
090d0aca84
bridge: split up guardiand/main.go
2020-08-17 12:29:52 +02:00
Leo
bdf164a5b5
bridge: signal readiness
2020-08-17 12:25:16 +02:00
Leo
24d38b12ea
bridge: default to 15 blocks ETH lockup
2020-08-17 12:14:57 +02:00
Leo
8174679360
Remove unused chainlink imports
...
We're not going to use Schnorr/threshold signatures for now -
turns out, multisigs are cheaper on ETH.
Ran `go mod tidy`.
2020-08-16 19:05:32 +02:00