Skip to content

Conversation

ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Feb 27, 2025

Summary

This change adds support for IOTA network which is a SUI based network. Unfortunately as the internals are all renamed from SUI to IOTA nothing in SUI ecosystem works (compiler/rpc/sdk...) and I needed to create new packages for IOTA.

Since this change has many mechanical changes, I recommend you review it commit-by-commit. The wormhole vendor-in and JS package creation are the two mechanical commits that contain only copy and paste.

During the process I fixed some issues within Sui (deprecated tx.pure usage) to make things work. There might be some parts that I haven't touched and are not still working but I tried to pass everywhere to make sure it works.

Rationale

I tried to avoid creation of new packages but as downstream users need some of these I decided to do so.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

I used the new packages to deploy the new contract and updated price feeds in those contracts.

@ali-behjati ali-behjati requested a review from darunrs February 27, 2025 12:35
@ali-behjati ali-behjati requested a review from a team as a code owner February 27, 2025 12:35
Copy link

vercel bot commented Feb 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 1:54pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 1:54pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 1:54pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2025 1:54pm
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2025 1:54pm
insights ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2025 1:54pm

import { IOTA_CLOCK_OBJECT_ID } from "@iota/iota-sdk/utils";
import { Ed25519Keypair } from "@iota/iota-sdk/keypairs/ed25519";
import { Transaction } from "@iota/iota-sdk/transactions";
import { uint8ArrayToBCS } from "@certusone/wormhole-sdk/lib/cjs/sui";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use something from "@iota/iota-sdk/bcs"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No unfortunately they don't have it (same for SUI). It's not a super complicated function though.

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.

2 participants