Skip to content

Commit

Permalink
[Feature] NFTGallery Add Errors Assert (#138)
Browse files Browse the repository at this point in the history
* add Errors

* fix some assert

* add withdraw_one assert
  • Loading branch information
WGB5445 committed Sep 20, 2022
1 parent 545f191 commit 61392b0
Show file tree
Hide file tree
Showing 33 changed files with 75 additions and 57 deletions.
2 changes: 1 addition & 1 deletion build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ compiled_package_info:
? address: "0x00000000000000000000000000000001"
name: YieldFarmingV2
: StarcoinFramework
source_digest: 988F0323FAFB181295E294FC2838DC0C7C8BC8C7801B8320594FBD82E3FC7C67
source_digest: D6A543CE7028C8285404C5F14F62781167377952D5E94BAD8A8FDB3CAB4B3D6F
build_flags:
dev_mode: false
test_mode: false
Expand Down
Binary file modified build/StarcoinFramework/bytecode_modules/NFTGallery.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/source_maps/IdentifierNFT.mvsm
Binary file not shown.
Binary file modified build/StarcoinFramework/source_maps/IdentifierNFTScripts.mvsm
Binary file not shown.
Binary file modified build/StarcoinFramework/source_maps/NFT.mvsm
Binary file not shown.
Binary file modified build/StarcoinFramework/source_maps/NFTGallery.mvsm
Binary file not shown.
Binary file modified build/StarcoinFramework/source_maps/NFTGalleryScripts.mvsm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 4 'run'. lines 46-54:

task 5 'run'. lines 56-64:
{
"gas_used": 418301,
"gas_used": 418615,
"status": "Executed"
}

Expand Down Expand Up @@ -41,7 +41,7 @@ store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a

task 8 'run'. lines 70-78:
{
"gas_used": 148757,
"gas_used": 152078,
"status": "Executed"
}

Expand Down Expand Up @@ -81,7 +81,7 @@ store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a

task 11 'run'. lines 84-92:
{
"gas_used": 152757,
"gas_used": 156078,
"status": "Executed"
}

Expand Down Expand Up @@ -128,7 +128,7 @@ store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a

task 14 'run'. lines 98-106:
{
"gas_used": 108002,
"gas_used": 111323,
"status": {
"MoveAbort": {
"location": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 4 'run'. lines 48-56:

task 5 'run'. lines 58-66:
{
"gas_used": 466152,
"gas_used": 466466,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 32-40:

task 7 'run'. lines 42-50:
{
"gas_used": 418301,
"gas_used": 418615,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 32-40:

task 7 'run'. lines 42-50:
{
"gas_used": 418301,
"gas_used": 418615,
"status": "Executed"
}

Expand Down Expand Up @@ -67,7 +67,7 @@ store key 0x00000000000000000000000000000001::NFTGallery::NFTGallery<0x000000000

task 11 'run'. lines 86-95:
{
"gas_used": 197269,
"gas_used": 200904,
"status": "Executed"
}

Expand Down Expand Up @@ -118,7 +118,7 @@ store key 0x00000000000000000000000000000001::NFTGallery::NFTGallery<0x000000000

task 14 'run'. lines 101-120:
{
"gas_used": 180322,
"gas_used": 183643,
"status": "Executed"
}

Expand Down Expand Up @@ -153,7 +153,7 @@ store key 0x00000000000000000000000000000001::DAOExtensionPoint::Entry<0x662ba5a

task 17 'run'. lines 127-143:
{
"gas_used": 140065,
"gas_used": 150116,
"status": {
"MoveAbort": {
"location": {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/daospace/dao_extension_point_update.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 32-40:

task 7 'run'. lines 42-50:
{
"gas_used": 418301,
"gas_used": 418615,
"status": "Executed"
}

Expand All @@ -30,7 +30,7 @@ task 8 'run'. lines 52-71:

task 9 'run'. lines 73-92:
{
"gas_used": 180322,
"gas_used": 183643,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospace/dao_grant.exp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ task 5 'run'. lines 13-21:

task 8 'run'. lines 123-136:
{
"gas_used": 8209548,
"gas_used": 8242263,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 46-54:

task 7 'run'. lines 56-64:
{
"gas_used": 381209,
"gas_used": 381523,
"status": "Executed"
}

Expand All @@ -30,7 +30,7 @@ task 8 'run'. lines 66-74:

task 9 'run'. lines 76-84:
{
"gas_used": 183982,
"gas_used": 187303,
"status": "Executed"
}

Expand Down Expand Up @@ -63,7 +63,7 @@ store key 0x00000000000000000000000000000001::DAOPluginMarketplace::PluginEntry<

task 11 'run'. lines 88-101:
{
"gas_used": 1134753,
"gas_used": 1154679,
"status": "Executed"
}

Expand Down Expand Up @@ -144,7 +144,7 @@ store key 0x00000000000000000000000000000001::DAOPluginMarketplace::PluginEntry<

task 13 'run'. lines 105-113:
{
"gas_used": 152443,
"gas_used": 155764,
"status": {
"MoveAbort": {
"location": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 31-39:

task 7 'run'. lines 41-49:
{
"gas_used": 381209,
"gas_used": 381523,
"status": "Executed"
}

Expand Down Expand Up @@ -46,7 +46,7 @@ task 9 'run'. lines 61-69:

task 11 'run'. lines 97-105:
{
"gas_used": 429185,
"gas_used": 429499,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 46-54:

task 7 'run'. lines 56-64:
{
"gas_used": 381209,
"gas_used": 381523,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 6 'run'. lines 46-54:

task 7 'run'. lines 56-64:
{
"gas_used": 381209,
"gas_used": 381523,
"status": "Executed"
}

Expand Down Expand Up @@ -45,7 +45,7 @@ task 9 'run'. lines 68-76:

task 10 'run'. lines 78-86:
{
"gas_used": 183519,
"gas_used": 186840,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospace/dao_proposal.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ processed 42 tasks

task 7 'run'. lines 169-182:
{
"gas_used": 8206751,
"gas_used": 8239466,
"status": "Executed"
}

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/daospace/dao_upgrade.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ processed 18 tasks

task 3 'run'. lines 7-15:
{
"gas_used": 6487178,
"gas_used": 6516258,
"status": "Executed"
}

task 5 'run'. lines 97-105:
{
"gas_used": 522882,
"gas_used": 526517,
"status": "Executed"
}

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/daospace/dao_upgrade_incompatible.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ processed 19 tasks

task 3 'run'. lines 7-15:
{
"gas_used": 6487178,
"gas_used": 6516258,
"status": "Executed"
}

task 5 'run'. lines 97-105:
{
"gas_used": 522882,
"gas_used": 526517,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospace/stake_to_sbt_plugin.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ processed 18 tasks

task 4 'run'. lines 19-27:
{
"gas_used": 6487178,
"gas_used": 6516258,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospace/xdao.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ processed 8 tasks

task 2 'run'. lines 7-14:
{
"gas_used": 6487178,
"gas_used": 6516258,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospaceplugin/mint_proposal_plugin.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ processed 30 tasks

task 5 'run'. lines 11-18:
{
"gas_used": 6487178,
"gas_used": 6516258,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospaceplugin/salary_gov_plugin.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ processed 21 tasks

task 7 'run'. lines 252-266:
{
"gas_used": 8164713,
"gas_used": 8197428,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/nft/nft_boxminer.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ task 4 'run'. lines 59-67:

task 5 'run'. lines 69-79:
{
"gas_used": 256523,
"gas_used": 256837,
"status": "Executed"
}
8 changes: 4 additions & 4 deletions integration-tests/nft/nft_card.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ task 4 'run'. lines 84-92:

task 5 'run'. lines 94-104:
{
"gas_used": 169138,
"gas_used": 169452,
"status": "Executed"
}

task 6 'run'. lines 106-119:
{
"gas_used": 120099,
"gas_used": 123734,
"status": "Executed"
}

task 7 'run'. lines 122-134:
{
"gas_used": 423019,
"gas_used": 443435,
"status": "Executed"
}

task 8 'run'. lines 136-148:
{
"gas_used": 29751,
"gas_used": 36393,
"status": "Executed"
}
6 changes: 3 additions & 3 deletions integration-tests/nft/nft_metadata.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ task 4 'run'. lines 91-99:

task 5 'run'. lines 101-113:
{
"gas_used": 260314,
"gas_used": 260942,
"status": "Executed"
}

task 7 'run'. lines 118-130:
{
"gas_used": 318954,
"gas_used": 339370,
"status": "Executed"
}

task 8 'run'. lines 132-152:
{
"gas_used": 122330,
"gas_used": 135702,
"status": {
"MoveAbort": {
"location": "Script",
Expand Down

0 comments on commit 61392b0

Please sign in to comment.