-
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.
- Moving `collection`, `bag`, `object_basics` to examples - Deleting redundant implementations of `transfer` on types with `store` - Fixing the numerous tests that expect object_basics to be part of the framework :/
- Loading branch information
1 parent
cda512a
commit 4d3b15d
Showing
56 changed files
with
786 additions
and
406 deletions.
There are no files selected for viewing
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
16 changes: 10 additions & 6 deletions
16
crates/sui-adapter-transactional-tests/tests/sui/freeze.exp
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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
processed 5 tasks | ||
processed 6 tasks | ||
|
||
init: | ||
A: object(100) | ||
|
||
task 1 'run'. lines 8-8: | ||
task 1 'publish'. lines 8-70: | ||
created: object(104) | ||
written: object(103) | ||
|
||
task 2 'run'. lines 10-10: | ||
written: object(104), object(105) | ||
task 2 'run'. lines 72-72: | ||
created: object(106) | ||
written: object(105) | ||
|
||
task 3 'run'. lines 12-12: | ||
task 3 'run'. lines 74-74: | ||
written: object(106), object(107) | ||
|
||
task 4 'run'. lines 76-76: | ||
Error: Transaction Effects Status: Entry Argument Type Error. Error for argument at index 0: Immutable and shared objects cannot be passed by-value. | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: EntryArgumentError(EntryArgumentError { argument_idx: 0, kind: InvalidObjectByValue }), source: Some("Immutable and shared objects cannot be passed by-value, violation found in argument 0") } } | ||
|
||
task 4 'run'. lines 14-14: | ||
task 5 'run'. lines 78-78: | ||
Error: Transaction Effects Status: Entry Argument Type Error. Error for argument at index 0: Immutable objects cannot be passed by mutable reference, &mut. | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: EntryArgumentError(EntryArgumentError { argument_idx: 0, kind: InvalidObjectByMuteRef }), source: Some("Argument 0 is expected to be mutable, immutable object found") } } |
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
14 changes: 9 additions & 5 deletions
14
crates/sui-adapter-transactional-tests/tests/sui/move_call_incorrect_function.exp
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
processed 2 tasks | ||
processed 4 tasks | ||
|
||
task 0 'run'. lines 7-9: | ||
task 1 'publish'. lines 8-15: | ||
created: object(103) | ||
written: object(102) | ||
|
||
task 2 'run'. lines 16-18: | ||
Error: Transaction Effects Status: Move Bytecode Verification Error. Please run the Bytecode Verifier for more information. | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: VMVerificationOrDeserializationError, source: Some(VMError { major_status: LINKER_ERROR, sub_status: None, message: Some("Cannot find ModuleId { address: _, name: Identifier(\"object_basics\") } in data cache"), exec_state: None, location: Undefined, indices: [], offsets: [] }) } } | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: VMVerificationOrDeserializationError, source: Some(VMError { major_status: LINKER_ERROR, sub_status: None, message: Some("Cannot find ModuleId { address: _, name: Identifier(\"M\") } in data cache"), exec_state: None, location: Undefined, indices: [], offsets: [] }) } } | ||
|
||
task 1 'run'. lines 10-10: | ||
task 3 'run'. lines 19-19: | ||
Error: Transaction Effects Status: Function Not Found. | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: FunctionNotFound, source: Some("Could not resolve function 'foo' in module sui::object_basics") } } | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: FunctionNotFound, source: Some("Could not resolve function 'foo' in module Test::M") } } |
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
38 changes: 21 additions & 17 deletions
38
crates/sui-adapter-transactional-tests/tests/sui/object_basics.exp
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 |
---|---|---|
@@ -1,35 +1,39 @@ | ||
processed 8 tasks | ||
processed 9 tasks | ||
|
||
init: | ||
A: object(100), B: object(101) | ||
|
||
task 1 'run'. lines 8-8: | ||
task 1 'publish'. lines 8-70: | ||
created: object(105) | ||
written: object(104) | ||
|
||
task 2 'view-object'. lines 10-10: | ||
task 2 'run'. lines 72-72: | ||
created: object(107) | ||
written: object(106) | ||
|
||
task 3 'view-object'. lines 74-74: | ||
Owner: Account Address ( A ) | ||
Version: 1 | ||
Child Count: None | ||
Contents: sui::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(105)}}, value: 10u64} | ||
Contents: test::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(107)}}, value: 10u64} | ||
|
||
task 3 'run'. lines 12-12: | ||
written: object(105), object(106) | ||
task 4 'run'. lines 76-76: | ||
written: object(107), object(108) | ||
|
||
task 4 'view-object'. lines 14-14: | ||
task 5 'view-object'. lines 78-78: | ||
Owner: Account Address ( B ) | ||
Version: 2 | ||
Child Count: None | ||
Contents: sui::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(105)}}, value: 10u64} | ||
Contents: test::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(107)}}, value: 10u64} | ||
|
||
task 5 'run'. lines 16-16: | ||
created: object(108) | ||
written: object(107) | ||
task 6 'run'. lines 80-80: | ||
created: object(110) | ||
written: object(109) | ||
|
||
task 6 'run'. lines 18-18: | ||
events: MoveEvent { package_id: sui, transaction_module: Identifier("object_basics"), sender: B, type_: StructTag { address: sui, module: Identifier("object_basics"), name: Identifier("NewValueEvent"), type_params: [] }, contents: [20, 0, 0, 0, 0, 0, 0, 0] } | ||
written: object(105), object(108), object(109) | ||
task 7 'run'. lines 82-82: | ||
events: MoveEvent { package_id: test, transaction_module: Identifier("object_basics"), sender: B, type_: StructTag { address: test, module: Identifier("object_basics"), name: Identifier("NewValueEvent"), type_params: [] }, contents: [20, 0, 0, 0, 0, 0, 0, 0] } | ||
written: object(107), object(110), object(111) | ||
|
||
task 7 'run'. lines 20-20: | ||
written: object(110) | ||
deleted: object(105) | ||
task 8 'run'. lines 84-84: | ||
written: object(112) | ||
deleted: object(107) |
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
30 changes: 17 additions & 13 deletions
30
crates/sui-adapter-transactional-tests/tests/sui/unwrap.exp
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 |
---|---|---|
@@ -1,29 +1,33 @@ | ||
processed 6 tasks | ||
processed 7 tasks | ||
|
||
init: | ||
A: object(100) | ||
|
||
task 1 'run'. lines 9-9: | ||
task 1 'publish'. lines 9-71: | ||
created: object(104) | ||
written: object(103) | ||
|
||
task 2 'view-object'. lines 11-11: | ||
task 2 'run'. lines 73-73: | ||
created: object(106) | ||
written: object(105) | ||
|
||
task 3 'view-object'. lines 75-75: | ||
Owner: Account Address ( A ) | ||
Version: 1 | ||
Child Count: None | ||
Contents: sui::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(104)}}, value: 10u64} | ||
Contents: test::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(106)}}, value: 10u64} | ||
|
||
task 3 'run'. lines 13-13: | ||
created: object(106) | ||
written: object(105) | ||
deleted: object(104) | ||
|
||
task 4 'run'. lines 15-15: | ||
written: object(104), object(107) | ||
task 4 'run'. lines 77-77: | ||
created: object(108) | ||
written: object(107) | ||
deleted: object(106) | ||
|
||
task 5 'view-object'. lines 17-17: | ||
task 5 'run'. lines 79-79: | ||
written: object(106), object(109) | ||
deleted: object(108) | ||
|
||
task 6 'view-object'. lines 81-81: | ||
Owner: Account Address ( A ) | ||
Version: 2 | ||
Child Count: None | ||
Contents: sui::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(104)}}, value: 10u64} | ||
Contents: test::object_basics::Object {id: sui::object::UID {id: sui::object::ID {bytes: fake(106)}}, value: 10u64} |
Oops, something went wrong.