Skip to content
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

feat(sui): add its examples #402

Open
wants to merge 83 commits into
base: main
Choose a base branch
from
Open

feat(sui): add its examples #402

wants to merge 83 commits into from

Conversation

npty
Copy link
Member

@npty npty commented Oct 9, 2024

Description

https://axelarnetwork.atlassian.net/browse/AXE-5771

This PR added ITS example script where it demonstrates bi-directional transfers and deployments for lock/unlock token and provided a guide to follow in this link.

The contract source code for this example is here

For Axelaron Team

You may interested in events emitted from the example commands. Here're the details:

Outgoing Flow

Incoming Flow

  • For gateway's approve command, there'll be MessageApproved event emitted after the message is approved by the gateway.
  • Both receive-token and receive-deployment commands utilize a shared function found here. This will demonstrate how to execute any arbitrary message on Sui chain. Most complicated logic is coming from the execute function which is exported from the axelar-cgp-sui package. So you may want to implement something similar to it. The move calls should be chained until the is_final flag is false.

Other Changes

  • Updated the gmp guide to align with the ITS guide.
  • Updated the gmp example to use the same pattern to receive gmp message
  • Added a script that interacts with the its contract directly e.g. setup trusted address

@npty npty marked this pull request as ready for review October 15, 2024 03:53
@npty npty requested a review from a team as a code owner October 15, 2024 03:53
sui/its-example.js Outdated Show resolved Hide resolved
sui/its-example.js Outdated Show resolved Hide resolved
sui/its-example.js Outdated Show resolved Hide resolved
sui/its-example.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants