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