-
Notifications
You must be signed in to change notification settings - Fork 89
cli: add token transfer #732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
evgeniko
merged 38 commits into
wormhole-foundation:main
from
martin0995:cli-add-token-transfer
Dec 2, 2025
Merged
Changes from 21 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3b702ec
add token-transfer main logic
22e03a1
add new command into index
4a5f1a7
update error handling for duplicated flags
9908286
update readability
cfb34c3
add warning log for RPCs
8734b5a
add desciptive comments to functions
2df42bd
add dependency for token-transfer
ef3f1e9
Merge branch 'main' into cli-add-token-transfer
martin0995 c4bf625
Merge branch 'main' into cli-add-token-transfer
martin0995 83cbc3d
add deployment types
5ac335e
add error handling
9ebc966
import logic
ef5dad2
adapt to ntt transfers
68ca8dd
update script
7ff37fa
add error handling
afb1ced
update error handling
0b4449e
catch errors
caa7d5f
removed any types
cde8296
update clone
a895eab
add comments
e7a5a0c
Merge branch 'main' into cli-add-token-transfer
a142bb9
Merge branch 'main' into cli-add-token-transfer
martin0995 de87d36
add link to readme
d4aa7a6
update function naming
d970a07
validate executor quote fields
12449c0
update comment
37ac96e
mainnet confirmation prompt
cd6f12c
update spinner
5e800bf
Merge branch 'main' into cli-add-token-transfer
martin0995 e48845f
consolidate rpc handling
dbb3347
update dependencies
dd8bb81
update error
d466447
update error
2973bac
Merge branch 'main' into cli-add-token-transfer
martin0995 643405a
Merge branch 'main' into cli-add-token-transfer
martin0995 504753f
Merge branch 'main' into cli-add-token-transfer
evgeniko f6cafd4
Merge branch 'main' into cli-add-token-transfer
martin0995 3e98eec
Merge branch 'main' into cli-add-token-transfer
evgeniko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import type { Chain, Network } from "@wormhole-foundation/sdk"; | ||
| import type { Ntt } from "@wormhole-foundation/sdk-definitions-ntt"; | ||
| import fs from "fs"; | ||
|
|
||
| export type ChainConfig = { | ||
| version: string; | ||
| mode: Ntt.Mode; | ||
| paused: boolean; | ||
| owner: string; | ||
| pauser?: string; | ||
| manager: string; | ||
| token: string; | ||
| transceivers: { | ||
| threshold: number; | ||
| wormhole: { address: string; pauser?: string; executor?: boolean }; | ||
| }; | ||
| limits: { | ||
| outbound: string; | ||
| inbound: Partial<{ [C in Chain]: string }>; | ||
| }; | ||
| }; | ||
|
|
||
| export type Config = { | ||
| network: Network; | ||
| chains: Partial<{ | ||
| [C in Chain]: ChainConfig; | ||
| }>; | ||
| defaultLimits?: { | ||
| outbound: string; | ||
| }; | ||
| }; | ||
|
|
||
| export function loadConfig(path: string): Config { | ||
| if (!fs.existsSync(path)) { | ||
| console.error(`File not found: ${path}`); | ||
| console.error(`Create with 'ntt init' or specify another file with --path`); | ||
| process.exit(1); | ||
| } | ||
| const deployments: Config = JSON.parse(fs.readFileSync(path).toString()); | ||
| return deployments; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.