Skip to content

Commit

Permalink
Merge pull request #894 from multiversx/mandos-47
Browse files Browse the repository at this point in the history
mandos test update
  • Loading branch information
BiancaIalangi authored Nov 28, 2024
2 parents 814ac75 + ff1c2d7 commit 56769a1
Show file tree
Hide file tree
Showing 60 changed files with 5,291 additions and 6,956 deletions.
64 changes: 32 additions & 32 deletions integrationTests/json/scenariosAdderLog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ GetPointsUsed: 110
GetPointsUsed: 110
SetPointsUsed: 210
VM hook end: GetNumArguments()
VM hook begin: BigIntGetUnsignedArgument(0, -101)
VM hook begin: BigIntGetUnsignedArgument(0, -201)
GetPointsUsed: 249
GetPointsUsed: 249
SetPointsUsed: 1249
VM hook end: BigIntGetUnsignedArgument(0, -101)
VM hook begin: MBufferSetBytes(-102, 131097, 3)
VM hook end: BigIntGetUnsignedArgument(0, -201)
VM hook begin: MBufferSetBytes(-202, 131097, 3)
GetPointsUsed: 1289
GetPointsUsed: 1289
SetPointsUsed: 3289
GetPointsUsed: 3289
GetPointsUsed: 3289
SetPointsUsed: 6289
VM hook end: MBufferSetBytes(-102, 131097, 3)
VM hook begin: MBufferFromBigIntUnsigned(-103, -101)
VM hook end: MBufferSetBytes(-202, 131097, 3)
VM hook begin: MBufferFromBigIntUnsigned(-203, -201)
GetPointsUsed: 6333
GetPointsUsed: 6333
SetPointsUsed: 10333
VM hook end: MBufferFromBigIntUnsigned(-103, -101)
VM hook begin: MBufferStorageStore(-102, -103)
VM hook end: MBufferFromBigIntUnsigned(-203, -201)
VM hook begin: MBufferStorageStore(-202, -203)
GetPointsUsed: 10345
GetPointsUsed: 10345
SetPointsUsed: 85345
Expand All @@ -48,7 +48,7 @@ SetPointsUsed: 85345
GetPointsUsed: 85345
GetPointsUsed: 85345
SetPointsUsed: 135345
VM hook end: MBufferStorageStore(-102, -103)
VM hook end: MBufferStorageStore(-202, -203)
GetPointsUsed: 135352
GetPointsUsed: 135352
GetPointsUsed: 135352
Expand All @@ -58,7 +58,7 @@ GetPointsUsed: 135352
GetPointsUsed: 135352
Reset: true
SetPointsUsed: 0
SetGasLimit: 9223372036853566707
SetGasLimit: 9223372036853567007
SetBreakpointValue: 0
HasFunction(getSum): true
CallFunction(getSum):
Expand All @@ -72,35 +72,35 @@ GetPointsUsed: 110
GetPointsUsed: 110
SetPointsUsed: 210
VM hook end: GetNumArguments()
VM hook begin: MBufferSetBytes(-101, 131097, 3)
VM hook begin: MBufferSetBytes(-201, 131097, 3)
GetPointsUsed: 250
GetPointsUsed: 250
SetPointsUsed: 2250
GetPointsUsed: 2250
GetPointsUsed: 2250
SetPointsUsed: 5250
VM hook end: MBufferSetBytes(-101, 131097, 3)
VM hook begin: MBufferStorageLoad(-101, -102)
VM hook end: MBufferSetBytes(-201, 131097, 3)
VM hook begin: MBufferStorageLoad(-201, -202)
GetPointsUsed: 5291
GetPointsUsed: 5291
SetPointsUsed: 6291
GetPointsUsed: 6291
GetPointsUsed: 6291
SetPointsUsed: 21578
VM hook end: MBufferStorageLoad(-101, -102)
VM hook begin: MBufferToBigIntUnsigned(-102, -103)
VM hook end: MBufferStorageLoad(-201, -202)
VM hook begin: MBufferToBigIntUnsigned(-202, -203)
GetPointsUsed: 21611
GetPointsUsed: 21611
SetPointsUsed: 25611
VM hook end: MBufferToBigIntUnsigned(-102, -103)
VM hook begin: BigIntFinishUnsigned(-103)
VM hook end: MBufferToBigIntUnsigned(-202, -203)
VM hook begin: BigIntFinishUnsigned(-203)
GetPointsUsed: 25622
GetPointsUsed: 25622
SetPointsUsed: 26622
GetPointsUsed: 26622
GetPointsUsed: 26622
SetPointsUsed: 36622
VM hook end: BigIntFinishUnsigned(-103)
VM hook end: BigIntFinishUnsigned(-203)
GetPointsUsed: 36624
GetPointsUsed: 36624
GetPointsUsed: 36624
Expand All @@ -111,7 +111,7 @@ GetPointsUsed: 36624
GetPointsUsed: 36624
Reset: true
SetPointsUsed: 0
SetGasLimit: 3790900
SetGasLimit: 3791200
SetBreakpointValue: 0
HasFunction(add): true
CallFunction(add):
Expand All @@ -125,43 +125,43 @@ GetPointsUsed: 110
GetPointsUsed: 110
SetPointsUsed: 210
VM hook end: GetNumArguments()
VM hook begin: BigIntGetUnsignedArgument(0, -101)
VM hook begin: BigIntGetUnsignedArgument(0, -201)
GetPointsUsed: 249
GetPointsUsed: 249
SetPointsUsed: 1249
VM hook end: BigIntGetUnsignedArgument(0, -101)
VM hook begin: MBufferSetBytes(-102, 131097, 3)
VM hook end: BigIntGetUnsignedArgument(0, -201)
VM hook begin: MBufferSetBytes(-202, 131097, 3)
GetPointsUsed: 1289
GetPointsUsed: 1289
SetPointsUsed: 3289
GetPointsUsed: 3289
GetPointsUsed: 3289
SetPointsUsed: 6289
VM hook end: MBufferSetBytes(-102, 131097, 3)
VM hook begin: MBufferStorageLoad(-102, -103)
VM hook end: MBufferSetBytes(-202, 131097, 3)
VM hook begin: MBufferStorageLoad(-202, -203)
GetPointsUsed: 6333
GetPointsUsed: 6333
SetPointsUsed: 7333
GetPointsUsed: 7333
GetPointsUsed: 7333
SetPointsUsed: 22620
VM hook end: MBufferStorageLoad(-102, -103)
VM hook begin: MBufferToBigIntUnsigned(-103, -104)
VM hook end: MBufferStorageLoad(-202, -203)
VM hook begin: MBufferToBigIntUnsigned(-203, -204)
GetPointsUsed: 22653
GetPointsUsed: 22653
SetPointsUsed: 26653
VM hook end: MBufferToBigIntUnsigned(-103, -104)
VM hook begin: BigIntAdd(-104, -104, -101)
VM hook end: MBufferToBigIntUnsigned(-203, -204)
VM hook begin: BigIntAdd(-204, -204, -201)
GetPointsUsed: 26673
GetPointsUsed: 26673
SetPointsUsed: 28673
VM hook end: BigIntAdd(-104, -104, -101)
VM hook begin: MBufferFromBigIntUnsigned(-105, -104)
VM hook end: BigIntAdd(-204, -204, -201)
VM hook begin: MBufferFromBigIntUnsigned(-205, -204)
GetPointsUsed: 28712
GetPointsUsed: 28712
SetPointsUsed: 32712
VM hook end: MBufferFromBigIntUnsigned(-105, -104)
VM hook begin: MBufferStorageStore(-102, -105)
VM hook end: MBufferFromBigIntUnsigned(-205, -204)
VM hook begin: MBufferStorageStore(-202, -205)
GetPointsUsed: 32724
GetPointsUsed: 32724
SetPointsUsed: 107724
Expand All @@ -171,7 +171,7 @@ SetPointsUsed: 107724
GetPointsUsed: 107724
GetPointsUsed: 107724
SetPointsUsed: 107724
VM hook end: MBufferStorageStore(-102, -105)
VM hook end: MBufferStorageStore(-202, -205)
GetPointsUsed: 107731
GetPointsUsed: 107731
GetPointsUsed: 107731
Expand Down
61 changes: 42 additions & 19 deletions test/adder/output/adder.mxsc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"buildInfo": {
"rustc": {
"version": "1.76.0-nightly",
"commitHash": "21cce21d8c012f14cf74d5afddd795d324600dac",
"commitDate": "2023-12-11",
"channel": "Nightly",
"short": "rustc 1.76.0-nightly (21cce21d8 2023-12-11)"
"version": "1.82.0",
"commitHash": "f6e511eec7342f59a25f7c0534f1dbea00d01b14",
"commitDate": "2024-10-15",
"channel": "Stable",
"short": "rustc 1.82.0 (f6e511eec 2024-10-15)"
},
"contractCrate": {
"name": "adder",
"version": "0.0.0"
},
"framework": {
"name": "multiversx-sc",
"version": "0.47.0"
"version": "0.54.4"
}
},
"abi": {
Expand All @@ -31,6 +31,15 @@
],
"outputs": []
},
"upgradeConstructor": {
"inputs": [
{
"name": "initial_value",
"type": "BigUint"
}
],
"outputs": []
},
"endpoints": [
{
"name": "getSum",
Expand All @@ -42,17 +51,6 @@
}
]
},
{
"name": "upgrade",
"mutability": "mutable",
"inputs": [
{
"name": "initial_value",
"type": "BigUint"
}
],
"outputs": []
},
{
"docs": [
"Add desired amount to the storage variable."
Expand All @@ -72,6 +70,31 @@
"hasCallback": false,
"types": {}
},
"size": 697,
"code": "0061736d010000000129086000006000017f60027f7f017f60027f7f0060017f0060037f7f7f017f60037f7f7f0060017f017f0290020b03656e7619626967496e74476574556e7369676e6564417267756d656e74000303656e760f6765744e756d417267756d656e7473000103656e760b7369676e616c4572726f72000303656e76126d42756666657253746f726167654c6f6164000203656e76176d427566666572546f426967496e74556e7369676e6564000203656e76196d42756666657246726f6d426967496e74556e7369676e6564000203656e76136d42756666657253746f7261676553746f7265000203656e760f6d4275666665725365744279746573000503656e760e636865636b4e6f5061796d656e74000003656e7614626967496e7446696e697368556e7369676e6564000403656e7609626967496e744164640006030b0a010104070301000000000503010003060f027f0041a080080b7f0041a080080b075008066d656d6f7279020004696e697400110667657453756d00120361646400130863616c6c4261636b0014077570677261646500110a5f5f646174615f656e6403000b5f5f686561705f6261736503010aca010a0e01017f4100100c2200100020000b1901017f419c8008419c800828020041016b220036020020000b1400100120004604400f0b4180800841191002000b16002000100c220010031a2000100c220010041a20000b1401017f100c2202200110051a2000200210061a0b1301017f100c220041998008410310071a20000b1401017f10084101100d100b210010102000100f0b0e0010084100100d1010100e10090b2201037f10084101100d100b210110102202100e220020002001100a20022000100f0b0300010b0b2f0200418080080b1c77726f6e67206e756d626572206f6620617267756d656e747373756d00419c80080b049cffffff"
"code": "0061736d010000000129086000006000017f60027f7f017f60027f7f0060017f0060037f7f7f017f60037f7f7f0060017f017f0290020b03656e7619626967496e74476574556e7369676e6564417267756d656e74000303656e760f6765744e756d417267756d656e7473000103656e760b7369676e616c4572726f72000303656e76196d42756666657246726f6d426967496e74556e7369676e6564000203656e76136d42756666657253746f7261676553746f7265000203656e76126d42756666657253746f726167654c6f6164000203656e76176d427566666572546f426967496e74556e7369676e6564000203656e760f6d4275666665725365744279746573000503656e760e636865636b4e6f5061796d656e74000003656e7614626967496e7446696e697368556e7369676e6564000403656e7609626967496e744164640006030b0a010104030701000000000503010003060f027f0041a080080b7f0041a080080b075008066d656d6f7279020004696e697400110667657453756d00120361646400130863616c6c4261636b0014077570677261646500110a5f5f646174615f656e6403000b5f5f686561705f6261736503010ac9010a0e01017f4100100c2200100020000b1901017f419c8008419c800828020041016b220036020020000b1400100120004604400f0b4180800841191002000b1401017f100c2202200110031a2000200210041a0b16002000100c220010051a2000100c220010061a20000b1301017f100c220041998008410310071a20000b1401017f10084101100d100b210010102000100e0b0e0010084100100d1010100f10090b2201037f10084101100d100b210110102202100f220020002001100a20022000100e0b02000b0b2f0200418080080b1c77726f6e67206e756d626572206f6620617267756d656e747373756d00419c80080b0438ffffff",
"report": {
"imports": [
"bigIntAdd",
"bigIntFinishUnsigned",
"bigIntGetUnsignedArgument",
"checkNoPayment",
"getNumArguments",
"mBufferFromBigIntUnsigned",
"mBufferSetBytes",
"mBufferStorageLoad",
"mBufferStorageStore",
"mBufferToBigIntUnsigned",
"signalError"
],
"isMemGrow": false,
"eiCheck": {
"eiVersion": "1.3",
"ok": true
},
"codeReport": {
"path": "../output/adder.wasm",
"size": 696,
"hasAllocator": false,
"hasPanic": "None"
}
}
}
73 changes: 65 additions & 8 deletions test/crowdfunding-esdt/output/crowdfunding-esdt.mxsc.json

Large diffs are not rendered by default.

66 changes: 58 additions & 8 deletions test/digital-cash/output/digital-cash.mxsc.json

Large diffs are not rendered by default.

Loading

0 comments on commit 56769a1

Please sign in to comment.