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