Commit Graph

189 Commits

Author SHA1 Message Date
bruce-riley f0b7225591
Pythnet mainnet deploy (#1388) 2022-08-04 09:51:38 -05:00
Kevin Peters 910eb0f3e0 fix terra classic native token parsing
when a native denom is received (complete transfer native),
check if the token chain is terra classic
2022-08-03 12:02:02 -05:00
Kevin Peters a9b05d8868 sdk/js: 0.6.0 version bump and formatting changes 2022-08-01 12:33:53 -04:00
Chirantan Ekbote f64703c815 sdk/js: Add wormhole chain 2022-08-01 12:33:53 -04:00
Chirantan Ekbote 13a18d2f7e sdk/js: Move address functions to cosmos package
`canonicalAddress` and `humanAddress` are useful functions for all
cosmos chains so move it into a new cosmos package.  This also means we
need to stop hardcoding "terra" in `humanAddress` and take the human
readable part as a parameter instead.
2022-08-01 12:33:53 -04:00
Evan Gray e0fd3e788f
node: pythnet testnet support (#1380) 2022-07-28 12:30:00 -05:00
Bruce Riley d010f0d430 Deploy read only moonbeam 2022-07-21 16:23:08 -04:00
Bruce Riley d40f969d47 Deploy read only chains 2022-07-21 09:17:29 -04:00
Evan Gray 577d9b35f8 sdk/js: parallelize tests 2022-07-19 19:43:41 -04:00
bruce-riley 53efeb8c87
Add read only chain IDs (#1370)
* Add read only chain IDs

* Should be treated as EVMs
2022-07-19 14:05:40 -04:00
Evan Gray 90fe03012a tilt: build ci earlier 2022-07-15 14:36:46 -04:00
Evan Gray 91f9a13ae0 sdk/js: remove logs in tests 2022-07-15 14:36:46 -04:00
Josh Siegel caeea358d8 Stub out injective, osmosis, sui, and aptos 2022-07-15 10:45:30 -04:00
Evan Gray 061244dc17 sdk/js: publish separate wasm package 2022-07-13 10:04:23 -04:00
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
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
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
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
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
Kevin Peters ea67521d11 sdk/js: Added relayerFee parameters to transfer functions 2022-03-03 11:04:08 -05:00
Evan Gray 075defa634 feat: improve bridge_ui tilt
properly cache npm ci in Docker container image
support hotloading outside ci
2022-02-14 07:56:38 -05:00
Kevin Peters 27e8952c8b sdk/js: Updated terra dependencies
Changed devnet terra tax rate to zero to reflect mainnet and testnet
2022-02-10 16:15:06 -05:00
Davide 1406b76ddf fix: parseSequenceFromLogSolana -> Throw correct error if a Solana Tx is not found 2022-02-10 15:54:21 -05:00
Csongor Kiss 0f43f5fec1 sdk/js: Add Fantom & Aurora to SDK 2022-02-09 16:07:57 -05:00
chase-45 28c713a6dd
Tilt tests (#688)
* tests run in tilt / ci

* changed bridge_ui test process

* tests use kube proxy when in ci

* fix: allTests.sh permission

* fix: bridge_ui dockerfile sha for amd64

* fix: bridge_ui should use cra test

* fix: ci tests

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-02-08 03:55:10 -05:00
Evan Gray aa0537284f sdk/js: v0.1.6 2022-01-07 16:48:16 -05:00
Csongor Kiss cb7e90a701
sdk/js: Terra NFT bridge support (#699)
commit-id:5a5c9d29
2022-01-07 17:13:02 +01:00
Evan Gray 2998031b16 sdk/js : add parseSequencesFromLog* 2022-01-04 10:44:46 -05:00
Evan Gray 98cb787512 terra: fix tax calculation on withdraw_tokens 2021-12-23 15:03:04 -05:00
jumpsiegel f90ed66ca0
Stub out algorand support in wormhole (#611)
* Stub out algorand support in wormhole

  1) Introduce the algorand chain constant in all the appropriate places
  2) Deploy pyth/hernandc algorand smart contracts into devnet
  3) Fund all the correct contracts for devnet testing

Change-Id: I6e4402b5b21223b32ea89653f8c7606f5c7f2843

* pr/jsiegel/algorand-v1: ALGORAND is not a EVM chain @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: fix lint @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: put the requirements into the image @ gusc1a-ossdev-jsl1

* jsiegel/algorand: make the watcher hang forever @ gusc1a-ossdev-jsl1

* jsiegel/algorand: comment these out @ gusc1a-ossdev-jsl1

* jsiegel/algorand: put this back in @ gusc1a-ossdev-jsl1

* jsiegel/algorand: fix guardian example @ gusc1a-ossdev-jsl1

* Generate teal source code

commit-id:a537a109

* jsiegel/algorand: it builds @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: add Dockerfile.teal @ gusc1a-ossdev-jsl1

* jsiegel/algorand: improve the dependencies @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: Fix up build @ gusc1a-ossdev-jsl1

* dead file

* pr/jsiegel/algorand-v1: remove more stuff @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: fix build @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: freeze the requirements @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: Fix teal to use pipenv @ gusc1a-ossdev-jsl1

* pr/jsiegel/algorand-v1: fix miss-merge @ gusc1a-ossdev-jsl1

Co-authored-by: Leo <leo@certus.one>
2021-12-22 11:22:04 -05:00
Chase Moran af34f454ec sdk: support for oasis 2021-12-20 22:12:29 -05:00
Chase Moran 693678ef5d sdk: add postVaaSolanaWithRetry 2021-12-20 21:49:19 -05:00
Kevin Peters fd35514a53 sdk/js: added terra transfer/deposit integration test 2021-12-14 17:39:51 -05:00
Chase Moran 0b6b5f3548 sdk: initial avax support
Change-Id: I54ba771d1ad764379027cddfe500375fa440966f
2021-12-10 14:07:28 -05:00
Evan Gray 9aa2c22595 sdk/js: 0.1.3
Change-Id: Idaa3a7ca7af40a07ab8c21d247c4f50c0aaca057
2021-12-09 21:00:50 +00:00
Kevin Peters 70c173af75 sdk/js: Added getIsTransferCompleted
Change-Id: I034595b800ee2b881b9c2a9ab16d6e2a8e4a42e2
2021-12-09 20:20:43 +00:00
Evan Gray 7f5740754b sdk/js: fix files
Change-Id: Ic100c50d726f28f265e85f1fdbd773993190f213
2021-11-23 10:58:21 -05:00
Evan Gray 78e1244177 bridge_ui: add ropsten to testnet
Change-Id: I54f0dd7955f01b383f42f4521360acc5b4a185e5
2021-11-23 00:47:34 -05:00
Leo 8800d7bfd3 *: add ropsten chainID and guardiand implementation
Change-Id: Ib99316c28237d946eb2b6d013f4e275a620d4aa8
2021-11-22 22:32:36 +00:00
Evan Gray f085e4e15c sdk/js: esm and cjs builds
Change-Id: I9ddb372ac872675f5b906d523ff5237e4f65ecb1
2021-11-21 19:18:37 -05:00
Evan Gray 55bc96d979 sdk/js: updateWrappedOnSolana
Change-Id: Ib4d25b8c4494d79883ad55873f13ff2688e5e969
2021-11-19 14:31:29 -05:00
Evan Gray 0a93202f6e sdk/js: Include node target wasms in lib
Change-Id: Id29c2352a1e0e5d26739fd9a9076eae402600a9c
2021-11-15 15:34:08 +00:00
Chase Moran be244f4632 bridge_ui: token verifier page
Change-Id: I48c48519caee597ae5455f7777326c6f07361886
2021-11-09 21:09:13 +00:00
Evan Gray c824a99636 sdk/js: attempt jest tests
Change-Id: I139153994604f0048f690b011048daec4d760a55
2021-11-05 19:53:00 +00:00
Stan Drozd 70596937e0 sdk/js: Add extraGrpcOpts to getSignedVAA()
Change-Id: Id756455ddc9a2d98d001bad6b8f7ff05392f22d4
2021-11-03 21:27:27 +00:00
Evan Gray eb4f6e57c8 bridge_ui: misc QoL improvements
Change-Id: I030029955b26539d247aeb4cdc567eb90c605676
2021-11-03 12:01:06 -04:00
Chase Moran 78cdcb13ae bridge_ui: add ability to update attestations
Change-Id: Iedb0418d2a3b24a979af99107ef8a4ca8c3a4619
2021-11-02 01:06:22 +00:00
Evan Gray ad33cac284 bridge_ui: prep polygon support
Change-Id: I6bd45eb0ce6b7f97ba78e8569fa05f9f027be0d5
2021-10-27 17:29:35 +00:00
Chase Moran 6a0c788804 bridge_ui: terra transaction fee modifications
Change-Id: Ie7afb2439efaa334d33264080125da9337bf914a
2021-10-22 19:59:19 +00:00
Evan Gray 487e23814e bridge_ui: fix tvl table bug
Change-Id: I1b111d0d364341dc82b1049a730523d708827de2
2021-10-18 13:39:51 -04:00
Evan Gray bdabe31b94 sdk/js: version 0.0.6
Change-Id: I9138d79fb871a09759362e2a9e72c5b0aef0d4ae
2021-10-18 12:42:47 -04:00
Joseph Lee fe2b0d4d07 Update js sdk transfer from solana
Change-Id: I1e81e5c068e00a2c02fea74df6c21603d44b9d74
2021-10-16 21:43:30 +00:00
Reisen 3277458e8e sdk: mirror terra bridge/fee changes
Change-Id: I0413d1202e379cf0ddea224283331e9448026b33
2021-10-12 17:06:09 +00:00
Evan Gray 4bdb714594 bridge_ui: support multiple evm bridges
Change-Id: I3c416955e3e01707eec29404a483b1c223bffef4
2021-10-06 16:10:40 +00:00
Evan Gray eb0cab8cd4 bridge_ui: remove terra tax calculations
Change-Id: Iab04fe996abe06c3490a808985727c94dd922797
2021-10-05 09:27:27 -04:00
Evan Gray 057f9d2749 sdk/js, bridge_ui: terra npm pkg update
Change-Id: I5df1527881dca33ebeb3fcfe417a8ddf456015f3
2021-10-04 17:01:28 +00:00
Reisen d2c976b04c terra/token_bridge: subtract tax from deposited tokens
Change-Id: Ib1647a4b3757054fc91fe4dd51317a5095a526a2
2021-10-04 16:41:31 +00:00
Reisen 56c1b43280 bridge_ui: deposit tokens in terra flow
Change-Id: If64963644e638dbb24c1334eebbc207b415e5a3a
2021-10-04 16:41:31 +00:00
Evan Gray 77bf3620c6 bridge_ui, sdk/js: support native terra
Change-Id: I1125030b0f09b29567c19ca9adec7866695e2262
2021-10-04 16:41:31 +00:00
Reisen a9e98247bc terra/token_bridge: transfer native
Change-Id: I53fb27b467c96474f2980d495232ac955187775a
2021-10-04 16:41:31 +00:00