github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/cashier-bering.json (about) 1 { 2 "initGenesis": { 3 "isBering" : true 4 }, 5 6 "initBalances": [{ 7 "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms", 8 "rawBalance": "1000000000000000000000000000" 9 }], 10 "deployments": [{ 11 "rawByteCode": "608060405234801561001057600080fd5b50604051608080610791833981016040908152815160208301519183015160609093015160008054600160a060020a03191633179055909290600160a060020a038416151561005e57600080fd5b6000821161006b57600080fd5b8181101561007857600080fd5b60018054600160a060020a031916600160a060020a039590951694909417909355600291909155600355600455623d09006005556106d6806100bb6000396000f3006080604052600436106100fb5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663046f7da28114610105578063186f03541461011a5780632e1a7d4d1461014b57806345f0a44f14610163578063490ae2101461018d5780634fe47f70146101a55780635db0cb94146101bd5780635f48f393146101de57806367a52793146101f35780638456cb5914610208578063897b06371461021d5780638da5cb5b146102355780639b2cb5d81461024a578063c0abda2a1461025f578063d0e30db0146100fb578063ee7d72b414610277578063f2fde38b1461028f578063f68016b7146102b0575b6101036102c5565b005b34801561011157600080fd5b506101036103f0565b34801561012657600080fd5b5061012f610424565b60408051600160a060020a039092168252519081900360200190f35b34801561015757600080fd5b50610103600435610433565b34801561016f57600080fd5b5061017b600435610489565b60408051918252519081900360200190f35b34801561019957600080fd5b506101036004356104a8565b3480156101b157600080fd5b506101036004356104c4565b3480156101c957600080fd5b50610103600160a060020a03600435166104ef565b3480156101ea57600080fd5b5061017b61054a565b3480156101ff57600080fd5b5061017b610550565b34801561021457600080fd5b50610103610556565b34801561022957600080fd5b5061010360043561058c565b34801561024157600080fd5b5061012f6105b7565b34801561025657600080fd5b5061017b6105c6565b34801561026b57600080fd5b5061012f6004356105cc565b34801561028357600080fd5b506101036004356105f4565b34801561029b57600080fd5b50610103600160a060020a0360043516610610565b3480156102bc57600080fd5b5061017b6106a4565b60085460009060ff16156102d857600080fd5b600254600354013410156102eb57600080fd5b60025434039050600454811115151561030357600080fd5b600154600554604051600160a060020a039092169183906000818181858888f19350505050156103ed576006805460018181019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916339081179091556007805492830181556000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68890910182905560025460408051848152602081019290925280517fb54144b2711919f9fb59c30ec3b593b154784e26488806a6ddb320c41b5c1c939281900390910190a25b50565b600054600160a060020a0316331461040757600080fd5b60085460ff16151561041857600080fd5b6008805460ff19169055565b600154600160a060020a031681565b600054600160a060020a0316331461044a57600080fd5b303181111561045857600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610485573d6000803e3d6000fd5b5050565b600780548290811061049757fe5b600091825260209091200154905081565b600054600160a060020a031633146104bf57600080fd5b600255565b600054600160a060020a031633146104db57600080fd5b6003548110156104ea57600080fd5b600455565b600054600160a060020a0316331461050657600080fd5b600160a060020a038116151561051b57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60045481565b60025481565b600054600160a060020a0316331461056d57600080fd5b60085460ff161561057d57600080fd5b6008805460ff19166001179055565b600054600160a060020a031633146105a357600080fd5b6004548111156105b257600080fd5b600355565b600054600160a060020a031681565b60035481565b60068054829081106105da57fe5b600091825260209091200154600160a060020a0316905081565b600054600160a060020a0316331461060b57600080fd5b600555565b600054600160a060020a0316331461062757600080fd5b600160a060020a038116151561063c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600554815600a165627a7a72305820d8278a1efc7155cd5660666a40251a6011e1387cb8adbb4bfdcc17082890c1c00029000000000000000000000000cecc938840c5ae89373a681a5f2e0f244152e91b000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000f4240", 12 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 13 "rawAmount": "0", 14 "rawGasLimit": 5000000, 15 "rawGasPrice": "0", 16 "rawExpectedGasConsumed": 687840, 17 "expectedStatus": 1, 18 "expectedBalances": [], 19 "comment": "deploy cashier contract" 20 }], 21 "executions": [{ 22 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 23 "rawByteCode": "d0e30db0", 24 "rawAmount": "110000", 25 "rawGasLimit": 1000000, 26 "rawGasPrice": "0", 27 "rawExpectedGasConsumed": 127497, 28 "expectedStatus": 1, 29 "expectedBalances": [{ 30 "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6", 31 "rawBalance": "100000" 32 }, { 33 "account": "", 34 "rawBalance": "10000" 35 }], 36 "expectedLogs": [{}], 37 "comment": "call deposit" 38 }, { 39 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 40 "rawByteCode": "", 41 "rawAmount": "120000", 42 "rawGasLimit": 1000000, 43 "rawGasPrice": "0", 44 "rawExpectedGasConsumed": 71747, 45 "expectedStatus": 1, 46 "expectedBalances": [{ 47 "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6", 48 "rawBalance": "210000" 49 }, { 50 "account": "", 51 "rawBalance": "20000" 52 }], 53 "expectedLogs": [{}], 54 "comment": "call deposit" 55 }, { 56 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 57 "rawByteCode": "d0e30db0", 58 "rawAmount": "90000", 59 "rawGasLimit": 1000000, 60 "rawGasPrice": "0", 61 "rawExpectedGasConsumed": 11473, 62 "failed": true, 63 "expectedStatus" : 106, 64 "expectedBalances": [{ 65 "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6", 66 "rawBalance": "210000" 67 }, { 68 "account": "", 69 "rawBalance": "20000" 70 }], 71 "expectedLogs": [], 72 "comment": "call deposit msg.value < minAmount + depositFee" 73 }, { 74 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 75 "rawByteCode": "d0e30db0", 76 "rawAmount": "1020000", 77 "rawGasLimit": 1000000, 78 "rawGasPrice": "0", 79 "rawExpectedGasConsumed": 11918, 80 "failed": true, 81 "expectedStatus": 106, 82 "expectedBalances": [{ 83 "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6", 84 "rawBalance": "210000" 85 }, { 86 "account": "", 87 "rawBalance": "20000" 88 }], 89 "expectedLogs": [], 90 "comment": "call deposit msg.value>maxAmount + depositFee" 91 }, { 92 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 93 "rawByteCode": "2e1a7d4d0000000000000000000000000000000000000000000000000000000000000064", 94 "rawAmount": "0", 95 "rawGasLimit": 1000000, 96 "rawGasPrice": "0", 97 "rawExpectedGasConsumed": 21995, 98 "expectedStatus": 1, 99 "expectedBalances": [{ 100 "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6", 101 "rawBalance": "210000" 102 }, { 103 "account": "", 104 "rawBalance": "19900" 105 }], 106 "expectedLogs": [], 107 "comment": "call withdraw 100" 108 }, { 109 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 110 "rawByteCode": "2e1a7d4d0000000000000000000000000000000000000000000000000000000000004E20", 111 "rawAmount": "0", 112 "rawGasLimit": 1000000, 113 "rawGasPrice": "0", 114 "rawExpectedGasConsumed": 14498, 115 "failed": true, 116 "expectedStatus": 106, 117 "expectedBalances": [{ 118 "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6", 119 "rawBalance": "210000" 120 }, { 121 "account": "", 122 "rawBalance": "19900" 123 }], 124 "expectedLogs": [], 125 "comment": "call withdraw 20000, expect failed" 126 }] 127 }