-
Notifications
You must be signed in to change notification settings - Fork 29
chore(sui): simplify and clean up sui scripts #1062
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
Merged
Conversation
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
…anguage acros its and its-example scripts, refactor its mint-coins to load coins from config and move unnecessary params to options
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…hem from coin object id
benjamin852
reviewed
Oct 1, 2025
…d, and fetch the object id instead from the user's wallet balances
…ingle coin id (when possible)
Auto merging coins is now working for cmd $ ts-node sui/its interchain-transfer 0x4b7fa7d0d6b12b17f20769c342b0817afdc3a7f53b966e16c98e883e3a4327f8 flow 0x13f8C723AeB8CA762c652c553a11a11483846d8B 10
Wallet address: 0x76f89a9b56dc580aed9f97e2b3bd03d8d24464e38522da9464c15103761c6707
Wallet balance: 1.941829811 SUI
Confirm Merge Coins Tx? (y/n) y
Merge Coins: Byk2nfA4C3vNMUybGxxhqapc4R3XUC3QCHbiexLz4Qxt
Confirm Interchain Transfer Tx? (y/n) y
Interchain Transfer: 99vx6qdvFMeikFYLuTrwVbRrtEKxtV8ZeuozMYs9WNDQ |
blockchainguyy
approved these changes
Oct 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The code for Sui scripts, particularly
sui/its.js
andsui/its-example.js
, has gone through rapid changes in the past week. This PR refactors those iterations to be cleaner. Additionally, as some cli arguments are moved to options, the help screen forsui/its.js
will be readable again.This PR is a WIP, and not ready yet to be merged.
Note
Simplifies Sui ITS CLI by deriving coin type from token ID and reducing args, adds
sui/tokens mint-coins
, refines token deployment options, and updates docs, examples, and workflow to match.sui/its interchain-transfer
tointerchain-transfer <tokenId> <destinationChain> <destinationAddress> <amount>
with optional--channel
; auto-derivescoinType
, fetches decimals, and handles balance/coin merges.sui/its deploy-remote-coin
todeploy-remote-coin <tokenId> <destinationChain>
(coin type resolved on-chain).senderHasSufficientBalance
(merges coins when needed); remove legacymint-coins
fromsui/its
.sui/its-example deploy-token
now requires--tokenManagerMode
(no default) and streamlines mint/registration paths.sui/tokens mint-coins <symbol> <amount> <recipient>
(supports config-less coins via options).tokenIdToCoinType
(dev inspect) andextractCoinTypeFromDevInspect
; export and use across commands.--gasValue
in return transfer.--tokenManagerMode lock_unlock
.Written by Cursor Bugbot for commit dd6cd57. This will update automatically on new commits. Configure here.