Commit Graph

1911 Commits

Author SHA1 Message Date
Evan Gray 50bb184522
Spy relayer fixes (#1095)
* try catch pullAllEVMTokens

* remove some logs from walletMonitor

* redundant check fix, init s/f metrics

* fix unwrap for realz

* confirmed and rollback metrics

* fix terra balance fetching

* relayer: split out wallet monitor

* relayer: update tilt for wallet-monitor

* relayer: evm print tx hash before wait

* relayer: split out redis queue by source/target

* Update spy relayer example mainnet config files

* Includes Aurora bits in the emitter addresses, supported tokens,
  and supported chains.

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2022-04-20 19:51:12 -04:00
Evan Gray 26f9b9d752 bridge_ui,sdk: postVaa hotfix 2022-04-20 15:43:08 -04:00
Jonathan Claudius 5a987a8d2b
Comment ethereum messages (#1025)
* Add comments to Ethereum Messages.sol contract

* Remove current language, as it's a bit misleading

* Change comment formatting

* Switch to NatSpec comments

* Clean up comments for expired GuardianSet checks

* Clean up comments for expired GuardianSet checks, again
2022-04-19 21:07:08 -04:00
Chirantan Ekbote e907a05b1e sdk, terra: Fix tests and add them to CI
The terra tests had bit rotted quite terribly. It seems no one has run
them in almost a year because the API changed with the 0.14 release of
cosmwasm_vm in April, 2021.

Completely remove cosmwasm_vm from dev-dependencies.  The tests aren't
doing anything that requires interacting with the wasm code and can just
test the relevant functions directly.

Once this goes in the tests should be running in the CI so hopefully no
one will be able to push any more breaking changes.

commit-id:537d95e6
2022-04-20 09:46:51 +09:00
Chirantan Ekbote 3fdd9ccc3e solana: Merge into single workspace
Merge all the separate solana crates into a single workspace.  This is
the same thing we do for terra and will make it easier to check / lint /
test all the crates together.
2022-04-20 09:37:30 +09:00
kev1n-peters 275fcb2a36
bridge_ui: MetaMask wallet_addEthereumChain support (#1085)
* bridge_ui: MetaMask wallet_addEthereumChain support

* update karura and acala urls

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-04-19 18:45:03 -04:00
Csongor Kiss 0f6c1e2d98 Allow specifying the timestamp in governance inject
The 'timestamp' field is now allowed in a governance prototxt, which
applies to all the messages in the struct. If the timestamp is not
specified, then it defaults to 0, which is identical to the existing
behaviour.
2022-04-19 17:52:05 +01:00
kev1n-peters 7ca287c0dc
bridge_ui: Added legal disclaimer footer (#1080) 2022-04-18 16:53:06 -05:00
kev1n-peters e631e32116
cloud_functions: notional-transferred skipTokens support (#1088) 2022-04-18 17:48:14 -04:00
Paul Noel 85b6dfc420
sdk/js/src/token_bridge/__tests__: added more tests (#1029)
* sdk/js/src/token_bridge: adding more tests

* sdk/js/token_bridge/__tests__: ci changes
2022-04-14 14:07:29 -05:00
Jonathan Claudius 040eace4f7
Add to ethereum contract integration test coverage (#1053)
* Fix assert typos

* Restructure data field and add comments

* Move magic hex into named variables

* Add README items for running tests

* Add make test to README

* Show work on core string generation

* Add action transfer fee

* Add more VM integration test cases
2022-04-14 10:11:04 -04:00
justinschuldt 8667a6894a cloud functions - bump wormhole/node dep 2022-04-14 08:52:50 -05:00
justinschuldt 890f1a6469 cloud functions - add aurora 2022-04-14 08:52:50 -05:00
Kevin Peters 0eb4fb9aae cloud_functions: Added totalsOnly param to notional-tvl-cumulitive
Consumers may only care about the totals which results in a drastically
smaller response payload size.
2022-04-13 21:09:29 -05:00
Evan Gray b8b90e1de4 bridge_ui: remove Aurora from beta 2022-04-13 21:55:47 -04:00
justinschuldt 6e58ae511d cloud functions - tvl blacklist case insensitive 2022-04-13 17:24:17 -05:00
justinschuldt 52072706a1 cloud functions - blacklist token from TVL calc 2022-04-13 16:55:53 -05:00
Evan Gray 39bc7d1ca8 bridge_ui: use relayer fee schedule 2022-04-12 22:24:43 -04:00
justinschuldt 0a7168c107 move guardian-set-init.sh to docker/tilt 2022-04-12 20:37:52 -05:00
justinschuldt 18f8337ac9 make multiple guardians the default for tilt ci 2022-04-12 20:37:52 -05:00
justinschuldt 648a5faa54 fixes for tilt ci 2022-04-12 20:37:52 -05:00
justinschuldt 33298ca722 solana-devnet init multiple guardians 2022-04-12 20:37:52 -05:00
justinschuldt 1b7ce3451e make update-guardian-set.sh idempotent 2022-04-12 20:37:52 -05:00
justinschuldt 2e1ee8ec20 terra-devnet init with multiple guardians 2022-04-12 20:37:52 -05:00
justinschuldt e36b7220b3 eth-devnet init with multiple guardians 2022-04-12 20:37:52 -05:00
justinschuldt cd04836c4b add guardian-set-init.sh for tilt up --num=* 2022-04-12 20:37:52 -05:00
justinschuldt 0063f6ab69 clients/nft_bridge - minor usability improvements 2022-04-12 20:37:52 -05:00
justinschuldt c6d2d6983c clients/token_bridge - minor usage improvements 2022-04-12 20:37:52 -05:00
justinschuldt 5893e0c870 clients/token_bridge - allow multiple guardians when generating governance VAAs 2022-04-12 20:37:52 -05:00
justinschuldt f52bd8fcd2 add devent constants to devnet-consts.json 2022-04-12 20:37:52 -05:00
Bruce Riley 3e23db6331 Add aurora
Change-Id: Ice6234c339fd59c0337640778559c9af84a3f3d6
2022-04-12 14:30:35 -04:00
Chirantan Ekbote 4ef93e1619 Add `cargo check` to CI
This makes sure that the code builds successfully.

commit-id:d71c5b75
2022-04-12 13:58:37 -04:00
Chirantan Ekbote 5e4bf02014
terra-nft: Remove unused dependencies (#982) 2022-04-12 09:36:45 +02:00
Evan Gray 69ac3cc07c bridge_ui: update acala relayer url 2022-04-11 21:33:53 -04:00
Csongor Kiss 4227dde53b Improve and document deployment&verification workflow 2022-04-11 21:29:39 -04:00
Csongor Kiss ff15ca3a67 Document AccountState
* Don't use option_env
* Fix 'cargo test' (it was failing on ambiguous module names)
2022-04-11 21:29:39 -04:00
Hendrik Hofstadt c04d25e704 Fix solana integration tests & add test for account creation
Change-Id: I222744f194f952d03bfbd3ba4469bce59c310fc0
2022-04-11 21:29:39 -04:00
Hendrik Hofstadt 2b56fcc7da solitaire: Fix prefunded accounts blocking creation
Change-Id: I8841e6595b7f8bb217991515bb9ae1ae3d4f4607
2022-04-11 21:29:39 -04:00
Reisen 4e13d9d49c solana/token_bridge: Add blacklisted keys 2022-04-11 21:29:39 -04:00
Jonathan Claudius b18a6c8c2f
Fix segfault from empty GetSignedVAARequest (#1069) 2022-04-11 19:16:59 -04:00
Jonathan Claudius bad4f7061b
Adds unit-tests and functional improvements to guardian signature verification (#1068)
* Add more comprehensive structs unit-tests

* Make VerifySignatures fail on duplicate addresses

* Adjust duplicate detection to guard on signatures instead of addresses

* Add monotonic check in VerifySignatures

* Move logic into VerifySignatures and add more test cases

* Add a paranoid check for duplicate signers

* Make VerifySignatures unit-tests less contrived

* Add more verify signature test cases

* Refactor VerifySignatures tests

* Add VerifySignature fuzz tests

* Add tc.result checking instead of hardcoded true

* Change comparison so it throws debug on failure for fuzz tests

* Add unit-tests for observation signature logic

* Fix comment typos

* Refactor observation tests

* Add missing test case

* Fix VAAInvalidSignatures test case label

* Clean up unit-tests for observation and structs

* Change errorString convention in test

* Format Signature Verification Test Cases

* Remove unnecessary casting

* Add multi-signer same key cases

* Fix err usage in test cases

* Remove duplicate getVAA
2022-04-11 19:14:41 -04:00
Csongor Kiss 5a316207dd clients/solana: allow submitting VAAs to mainnet 2022-04-11 17:36:20 -04:00
Leopold Schabel 1fd6e14885 node/pkg/ethereum: fix unreachable nil check
The program would've crashed on `l.Address` before it
could reach the nilness check.

commit-id:17b64899
2022-04-11 17:10:14 -04:00
Evan Gray 74fdb3a4eb bridge_ui: add aurora to mainnet beta 2022-04-11 17:06:10 -04:00
Bruce Riley 10f00b934b Promote Aurora to Mainnet 2022-04-11 17:05:07 -04:00
Paul Noel 763f80b45d
Repair eth for Aurora (#1065)
* node/hack/repair_eth: update for Aurora

Change-Id: Ic073cb7806ce611a0d0c742b864dfa5cd57f39da

* bridge_ui/utils: update for Aurora

Change-Id: I19089355910d1252d139267ce1398e1dcdd46095

* node/hack/repair_eth: add comments

Change-Id: I2361d317e24446590334d39bc2e52f68d75932c5

* node/hack/repair_eth: fix comments

Change-Id: I4fd3e04d74f4f0b1c3731c556a106663bb36b66d
2022-04-11 16:27:20 -04:00
Leopold Schabel 97aedff9f0
node/pkg/ethereum: restart watcher if guardian set update fails (#1010) 2022-04-11 21:07:19 +02:00
Leopold Schabel d68232c447
hack/repair_solana: improve sequence guessing (#1003) 2022-04-11 21:07:09 +02:00
Jonathan Claudius 8dd3536fb2
Add README and crypto/rand for encrypt.go tool (#1057) 2022-04-08 19:37:53 -04:00
Jonathan Claudius 36cabf0e6a
Remove dead code path (#1056) 2022-04-08 19:37:23 -04:00