Skip to content

Commit

Permalink
xcall-sui-testnet-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 12, 2024
1 parent 3c82bc7 commit 86e52ab
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 101 deletions.
12 changes: 10 additions & 2 deletions contracts/sui/libs/sui_rlp/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 0
manifest_digest = "A427585E34DC6D4B504FE704A5BC5C82E65E15B64B87051BD7E6B03F06D54DFC"
manifest_digest = "0663B22A65865051BA932F8D164FF135D26D82771A4E09332F75C3AF20462308"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"

dependencies = [
Expand All @@ -22,6 +22,14 @@ dependencies = [
]

[move.toolchain-version]
compiler-version = "1.23.1"
compiler-version = "1.27.0"
edition = "2024.alpha"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x629e9ba7c892b31594271fe997b5f521a9a49d64b4bf5b7743230e340fa9de20"
latest-published-id = "0x629e9ba7c892b31594271fe997b5f521a9a49d64b4bf5b7743230e340fa9de20"
published-version = "1"
43 changes: 11 additions & 32 deletions contracts/sui/libs/sui_rlp/Move.toml
Original file line number Diff line number Diff line change
@@ -1,38 +1,17 @@
[package]
name = "sui_rlp"

edition = "2024.alpha" # To use the Move 2024 edition, currently in alpha
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]
[addresses]
sui_rlp = '0x629e9ba7c892b31594271fe997b5f521a9a49d64b4bf5b7743230e340fa9de20'

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }

# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`.
# Revision can be a branch, a tag, and a commit hash.
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }

# For local dependencies use `local = path`. Path is relative to the package root
# Local = { local = "../path/to" }

# To resolve a version conflict and force a specific version for dependency
# override use `override = true`
# Override = { local = "../conflicting/version", override = true }
[dependencies.Sui]
git = 'https://github.com/MystenLabs/sui.git'
rev = 'framework/testnet'
subdir = 'crates/sui-framework/packages/sui-framework'

[addresses]
sui_rlp = "0x0"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
# alice = "0xA11CE"
[dev-addresses]

[dev-dependencies]
# The dev-dependencies section allows overriding dependencies for `--test` and
# `--dev` modes. You can introduce test-only dependencies here.
# Local = { local = "../path/to/dev-build" }

[dev-addresses]
# The dev-addresses section allows overwriting named addresses for the `--test`
# and `--dev` modes.
# alice = "0xB0B"

[package]
edition = '2024.alpha'
name = 'sui_rlp'
published-at = '0x629e9ba7c892b31594271fe997b5f521a9a49d64b4bf5b7743230e340fa9de20'
12 changes: 10 additions & 2 deletions contracts/sui/mock_dapp/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 2
manifest_digest = "F804756A44941CFF06666B889276CDB9C70D5F40FC30A6A89F8893B4FC97742B"
manifest_digest = "21E81E673F20301CA05AB61BB8D16BE536D40D02C6F8E62987634453774206FC"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"
dependencies = [
{ name = "Sui" },
Expand Down Expand Up @@ -39,6 +39,14 @@ dependencies = [
]

[move.toolchain-version]
compiler-version = "1.23.1"
compiler-version = "1.27.0"
edition = "2024.beta"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x665f8d9342837ea7f669e0bada130055a140269746e8b764c33930391d577808"
latest-published-id = "0x665f8d9342837ea7f669e0bada130055a140269746e8b764c33930391d577808"
published-version = "1"
43 changes: 13 additions & 30 deletions contracts/sui/mock_dapp/Move.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
[package]
name = "mock_dapp"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]
[addresses]
mock_dapp = '0x665f8d9342837ea7f669e0bada130055a140269746e8b764c33930391d577808'

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
xcall = { local = "../xcall" }
# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`.
# Revision can be a branch, a tag, and a commit hash.
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }

# For local dependencies use `local = path`. Path is relative to the package root
# Local = { local = "../path/to" }
[dependencies.Sui]
git = 'https://github.com/MystenLabs/sui.git'
rev = 'framework/testnet'
subdir = 'crates/sui-framework/packages/sui-framework'

# To resolve a version conflict and force a specific version for dependency
# override use `override = true`
# Override = { local = "../conflicting/version", override = true }

[addresses]
mock_dapp = "0x0"
[dependencies.xcall]
local = '../xcall'

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
# alice = "0xA11CE"
[dev-addresses]

[dev-dependencies]
# The dev-dependencies section allows overriding dependencies for `--test` and
# `--dev` modes. You can introduce test-only dependencies here.
# Local = { local = "../path/to/dev-build" }

[dev-addresses]
# The dev-addresses section allows overwriting named addresses for the `--test`
# and `--dev` modes.
# alice = "0xB0B"

[package]
edition = '2024.beta'
name = 'mock_dapp'
published-at = '0x665f8d9342837ea7f669e0bada130055a140269746e8b764c33930391d577808'
12 changes: 10 additions & 2 deletions contracts/sui/xcall/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 0
manifest_digest = "8EB772DF6AEBF4120B5266C6C5DED770D2F64C24B92F1BA7B2E70E1887CF6DC7"
manifest_digest = "FC695334648B2D90E72AE20AA924725F9BF44A6CFE2FD05A222822451A044FD2"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"

dependencies = [
Expand Down Expand Up @@ -31,6 +31,14 @@ dependencies = [
]

[move.toolchain-version]
compiler-version = "1.26.1"
compiler-version = "1.27.0"
edition = "2024.alpha"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x25f664e39077e1e7815f06a82290f2aa488d7f5139913886ad8948730a98977d"
latest-published-id = "0x25f664e39077e1e7815f06a82290f2aa488d7f5139913886ad8948730a98977d"
published-version = "1"
46 changes: 13 additions & 33 deletions contracts/sui/xcall/Move.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,20 @@
[package]
name = "xcall"

edition = "2024.alpha" # To use the Move 2024 edition, currently in alpha
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]
[addresses]
xcall = '0x25f664e39077e1e7815f06a82290f2aa488d7f5139913886ad8948730a98977d'

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
sui_rlp = { local = "../libs/sui_rlp" }


# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`.
# Revision can be a branch, a tag, and a commit hash.
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }

# For local dependencies use `local = path`. Path is relative to the package root
# Local = { local = "../path/to" }
[dependencies.Sui]
git = 'https://github.com/MystenLabs/sui.git'
rev = 'framework/testnet'
subdir = 'crates/sui-framework/packages/sui-framework'

# To resolve a version conflict and force a specific version for dependency
# override use `override = true`
# Override = { local = "../conflicting/version", override = true }
[dependencies.sui_rlp]
local = '../libs/sui_rlp'

[addresses]
xcall = "0x0"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
# alice = "0xA11CE"
[dev-addresses]

[dev-dependencies]
# The dev-dependencies section allows overriding dependencies for `--test` and
# `--dev` modes. You can introduce test-only dependencies here.
# Local = { local = "../path/to/dev-build" }

[dev-addresses]
# The dev-addresses section allows overwriting named addresses for the `--test`
# and `--dev` modes.
# alice = "0xB0B"

[package]
edition = '2024.alpha'
name = 'xcall'
published-at = '0x25f664e39077e1e7815f06a82290f2aa488d7f5139913886ad8948730a98977d'

0 comments on commit 86e52ab

Please sign in to comment.