-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle deployments and calls, with value, with signal error.
- Loading branch information
1 parent
bbc257b
commit 5908701
Showing
7 changed files
with
392 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[ | ||
{ | ||
"comment": "block with intra-shard contract call, with move balance, with signal error", | ||
"miniBlocks": [ | ||
{ | ||
"transactions": [ | ||
{ | ||
"type": "normal", | ||
"processingTypeOnSource": "SCInvoking", | ||
"processingTypeOnDestination": "SCInvoking", | ||
"hash": "9851ab6cb221bce5800030f9db2a5fbd8ed4a9db4c6f9d190c16113f2b080e57", | ||
"value": "10000000000000000", | ||
"receiver": "erd1qqqqqqqqqqqqqpgqagjekf5mxv86hy5c62vvtug5vc6jmgcsq6uq8reras", | ||
"sender": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"sourceShard": 0, | ||
"destinationShard": 0, | ||
"logs": { | ||
"address": "erd1qqqqqqqqqqqqqpgqagjekf5mxv86hy5c62vvtug5vc6jmgcsq6uq8reras", | ||
"events": [ | ||
{ | ||
"address": "erd1qqqqqqqqqqqqqpgqagjekf5mxv86hy5c62vvtug5vc6jmgcsq6uq8reras", | ||
"identifier": "signalError", | ||
"topics": [ | ||
"XPSryD5QxTCdgH/D9naYh1mh4wEAG8mgJlgE9Cr4Brg=", | ||
"aW52YWxpZCBmdW5jdGlvbiAobm90IGZvdW5kKQ==" | ||
], | ||
"data": "QDY2NzU2ZTYzNzQ2OTZmNmUyMDZlNmY3NDIwNjY2Zjc1NmU2NA==", | ||
"additionalData": [ | ||
"QDY2NzU2ZTYzNzQ2OTZmNmUyMDZlNmY3NDIwNjY2Zjc1NmU2NA==" | ||
] | ||
}, | ||
{ | ||
"address": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"identifier": "internalVMErrors", | ||
"topics": [ | ||
"AAAAAAAAAAAFAOolmyabMw+rkpjSmMXxFGY1LaMQBrg=", | ||
"bWlzc2luZ0Z1bmN0aW9u" | ||
], | ||
"data": "CglydW50aW1lLmdvOjgzMSBbaW52YWxpZCBmdW5jdGlvbiAobm90IGZvdW5kKV0gW21pc3NpbmdGdW5jdGlvbl0=", | ||
"additionalData": [ | ||
"CglydW50aW1lLmdvOjgzMSBbaW52YWxpZCBmdW5jdGlvbiAobm90IGZvdW5kKV0gW21pc3NpbmdGdW5jdGlvbl0=" | ||
] | ||
} | ||
] | ||
}, | ||
"initiallyPaidFee": "144050000000000" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
98 changes: 98 additions & 0 deletions
98
server/services/testdata/blocks_with_contract_deployments.json
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,98 @@ | ||
[ | ||
{ | ||
"comment": "block with contract deployment, with move balance", | ||
"miniBlocks": [ | ||
{ | ||
"transactions": [ | ||
{ | ||
"type": "normal", | ||
"processingTypeOnSource": "SCDeployment", | ||
"processingTypeOnDestination": "SCDeployment", | ||
"hash": "2459bb2b9a64c1c920777ecbdaf0fa33d7fe8bcd24d7164562f341b2e4f702da", | ||
"value": "10000000000000000", | ||
"receiver": "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu", | ||
"sender": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"logs": { | ||
"address": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"events": [ | ||
{ | ||
"address": "erd1qqqqqqqqqqqqqpgqc4vdnqgc48ww26ljxqe2flgl86jewg0nq6uqna2ymj", | ||
"identifier": "SCDeploy", | ||
"topics": [ | ||
"AAAAAAAAAAAFAMVY2YEYqdzla/IwMqT9Hz6llyHzBrg=", | ||
"XPSryD5QxTCdgH/D9naYh1mh4wEAG8mgJlgE9Cr4Brg=", | ||
"v5gJ+IK1KdPGJfGYibrKij1SO0bzAAhfUVsODJ8midg=" | ||
], | ||
"data": null, | ||
"additionalData": null | ||
}, | ||
{ | ||
"address": "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu", | ||
"identifier": "writeLog", | ||
"topics": [ | ||
"XPSryD5QxTCdgH/D9naYh1mh4wEAG8mgJlgE9Cr4Brg=", | ||
"QHRvbyBtdWNoIGdhcyBwcm92aWRlZCBmb3IgcHJvY2Vzc2luZzogZ2FzIHByb3ZpZGVkID0gNDU4ODUwMCwgZ2FzIHVzZWQgPSAzMzQ1MDU=" | ||
], | ||
"data": "QDZmNmI=", | ||
"additionalData": ["QDZmNmI="] | ||
} | ||
] | ||
}, | ||
"operation": "scDeploy", | ||
"initiallyPaidFee": "457385000000000" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"comment": "block with contract deployment, with move balance, with signal error", | ||
"miniBlocks": [ | ||
{ | ||
"transactions": [ | ||
{ | ||
"type": "normal", | ||
"processingTypeOnSource": "SCDeployment", | ||
"processingTypeOnDestination": "SCDeployment", | ||
"hash": "52b74f025158f18512353da5f23c2e31c78c49d7b73da7d24f048f86da48b5c5", | ||
"value": "77", | ||
"receiver": "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu", | ||
"sender": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"sourceShard": 0, | ||
"destinationShard": 0, | ||
"logs": { | ||
"address": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"events": [ | ||
{ | ||
"address": "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu", | ||
"identifier": "signalError", | ||
"topics": [ | ||
"XPSryD5QxTCdgH/D9naYh1mh4wEAG8mgJlgE9Cr4Brg=", | ||
"ZnVuY3Rpb24gZG9lcyBub3QgYWNjZXB0IEVHTEQgcGF5bWVudA==" | ||
], | ||
"data": "QDY1Nzg2NTYzNzU3NDY5NmY2ZTIwNjY2MTY5NmM2NTY0", | ||
"additionalData": [ | ||
"QDY1Nzg2NTYzNzU3NDY5NmY2ZTIwNjY2MTY5NmM2NTY0" | ||
] | ||
}, | ||
{ | ||
"address": "erd1tn62hjp72rznp8vq0lplva5csav6rccpqqdungpxtqz0g2hcq6uq9k4cc6", | ||
"identifier": "internalVMErrors", | ||
"topics": [ | ||
"XPSryD5QxTCdgH/D9naYh1mh4wEAG8mgJlgE9Cr4Brg=", | ||
"X2luaXQ=" | ||
], | ||
"data": "CglydW50aW1lLmdvOjgzNCBbZXhlY3V0aW9uIGZhaWxlZF0gW10KCXJ1bnRpbWUuZ286ODM0IFtleGVjdXRpb24gZmFpbGVkXSBbXQoJcnVudGltZS5nbzo4MzEgW2Z1bmN0aW9uIGRvZXMgbm90IGFjY2VwdCBFR0xEIHBheW1lbnRd", | ||
"additionalData": [ | ||
"CglydW50aW1lLmdvOjgzNCBbZXhlY3V0aW9uIGZhaWxlZF0gW10KCXJ1bnRpbWUuZ286ODM0IFtleGVjdXRpb24gZmFpbGVkXSBbXQoJcnVudGltZS5nbzo4MzEgW2Z1bmN0aW9uIGRvZXMgbm90IGFjY2VwdCBFR0xEIHBheW1lbnRd" | ||
] | ||
} | ||
] | ||
}, | ||
"initiallyPaidFee": "2206715000000000" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
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
Oops, something went wrong.