-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] NFTGallery Add Errors Assert (#138)
* add Errors * fix some assert * add withdraw_one assert
- Loading branch information
Showing
33 changed files
with
1,825 additions
and
23 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
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/StarcoinFramework/source_maps/IdentifierNFTScripts.mvsm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
184 changes: 184 additions & 0 deletions
184
integration-tests/daospace/dao_extension_point_publish_version.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 |
---|---|---|
@@ -0,0 +1,184 @@ | ||
processed 17 tasks | ||
|
||
task 4 'run'. lines 46-54: | ||
{ | ||
"gas_used": 177755, | ||
"status": "Executed" | ||
} | ||
|
||
task 5 'run'. lines 56-64: | ||
{ | ||
"gas_used": 418615, | ||
"status": "Executed" | ||
} | ||
|
||
task 6 'view'. lines 66-66: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Registry { | ||
next_id: 2 | ||
} | ||
|
||
task 7 'view'. lines 68-68: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
] | ||
next_version_number: 2 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f70625f646f63 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 0 | ||
created_at: 10 | ||
updated_at: 10 | ||
} | ||
|
||
task 8 'run'. lines 70-78: | ||
{ | ||
"gas_used": 152078, | ||
"status": "Executed" | ||
} | ||
|
||
task 9 'view'. lines 80-80: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Registry { | ||
next_id: 2 | ||
} | ||
|
||
task 10 'view'. lines 82-82: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
] | ||
next_version_number: 3 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f70625f646f63 | ||
created_at: 10 | ||
}, | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 2 | ||
tag: 76302e312e31 | ||
types_d_ts: 697066733a2f2f74797065735f645f74735f31 | ||
document: 697066733a2f2f70625f646f6331 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 0 | ||
created_at: 10 | ||
updated_at: 10 | ||
} | ||
|
||
task 11 'run'. lines 84-92: | ||
{ | ||
"gas_used": 156078, | ||
"status": "Executed" | ||
} | ||
|
||
task 12 'view'. lines 94-94: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Registry { | ||
next_id: 2 | ||
} | ||
|
||
task 13 'view'. lines 96-96: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
] | ||
next_version_number: 4 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f70625f646f63 | ||
created_at: 10 | ||
}, | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 2 | ||
tag: 76302e312e31 | ||
types_d_ts: 697066733a2f2f74797065735f645f74735f31 | ||
document: 697066733a2f2f70625f646f6331 | ||
created_at: 10 | ||
}, | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 3 | ||
tag: 76302e312e32 | ||
types_d_ts: 697066733a2f2f74797065735f645f74735f32 | ||
document: 697066733a2f2f6474735f646f6332 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 0 | ||
created_at: 10 | ||
updated_at: 10 | ||
} | ||
|
||
task 14 'run'. lines 98-106: | ||
{ | ||
"gas_used": 111323, | ||
"status": { | ||
"MoveAbort": { | ||
"location": { | ||
"Module": { | ||
"address": "0x00000000000000000000000000000001", | ||
"name": "DAOExtensionPoint" | ||
} | ||
}, | ||
"abort_code": "27399" | ||
} | ||
} | ||
} | ||
|
||
task 15 'view'. lines 108-108: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Registry { | ||
next_id: 2 | ||
} | ||
|
||
task 16 'view'. lines 110-110: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
] | ||
next_version_number: 4 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f70625f646f63 | ||
created_at: 10 | ||
}, | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 2 | ||
tag: 76302e312e31 | ||
types_d_ts: 697066733a2f2f74797065735f645f74735f31 | ||
document: 697066733a2f2f70625f646f6331 | ||
created_at: 10 | ||
}, | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 3 | ||
tag: 76302e312e32 | ||
types_d_ts: 697066733a2f2f74797065735f645f74735f32 | ||
document: 697066733a2f2f6474735f646f6332 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 0 | ||
created_at: 10 | ||
updated_at: 10 | ||
} |
114 changes: 114 additions & 0 deletions
114
integration-tests/daospace/dao_extension_point_register.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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
processed 14 tasks | ||
|
||
task 4 'run'. lines 48-56: | ||
{ | ||
"gas_used": 177755, | ||
"status": "Executed" | ||
} | ||
|
||
task 5 'run'. lines 58-66: | ||
{ | ||
"gas_used": 466466, | ||
"status": "Executed" | ||
} | ||
|
||
task 6 'view'. lines 68-68: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Registry { | ||
next_id: 2 | ||
} | ||
|
||
task 7 'view'. lines 70-70: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
4f533d53746172636f696e, | ||
53746f72653d49504653, | ||
] | ||
next_version_number: 2 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f6474735f646f63 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 0 | ||
created_at: 10 | ||
updated_at: 10 | ||
} | ||
|
||
task 8 'run'. lines 72-80: | ||
{ | ||
"gas_used": 60246, | ||
"status": { | ||
"MoveAbort": { | ||
"location": { | ||
"Module": { | ||
"address": "0x00000000000000000000000000000001", | ||
"name": "DAOExtensionPoint" | ||
} | ||
}, | ||
"abort_code": "26630" | ||
} | ||
} | ||
} | ||
|
||
task 9 'view'. lines 82-82: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
4f533d53746172636f696e, | ||
53746f72653d49504653, | ||
] | ||
next_version_number: 2 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f6474735f646f63 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 0 | ||
created_at: 10 | ||
updated_at: 10 | ||
} | ||
|
||
task 11 'run'. lines 110-118: | ||
{ | ||
"gas_used": 38409, | ||
"status": { | ||
"MoveAbort": { | ||
"location": { | ||
"Module": { | ||
"address": "0x00000000000000000000000000000001", | ||
"name": "DAOExtensionPoint" | ||
} | ||
}, | ||
"abort_code": "28167" | ||
} | ||
} | ||
} | ||
|
||
task 13 'run'. lines 147-155: | ||
{ | ||
"gas_used": 137491, | ||
"status": { | ||
"MoveAbort": { | ||
"location": { | ||
"Module": { | ||
"address": "0x00000000000000000000000000000001", | ||
"name": "DAOExtensionPoint" | ||
} | ||
}, | ||
"abort_code": "28167" | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
integration-tests/daospace/dao_extension_point_star_and_unstar.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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
processed 13 tasks | ||
|
||
task 6 'run'. lines 32-40: | ||
{ | ||
"gas_used": 177755, | ||
"status": "Executed" | ||
} | ||
|
||
task 7 'run'. lines 42-50: | ||
{ | ||
"gas_used": 418615, | ||
"status": "Executed" | ||
} | ||
|
||
task 8 'run'. lines 52-61: | ||
{ | ||
"gas_used": 59320, | ||
"status": "Executed" | ||
} | ||
|
||
task 9 'run'. lines 63-72: | ||
{ | ||
"gas_used": 15374, | ||
"status": { | ||
"MoveAbort": { | ||
"location": { | ||
"Module": { | ||
"address": "0x00000000000000000000000000000001", | ||
"name": "DAOExtensionPoint" | ||
} | ||
}, | ||
"abort_code": "26881" | ||
} | ||
} | ||
} | ||
|
||
task 10 'run'. lines 74-83: | ||
{ | ||
"gas_used": 59320, | ||
"status": "Executed" | ||
} | ||
|
||
task 11 'view'. lines 85-85: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Registry { | ||
next_id: 2 | ||
} | ||
|
||
task 12 'view'. lines 87-87: | ||
store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a1a1da0f1c70a9762c7eeb7aaf::TestExtentionPoint::TestExtentionPoint> { | ||
id: 1 | ||
name: 54657374457874656e74696f6e506f696e74 | ||
description: 697066733a2f2f6465736372697074696f6e | ||
labels: [ | ||
] | ||
next_version_number: 2 | ||
versions: [ | ||
store 0x00000000000000000000000000000001::DAOExtensionPoint::Version { | ||
number: 1 | ||
tag: 76302e312e30 | ||
types_d_ts: 697066733a2f2f74797065735f645f7473 | ||
document: 697066733a2f2f70625f646f63 | ||
created_at: 10 | ||
}, | ||
] | ||
star_count: 2 | ||
created_at: 10 | ||
updated_at: 10 | ||
} |
Oops, something went wrong.