Skip to content

Commit

Permalink
chore: update sui version to 1.35.2 (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: Foivos <foivos@umich.edu>
  • Loading branch information
npty and Foivos authored Oct 24, 2024
1 parent f9e0057 commit 3464917
Show file tree
Hide file tree
Showing 31 changed files with 297 additions and 264 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-cobras-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@axelar-network/axelar-cgp-sui': patch
---

chore: bump sui version to 1.35.2
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions move/abi/Move.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 2
manifest_digest = "0E79A49391304FF0B2514C198BE3143BE11DCF84B94671256AB963B14D551CEC"
version = 3
manifest_digest = "08E67C09D06D1A67017ACC0FC428650D442948374ABD478D0094C61624BB33F2"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ name = "Sui" },
{ id = "Sui", name = "Sui" },
]

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

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

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

[move.toolchain-version]
compiler-version = "1.32.2"
compiler-version = "1.35.2"
edition = "2024.beta"
flavor = "sui"
2 changes: 1 addition & 1 deletion move/abi/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024.beta"

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

[addresses]
abi = "0xa0"
33 changes: 17 additions & 16 deletions move/axelar_gateway/Move.lock
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 2
manifest_digest = "A838BF65D8151146E5E145F85319480C8F4FDD693BBA029CEE96A340572EEFA1"
deps_digest = "060AD7E57DFB13104F21BE5F5C3759D03F0553FC3229247D9A7A6B45F50D03A3"
version = 3
manifest_digest = "E9A0CD1400D2AFF354F91244ACA6D96CD91319A47BFBF47CDCC0347338FD41D2"
deps_digest = "F9B494B64F0615AED0E98FC12A85B85ECD2BC5185C22D30E7F67786BB52E507C"
dependencies = [
{ name = "Sui" },
{ name = "Utils" },
{ name = "VersionControl" },
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "Utils", name = "Utils" },
{ id = "VersionControl", name = "VersionControl" },
]

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

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

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

[[move.package]]
name = "Utils"
id = "Utils"
source = { local = "../utils" }

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

[[move.package]]
name = "VersionControl"
id = "VersionControl"
source = { local = "../version_control" }

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

[move.toolchain-version]
compiler-version = "1.32.2"
compiler-version = "1.35.2"
edition = "2024.beta"
flavor = "sui"
3 changes: 2 additions & 1 deletion move/axelar_gateway/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ version = "0.1.0"
edition = "2024.beta"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.32.2" }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.35.2" }
MoveStdlib = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/move-stdlib", rev = "mainnet-v1.35.2" }
VersionControl = { local = "../version_control" }
Utils = { local = "../utils" }

Expand Down
10 changes: 5 additions & 5 deletions move/axelar_gateway/sources/versioned/gateway_v0.move
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const EMessageNotApproved: vector<u8> =
b"trying to `take_approved_message` for a message that is not approved";

#[error]
const EZeroMessages: vector<u8> = b"no mesages found";
const EZeroMessages: vector<u8> = b"no messages found";

#[error]
const ENotLatestSigners: vector<u8> = b"not latest signers";
Expand Down Expand Up @@ -390,7 +390,7 @@ fun test_approve_message() {
payload_hash,
) ==
true,
0,
EMessageNotApproved,
);

let approved_message = data.take_approved_message(
Expand All @@ -412,7 +412,7 @@ fun test_approve_message() {
payload_hash,
) ==
false,
1,
EMessageNotApproved,
);

assert!(
Expand All @@ -421,7 +421,7 @@ fun test_approve_message() {
message_id,
) ==
true,
2,
EMessageNotApproved,
);

data.messages.remove(message.command_id());
Expand Down Expand Up @@ -490,7 +490,7 @@ fun test_data_hash() {
assert!(
data_hash(CommandType::ApproveMessages, data) ==
bytes32::from_bytes(hash::keccak256(&typed_data)),
0,
EMessageNotApproved,
);
}

Expand Down
83 changes: 53 additions & 30 deletions move/example/Move.lock
Original file line number Diff line number Diff line change
@@ -1,76 +1,99 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 2
manifest_digest = "CE4336144A51AA6A2371D92356680345328DFFBD1A6FC294E740B25439718734"
deps_digest = "52B406A7A21811BEF51751CF88DA0E76DAEFFEAC888D4F4060B1A72BBE7D8D35"
version = 3
manifest_digest = "2BF8E393A6BC926689C2EF8893266EC21B1C76E0FE59A375A46CB3E88D4C2593"
deps_digest = "CAFAD8A7CF51067FB4358215BECB86BD100DD64E57C2AC8A7AE7D74B688F5965"
dependencies = [
{ name = "AxelarGateway" },
{ name = "GasService" },
{ name = "RelayerDiscovery" },
{ name = "Sui" },
{ name = "Utils" },
{ name = "VersionControl" },
{ id = "AxelarGateway", name = "AxelarGateway" },
{ id = "GasService", name = "GasService" },
{ id = "ITS", name = "ITS" },
{ id = "RelayerDiscovery", name = "RelayerDiscovery" },
{ id = "Sui", name = "Sui" },
{ id = "Utils", name = "Utils" },
{ id = "VersionControl", name = "VersionControl" },
]

[[move.package]]
name = "AxelarGateway"
id = "Abi"
source = { local = "../abi" }

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

[[move.package]]
id = "AxelarGateway"
source = { local = "../axelar_gateway" }

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

[[move.package]]
name = "GasService"
id = "GasService"
source = { local = "../gas_service" }

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

[[move.package]]
id = "ITS"
source = { local = "../its" }

dependencies = [
{ id = "Abi", name = "Abi" },
{ id = "AxelarGateway", name = "AxelarGateway" },
{ id = "RelayerDiscovery", name = "RelayerDiscovery" },
{ id = "Sui", name = "Sui" },
{ id = "Utils", name = "Utils" },
{ id = "VersionControl", name = "VersionControl" },
]

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

[[move.package]]
name = "RelayerDiscovery"
id = "RelayerDiscovery"
source = { local = "../relayer_discovery" }

dependencies = [
{ name = "AxelarGateway" },
{ name = "Sui" },
{ name = "VersionControl" },
{ id = "AxelarGateway", name = "AxelarGateway" },
{ id = "Sui", name = "Sui" },
{ id = "VersionControl", name = "VersionControl" },
]

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

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

[[move.package]]
name = "Utils"
id = "Utils"
source = { local = "../utils" }

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

[[move.package]]
name = "VersionControl"
id = "VersionControl"
source = { local = "../version_control" }

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

[move.toolchain-version]
compiler-version = "1.32.2"
compiler-version = "1.35.2"
edition = "2024.beta"
flavor = "sui"
2 changes: 1 addition & 1 deletion move/example/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024.beta"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.32.2" }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.35.2" }
AxelarGateway = { local = "../axelar_gateway" }
GasService = { local = "../gas_service" }
Utils = { local = "../utils" }
Expand Down
24 changes: 12 additions & 12 deletions move/gas_service/Move.lock
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 2
manifest_digest = "1289E36D1E516F6A74DB56489F631BA3994E96F0EEB1EC32B8079EAED97EB16C"
version = 3
manifest_digest = "C29AEC3A18805EA1C5A2FCA5811D6AAD6BE44E394A8FDF0B02FB34D3409F4D3E"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"
dependencies = [
{ name = "Sui" },
{ name = "VersionControl" },
{ id = "Sui", name = "Sui" },
{ id = "VersionControl", name = "VersionControl" },
]

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

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

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

[[move.package]]
name = "VersionControl"
id = "VersionControl"
source = { local = "../version_control" }

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

[move.toolchain-version]
compiler-version = "1.32.2"
compiler-version = "1.35.2"
edition = "2024.beta"
flavor = "sui"
2 changes: 1 addition & 1 deletion move/gas_service/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024.beta"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.32.2" }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.35.2" }
VersionControl = { local = "../version_control" }

[addresses]
Expand Down
Loading

0 comments on commit 3464917

Please sign in to comment.