github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/infiniteloop-bering.json (about) 1 { 2 "initGenesis": { 3 "isBering" : true 4 }, 5 6 "initBalances": [{ 7 "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms", 8 "rawBalance": "10000000000000000000" 9 }], 10 "deployments":[{ 11 "rawByteCode": "608060405234801561001057600080fd5b50610264806100206000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635bec9e671461005c57806360fe47b114610073578063c2bc2efc146100a0575b600080fd5b34801561006857600080fd5b506100716100f7565b005b34801561007f57600080fd5b5061009e60048036038101908080359060200190929190505050610143565b005b3480156100ac57600080fd5b506100e1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610184565b6040518082815260200191505060405180910390f35b5b6001156101155760008081548092919060010191905055506100f8565b7f8bfaa460932ccf8751604dd60efa3eafa220ec358fccb32ef703f91c509bc3ea60405160405180910390a1565b806000819055507fdf7a95aebff315db1b7716215d602ab537373cdb769232aae6055c06e798425b816040518082815260200191505060405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156101c157600080fd5b7fbde7a70c2261170a87678200113c8e12f82f63d0a1d1cfa45681cbac328e87e382600054604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a160005490509190505600a165627a7a723058203431995c8cdf253ee2ba4d02ff0480cbff0908cb1ce19c626b6c4c61f69b054b0029", 12 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 13 "rawAmount": "0", 14 "rawGasLimit": 5000000, 15 "rawGasPrice": "1", 16 "rawExpectedGasConsumed": 196971, 17 "expectedStatus": 1, 18 "expectedBalances": [{ 19 "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms", 20 "rawBalance": "9999999999999803029" 21 }], 22 "comment": "deploy the contract" 23 }] , 24 "executions": [{ 25 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 26 "rawByteCode": "60fe47b10000000000000000000000000000000000000000000000000000000000001f40", 27 "rawAmount": "0", 28 "rawGasLimit": 1000000, 29 "rawGasPrice": "1", 30 "rawExpectedGasConsumed": 34894, 31 "expectedStatus": 1, 32 "expectedBalances": [{ 33 "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms", 34 "rawBalance": "9999999999999768135" 35 }], 36 "expectedLogs": [{}], 37 "comment": "set storedData = 0x1f40" 38 }, { 39 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 40 "rawByteCode": "c2bc2efc0000000000000000000000000000000000000000000000000000000000000001", 41 "rawAmount": "0", 42 "rawGasLimit": 1000000, 43 "rawGasPrice": "1", 44 "rawExpectedGasConsumed": 15709, 45 "readOnly": true, 46 "rawReturnValue": "0000000000000000000000000000000000000000000000000000000000001f40", 47 "expectedStatus": 1, 48 "expectedLogs": [{}], 49 "comment": "read and verify storedData = 0x1f40" 50 }, { 51 "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1", 52 "rawByteCode": "5bec9e67", 53 "rawAmount": "0", 54 "rawGasLimit": 5000000, 55 "rawGasPrice": "1", 56 "rawExpectedGasConsumed": 5000000, 57 "failed": true, 58 "expectedStatus": 101, 59 "expectedBalances": [{ 60 "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms", 61 "rawBalance": "9999999999994768135" 62 }], 63 "comment": "calling infinite(), this will consume all provided gas, and exit with failure" 64 }] 65 }