-
Notifications
You must be signed in to change notification settings - Fork 300
feat(target_chains/sui): add iota network #2428
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
d268170
to
facfc85
Compare
facfc85
to
2e4e0af
Compare
math lib is deprecated.
2e4e0af
to
817c7d4
Compare
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"; |
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.
can't we use something from "@iota/iota-sdk/bcs"
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.
No unfortunately they don't have it (same for SUI). It's not a super complicated function though.
56d6169
to
21f2bbf
Compare
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?
I used the new packages to deploy the new contract and updated price feeds in those contracts.