-
Notifications
You must be signed in to change notification settings - Fork 29
feat(sui)!: also register the new its transaction upon upgrade #993
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 1 comment
await builder.moveCall({ | ||
target: `${contractConfig.address}::discovery::register_transaction`, | ||
arguments: [InterchainTokenService, RelayerDiscovery], | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Should verify RelayerDiscovery exists before using it to prevent runtime errors
…nsaction-post-upgrade
@Foivos I tried updating the npm snapshot, not sure why it causes everything to fail even after updating lock file. I'll stay out of your way now 😏 |
…nsaction-post-upgrade
…nsaction-post-upgrade
…ITS, which is not present in the test environment
Greptile Summary
Updated On: 2025-09-05 09:23:24 UTC
This PR adds a crucial registration step to the InterchainTokenService (ITS) upgrade process on Sui. When the ITS contract is upgraded, it now re-registers itself with the RelayerDiscovery service to maintain proper integration with the Axelar network.
The change mirrors the existing pattern in the
postDeployIts
function, which registers the ITS with RelayerDiscovery during initial deployment (lines 358-363). Without this change, upgraded ITS contracts would lose their registration with the discovery service, potentially breaking relayer functionality.The implementation adds a
discovery::register_transaction
move call to the InterchainTokenService migration case in the upgrade function. This ensures that after migration completes, the upgraded ITS contract is properly registered and discoverable by relayers, maintaining the same state that existed before the upgrade.This change is part of the broader contract upgrade infrastructure in the Sui deployment system, specifically targeting the migration logic that handles contract state transitions during upgrades.
Important Files Changed
Changed Files
Confidence score: 4/5
Sequence Diagram
Note
Registers InterchainTokenService with RelayerDiscovery during migration and broadens ITS default pause/unpause function coverage; minor CI workflow cleanup.
InterchainTokenService
withdiscovery::register_transaction
afterinterchain_token_service::migrate
insui/deploy-contract.js
.InterchainTokenService
default functions and alignversions
insui/contract.js
to support granular pausing/unpausing across many functions..github/workflows/test-sui.yaml
.Written by Cursor Bugbot for commit 683f429. This will update automatically on new commits. Configure here.