-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[execution] Update to deps-only mode
- Loading branch information
Showing
17 changed files
with
292 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...es/sui-core/src/unit_tests/data/move_upgrade/dep_only_upgrade_new_friend_module/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "package_upgrade_base" | ||
version = "0.0.1" | ||
edition = "2024.beta" | ||
|
||
[addresses] | ||
base_addr = "0x0" | ||
|
||
[dependencies] | ||
Sui = { local = "../../../../../../sui-framework/packages/sui-framework" } |
20 changes: 20 additions & 0 deletions
20
...ore/src/unit_tests/data/move_upgrade/dep_only_upgrade_new_friend_module/sources/base.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::base { | ||
|
||
public struct A<T> { | ||
f1: bool, | ||
f2: T | ||
} | ||
|
||
public fun return_0(): u64 { abort 42 } | ||
|
||
public fun plus_1(x: u64): u64 { x + 1 } | ||
|
||
public(package) fun friend_fun(x: u64): u64 { x } | ||
|
||
fun non_public_fun(y: bool): u64 { if (y) 0 else 1 } | ||
|
||
entry fun entry_fun() { } | ||
} |
18 changes: 18 additions & 0 deletions
18
...nit_tests/data/move_upgrade/dep_only_upgrade_new_friend_module/sources/friend_module.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::friend_module { | ||
|
||
public struct A<T> { | ||
field1: u64, | ||
field2: T | ||
} | ||
|
||
public fun friend_call(): u64 { base_addr::base::friend_fun(1) } | ||
|
||
public fun return_0(): u64 { 0 } | ||
|
||
public fun plus_1(x: u64): u64 { x + 1 } | ||
|
||
fun non_public_fun(y: bool): u64 { if (y) 0 else 1 } | ||
} |
6 changes: 6 additions & 0 deletions
6
...tests/data/move_upgrade/dep_only_upgrade_new_friend_module/sources/new_friend_module.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::new_friend_module; | ||
|
||
public fun friend_call(): u64 { base_addr::base::friend_fun(1) } |
10 changes: 10 additions & 0 deletions
10
crates/sui-core/src/unit_tests/data/move_upgrade/dep_only_upgrade_new_module/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "package_upgrade_base" | ||
version = "0.0.1" | ||
edition = "2024.beta" | ||
|
||
[addresses] | ||
base_addr = "0x0" | ||
|
||
[dependencies] | ||
Sui = { local = "../../../../../../sui-framework/packages/sui-framework" } |
20 changes: 20 additions & 0 deletions
20
...s/sui-core/src/unit_tests/data/move_upgrade/dep_only_upgrade_new_module/sources/base.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::base { | ||
|
||
public struct A<T> { | ||
f1: bool, | ||
f2: T | ||
} | ||
|
||
public fun return_0(): u64 { abort 42 } | ||
|
||
public fun plus_1(x: u64): u64 { x + 1 } | ||
|
||
public(package) fun friend_fun(x: u64): u64 { x } | ||
|
||
fun non_public_fun(y: bool): u64 { if (y) 0 else 1 } | ||
|
||
entry fun entry_fun() { } | ||
} |
18 changes: 18 additions & 0 deletions
18
...e/src/unit_tests/data/move_upgrade/dep_only_upgrade_new_module/sources/friend_module.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::friend_module { | ||
|
||
public struct A<T> { | ||
field1: u64, | ||
field2: T | ||
} | ||
|
||
public fun friend_call(): u64 { base_addr::base::friend_fun(1) } | ||
|
||
public fun return_0(): u64 { 0 } | ||
|
||
public fun plus_1(x: u64): u64 { x + 1 } | ||
|
||
fun non_public_fun(y: bool): u64 { if (y) 0 else 1 } | ||
} |
4 changes: 4 additions & 0 deletions
4
...core/src/unit_tests/data/move_upgrade/dep_only_upgrade_new_module/sources/new_module.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::new_module; |
10 changes: 10 additions & 0 deletions
10
crates/sui-core/src/unit_tests/data/move_upgrade/dep_only_upgrade_remove_module/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "package_upgrade_base" | ||
version = "0.0.1" | ||
edition = "2024.beta" | ||
|
||
[addresses] | ||
base_addr = "0x0" | ||
|
||
[dependencies] | ||
Sui = { local = "../../../../../../sui-framework/packages/sui-framework" } |
20 changes: 20 additions & 0 deletions
20
...ui-core/src/unit_tests/data/move_upgrade/dep_only_upgrade_remove_module/sources/base.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module base_addr::base { | ||
|
||
public struct A<T> { | ||
f1: bool, | ||
f2: T | ||
} | ||
|
||
public fun return_0(): u64 { abort 42 } | ||
|
||
public fun plus_1(x: u64): u64 { x + 1 } | ||
|
||
public(package) fun friend_fun(x: u64): u64 { x } | ||
|
||
fun non_public_fun(y: bool): u64 { if (y) 0 else 1 } | ||
|
||
entry fun entry_fun() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters