Commit Graph

1755 Commits

Author SHA1 Message Date
bruce-riley 879670c0e5
Klaytn testnet support (#1038)
* Klaytn support for testnet

Change-Id: Id0647fd6c603ab298f860c2cae20481555467315

* token_bridge client changes

Change-Id: If49ba994a67041044bdec054f19e69b4cfc2785b

* Get rid of special handling

* More cleanup

* Need to add Klaytn to structs tests

* Update SDK version

* Add SDK version

* fix klaytn bridge chain id

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-04-04 18:11:03 -04:00
bruce-riley eb898b0555
Aurora and Fantom handled wrong in a couple cases in guardian (#1044)
* Aurora and Fantom handled wrong in a couple cases

Change-Id: I09b7d2da46507e219bd99d945256e63fefad529c

* Original test covered upper / lower case

Change-Id: I0384b0aac6f63bf9782d393fcd4e4e67f353775a
2022-04-04 15:08:16 -04:00
bruce-riley 014b3686fe
Don't require padding on addrs in bridge clients (#1041)
Change-Id: Id32bfb90ee20d1bccc6b860de028c0bdecfd8786
2022-03-31 09:03:26 -05:00
Csongor Kiss 745d3db68d
Run ethereum tests on CI (#1028)
* Add makefile to run ethereum tests

* Run tests on CI

* single rm in make clean

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>

* Fix WETH address in bridge test

Change-Id: Idd7455cc873d2db86c2ccc130bd673b065311e67

* Don't kill ganache-cli if already running

Instead error the test

* eth: omit mainnet stuff from ci

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
Co-authored-by: Drew Sterioti <asterioti@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-03-31 00:32:27 -04:00
Jonathan Claudius b7ec3ac0d3
Add unit-tests for nodekey (#1035)
* Add unit-tests for nodekey

* Move to deferred file clean up
2022-03-30 09:41:27 -04:00
Jonathan Claudius 5e00027a18
Add unit-tests for registry (#1026)
* Add unit-tests for registry

* Tweaks to registry unit-tests

* Remove duplicate unit-test

* Remove duplicate test case
2022-03-30 09:38:37 -04:00
Serguei 8692080c2f
Terra SDK test chage to make it pass, devnet contract address corrected, build as library feature set. (#764) 2022-03-30 07:12:15 -05:00
Chirantan Ekbote 4d0e3b9030
terra: contracts: fix clippy warnings (#983) 2022-03-30 11:01:43 +01:00
Jonathan Claudius 3ceec1833f
Add more comprehensive structs unit-tests (#1006)
* Add more comprehensive structs unit-tests

* Abstract the vaa generation test logic
2022-03-29 12:24:56 -04:00
Jonathan Claudius 5921150f93
Add unit-test for ethereum utils (#1022) 2022-03-29 12:24:16 -04:00
ceun 33e9f4d57a Added fake WFTM to tokensToSkip list 2022-03-29 10:06:10 -05:00
ceun a080f6d2bd Added fake WFTM to tokensToSkip list 2022-03-29 10:06:10 -05:00
Jeff Schroeder 349fa42c58
Spy relayer cleanup (#1015)
* initial spy-relayer

* Update spy_relayer Dockerfile

* added example mainnet config files

* split out private keys into its own ENV variable

* Update spy relayer supportedChains.json

To remove the `walletPrivateKey` entries. All of the private keys have
been split out into their own json file.

* fixed evm private key env parse

* missing solana accounts report 0 balance, rather than error

* wallet address is logged in debug

* spy_relayer: enabled prometheus default metrics

Also set a prefix of `relayer_`

* spy_relayer: updates to the prometheus bits

* Use a single metric registry
* Use a simpler metric name and add labels for individual wallets

* spy_relayer: human readable app mode in the metrics

[ listener | relayer | both ]

* spy_relayer: unify metrics

* remove the collection of default metrics
* hardcode the `spy_relayer_` prefix on all custom metrics

* fixed dep arrays, nullable terra token/balance info

* attempt stack debug

* debug pullTerraBalance

* provider http or ws

* update sdk

* logging for tokenAddress is 0

* fix foreign address calc

* fix calcLocalAddressesTerra

* relayer/spy_relayer: update prometheus helpers

Add / url handler for the ingress-gce stupid load balancer that
doesn't support custom url healthchecks unless you make a BackendConfig
custom resource definition.

* logging refinement

* use chain name in prometheus

* adjust retry timeout calculation

* spy_relayer: update prometheus bits

* improved error handling

* relayer ui improvements

* prep sdk release

* use latest sdk, manual redeem button

* relaying ux improvements

* gas price fix

* shortened terra success log

* use gh base relayer list

* fix prometheus urls

* Update prometheus metric name

* only show TPS warning on mainnet

* show relayer fee in source preview

* fix unwrap check

* add native bool to balance metric

* logging improvements

* add feeRecipientAddress to redeemOnSolana

* gather solana fees

* remove relayer ws support

* add nativeCurrencySymbol to ChainConfigInfo

* fix solana native symbol

* demoteWorking option, logger contexts

* scoped logging

* bridge_ui: unwrap native

* add evm wallet monitor test

* solana vaa parsing fix

* add monitorRedis

* make Jeff's brain happy

* log demoting keys

* register redisQueue metric

* human readable redisQueue metric

* fix timestamp inconsistency

* use scopedLogger for the first level of workers

* pull wallet balances in parallel

* more scoped logging

* pick a solana fee

* moving keys log improvement

* update eth gas calculations based on recent txs

* use postVaaSolanaWithRetry

* split success and failures by chain

* fix using terraCoin

* check prom every 10s

* batch getting evm token balances

* batch calcLocalAddressesEVM

* debug worker logging

* log retry number

* support Polygon?

* reset status on demotion

* enhance!

* update avax fee

Co-authored-by: Chase Moran <chasemoran45@gmail.com>
Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-03-28 23:39:08 -04:00
Chirantan Ekbote 1ae8ee4913 terra: Send relayer fee to message sender
This was incorrectly sending the fee to the recipient.
2022-03-29 00:30:35 +09:00
Jonathan Claudius a709d6f283
Add unit-tests for deterministic devnet keys (#1032)
* Add unit-tests for deterministic devnet keys

* Extend unit-tests to do full deterministic key checks
2022-03-28 10:43:37 -04:00
Jonathan Claudius 5355f87206
Add unit test for 0 case and move to testify (#1023) 2022-03-28 09:54:18 -04:00
Jonathan Claudius b7a95484f9
Refactor Symmetric Unit-tests to Testify (#948)
* Refactor Symmetric Unit-tests to Testify

* Isolate tests for more durability

* Remove duplicate test case
2022-03-25 16:17:33 -04:00
Justin Schuldt 42284a25e3 remote devnet config - GCP VM 2022-03-18 10:49:34 -05:00
justinschuldt 90489cc299 add guardian set updates to devnet
commit-id:a540b698
2022-03-18 10:49:34 -05:00
justinschuldt b73ebd1b9c fix digest string represenation
commit-id:617ade15
2022-03-18 10:49:34 -05:00
justinschuldt d2dcb57e61 send guardian set data to prometheus
commit-id:87ec83e0
2022-03-18 10:49:34 -05:00
justinschuldt 972c0aada0 add ganche and devnet accounts to devnet.md
commit-id:40d570bd
2022-03-18 10:49:34 -05:00
justinschuldt 99a02a41ea fix devnet GS upgrade path
commit-id:3a2fa5aa
2022-03-18 10:49:34 -05:00
justinschuldt 8391c280dd add dev tooling for clients/eth
commit-id:f31250ef
2022-03-18 10:49:34 -05:00
Csongor Kiss c01dd93adb Add NFT deploy script 2022-03-18 13:14:32 +00:00
valentin 6e87730aec add aproval tests 2022-03-18 13:14:32 +00:00
Csongor Kiss f22dfcece3 ethereum/nft-bridge: Transfer before burn
This is consistent with the token bridge
2022-03-18 13:14:32 +00:00
justinschuldt 6b6d172262 cloud functions - quicker initialize 2022-03-17 18:25:48 -05:00
justinschuldt b2d1ea3e72 cloud functions - 60 second context deadline 2022-03-17 18:25:48 -05:00
justinschuldt d95e82b00b cloud functions - docs update 2022-03-17 18:25:48 -05:00
justinschuldt 69c41d901e cloud functions - local dev launch config 2022-03-17 18:25:48 -05:00
justinschuldt fe12f78cdf cloud functions - daily TVL smaller response 2022-03-17 18:25:48 -05:00
justinschuldt c478bdd552 cloud functions - rm noisy logs 2022-03-17 18:25:48 -05:00
justinschuldt bd62e1fba1 cloud functions - rm unsed deps (go mod tidy) 2022-03-17 18:25:48 -05:00
justinschuldt 57c06dea11 cloud functions - handle 2 digit chainIDs 2022-03-17 18:25:48 -05:00
justinschuldt 6e32dbe403 explorer - fix chainoverview update animation 2022-03-17 18:01:16 -05:00
justinschuldt 6d3c94c856 explorer - improve initial calls 2022-03-17 18:01:16 -05:00
justinschuldt d4aeacb754 explorer - bump number of chains 2022-03-17 18:01:16 -05:00
justinschuldt 9a36a0b318 explorer - increase poll interval 2022-03-17 18:01:16 -05:00
Evan Gray 32634f87e6 bridge_ui: add Aurora to testnet 2022-03-17 13:01:53 -04:00
Kevin Peters ca0b9cd35c bridge_ui: moved to webpack 5 and react-app-rewired, updated solana wallet deps 2022-03-16 22:20:30 -04:00
Evan Gray bbb9986f05 bridge_ui: fix receiving tvl for unknown chains 2022-03-16 20:07:31 -04:00
kev1n-peters a5dbbac112
bridge_ui: Make transfers to/from chains configurable (#997)
* bridge_ui: Make transfers to/from chains configurable
2022-03-16 20:07:13 -04:00
Kevin Peters 02a2397479 bridge_ui: stats page null data fix 2022-03-16 20:06:48 -04:00
Adrian Timpau f374047d0b
explorer animations & fixes (#1009)
* explorer animations & fixes

* fix breakpoint
2022-03-16 18:45:37 -04:00
Csongor Kiss f60acc59ab
solitaire: Infer entry point argument type in solitaire! macro (#927)
The type of the `ix_data` binding withing the solitaire! macro expansion
is explicitly annotated with its type, which comes from the macro's
pattern binding `$kind`. However, this type annotation is entirely
optional, since `ix_data` is passed in as an argument to `$fn`, whose
type forecs `ix_data` anyway, and rust will happily infer that from the
application. So we remove the explicit annotation which makes the entry
point macro easier to use.

commit-id:d428306c
2022-03-16 18:25:41 +00:00
bruce-riley b718225e45
Testnet support for Aurora (#947)
* Testnet support

* Upgrade contract for 1conf

* Formatting changes

Change-Id: Id06481d77d770a04eb200aadb82574e23cddcd36
2022-03-15 10:41:10 -04:00
Kevin Peters 21e2a710a7 bridge_ui: enable polygon transfers 2022-03-14 23:39:01 -04:00
Kevin Peters d233436168 bridge_ui: Changed terra est. fees to be more accurate 2022-03-14 11:14:03 -04:00
Kevin Peters c70637d832 bridge_ui: Added wrapped-fantom logo 2022-03-14 11:13:32 -04:00