github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/rolldice.json (about)

     1  {
     2      "initBalances": [{
     3          "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms",
     4          "rawBalance": "1000000000000000000000000000"
     5      }, {
     6          "account": "io1rc2d2de7rtuucalsqv4d9ng0h297t63w7wvlph",
     7          "rawBalance": "0"
     8      }, {
     9          "account": "io1zf69lmyzkkzlywwqzzggst45qupvx2cyye62fp",
    10          "rawBalance": "12000000"
    11      }],
    12      "deployments":[{
    13          "rawByteCode": "608060405234801561001057600080fd5b506102f5806100206000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632885ad2c8114610066578063797d9fbd14610070578063cd5e3c5d14610091578063d0e30db0146100b8575b600080fd5b61006e6100c0565b005b61006e73ffffffffffffffffffffffffffffffffffffffff600435166100cb565b34801561009d57600080fd5b506100a6610159565b60408051918252519081900360200190f35b61006e610229565b6100c9336100cb565b565b60006100d5610159565b6040805182815290519192507fbae72e55df73720e0f671f4d20a331df0c0dc31092fda6c573f35ff7f37f283e919081900360200190a160405173ffffffffffffffffffffffffffffffffffffffff8316906305f5e100830280156108fc02916000818181858888f19350505050158015610154573d6000803e3d6000fd5b505050565b604080514460208083019190915260001943014082840152825180830384018152606090920192839052815160009360059361021a9360029391929182918401908083835b602083106101bd5780518252601f19909201916020918201910161019e565b51815160209384036101000a600019018019909216911617905260405191909301945091925050808303816000865af11580156101fe573d6000803e3d6000fd5b5050506040513d602081101561021357600080fd5b5051610261565b81151561022357fe5b06905090565b60408051348152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2565b600080805b60208110156102c25780600101602060ff160360080260020a848260208110151561028d57fe5b7f010000000000000000000000000000000000000000000000000000000000000091901a810204029190910190600101610266565b50929150505600a165627a7a72305820a426929891673b0a04d7163b60113d28e7d0f48ea667680ba48126c182b872c10029",
    14          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    15          "rawAmount": "0",
    16          "rawGasLimit": 1000000,
    17          "rawGasPrice": "0",
    18          "expectedBalances": [],
    19          "comment": "deploy a rolldice contract"
    20      }] ,
    21      "executions": [{
    22          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    23          "rawByteCode": "d0e30db0",
    24          "rawAmount": "500000000",
    25          "rawGasLimit": 120000,
    26          "rawGasPrice": "0",
    27          "expectedBalances": [{
    28              "account": "",
    29              "rawBalance": "500000000"
    30          }],
    31          "expectedLogs": [{}],
    32          "comment": "transfer 500000000 to contract"
    33      }, {
    34          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    35          "rawByteCode": "797d9fbd0000000000000000000000001e14d5373e1af9cc77f0032ad2cd0fba8be5ea2e",
    36          "rawAmount": "0",
    37          "rawGasLimit": 120000,
    38          "rawGasPrice": "0",
    39          "expectedBalances": [{
    40              "account": "io1rc2d2de7rtuucalsqv4d9ng0h297t63w7wvlph",
    41              "rawBalance": "100000000"
    42          }, {
    43              "account": "",
    44              "rawBalance": "400000000"
    45          }],
    46          "expectedLogs": [{}],
    47          "comment": "roll dice"
    48      }, {
    49          "rawPrivateKey": "a873f9173d456767241f13122d5143b395eeb64694980bee5fb900b689bd98da",
    50          "rawByteCode": "2885ad2c",
    51          "rawAmount": "0",
    52          "rawGasLimit": 1200000,
    53          "rawGasPrice": "10",
    54          "rawExpectedGasConsumed": 27495,
    55          "expectedBalances": [{
    56              "account": "",
    57              "rawBalance": "300000000"
    58          }, {
    59              "account": "io1zf69lmyzkkzlywwqzzggst45qupvx2cyye62fp",
    60              "rawBalance": "111725050"
    61          }],
    62          "expectedLogs": [{}],
    63          "comment": "roll dice to self"
    64      }]
    65  }