Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions contracts/ccip/ccip_onramp/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "820F73992255DB12A32AF4256FB7FB61387B801485E1ED74DD11FD63D85D3824"
deps_digest = "52B406A7A21811BEF51751CF88DA0E76DAEFFEAC888D4F4060B1A72BBE7D8D35"
dependencies = [
{ id = "Bridge", name = "Bridge" },
{ id = "ChainlinkCCIP", name = "ChainlinkCCIP" },
{ id = "ChainlinkManyChainMultisig", name = "ChainlinkManyChainMultisig" },
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "SuiSystem", name = "SuiSystem" },
]

[[move.package]]
id = "Bridge"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "f63c9fc78e2171fa174dc43e757ded416c204558", subdir = "crates/sui-framework/packages/bridge" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "SuiSystem", name = "SuiSystem" },
]

[[move.package]]
id = "ChainlinkCCIP"
source = { local = "../ccip" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
{ id = "ChainlinkManyChainMultisig", name = "ChainlinkManyChainMultisig" },
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "SuiSystem", name = "SuiSystem" },
]

[[move.package]]
id = "ChainlinkManyChainMultisig"
source = { local = "../../mcms/mcms" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "SuiSystem", name = "SuiSystem" },
]

[[move.package]]
id = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "f63c9fc78e2171fa174dc43e757ded416c204558", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "f63c9fc78e2171fa174dc43e757ded416c204558", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[[move.package]]
id = "SuiSystem"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "f63c9fc78e2171fa174dc43e757ded416c204558", subdir = "crates/sui-framework/packages/sui-system" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
]

[move.toolchain-version]
compiler-version = "1.57.2"
edition = "2024"
flavor = "sui"

[env]

[env.local]
chain-id = "244e3752"
original-published-id = "0x4fd96ea526ccbfa15bac19c7973113c73ec47ff11c898938132395ac3771373d"
latest-published-id = "0x4fd96ea526ccbfa15bac19c7973113c73ec47ff11c898938132395ac3771373d"
published-version = "1"
6 changes: 3 additions & 3 deletions ts-sdk-examples/onramp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function buildCcipSendPTB(tx: Transaction, client: SuiClient, a: Bu

const state = tx.object(a.onrampState)
const clock = tx.object('0x6')
const receiver = tx.pure.address(a.receiver)
// const receiver = tx.pure.address(a.receiver)
const receiverBytes = Array.from(Buffer.from(a.receiver.replace('0x', ''), 'hex'))

// Create Token State Params
Expand All @@ -40,7 +40,7 @@ export async function buildCcipSendPTB(tx: Transaction, client: SuiClient, a: Bu
module: 'onramp_state_helper',
function: 'create_token_transfer_params',
arguments: [
receiver,
tx.pure('vector<u8>', receiverBytes), // vector<u8>
]
})

Expand All @@ -59,7 +59,7 @@ export async function buildCcipSendPTB(tx: Transaction, client: SuiClient, a: Bu
tx.object(a.tokenCoin), // coin (if the pool needs a Coin<T> input)
tx.pure.u64(a.destChainSelector),
clock,
tx.object.denyList(), // deny_list (doc: always 0x403)
tx.object.denyList(), // deny_list (doc: always 0x403)
tx.object(a.tokenPoolState!) // managed_token_state (if required)
]
})
Expand Down
Loading