Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
46ac654
chore: bump wormhole sdk to latest version; clean up deprecated chain…
M-Picco Aug 10, 2026
490e893
core: move cli workflow logic to its own action triggered when modify…
M-Picco Aug 11, 2026
ee31c10
chore: add tests for some cli subcommands
M-Picco Aug 11, 2026
166fab2
fix: rebase issues after Sui gRPC support was merged
M-Picco Aug 11, 2026
2f6d191
fix: remove test for unused command; revert change to chain querying
M-Picco Aug 12, 2026
b4ca141
fix: remove deprecated terra2 chain from testing environmen
M-Picco Aug 13, 2026
0e2a596
fix: revert terra2 removal due to testing harness requirements and ad…
M-Picco Aug 14, 2026
47adbec
fix: revert package.json and lock file to original version and regene…
M-Picco Aug 14, 2026
1834de9
refactor: utility functions to hide terra chain logic
M-Picco Aug 14, 2026
e720e88
fix: sui commands not using terra2 compat functions
M-Picco Aug 14, 2026
27e005c
chore: apply prettier
M-Picco Aug 14, 2026
c700836
chore: remove xpla package
M-Picco Aug 14, 2026
1c87b8f
refactor: tidy up terra2 support
M-Picco Aug 14, 2026
fe261ab
fix: use solana platforms for checks instead of individual chains (sh…
M-Picco Aug 19, 2026
5a241c0
fix: add support for deprecated chains no longer included on the sdk
M-Picco Aug 19, 2026
1387887
fix: fail commands when using a deprecated chain as src/dst
M-Picco Aug 19, 2026
44e1ef0
chore: apply prettier
M-Picco Aug 19, 2026
15ec9d3
fix: output to string instead of number to prevent rendering issues
M-Picco Aug 19, 2026
313aa94
fix: prettier check fail
M-Picco Aug 19, 2026
9bbb325
Merge branch 'main' into chore/worm-cli-sdk-bump
M-Picco Aug 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
paths:
- clients/js/**

permissions:
contents: read

jobs:
cli:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "22"
- run: |
cd clients/js && make test
make docs
git diff --name-only --exit-code && echo "✅ Generated CLI docs match committed docs" || (echo "❌ Generated CLI docs differs from committed CLI docs, run \`make docs\` and commit the result" >&2 && exit 1)
npx prettier@2.3.2 --check src
16 changes: 1 addition & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,20 +243,6 @@ jobs:
node-version: "22"
- run: cd cosmwasm && make test

cli:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "22"
- run: |
cd clients/js && make test
make docs
git diff --name-only --exit-code && echo "✅ Generated CLI docs match committed docs" || (echo "❌ Generated CLI docs differs from committed CLI docs, run \`make docs\` and commit the result" >&2 && exit 1)

# Verify wormhole chain unit tests
wormchain:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -511,4 +497,4 @@ jobs:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "22"
- run: npx prettier@2.3.2 --check ./clients/js/src ./sdk/js/src
- run: npx prettier@2.3.2 --check ./sdk/js/src
15 changes: 0 additions & 15 deletions clients/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,17 +435,11 @@ For example, to submit a guardian set upgrade on all chains, simply run:

```sh
$ worm-fetch-governance 13940208096455381020 > guardian-upgrade.txt
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain oasis
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain aurora
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain fantom
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain karura
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain acala
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain klaytn
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain avalanche
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain polygon
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain bsc
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain solana
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain terra
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain ethereum
$ worm submit $(cat guardian-upgrade.txt) --network mainnet --chain celo
```
Expand All @@ -472,15 +466,9 @@ $ worm evm info -c bsc -n mainnet -m TokenBridge
"registrations": {
"solana": "0xec7372995d5cc8732397fb0ad35c0121e0eaa90d26f828a534cab54391b3a4f5",
"ethereum": "0x0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585",
"terra": "0x0000000000000000000000007cf7b764e38a0a5e967972c1df77d432510564e2",
"polygon": "0x0000000000000000000000005a58505a96d1dbf8df91cb21b54419fc36e93fde",
"avalanche": "0x0000000000000000000000000e082f06ff657d94310cb8ce8b0d9a04541d8052",
"oasis": "0x0000000000000000000000005848c791e09901b40a9ef749f2a6735b418d7564",
"algorand": "0x0000000000000000000000000000000000000000000000000000000000000000",
"aurora": "0x00000000000000000000000051b5123a7b0f9b2ba265f9c4c8de7d78d52f510f",
"fantom": "0x0000000000000000000000007c9fc5741288cdfdd83ceb07f3ea7e22618d79d2",
"karura": "0x000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",
"acala": "0x000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",
"klaytn": "0x0000000000000000000000005b08ac39eaed75c0439fc750d9fe7e1f9dd0193f",
"celo": "0x000000000000000000000000796dff6d74f3e27060b71255fe517bfb23c93eed",
"near": "0x0000000000000000000000000000000000000000000000000000000000000000",
Expand All @@ -489,11 +477,8 @@ $ worm evm info -c bsc -n mainnet -m TokenBridge
"sui": "0x0000000000000000000000000000000000000000000000000000000000000000",
"aptos": "0x0000000000000000000000000000000000000000000000000000000000000000",
"moonbeam": "0x0000000000000000000000000000000000000000000000000000000000000000",
"neon": "0x0000000000000000000000000000000000000000000000000000000000000000",
"terra2": "0xa463ad028fb79679cfc8ce1efba35ac0e77b35080a1abe9bebe83461f176b0a3",
"arbitrum": "0x0000000000000000000000000000000000000000000000000000000000000000",
"optimism": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gnosis": "0x0000000000000000000000000000000000000000000000000000000000000000",
}
}

Expand Down
2 changes: 1 addition & 1 deletion clients/js/info_tests/generate-1.expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0100000000010009b7c0612e950779ea6a5458800289925c02a32cca3670f497693df283b503177e757473f94adfa2d18745b9e3d01a04f6b97240459612bd8654e5f91fb3f3d5010000000100000001000100000000000000000000000000000000000000000000000000000000000000040000000005a657f60000000000000000000000000000000000000000000000004e46544272696467650100000004000000000000000000000000706abc4e45d419950511e474c7b9ed348a4a716c
01000000000100fef490fd9a280e494c9a76e69c5574ecd2ee0e258542695983777fa2ad9e8dde5787b603c1d48f3f17bfe048a36951a7c0813abac041d281f543f5df462e4aee0000000001000000010001000000000000000000000000000000000000000000000000000000000000000400000000028b3bfb0000000000000000000000000000000000000000000000004e46544272696467650100000004000000000000000000000000706abc4e45d419950511e474c7b9ed348a4a716c
2 changes: 1 addition & 1 deletion clients/js/info_tests/generate-2.expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
01000000000100fe357dfbb2661d594da7720bf919bcb5597776c20720065c38748a7f69bc59e30b1a3a9ed564418083162c2f9f12910a799699faafe75494ba68b5813ae4a19a0000000001000000010002000000000000000000000000000000001111111111111111111111111111111500000000051d2e300002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800020655534443000000000000000000000000000000000000000000000000000000005553444300000000000000000000000000000000000000000000000000000000
010000000001007284863c7e9411306814579411f725508333ac2e1c5e0115fbcf228d537973d04827a910eb7cfc13a68d8fb8911c65fd55c4d1d97fb0e8301dc47a3321742fff0100000001000000010002000000000000000000000000000000001111111111111111111111111111111500000000044ab0500002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800020655534443000000000000000000000000000000000000000000000000000000005553444300000000000000000000000000000000000000000000000000000000
48 changes: 30 additions & 18 deletions clients/js/info_tests/info-1.expected
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,49 @@
"registrations": {
"Solana": "0xec7372995d5cc8732397fb0ad35c0121e0eaa90d26f828a534cab54391b3a4f5",
"Ethereum": "0x0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585",
"Terra": "0x0000000000000000000000007cf7b764e38a0a5e967972c1df77d432510564e2",
"Polygon": "0x0000000000000000000000005a58505a96d1dbf8df91cb21b54419fc36e93fde",
"Avalanche": "0x0000000000000000000000000e082f06ff657d94310cb8ce8b0d9a04541d8052",
"Oasis": "0x0000000000000000000000005848c791e09901b40a9ef749f2a6735b418d7564",
"Algorand": "0x67e93fa6c8ac5c819990aa7340c0c16b508abb1178be9b30d024b8ac25193d45",
"Aurora": "0x00000000000000000000000051b5123a7b0f9b2ba265f9c4c8de7d78d52f510f",
"Fantom": "0x0000000000000000000000007c9fc5741288cdfdd83ceb07f3ea7e22618d79d2",
"Karura": "0x000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",
"Acala": "0x000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",
"Klaytn": "0x0000000000000000000000005b08ac39eaed75c0439fc750d9fe7e1f9dd0193f",
"Celo": "0x000000000000000000000000796dff6d74f3e27060b71255fe517bfb23c93eed",
"Near": "0x148410499d3fcda4dcfd68a1ebfcdddda16ab28326448d4aae4d2f0465cdfcb7",
"Moonbeam": "0x000000000000000000000000b1731c586ca89a23809861c6103f0b96b3f57d92",
Comment thread
M-Picco marked this conversation as resolved.
"Neon": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Terra2": "0xa463ad028fb79679cfc8ce1efba35ac0e77b35080a1abe9bebe83461f176b0a3",
"Injective": "0x00000000000000000000000045dbea4617971d93188eda21530bc6503d153313",
"Osmosis": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Sui": "0xccceeb29348f71bdd22ffef43a2a19c1f5b5e17c5cca5411529120182672ade5",
"Aptos": "0x0000000000000000000000000000000000000000000000000000000000000001",
"Arbitrum": "0x0000000000000000000000000b2402144bb366a632d14b83f244d2e0e21bd39c",
"Optimism": "0x0000000000000000000000001d68124e65fafc907325e3edbf8c4d84499daa8b",
"Gnosis": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Pythnet": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Xpla": "0x8f9cf727175353b17a5f574270e370776123d90fd74956ae4277962b4fdee24c",
"Btc": "0x0000000000000000000000000000000000000000000000000000000000000000",
Comment thread
M-Picco marked this conversation as resolved.
"Base": "0x0000000000000000000000008d2de8d2f73f1f4cab472ac9a881c9b123c79627",
"Sei": "0x86c5fd957e2db8389553e1728f9c27964b22a8154091ccba54d75f4b10c61f5e",
"Rootstock": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Scroll": "0x00000000000000000000000024850c6f61c438823f01b7a3bf2b89b72174fa9d",
"Mantle": "0x00000000000000000000000024850c6f61c438823f01b7a3bf2b89b72174fa9d",
"Blast": "0x00000000000000000000000024850c6f61c438823f01b7a3bf2b89b72174fa9d",
"Xlayer": "0x0000000000000000000000005537857664b0f9efe38c9f320f75fef23234d904",
"Linea": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Berachain": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Seievm": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Berachain": "0x0000000000000000000000003ff72741fd67d6ad0668d93b41a09248f4700560",
"Seievm": "0x0000000000000000000000003ff72741fd67d6ad0668d93b41a09248f4700560",
"Unichain": "0x0000000000000000000000003ff72741fd67d6ad0668d93b41a09248f4700560",
"Worldchain": "0x000000000000000000000000c309275443519adca74c9136b02a38ef96e3a1f6",
"Ink": "0x0000000000000000000000003ff72741fd67d6ad0668d93b41a09248f4700560",
"HyperEVM": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Monad": "0x0000000000000000000000000b2719cda2f10595369e6673cea3ee2edfa13ba7",
"Mezo": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Fogo": "0x289e998e357c96dbfd8490b853595e0d48639ede2d1aed4a819edcc00165904c",
"Sonic": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Converge": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Plume": "0x0000000000000000000000000000000000000000000000000000000000000000",
"XRPLEVM": "0x00000000000000000000000047f5195163270345fb4d7b9319eda8c64c75e278",
"Plasma": "0x0000000000000000000000000000000000000000000000000000000000000000",
"CreditCoin": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Stacks": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Moca": "0x0000000000000000000000000000000000000000000000000000000000000000",
"MegaETH": "0x000000000000000000000000f97b81e513f53c7a6b57bd0b103a6c295b3096c5",
"Xrpl": "0x0000000000000000000000000000000000000000000000000000000000000000",
"ZeroGravity": "0x000000000000000000000000ee12ebddf6e34a206e1798d185317c846bc21638",
"Tempo": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Nexus": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Arc": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Robinhood": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Hydration": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Wormchain": "0xaeb534c45c3049d380b9d9b966f9895f53abd4301bfaff407fa09dea8ae7a924",
"Cosmoshub": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Evmos": "0x0000000000000000000000000000000000000000000000000000000000000000",
Expand All @@ -59,11 +67,15 @@
"Seda": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Dymension": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Provenance": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Noble": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Sepolia": "0x0000000000000000000000000000000000000000000000000000000000000000",
"ArbitrumSepolia": "0x0000000000000000000000000000000000000000000000000000000000000000",
"BaseSepolia": "0x0000000000000000000000000000000000000000000000000000000000000000",
"OptimismSepolia": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Holesky": "0x0000000000000000000000000000000000000000000000000000000000000000",
"PolygonSepolia": "0x0000000000000000000000000000000000000000000000000000000000000000"
"PolygonSepolia": "0x0000000000000000000000000000000000000000000000000000000000000000",
"MonadTestnet": "0x0000000000000000000000000000000000000000000000000000000000000000",
"HyperCore": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Terra2": "0xa463ad028fb79679cfc8ce1efba35ac0e77b35080a1abe9bebe83461f176b0a3"
}
}
5 changes: 1 addition & 4 deletions clients/js/info_tests/info-2.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
Mismatches found on Ethereum Mainnet!
{
Mantle: 'Expected null , found 0x00000000000000000000000024850c6f61c438823f01b7a3bf2b89b72174fa9d'
}
Verification of Ethereum Mainnet succeeded!
2 changes: 1 addition & 1 deletion clients/js/info_tests/info-5.expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://bsc-dataseed.binance.org/
https://bsc-rpc.publicnode.com
6 changes: 4 additions & 2 deletions clients/js/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"^@certusone/(.*)/lib/esm/(.*)$": "@certusone/$1/lib/cjs/$2"
},
"transform": {
"^.+\\.m?[tj]sx?$": [
"^.+\\.(mjs|tsx?|jsx?)$": [
"ts-jest",
{
"isolatedModules": true,
Expand All @@ -16,7 +16,9 @@
}
]
},
"transformIgnorePatterns": ["node_modules/(?!(?:@mysten|@noble|@scure)/)"],
"transformIgnorePatterns": [
"node_modules/(?!(@wormhole-foundation|@solana/web3\\.js|@mysten|@scure|@noble|@injectivelabs|uuid)/)"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": ["__tests__/utils"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
Expand Down
Loading
Loading