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

     1  {
     2      "initGenesis": {
     3          "isBering" : true,
     4          "isIceland" : true
     5      },
     6      "initBalances": [{
     7          "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms",
     8          "rawBalance": "1000000000000000000000000000"
     9      },{
    10          "account":"io1xznek6c8yhyexeglfahf98tqwnqnks7wc9p7e5",
    11          "rawBalance":"1000000000000000000000000000",
    12          "rawPrivateKey": "febab1e4efeeeb87ce19da49f2648aa824da34f7f7f2688a7fcd45d1f61f0ce6"
    13      }],
    14      "deployments": [{
    15          "rawByteCode": "608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6107be8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063a0ee93181161005b578063a0ee93181461014d578063c375c2ef14610160578063d7e5fbf314610173578063f2fde38b1461018657600080fd5b806307f7aafb1461008d5780630ad1c2fa146100a2578063715018a61461012a5780638da5cb5b14610132575b600080fd5b6100a061009b3660046106fc565b610199565b005b6100ff6100b03660046106fc565b604080518082018252600080825260209182018190526001600160a01b039384168152600182528290208251808401909352549283168252600160a01b90920460ff1615159181019190915290565b6040805182516001600160a01b03168152602092830151151592810192909252015b60405180910390f35b6100a061028f565b6000546040516001600160a01b039091168152602001610121565b6100a061015b3660046106fc565b6102a3565b6100a061016e3660046106fc565b610381565b6100a061018136600461071e565b61041a565b6100a06101943660046106fc565b6105bd565b6101a1610636565b6001600160a01b03808216600090815260016020526040902080549091166101e45760405162461bcd60e51b81526004016101db90610751565b60405180910390fd5b8054600160a01b900460ff161561023d5760405162461bcd60e51b815260206004820152601c60248201527f436f6e747261637420697320616c726561647920617070726f7665640000000060448201526064016101db565b805460ff60a01b1916600160a01b1781556040516001600160a01b03831681527faf42961ad755cade79794d4122cb0afedc32bf55a0c716dd085fbee2afc6ac55906020015b60405180910390a15050565b610297610636565b6102a16000610690565b565b6102ab610636565b6001600160a01b03808216600090815260016020526040902080549091166102e55760405162461bcd60e51b81526004016101db90610751565b8054600160a01b900460ff1661033d5760405162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206973206e6f7420617070726f766564000000000000000060448201526064016101db565b805460ff60a01b191681556040516001600160a01b03831681527f50132537991c16a2d6bbd27114ed077fb8c757768dcbb2c3c5736f1b1ed3cc3e90602001610283565b610389610636565b6001600160a01b03808216600090815260016020526040902080549091166103c35760405162461bcd60e51b81526004016101db90610751565b6001600160a01b03821660008181526001602090815260409182902080546001600160a81b031916905590519182527f8d30d41865a0b811b9545d879520d2dde9f4cc49e4241f486ad9752bc904b5659101610283565b6001600160a01b0382166104705760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420616464726573732063616e6e6f74206265207a65726f0060448201526064016101db565b6001600160a01b0381166104c65760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f60448201526064016101db565b6001600160a01b038216600090815260016020526040902054600160a01b900460ff16156105365760405162461bcd60e51b815260206004820152601c60248201527f436f6e747261637420697320616c726561647920617070726f7665640000000060448201526064016101db565b6040805180820182526001600160a01b038381168083526000602080850182815288851680845260018352928790209551865491511515600160a01b026001600160a81b0319909216951694909417939093179093558351928352908201527f768fb430a0d4b201cb764ab221c316dd14d8babf2e4b2348e05964c6565318b69101610283565b6105c5610636565b6001600160a01b03811661062a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101db565b61063381610690565b50565b6000546001600160a01b031633146102a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146106f757600080fd5b919050565b60006020828403121561070e57600080fd5b610717826106e0565b9392505050565b6000806040838503121561073157600080fd5b61073a836106e0565b9150610748602084016106e0565b90509250929050565b6020808252601a908201527f436f6e7472616374206973206e6f74207265676973746572656400000000000060408201526060019056fea26469706673582212209c9909f9fd809a16fec29eeab099fda8ddc415db17cc218c5acefb8b82b99b9864736f6c634300080f0033",
    16          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    17          "rawAmount": "0",
    18          "rawGasLimit": 5000000,
    19          "rawGasPrice": "0",
    20          "rawExpectedGasConsumed": 640071,
    21          "expectedStatus": 1,
    22          "expectedBalances": [],
    23          "comment": "deploy iip15Manager contract"
    24      }],
    25      "executions": [{
    26          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    27          "rawByteCode": "d7e5fbf30000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc400000000000000000000000078731d3ca6b7e34ac0f824c42a7cc18a495cabab",
    28          "rawAmount": "0",
    29          "rawGasLimit": 1000000,
    30          "rawGasPrice": "0",
    31          "rawAccessList": [],
    32          "rawExpectedGasConsumed": 40652,
    33          "expectedStatus": 1,
    34          "expectedLogs": [{}],
    35          "rawReturnValue": "",
    36          "comment": "normaly registerContract(0x5B38Da6a701c568545dCfcB03FcB875f56beddC4,0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB)"
    37      }, {
    38          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    39          "rawByteCode": "d7e5fbf3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000078731d3ca6b7e34ac0f824c42a7cc18a495cabab",
    40          "rawAmount": "0",
    41          "rawGasLimit": 6000000,
    42          "rawGasPrice": "0",
    43          "rawAccessList": [],
    44          "rawExpectedGasConsumed": 17390,
    45          "expectedStatus": 106,
    46          "expectedErrorMsg": "Contract address cannot be zero",
    47          "expectedLogs": [{}],
    48          "rawReturnValue": "",
    49          "comment": "registerContract with contract zeroaddress"
    50      },{
    51          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    52          "rawByteCode": "d7e5fbf300000000000000000000000078731d3ca6b7e34ac0f824c42a7cc18a495cabab0000000000000000000000000000000000000000000000000000000000000000",
    53          "rawAmount": "0",
    54          "rawGasLimit": 6000000,
    55          "rawGasPrice": "0",
    56          "rawAccessList": [],
    57          "rawExpectedGasConsumed": 17428,
    58          "expectedStatus": 106,
    59          "expectedErrorMsg": "Recipient address cannot be zero",
    60          "expectedLogs": [{}],
    61          "rawReturnValue": "",
    62          "comment": "registerContract with receiver zeroaddress"
    63      },{
    64          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    65          "rawByteCode": "07f7aafb0000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
    66          "rawAmount": "0",
    67          "rawGasLimit": 6000000,
    68          "rawGasPrice": "0",
    69          "rawAccessList": [],
    70          "rawExpectedGasConsumed": 23442,
    71          "expectedStatus": 1,
    72          "expectedLogs": [{}],
    73          "rawReturnValue": "",
    74          "comment": "normaly approveContract"
    75      },{
    76          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    77          "rawByteCode": "07f7aafb00000000000000000000000078731D3Ca6b7E34aC0F824c42a7cC18A495cabaB",
    78          "rawAmount": "0",
    79          "rawGasLimit": 6000000,
    80          "rawGasPrice": "0",
    81          "rawAccessList": [],
    82          "rawExpectedGasConsumed": 15814,
    83          "expectedStatus": 106,
    84          "expectedErrorMsg": "Contract is not registered",
    85          "expectedLogs": [{}],
    86          "rawReturnValue": "",
    87          "comment": "approveContract with no exist contract"
    88      },{
    89          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    90          "rawByteCode": "0ad1c2fa0000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
    91          "rawAmount": "0",
    92          "readOnly": true,
    93          "rawGasLimit": 6000000,
    94          "rawGasPrice": "0",
    95          "rawAccessList": [],
    96          "rawExpectedGasConsumed": 15076,
    97          "expectedStatus": 1,
    98          "expectedErrorMsg": "",
    99          "expectedLogs": [],
   100          "rawReturnValue": "00000000000000000000000078731d3ca6b7e34ac0f824c42a7cc18a495cabab0000000000000000000000000000000000000000000000000000000000000001",
   101          "comment": "normaly getContract"
   102      },{
   103          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   104          "rawByteCode": "62812a3900000000000000000000000078731D3Ca6b7E34aC0F824c42a7cC18A495cabaB",
   105          "rawAmount": "0",
   106          "readOnly": true,
   107          "rawGasLimit": 6000000,
   108          "rawGasPrice": "0",
   109          "rawAccessList": [],
   110          "rawExpectedGasConsumed": 13793,
   111          "expectedStatus": 106,
   112          "expectedErrorMsg": "",
   113          "expectedLogs": [],
   114          "rawReturnValue": "",
   115          "comment": "getRecipient with none registered contract"
   116      },{
   117          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   118          "rawByteCode": "a0ee931800000000000000000000000078731d3ca6b7e34ac0f824c42a7cc18a495cabab",
   119          "rawAmount": "0",
   120          "readOnly": false,
   121          "rawGasLimit": 6000000,
   122          "rawGasPrice": "0",
   123          "rawAccessList": [],
   124          "rawExpectedGasConsumed": 15813,
   125          "expectedStatus": 106,
   126          "expectedErrorMsg": "Contract is not registered",
   127          "expectedLogs": [],
   128          "rawReturnValue": "",
   129          "comment": "disapproveContract with none approved contract, revert"
   130      },{
   131          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   132          "rawByteCode": "a0ee93180000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
   133          "rawAmount": "0",
   134          "readOnly": false,
   135          "rawGasLimit": 6000000,
   136          "rawGasPrice": "0",
   137          "rawAccessList": [],
   138          "rawExpectedGasConsumed": 23437,
   139          "expectedStatus": 1,
   140          "expectedErrorMsg": "",
   141          "expectedLogs": [{}],
   142          "rawReturnValue": "",
   143          "comment": "normaly disapproveContract"
   144      },{
   145          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   146          "rawByteCode": "a0ee93180000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
   147          "rawAmount": "0",
   148          "readOnly": false,
   149          "rawGasLimit": 6000000,
   150          "rawGasPrice": "0",
   151          "rawAccessList": [],
   152          "rawExpectedGasConsumed": 16632,
   153          "expectedStatus": 106,
   154          "expectedErrorMsg": "Contract is not approved",
   155          "expectedLogs": [{}],
   156          "rawReturnValue": "",
   157          "comment": "normaly disapproveContract again"
   158      },{
   159          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   160          "rawByteCode": "070d39d90000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
   161          "rawAmount": "0",
   162          "readOnly": true,
   163          "rawGasLimit": 6000000,
   164          "rawGasPrice": "0",
   165          "rawAccessList": [],
   166          "rawExpectedGasConsumed": 13793,
   167          "expectedStatus": 106,
   168          "expectedErrorMsg": "",
   169          "expectedLogs": [],
   170          "rawReturnValue": "",
   171          "comment": "isContractApproved with disapproveContract"
   172      },{
   173          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   174          "rawByteCode": "f2fde38b00000000000000000000000030a79b6b0725c993651f4f6e929d6074c13b43ce",
   175          "rawAmount": "0",
   176          "readOnly": false,
   177          "rawGasLimit": 6000000,
   178          "rawGasPrice": "0",
   179          "rawAccessList": [],
   180          "rawExpectedGasConsumed": 22299,
   181          "expectedStatus": 1,
   182          "expectedErrorMsg": "",
   183          "expectedLogs": [{}],
   184          "rawReturnValue": "",
   185          "comment": "call transferOwnership"
   186      },{
   187          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   188          "rawByteCode": "8da5cb5b",
   189          "rawAmount": "0",
   190          "readOnly": true,
   191          "rawGasLimit": 6000000,
   192          "rawGasPrice": "0",
   193          "rawAccessList": [],
   194          "rawExpectedGasConsumed": 11468,
   195          "expectedStatus": 1,
   196          "expectedErrorMsg": "",
   197          "expectedLogs": [],
   198          "rawReturnValue": "00000000000000000000000030a79b6b0725c993651f4f6e929d6074c13b43ce",
   199          "comment": "call owner, return new owner"
   200      },{
   201          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
   202          "rawByteCode": "07f7aafb0000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
   203          "rawAmount": "0",
   204          "rawGasLimit": 6000000,
   205          "rawGasPrice": "0",
   206          "rawAccessList": [],
   207          "rawExpectedGasConsumed": 14868,
   208          "expectedStatus": 106,
   209          "expectedErrorMsg": "Ownable: caller is not the owner",
   210          "expectedLogs": [{}],
   211          "rawReturnValue": "",
   212          "comment": "approveContract use old owner, revert"
   213      },{
   214          "rawPrivateKey": "febab1e4efeeeb87ce19da49f2648aa824da34f7f7f2688a7fcd45d1f61f0ce6",
   215          "rawByteCode": "07f7aafb0000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
   216          "rawAmount": "0",
   217          "rawGasLimit": 6000000,
   218          "rawGasPrice": "0",
   219          "rawAccessList": [],
   220          "rawExpectedGasConsumed": 23442,
   221          "expectedStatus": 1,
   222          "expectedErrorMsg": "",
   223          "expectedLogs": [{}],
   224          "rawReturnValue": "",
   225          "comment": "approveContract use new owner, success"
   226      },{
   227          "rawPrivateKey": "febab1e4efeeeb87ce19da49f2648aa824da34f7f7f2688a7fcd45d1f61f0ce6",
   228          "rawByteCode": "c375c2ef0000000000000000000000005b38da6a701c568545dcfcb03fcb875f56beddc4",
   229          "rawAmount": "0",
   230          "rawGasLimit": 6000000,
   231          "rawGasPrice": "0",
   232          "rawAccessList": [],
   233          "rawExpectedGasConsumed": 11353,
   234          "expectedStatus": 1,
   235          "expectedErrorMsg": "",
   236          "expectedLogs": [{}],
   237          "rawReturnValue": "",
   238          "comment": "removeContract use new owner, success"
   239      }
   240  ]
   241  }