Commit Graph

168 Commits

Author SHA1 Message Date
Alber 8e0cf4c31f
clients/js: refactor cmds & CLI docs generator (#3182)
* feat: update npm commands for Githun Actions CI

* feat: add worm cli github actions

* feat: save HTML test report as artifact

* chore: update github action, show report correctly

* fix: add missing CommandModule type

* chore: rm unused import

* fix: override auto-detected locale by OS system

* feat: infere command modules on doc.ts & main.ts

* feat: command args accepts an array of modules

* fix: cmds must be outside main, breaks otherwise

* fix: import CLI_COMMAND_MODULES outside of main

* chore: add missing transfer command from README

* chore: rm test branch dependencies

* feat: extract info cmds into array const

* chore: document command imports as list

* chore: package.json spacing

* chore: bump @types/yargs version

* feat: cast correct array type YargsCommandModule[]
2023-07-17 11:10:48 -04:00
derpy-duck 70dd001ba3
clients: allow custom block range for relayer status (#3188) 2023-07-13 10:09:46 -04:00
Paul Noel 6309b321e8
ci: add github workflow with prettier checks for clients/js/src and sdk/js/src (#3176)
* github: add prettier check for clients/js

* github: update workflow to include sdk/js
2023-07-12 11:30:14 -04:00
derpy-duck 2262ac4202
clients/js: Worm CLI update for seeing status for automatic relay requests (#3155)
* Worm CLI update for seeing status for automatic relay requests

* docs update
2023-06-30 14:14:22 -04:00
Ben Guidarelli 7c8874d930
CLI: Fix bug in doc generator (#3153) 2023-06-29 14:21:38 -04:00
Kevin Peters cf6b2c694b clients/js: bumped terra.js version 2023-06-26 10:25:55 -04:00
Alber 002bfd7f8a
clients/js: remove aptos nft_bridge contract on testnet (#3110) 2023-06-22 09:50:20 -07:00
Kevin Peters 817f179b34 clients/js: Added transfer token command 2023-06-22 10:24:07 -04:00
derpy-duck e422b48418
Clients: Clients governance wormhole relayer (#3103)
* clients/js uses wormhole sdk for relayer governance actions

* Add improbable-eng dependency

* Use SDK in clients/js for wormhole relayer

* Remove invalid comment
2023-06-20 11:27:15 -04:00
derpy-duck 3c0fecc3fa
Relayer: Generic Relayer Guardian Changes for Merging into Main (#3041)
* gRelayer: surrounding files

* modification to get compilation

* restore devnet

* remove generic relayer docker

* remove wait for relayer engine

* keep build time 20

* sh -> bash

* sh -> bash

* Remove comment

* bash -> sh

* Revert "bash -> sh"

This reverts commit 5c37e92fa1.

* bash->sh

* gRelayer: ethereum folder changes for generic-relayer-merge

* add eth-devnet

* Adds .github because workflow needs to install forge

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* update package.json and package-lock.json

* Remove unnecessary types from package.json

* ts-node

* gRelayer: ethereum folder changes for generic-relayer-merge

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* update package.json and package-lock.json

* remove these changes

* Relayer: Natspec documentation in IWormholeRelayer (#3032)

* WIP

* Fixes

* Updated interfaces

* remove bash

* Forward uses same refund chain id and refund address (#3034)

* WIP

* Fixes

* Forward uses same refund chain id and refund address

* Updated interfaces

* Adds .github because workflow needs to install forge

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* SDK minus payload tests

* Rename sdk relayer folder and file

* modify index.ts

* modify path

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* Add three governance VAA actions for generic relayers

* demandOption and const

* Remove forge build warnings

* Add note to interface for resend

* Verify additional VAAs in SDK

* via-ir on unless in Tilt

* Correct IWormholeReceiver interface

* Wormhole message fee now part of quoteDeliveryPrice (#3043)

* Fix to PR 3043

* Remove compiler warning

* Remove files

* remove generic relayer docker

* Fix typo

* Relayer/address drew review (#3060)

* Fix typo in Create2Factory

* Add event for contract upgrades

* Prevent registering contract if it is already registered

* Prevent allowing unset chainId for default delivery provider governance VAA

* memory to calldata for external functions in WormholeRelayerSend

* continue memory to calldata for external functions

* Fix pricing in delivery provider

* Sanity check new default delivery provider isn't 0 address

* Don't save vaaKey as local variable

* cache the length of array rather than iterate every time for vaaKeys

* Replacing memory with calldata in few locations

* Remove stale file DeliveryProviderMessages

* Remove batch VAA sender script

* Remove batch VAA from WormholeSimulator

* Wait for a confirmation in deploy scripts

* remove unnecessary comments

* Fix Delivery Provider Pricing and add a test

* remove console logs

* Revert "continue memory to calldata for external functions"

This reverts commit f322afb6c0.

* Revert "memory to calldata for external functions in WormholeRelayerSend"

This reverts commit 42fcaad884.

* Revert "Don't save vaaKey as local variable"

This reverts commit a9172379c5.

* Revert "cache the length of array rather than iterate every time for vaaKeys"

This reverts commit d61380a9b0.

* Revert "Replacing memory with calldata in few locations"

This reverts commit 94e47b6e72.

* Revert "Fix typo in Create2Factory"

This reverts commit a9f7bdf461.

* Update contract addresses for via-ir

* Update register chain test to only do one registration

* Slight improvements to delivery provider implementation

* typed errors for delivery provider

* Update SDK to have via-ir devnet address

* Fix test

* enable VIA-IR in CI and not in Tilt

* Fix chain id

* get register chain test to work

* correct contract address for via ir

* update sdk consts for via ir address

* base 32 address

* merge

* -f to -r

* relay provider -> delivery provider

* fix await

* Readme changes
2023-06-14 10:27:00 -04:00
Ben Guidarelli 88ddb1d9e2
Docs: CLI README update (#3058) 2023-06-13 09:21:25 -04:00
bruce-riley 1ae38c889a
Client/js: Add Info Registrations (#3035)
* Client/js: Add Info Registrations

Change-Id: Ib123dfe895d88c5574f575b16dfc3e6775d81f2a

* Fix build errors

Change-Id: Ifcacb564fc40f14337ab472ece617a2955b579c5
2023-06-09 12:06:00 -05:00
tbjump ba96f02279 clients/eth: update dependencies 2023-06-07 13:41:40 -07:00
Alber 2ce2887577
fix: solana error typo (#3001) 2023-06-07 15:38:09 +01:00
bruce-riley 24718623d2
Client/js: Add submit for all chains (#3006)
* client/js: add submit for all chains

Change-Id: I1047a533e68dd147ab3bf2c390d3b61243dae7a2

* Fix merge issues

Change-Id: I1b606f83b511acd70fb0fd103f34c2beb6ed7da0

* Fix another merge error

Change-Id: I79cd93f875f8778c21ba5e3e931644eee8ea1802

* Address review feedback

Change-Id: I9a1492bb9c7f91d549b03320a26962b270f327c5
2023-06-02 10:06:18 -05:00
heyitaki a936a16674 clients/js: add generic info commands to get wrapped/origin asset info 2023-06-01 15:33:07 +01:00
heyitaki 0ecc427d6f docker: build CLI in shared image
Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-06-01 15:33:07 +01:00
heyitaki 4f13263089 clients/js: refactor worm info 2023-06-01 15:33:07 +01:00
Kevin Peters 7bc96a1ebc clients/js: added sui mainnet rpc, allow key to be hex or base64 2023-05-31 08:38:18 -05:00
heyitaki 9d50254893 clients/js: set strict = true in tsconfig 2023-05-24 17:45:09 -05:00
gator-boi d7e9a0b2dd sui: update testnet Sui addresses 2023-05-17 12:26:00 -04:00
Jeff Schroeder 3a28b6169a
clients/js: move worm parse to print valid json (#2908)
* clients/js: worm parse should output valid json

This was really useful when looking at a list of all governance vaas
to see which ones were guardian set upgrades.

* clients/js: update worm parse test fixtures

Since `worm parse` outputs in native json now, ensure the test fixtures
are also in json format.

* clients/js: move quiet.ts --> side-effects.ts

Now that the BigInt side effect for json serialization is in this file,
it isn't just to "quiet" the log warning anymore.

Addresses review feedback from @evan-gray
2023-05-15 13:29:19 -04:00
Csongor Kiss b5325be922 clients/js: import esm instead of cjs from wormhole-sdk
This reduces the bundle size by about 1mb
2023-05-11 09:54:07 -07:00
Csongor Kiss bc5ef2c00d clients/js: explicit side effects declaration 2023-05-11 09:54:07 -07:00
Evan Gray 2734600234 clients/js: suppress lib warnings 2023-05-05 14:07:24 -04:00
Evan Gray dfe4baf1b1 clients/js: minified bundle 2023-05-05 14:07:24 -04:00
bruce-riley b4a5bc8aef
Client/js: Add command to generate emitter addrs (#2839)
* Client/js: Add command to generate emitter addrs

Change-Id: Icb06990ca2004df3e01223a63e2142a77b10c47b

* Move emitters.ts into src dir

Change-Id: I2ca652db72ca650d8740633ceb9297000a4ece2c
2023-05-05 12:51:44 -04:00
Evan Gray b23e7ce8e8
clients/js: prep for release (#2862)
* clients/js: prep for release

* clients/js: make worm directory agnostic
2023-05-05 18:39:53 +09:00
tbjump bdbe4d3602 clients/eth: upgrade go-ethereum to v1.11.6 2023-05-04 07:22:38 -07:00
bruce-riley 95b48444f4
Client/js: Add cmds to edit and verify VAAs (#2838)
* Client/js: Add cmds to edit and verify VAAs

Change-Id: I23def5cd83a409b9ba1a9ae606e06e5b2869760b

* Update readme

Change-Id: Ie58b5fd8f337a02ebd947f8fb7c7fae19638625d

* Tweak wording in readme

Change-Id: Ife86b40cf1e4112b6945d4dd65081d79d25301d8
2023-05-03 13:55:42 -05:00
Evan Gray 0ed02a1391 clients/js: update terra gas url 2023-05-03 14:54:31 -04:00
heyitaki 412680fba5 sui: update devnet addresses 2023-05-02 15:14:23 -04:00
Kevin Peters 6a1bb7bc78 sdk/js: sui get latest package from CurrentPackage 2023-05-02 15:14:23 -04:00
heyitaki ed733f8e73 sdk/js: add Sui support
Co-authored-by: Evan Gray <battledingo@gmail.com>
Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
2023-05-02 15:14:23 -04:00
bruce-riley 3dd4fe26b9
Client/js: Sepolia and Sei support (#2738)
* Client/js: Sepolia and Sei support

* Change references to terra to sei
2023-04-20 10:19:21 -05:00
Alber 5a2fc6e1ef
clients/js: add worm info namespace (#2603)
This PR adds a new namespace worm info, which includes commands showing static data of chain-id, contract addresses and rpc endpoints.
2023-04-11 17:44:50 -05:00
bruce-riley 4fb3a83485
Client/js: Update karura/acala testnet endpoints (#2469) 2023-03-06 14:53:23 -06:00
bruce-riley 64fb51d68d
Client/js: Add Base testnet support (#2423)
* Client/js: Add Base testnet support

* Client/js: Update sdk version
2023-02-27 08:18:15 -05:00
Kevin Peters 4c7df41984 clients/js: Added generate RecoverChainId cmd, split cmds into separate files 2023-01-25 11:35:48 -05:00
Bojan Angjelkoski 81d1f83f45
sdk/js: injective package bump (#2175)
* chore: package bump

* chore: updated to latest package versions

* refactor: migrate to MsgExecuteContractCompat for EIP712 compatibility

* chore: added dev deps

* chore: packages bump
2023-01-23 21:33:26 -05:00
Csongor Kiss e6d3bb8731 worm: speed up `evm info` by improving concurrency 2023-01-18 11:22:33 -05:00
Evan Gray 004ccecaf8 clients/js: handle injective mainnet 2023-01-17 10:32:58 -05:00
Csongor Kiss 88d13e694b aptos/nft-bridge: mainnet deploy 2023-01-12 02:46:42 +00:00
Csongor Kiss fe5ca53a98 aptos/nft-bridge: Tilt integration
aptos: update Docker image
2023-01-12 02:46:42 +00:00
Csongor Kiss 9824d71fe1 aptos/nft_bridge: implement contract 2023-01-12 02:46:42 +00:00
Kevin Peters 26ee5e8e10 clients/js: Update wormhole-sdk to 0.9.8 2023-01-11 13:00:02 -05:00
Kevin Peters 6f4dd461f0 clients/js: postVaaSolana remove retry limit 2023-01-11 12:44:03 -05:00
Bojan Angjelkoski 612ae1a7e5 sdk/js: injective package bump 2022-12-14 11:40:49 -05:00
aki 2d84fdf20a clients: double aptos faucet default airdrop amount
this should fix the insufficient fee error we're seeing in PRs like #1990
2022-12-13 08:21:49 -08:00
aki a408a5b8ff clients: replace references to sdk consts
this will require another pass in the future, once we cut a new release of the sdk with the deployer address consts
2022-12-13 08:21:49 -08:00