Commit Graph

136 Commits

Author SHA1 Message Date
Evan Gray 37c20b547a sdk/js: publish separate proto packages 2022-07-13 10:04:23 -04:00
Csongor Kiss 47318c2a03
solana: Add "msg.sender" and remove fee from payload3 (#1279)
* solana: Add "msg.sender" and remove fee from payload3

* solana: update payload3 instruction to include the sender account

* solana: allow sending payload 3s to program ids directly

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
2022-06-30 18:37:46 +01:00
Evan Gray c145e9350b sdk/js: fix converting native terra2 20-byte addrs 2022-06-24 17:52:17 -04:00
Kevin Peters 3028b81d63 sdk/js: Terra2 integration tests 2022-06-24 16:37:22 -04:00
Evan Gray 3a20c774f0 sdk/js: add terra2 mainnet address 2022-06-22 12:13:17 -04:00
Csongor Kiss 297ab6fd61 sdk/js: remove fee from payload3 2022-06-21 22:35:49 -04:00
Evan Gray df3219e0f7 sdk/js: add terra2 testnet addrs 2022-06-21 17:30:56 -04:00
Evan Gray 3dc0bac63f sdk/js: terra2 support
Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
2022-06-21 17:30:56 -04:00
Josh Siegel 3fcb35132c payload3_xl: add new payload3 sender into the fee field 2022-06-21 12:44:55 -05:00
Josh Siegel 1103a23e87 Prevent attestation of wormhole assets on algorand 2022-06-21 10:22:09 -05:00
Josh Siegel 03487819ae const is shadowing creator variable 2022-06-20 06:19:28 -05:00
Josh Siegel 69b2cba3ca wasm-fix: Fixing more build errors @ gusc1a-ossdev-jsl5 2022-06-14 16:20:19 -04:00
Evan Gray f5aad60600 sdk/js: support surprise new wasm parameters 2022-06-14 16:20:19 -04:00
bruce-riley 24c5b17267
Neon to testnet (#1262)
* WIP: neon

* Watcher support

* Use eth_getLogs for Neon

* bridge_ui: update sdk version

* Setting WETH address for Neon

* Portal bridge support for WNEON

* relayer: update sdk

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-06-14 10:22:49 -04:00
Evan Gray 5fd54db369 sdk/js: add neon testnet 2022-06-09 17:43:18 -04:00
Bruce Riley b53bd83d99 Bump SDK version 2022-06-03 14:44:22 -04:00
Bruce Riley dcce155f43 Acala mainnet deploy 2022-06-03 14:44:22 -04:00
Paul Noel 6967f44e55
algo - add stuff to tilt (#1230)
* algo - add stuff to tilt

* terra: fix terra test (#1231)

* terra: fix terra test

* Update terra git bits

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

* algo - add stuff to tilt

Co-authored-by: Evan Gray <56235822+evan-gray@users.noreply.github.com>
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2022-05-31 15:49:38 -04:00
Paul Noel 90beeac4e6 sdk/js: Fixed algo address conversion 2022-05-31 14:22:46 -04:00
Csongor Kiss e63d7f5b77 sdk/js: Add terra support for sending payload 3 2022-05-24 03:52:54 -05:00
Josh Siegel 0821f42f74 dev.v2: collapse the ETH methods @ gusc1a-ossdev-jsl5 2022-05-24 03:52:54 -05:00
Josh Siegel ff400e91e0 sdk/p3: add sdk accessors for payload3 transfers 2022-05-23 10:51:10 -05:00
Evan Gray edd5185385 sdk/js: algorand attest fix 2022-05-20 08:39:17 -04:00
Josh Siegel 32e428512e sdk/js: version bump and comments to 0.3.3 2022-05-16 18:41:57 -04:00
Ben Guidarelli 2e4fed66c1 New ABI selector support for algorand 2022-05-16 14:54:47 -05:00
bruce-riley 018908a420
Klaytn mainnet deploy (#1185)
* Klaytn mainnet deploy
2022-05-16 10:06:17 -04:00
Bruce Riley d266438654 Celo mainnet deploy changes 2022-05-13 13:11:28 -04:00
Josh Siegel c9d7a617ee Rewrite algorand guardian watcher to directly hit the node instead of depending on indexer 2022-05-12 06:50:07 -05:00
Hendrik Hofstadt ee4583099f solana: token bridge transfer with payload 2022-05-11 21:24:36 -04:00
Josh Siegel c731363d1f algo/payload3: updates after feedback @ gusc1a-ossdev-jsl5 2022-05-11 07:29:56 -05:00
Josh Siegel 4e53392819 1) Add payload3 support into typescript
2) Add tests for payload3
3) Change the contract API for payload3 so that the destination is the appId instead of the app address
   and no longer part of the data
4) add a testApp into devnet
2022-05-11 07:29:56 -05:00
bruce-riley c7ba459de8
Moonbeam to testnet (#1150)
* Moonbeam to testnet

* Fix typo

* Shouldn't touch the CLI with this PR

* Update SDK version
2022-05-10 11:23:07 -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
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
Josh Siegel d54b883009 near/constants: establish our new constants for NEAR @ gusc1a-ossdev-jsl5 2022-04-29 21:00:10 -04:00
Evan Gray 5806059af9 sdk/js: algo 2022-04-29 20:57:02 -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
Evan Gray 26f9b9d752 bridge_ui,sdk: postVaa hotfix 2022-04-20 15:43: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
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
Hendrik Hofstadt c04d25e704 Fix solana integration tests & add test for account creation
Change-Id: I222744f194f952d03bfbd3ba4469bce59c310fc0
2022-04-11 21:29:39 -04:00
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
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
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
Evan Gray e39118116f sdk/js: update README 2022-03-07 23:14:13 -05:00
Evan Gray a3272dce4a remove pyth2wormhole 2022-03-07 10:23:34 -05:00
Evan Gray e7c61f5789 karura and acala sdk support 2022-03-03 15:49:52 -05:00
Serguei 087506dec6
sdk/solana: post_message: added multiple seeds. (#838) 2022-03-03 12:23:56 -06:00