Commit Graph

161 Commits

Author SHA1 Message Date
bruce-riley 26c7ce8fea
Deploy Berachain V2 testnet (#4020) 2024-07-15 14:56:48 -05:00
Evan Gray db152afe1a clients/js: pin tsx version 2024-06-07 11:09:56 -04:00
Sebastián Claudio Nale 6294969ecf clients/js: adds `WormholeRelayer` addresses to `info contract` 2024-05-08 08:43:28 -04:00
Evan Gray 1c858d3558
clients/js: fix edit-vaa when guardian is no longer in set (#3933) 2024-05-07 11:07:01 -05:00
Bruce Riley d44451d7b5 Client/js: Scroll and blast mainnet support 2024-04-26 12:37:18 -04:00
Bruce Riley 473b095b3f Client/js: Wormholescan URL is wrong 2024-04-26 11:04:38 -04:00
Bruce Riley 35f0b343ed Client/js: Add new chains 2024-04-22 17:14:23 -04:00
Csongor Kiss 8b7495a7c6 clients/js: fix sui guardian set upgrade handler 2024-04-17 09:59:45 -04:00
Csongor Kiss a46bccaa9b
Upgrade sui packages and compiler to 1.19.1-mainnet (#3803)
* sui: upgrade to mainnet-1.19.1

* sui: update Dockerfile.base

* sui: update tilt deployment to support new sui binary

* sui: remove faucet and simplify tilt deploy script

* sui: add script for switching Move.toml files between networks

* devnet: update sui addresses, regen config

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-04-15 17:16:07 +01:00
scnale 9634d59035
clients/js: fixes hardcoded Near deployer implicit account id. (#3248)
* clients/js: fixes hardcoded Near deployer implicit account id.

* clients/js: remove near deployerAccount

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-03-21 17:08:12 -04:00
Jeff Schroeder b175dd43c8
docs: quit the spelling spam typo fix PRs with cspell magic (#3845)
* Add cspell configuration and custom dictionary

The goal is to cut down on both incoming tyops, and well meaning but
spammy tyop fix PRs.

To run cspell locally install it and run:

    cspell '**/*.md' \
        --config cspell.config.yaml \
        --words-only \
        --unique \
        --quiet | sort --ignore-case

* docs: cspell updates

* wormchain: cspell updates

* aptos: cspell updates

* node: cspell updates

* algorand: cspell updates

* whitepapers: cspell updates

* near: cspell updates

* solana: cspell updates

* terra: cspell updates

* cosmwasm: cspell updates

* ethereum: cspell updates

* clients: cspell updates

* cspell updates for DEVELOP document

* github: run cspell github action

* sdk: cspell updates

* github: only run cspell on markdown files

* algorand: EMMITTER --> EMITTER

Suggested-by: @evan-gray

* cspell: removed from dictionary

Suggested-by: @evan-gray

* aptos and node: cspell updates

Suggested-by: @evan-gray

* cosmowasm: doc updates for terra2

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* cspell: updated custom word dictionary

This resorts the dictionary and adds a few new words from the
algorand/MEMORY.md document around varints and integers.

* cspell: sort the dictionary how vscode does it

On macOS the sorting is locale dependent. To do this on macOS, you have
to invert the case, do a character insensitive sort, and then invert the
case again:

    LC_COLLATE="en_US.UTF-8" cspell '**/*.md' --config cspell.config.yaml \
        --words-only \
        --unique \
        --no-progress \
        --quiet \
    | tr 'a-zA-Z' 'A-Za-z' \
    | sort --ignore-case \
    | tr 'a-zA-Z' 'A-Za-z'

This requires the `LC_COLLATE` variable to be set to `en_US.UTF-8`, or it
will not do the right thing.

* docs: grammar clean up

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-03-20 15:40:02 -04:00
Bruce Riley d7a4a2af0d Client/JS: Add new changes 2024-03-14 10:15:01 -04:00
GoodDaisy 2fc2bb577b
docs: fix some typos (#3628)
* fix typo in whitepapers/0013_ccq.md

* fix typo in scripts/

* fix typo in clients

* fix typo in sdk/

* fix typo in testing/
2024-03-08 10:17:16 -05:00
scnale c311f07ec3
client/js: adds key and rpc support for submit VAA on Sei mainnet. (#3399)
* Client/js: adds key and rpc support for submit VAA on Sei.

* Client/js: adds default RPC for Sei mainnet.

* misc: prettier format
2024-01-31 11:05:38 -05:00
bruce-riley 517c2f77c3
Client/JS: Add Holesky support (#3638) 2024-01-09 10:19:51 -06:00
bruce-riley 14144c8c10
Client/JS: Add new chains (#3610) 2023-12-20 14:11:12 -06:00
bruce-riley af3a8bf414
client/js: Update governance endpoint (#3582) 2023-12-07 14:43:54 -06:00
Kevin Peters 520e1b58b4 clients/js: Fix `maybeUnsupported` function
Previously this function would not actually catch an exception and
cause the program to crash. This commit fixes that.
2023-11-17 09:28:54 -06:00
derpy-duck 9aa4d0329d
SDK: Auto relayer better status command (#3406)
* update clients.js version

* updates to clients/js

* update clients/js

* Generate modification

* prettier

* status change

* docs change

* add back the 'impossible's

* update sdk version

* better status check WIP

* WIP

* Improved status check and stringify function with times

* improvements to status printing

* prettier format

* Remove last console log

* prettier

* readme modify

* readme fix

* Readme fix

* readme changes

* don't rely on wormscan for status in devnet

* prettier

* Remove status check from integration testing - this is a helper that shouldn't interfere with contract testing

* prettier

* update clients.js version

* readme revert changes

* base default rpcs

* script improvements

* Add manual delivery helper

* remove console logs

* arbitrum needs a custom block range

* fix bug in testing if blocknumber is 0

* deliver fixes for manual delivery

* prettier

* fix default block tag

* pre-pend scripts with test

* review comments
2023-10-13 15:25:31 -04:00
Ben Guidarelli 251e6c4a64
clients/js: replace wormscan with wormholescan in urls (#3298) 2023-09-29 11:57:17 -04:00
bruce-riley edba6449a7
Client/js: Simplify edit-vaa command (#3359) 2023-09-07 14:10:52 -05:00
Csongor Kiss 73fe6591cb clients/js: fix aptos upgrade and migrate commands
For some reason the bound variables in the lambda were underscored,
unclear why. In turn, `yargs` referred to the package, resulting in
runtime errors. This is the sort of thing that an actual type system
would help with.
2023-08-28 10:10:34 -04:00
bruce-riley 1cabbe8a2d
sdk: Rootstock readonly (#3235) 2023-08-14 13:17:47 -04:00
derpy-duck c7e7b13094
clients: update sdk (#3206)
* Update to 0.9.22

* clients-update-sdk-and-add-base-mainnet-rpc

* update algo sdk
2023-08-10 13:51:36 -04:00
Csongor Kiss 8d63ab50fb
worm: fix attestation parsing (#3218)
The parser was dropping 0 bytes from the front, which is incorrect,
because the symbol and name fields are right-padded with 0s.
2023-08-01 15:34:41 +01:00
Kevin Peters a13e06c153 CI should run prettier@2.3.2 2023-07-25 12:54:44 -05:00
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
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