Skip to content

Commit

Permalink
mandos json fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Sep 30, 2021
1 parent 9a0c902 commit 8fbec7f
Show file tree
Hide file tree
Showing 199 changed files with 2,406 additions and 2,023 deletions.
9 changes: 6 additions & 3 deletions contracts/benchmarks/str-repeat/mandos/str_repeat.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"value": "0",
"function": "repeat",
"arguments": [
"str:abc", "3"
"str:abc",
"3"
],
"gasLimit": "4,000,000",
"gasPrice": "0"
Expand All @@ -69,7 +70,8 @@
"value": "0",
"function": "repeat",
"arguments": [
"str:abc", "0"
"str:abc",
"0"
],
"gasLimit": "3,000,000",
"gasPrice": "0"
Expand Down Expand Up @@ -105,7 +107,8 @@
"value": "0",
"function": "repeat",
"arguments": [
"", "1000"
"",
"1000"
],
"gasLimit": "4,000,000",
"gasPrice": "0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,131 +1,130 @@
{
"name": "deploy erc20 and give its address to the crowdfunding contract",
"steps": [
{
"step": "setState",
"accounts": {
"address:erc20_owner": {
"nonce": "0",
"balance": "0",
"storage": {}
},
"address:crowdfunding_owner": {
"nonce": "0",
"balance": "0",
"storage": {}
}
},
"newAddresses": [
{
"creatorAddress": "address:erc20_owner",
"creatorNonce": "0",
"newAddress": "sc:erc20"
},
{
"creatorAddress": "address:crowdfunding_owner",
"creatorNonce": "0",
"newAddress": "sc:crowdfunding"
}
]
},
{
"step": "scDeploy",
"txId": "deploy",
"tx": {
"from": "address:erc20_owner",
"contractCode": "file:../../erc20/output/erc20.wasm",
"value": "0",
"arguments": [
"1,000,000,000"
],
"gasLimit": "50,000,000",
"gasPrice": "0"
},
"expect": {
"status": "0",
"gas": "*",
"refund": "*"
}
},
{
"step": "checkState",
"accounts": {
"address:erc20_owner": {
"nonce": "1",
"balance": "0",
"storage": {}
},
"address:crowdfunding_owner": {
"nonce": "0",
"balance": "0",
"storage": {}
},
"sc:erc20": {
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:totalSupply": "1,000,000,000"
{
"step": "setState",
"accounts": {
"address:erc20_owner": {
"nonce": "0",
"balance": "0",
"storage": {}
},
"address:crowdfunding_owner": {
"nonce": "0",
"balance": "0",
"storage": {}
}
},
"code": "file:../../erc20/output/erc20.wasm"
}
}
},
{
"step": "scDeploy",
"txId": "deploy",
"tx": {
"from": "address:crowdfunding_owner",
"contractCode": "file:../output/crowdfunding-erc20.wasm",
"value": "0",
"arguments": [
"1,000,000",
"123,456",
"sc:erc20"
],
"gasLimit": "50,000,000",
"gasPrice": "0"
"newAddresses": [
{
"creatorAddress": "address:erc20_owner",
"creatorNonce": "0",
"newAddress": "sc:erc20"
},
{
"creatorAddress": "address:crowdfunding_owner",
"creatorNonce": "0",
"newAddress": "sc:crowdfunding"
}
]
},
"expect": {
"status": "0",
"gas": "*",
"refund": "*"
}
},
{
"step": "checkState",
"accounts": {
"address:erc20_owner": {
"nonce": "1",
"balance": "0",
"storage": {}
},
"address:crowdfunding_owner": {
"nonce": "1",
"balance": "0",
"storage": {}
},
"sc:erc20": {
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:totalSupply": "1,000,000,000"
{
"step": "scDeploy",
"txId": "deploy",
"tx": {
"from": "address:erc20_owner",
"contractCode": "file:../../erc20/output/erc20.wasm",
"value": "0",
"arguments": [
"1,000,000,000"
],
"gasLimit": "50,000,000",
"gasPrice": "0"
},
"code": "file:../../erc20/output/erc20.wasm"
},
"sc:crowdfunding": {
"nonce": "0",
"balance": "0",
"storage": {
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20"
"expect": {
"status": "0",
"gas": "*",
"refund": "*"
}
},
{
"step": "checkState",
"accounts": {
"address:erc20_owner": {
"nonce": "1",
"balance": "0",
"storage": {}
},
"address:crowdfunding_owner": {
"nonce": "0",
"balance": "0",
"storage": {}
},
"sc:erc20": {
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:totalSupply": "1,000,000,000"
},
"code": "file:../../erc20/output/erc20.wasm"
}
}
},
{
"step": "scDeploy",
"txId": "deploy",
"tx": {
"from": "address:crowdfunding_owner",
"contractCode": "file:../output/crowdfunding-erc20.wasm",
"value": "0",
"arguments": [
"1,000,000",
"123,456",
"sc:erc20"
],
"gasLimit": "50,000,000",
"gasPrice": "0"
},
"code": "file:../output/crowdfunding-erc20.wasm"
}
"expect": {
"status": "0",
"gas": "*",
"refund": "*"
}
},
{
"step": "checkState",
"accounts": {
"address:erc20_owner": {
"nonce": "1",
"balance": "0",
"storage": {}
},
"address:crowdfunding_owner": {
"nonce": "1",
"balance": "0",
"storage": {}
},
"sc:erc20": {
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:totalSupply": "1,000,000,000"
},
"code": "file:../../erc20/output/erc20.wasm"
},
"sc:crowdfunding": {
"nonce": "0",
"balance": "0",
"storage": {
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20"
},
"code": "file:../output/crowdfunding-erc20.wasm"
}
}
}
}
]
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,21 @@
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:balance|address:acc1": "600,000",
"str:allowance|address:erc20_owner|address:acc1": "400,000",
"str:allowance|address:acc1|sc:crowdfunding": "400,000",
"str:totalSupply": "1,000,000,000"
"str:balance|address:erc20_owner": "1,000,000,000",
"str:balance|address:acc1": "600,000",
"str:allowance|address:erc20_owner|address:acc1": "400,000",
"str:allowance|address:acc1|sc:crowdfunding": "400,000",
"str:totalSupply": "1,000,000,000"
},
"code": "file:../../erc20/output/erc20.wasm"
},
"sc:crowdfunding": {
"nonce": "0",
"balance": "0",
"storage": {
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20"
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20"
},
"code": "file:../output/crowdfunding-erc20.wasm"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:balance|address:acc1": "600,000",
"str:allowance|address:erc20_owner|address:acc1": "400,000",
"str:allowance|address:acc1|sc:crowdfunding": "500,000",
"str:totalSupply": "1,000,000,000"
"str:balance|address:erc20_owner": "1,000,000,000",
"str:balance|address:acc1": "600,000",
"str:allowance|address:erc20_owner|address:acc1": "400,000",
"str:allowance|address:acc1|sc:crowdfunding": "500,000",
"str:totalSupply": "1,000,000,000"
},
"code": "file:../../erc20/output/erc20.wasm"
},
"sc:crowdfunding": {
"nonce": "0",
"balance": "0",
"storage": {
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20"
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20"
},
"code": "file:../output/crowdfunding-erc20.wasm"
}
Expand Down Expand Up @@ -126,24 +126,24 @@
"nonce": "0",
"balance": "0",
"storage": {
"str:balance|address:erc20_owner": "1,000,000,000",
"str:balance|address:acc1": "100,000",
"str:balance|sc:crowdfunding": "500,000",
"str:allowance|address:erc20_owner|address:acc1": "400,000",
"str:allowance|address:acc1|sc:crowdfunding": "0",
"str:totalSupply": "1,000,000,000"
"str:balance|address:erc20_owner": "1,000,000,000",
"str:balance|address:acc1": "100,000",
"str:balance|sc:crowdfunding": "500,000",
"str:allowance|address:erc20_owner|address:acc1": "400,000",
"str:allowance|address:acc1|sc:crowdfunding": "0",
"str:totalSupply": "1,000,000,000"
},
"code": "file:../../erc20/output/erc20.wasm"
},
"sc:crowdfunding": {
"nonce": "0",
"balance": "0",
"storage": {
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20",
"str:deposit|address:acc1": "500,000",
"str:erc20Balance": "500,000"
"str:target": "1,000,000",
"str:deadline": "123,456",
"str:erc20ContractAddress": "sc:erc20",
"str:deposit|address:acc1": "500,000",
"str:erc20Balance": "500,000"
},
"code": "file:../output/crowdfunding-erc20.wasm"
}
Expand Down
Loading

0 comments on commit 8fbec7f

Please sign in to comment.