Skip to content

Conversation

@MasterHW
Copy link
Contributor

@MasterHW MasterHW commented Sep 4, 2025

Summary & Motivation

Iota are a new partner and should have an example integration in our sdk (and docs).

also changed with-sui example to match the more up to date one from our docs.

How I Tested These Changes

not very successfully, @ reviewer please test

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

@vercel
Copy link

vercel bot commented Sep 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sdk-react-components Ready Ready Preview Comment Sep 10, 2025 5:46pm

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 4, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b6e989b:

Sandbox Source
@turnkey/example-react-components Configuration

@MasterHW
Copy link
Contributor Author

MasterHW commented Sep 9, 2025

will need to resolve lockfile conflicts before merging. probably best to wait for #917 to go through and either rebase or cherrypick the commit.

but should work as is for testing and approval.

omkarshanbhag
omkarshanbhag previously approved these changes Sep 9, 2025
Copy link
Contributor

@omkarshanbhag omkarshanbhag left a comment

Choose a reason for hiding this comment

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

Overall looks great! Just some minor comments on organization

const provider = new IotaClient({ url: getFullnodeUrl('testnet') });
const publicKey = new Ed25519PublicKey(Buffer.from(IOTA_PUBLIC_KEY!, 'hex'));

if (publicKey.toIotaAddress() !== IOTA_ADDRESS) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Maybe group the public key check above with the iota address + public key undefined check for organization

digest: coins.data[0]!.digest,
},
]);
const coin = tx.splitCoins(tx.gas, [tx.pure('u64', amount)]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a quick comment here to explain what splitCoins is doing and how that affects the tx building that seems to be happening above and below this

const signature = Buffer.from(r + s, 'hex');
const serialized = toSerializedSignature({ signature, pubKey: publicKey });

const result = await provider.executeTransactionBlock({
Copy link
Contributor

Choose a reason for hiding this comment

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

Also generally grouping together and commenting for "environment checking", "transaction building" and "execution" would be helpful!

@socket-security
Copy link

socket-security bot commented Sep 10, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​solana/​wallet-adapter-wallets@​0.19.36 ⏵ 0.19.3797 +11006480 -4100
Updated@​radix-ui/​react-toggle@​1.1.9 ⏵ 1.1.10991006598100
Updated@​solana/​wallet-adapter-base-ui@​0.1.5 ⏵ 0.1.6100 +11006779 -4100
Updated@​radix-ui/​react-toggle-group@​1.1.10 ⏵ 1.1.11991006898100
Updated@​radix-ui/​react-tabs@​1.1.12 ⏵ 1.1.13991006898100
Updated@​types/​prompts@​2.4.9 ⏵ 2.4.210010069 +176100
Updated@​types/​express@​4.17.22 ⏵ 4.17.23100 +11006981100
Updated@​radix-ui/​react-radio-group@​1.3.7 ⏵ 1.3.8991006998100
Updated@​radix-ui/​react-dropdown-menu@​2.1.15 ⏵ 2.1.16991006998100
Updated@​radix-ui/​react-dialog@​1.1.14 ⏵ 1.1.15991006998100
Updated@​solana/​wallet-adapter-base@​0.9.26 ⏵ 0.9.271001007080100
Updated@​radix-ui/​react-toast@​1.2.14 ⏵ 1.2.15991007098100
Updated@​solana/​wallet-adapter-react-ui@​0.9.38 ⏵ 0.9.39100 +11007180 -4100
Updated@​radix-ui/​react-select@​2.2.5 ⏵ 2.2.6981007298100
Updated@​zerodev/​sdk@​5.4.36 ⏵ 5.4.419710075 +192100
Updated@​types/​async-retry@​1.4.9 ⏵ 1.4.810010086 -477100
Updated@​types/​react@​18.3.23 ⏵ 18.3.24100 +110077 +194100
Updatedtypedoc-plugin-markdown@​4.6.3 ⏵ 4.8.1100 +11007891100
Updatedcross-fetch@​4.1.0 ⏵ 4.0.0100 +110010078100
Added@​tailwindcss/​postcss@​4.1.131001007999100
Updated@​types/​node@​22.15.24 ⏵ 18.19.1241001007996100
Updated@​types/​node@​22.15.24 ⏵ 22.18.1100 +110080 +196100
Updated@​solana/​wallet-adapter-react@​0.15.38 ⏵ 0.15.39100 +110010080100
Updated@​emotion/​styled@​11.14.0 ⏵ 11.14.11001008083100
Updated@​nomicfoundation/​hardhat-network-helpers@​1.0.12 ⏵ 1.1.0100 +11008098100
Updatedtiny-secp256k1@​2.2.3 ⏵ 2.2.410010010080100
Updatedpostcss-import@​16.1.0 ⏵ 16.1.1100100100 +181100
Updatedreact-international-phone@​4.5.0 ⏵ 4.6.099 +110090 +181100
Addedtailwindcss@​4.1.131001008398100
Updatedethers@​6.14.3 ⏵ 6.15.097 +1100100 +183 -3100
Added@​iota/​iota-sdk@​1.6.18410010097100
Updated@​ton/​ton@​15.2.1 ⏵ 15.3.199 +110095 +185 -2100
Updatedturbo@​2.5.3 ⏵ 2.5.6100 +110085 +197100
See 26 more rows in the dashboard

View full report

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