Commit Graph

1914 Commits

Author SHA1 Message Date
Chirantan Ekbote ff40fa34b8 solana: token-bridge: Fix tests
Refactor the tests so that we can run them with `cargo test-bpf`.
2022-05-10 00:58:43 +09:00
Chirantan Ekbote 06c79838bd solana: bridge: Delete makefile
The tests no longer need a running instance of the test validator so
this is no longer necessary.
2022-05-10 00:58:43 +09:00
Chirantan Ekbote 589c8023d0 Add test target to solana Makefile 2022-05-10 00:58:43 +09:00
Chirantan Ekbote efdc560976 Run solana tests in Tilt
Refactor the solana Dockerfile so that the solana release installation
is a separate stage and have the builder stage derive from it.  Add a
new "ci_tests" stage that also derives from the solana stage but runs
the integration tests instead.

Invoke the solana ci_tests stage from the Tiltfile when ci_tests are
enabled.
2022-05-10 00:58:43 +09:00
Chirantan Ekbote 24dd6ed48b solana: bridge: Fix tests
Fix all the tests for the solana bridge program so that we can start
running it in CI.

Use the `solana-program-test` crate as the test framework. Previously,
running the tests required spinning up a test validator and manually
deploying the program there. Now developers can just do `cargo test-bpf`
to run the tests without needing any additional setup (beyond installing
the solana tools). This also lets us split out the tests so that they
can be run separately rather than having to run everything sequentially
in a single integration test.
2022-05-10 00:58:43 +09:00
Csongor Kiss 1c006f9bed
cli: Refactor js cli to support all contracts + add improvements (#1100)
* cli: Refactor js cli to support all contracts + add improvements

* Fix path in Makefile

* Don't be strict

* Fix registration VAA deserialisation

* Add karura gas calculation logic

* cli: fix after sdk rebase

* cli: improve makefile

* cli: depend on @certusone/wormhole-sdk locally instead of importing relative paths

* cli: add polygon overrides

* client: update for devnet

* fix tx signing in solana cli

* client: alias network

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-05-05 20:51:24 -04:00
Evan Gray c626e591e8 bridge_ui: add karura mainnet relayer 2022-05-05 14:40:54 -04:00
Csongor Kiss 7f427133cc
sdk: improve type safety + add documentation (#1102)
* sdk/js: improve type safety + add documentation

* sdk/js: add support for chain names

* sdk/js: fix boolean conditional bug in transferFromSolana

* sdk/js: remove unsafe ChainId coercions in sdk

* sdk/js: Chain id 0

This is a legit chain id that some governance VAAs target

* sdk/js: Add mainnet and testnet contract addresses

* sdk/js: bump version to 0.3.0

* sdk/js: limit minor version changes

* sdk/js: update contracts and add devnet

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-05-05 12:35:11 -04:00
Paul Noel c13bdff820
algo/tests: enable relayer test (#1140)
* algo/tests: enable relayer test

* algo/tests: increase timeout

* algo/tests: split tests into unit and integration

* algo/tests: move tests around

* algo/tests: remove file

* algo/tests: make it not optimize in dev mode @ gusc1a-ossdev-jsl5

* algo/tests: another test fix @ gusc1a-ossdev-jsl5

Co-authored-by: Josh Siegel <jsiegel@jumptrading.com>
2022-05-05 08:23:42 -05:00
Leo 2a83ea406b node/pkg/ethereum: move up nil check for TransactionReceipt
This fixes a null pointer dereference for a nil tx.

commit-id:a6a356b8
2022-05-05 09:04:54 -04:00
kev1n-peters 2a863a7ca3
cloud_functions: Added tokens to skip (#1152) 2022-05-04 22:11:33 +00:00
kev1n-peters 3ebd347181
cloud_functions: Added lightweight notional-transferred-from function (#1125) 2022-05-03 16:29:33 -05:00
kev1n-peters 3023b4a375
cloud_functions: totals cache should be overwritten for skipDates (#1147) 2022-05-03 15:40:56 -05:00
Kevin Peters ec87530bac explorer: Bumped wormhole sdk to latest, added karura icon 2022-05-03 16:12:33 -04:00
Paul Noel 3aa9abd3c6 bridge_ui: add guardianSetIndex to redeem
Change-Id: Idffa9a56ba520b3ed5dc4c3dec593db0c0a9bf58
2022-05-03 15:47:12 -04:00
kev1n-peters fb0bf2cd70
cloud_functions: Skip tokens in notional-transferred-to function (#1146) 2022-05-03 08:56:28 -05:00
Bruce Riley 7b9a6f8eb0 guardiand version is always development 2022-05-02 17:52:49 -04:00
Leopold Schabel eb3b777520 node/cmd/guardiand: improve send-observation-request arg parser
Accept chain names (i.e. "solana") and base58 tx hashes.

commit-id:d7114740
2022-05-02 14:41:55 -04:00
Paul Noel f61997e846 algo/sdkFixes: export submitVAAHeader() 2022-05-02 14:32:22 -04:00
Paul Noel d8c1be6e49 algo/sdkFixes: exposing safeBigIntToNumber() 2022-05-02 14:32:22 -04:00
Csongor Kiss a8dab4f428 algo: Update README.md
The `TmplSig` part was outdated as of the most recent changes
2022-05-02 14:29:11 -04:00
Kevin Peters b937eb2ad7 bridge_ui: added karura vaa emitter addresses 2022-05-02 14:28:36 -04:00
Evan Gray 5f41f8bfcd bridge_ui: karura mainnet beta 2022-05-02 14:28:36 -04:00
bruce-riley a94a3cf2fb
Karura mainnet deploy (#1142)
* Start of move to mainnet

* Rework to safe mode check

* Update truffle-config

* Should not check safe mode in dev mode
2022-05-02 14:28:17 -04:00
Evan Gray a200cc5bd7 bridge_ui: add klaytn and celo testnet support 2022-05-02 14:12:32 -04:00
kev1n-peters 776813fb26
bridge_ui: daily outbound volume stats, fix chart height (#1128) 2022-05-02 12:08:37 -05:00
bruce-riley 49f4a98cb2
Add missing aurora address references (#1117)
* Add missing aurora address references

Change-Id: I57a7dc7450d8527ab1ee6710dfbd6eda6da93f07

* Fix copy and paste error in comment

Change-Id: Ie7fc3cdbeab76518aad0f0220798cd1788d4be45
2022-05-02 13:06:56 -04:00
kev1n-peters 14b43e3b99
bridge_ui: Added liquidity warning for GMT and GST Solana <-> BSC transfers (#1136) 2022-05-02 08:51:15 +02:00
jumpsiegel f69c74961b
algo/testnet: Wormhole name fix (#1134)
* algo/testnet: Wormhole name fix

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-04-29 21:19:30 -04:00
Josh Siegel d54b883009 near/constants: establish our new constants for NEAR @ gusc1a-ossdev-jsl5 2022-04-29 21:00:10 -04:00
Evan Gray 01380af744 bridge_ui: algo 2022-04-29 20:58:38 -04:00
Evan Gray 5806059af9 sdk/js: algo 2022-04-29 20:57:02 -04:00
Evan Gray 1229ca5cff algo: guardian 2022-04-29 20:56:46 -04:00
Evan Gray cc72c2a644 algo: contracts 2022-04-29 20:56:17 -04:00
Kevin Peters d4a4f8aab5 bridge_ui: stats page overhaul, added custody-addresses page 2022-04-29 12:10:33 -04:00
kev1n-peters 76ade1b305
cloud_functions: notional-tvl-cumulative optimizations (#1118)
Added two entry points: ComputeTvlCumulative and TvlCumulative.
The first computes the result and writes it to the results cache -
intended to be invoked periodically by a scheduled task.
The second reads from the results cache and returns it as the response.
2022-04-29 10:02:51 -05:00
Justin Schuldt 218556a8f7
bridge_ui - update Portal twitter (#1123)
* bridge_ui - update Portal twitter
2022-04-29 07:27:52 -04:00
Jeff Schroeder 0981dc19bc node/hack/repair_eth: skip missed message
Otherwise, the script will run until the max number of times and
never complete.
2022-04-29 07:21:03 -04:00
Jeff Schroeder 542acdf0d6 node/hack/repair_eth: more cat & mouse for polygon
* Added the `User-Agent` header to all requests to the block explorer
  so cloudflare's browser check is happier.
* Add an option to sleep between loops hitting the block explorer. More
  than 1 / second on polygonscan gets you blocked temporarily.

These changes are required to repair missed messages on polygon.
2022-04-29 07:21:03 -04:00
bruce-riley d04328b858
Celo testnet support (#1051)
* Initial Celo support

Change-Id: Iee98ee29a8b09af9ca76945792b750d96a170702

* Watcher support

* Fix high level make file

* Remove node binary committed by mistake

* Port change from EthWatcher to CeloWatcher

* Use docker to build ABIs

* Refactor watcher to eliminate massive redunancy

* Fix lint-and-tests to handle multiple defs on link

* Minor code cleanup

* Celo should use ganache in devnet

* Prep for mainnet deploy

* Code review rework

* Remove celo from sdk package.json
2022-04-28 12:20:38 -04:00
justinschuldt 19fb468ceb handle CG 401s and remove noisy logs 2022-04-28 08:34:54 -05:00
justinschuldt c5c30ab076 blacklist fake sushi from TVL calc 2022-04-28 08:34:04 -05:00
justinschuldt 4ae277f264 shutdown auth proof template 2022-04-28 02:32:04 -05:00
Jeff Schroeder a4c91d8f1b
Minor updates to repair_eth (#1120)
* node/hack/repair_eth: use a cookiejar for http

Otherwise, explorers like polygonscan, which implement a cloudflare WAF,
will block all requests.

* node/hack/repair_eth: add -showError flag

When an explorer is having problems or blocks a repair http request, it returns an error like:

    Failed to get current height: failed to decode response: invalid character '<' looking for beginning of value

This allows showing the actual response body to better troubleshoot the problem.
2022-04-27 14:33:43 -04:00
Adrian Timpau dbc0c56eb5
+ aurora (#1112) 2022-04-27 09:54:08 -05:00
Kevin Peters 76356fdb29 bridge_ui: Updated CoinGecko token images 2022-04-27 10:38:10 -04:00
bruce-riley 87b36399d3
Add safe mode check (#1108)
Change-Id: Ida10e1ab0c056b4ed1ce2317800235843763a7ac
2022-04-26 07:51:10 -05:00
bruce-riley 05d84b4d6f
Add fantom to repair script (#1109)
Change-Id: Ic81b1082b72bb0cd66d9f15e951f6df2b92972ad
2022-04-26 07:50:07 -05:00
Kevin Peters 2c76aabf6e cloud_functions: Split notional-tvl into read and write (to cache) entry points 2022-04-25 17:33:18 -05:00
ceun a4854f9368 Added fake voxel to tokensToSkip list 2022-04-25 10:02:02 -05:00