Open
Conversation
Add XMN (xMoney) token staking support on SUI blockchain: - Register tsui:xmn testnet entry in statics with SUI_TOKEN_FEATURES_STAKING - Upgrade sui:xmn mainnet entry from SUI_TOKEN_FEATURES to SUI_TOKEN_FEATURES_STAKING - Add XmnStake/XmnRequestUnstake/XmnUnbond/XmnClaimRewards transaction types to iface.ts - Add xmnConfig.ts with mainnet/testnet StakingFactory contract addresses - Add XmnStakingBuilder, XmnUnstakeBuilder, XmnClaimRewardsBuilder - Wire all builders in TransactionBuilderFactory.from() and getters - Add XMN method name detection in utils.ts getSuiTransactionType() - Fix utils.ts getTransactionType() to handle new XMN SuiTransactionTypes - Remove unused InvalidTransactionError imports; run prettier on XMN files XMN uses an app-level StakingFactory contract (no validators). All staking functions have void returns and transfer objects internally — no transferObjects calls needed. Type args for all calls: <XMN, XMN, BRIDGE_TOKEN>. Ticket: SC-6116
1a4d2ba to
e825bf8
Compare
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
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.
Summary
Adds XMN (xMoney) token staking support on the SUI blockchain.
sui:xmn(mainnet) withSUI_TOKEN_FEATURES_STAKINGand addtsui:xmn(testnet) entry to staticsSuiTransactionTypevalues:XmnStake,XmnRequestUnstake,XmnUnbond,XmnClaimRewardsxmnConfig.tswith mainnet + testnet StakingFactory contract addresses and coin typesXmnStakingBuilder,XmnUnstakeBuilder,XmnClaimRewardsBuilderfollowing the WalrusStakingBuilder patternTransactionBuilderFactory(from()routing + getter methods)utils.tswith XMN cases ingetTransactionType()andgetSuiTransactionType()Key design decisions
stake,request_unstake,unbond,claim_and_transfer) transfer objects internally — notx.transferObjects()calls<XMN, XMN, BRIDGE_TOKEN>— theDbtype isBRIDGE_TOKEN, notXMNXmnUnstakeBuilderhandles bothXmnRequestUnstakeandXmnUnbondviathis._typeroutingTest plan
YARN_IGNORE_ENGINES=1 yarn run buildpasses for both@bitgo/staticsand@bitgo/sdk-coin-sui🤖 Generated with Claude Code