github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-london/reentry-attack.json (about)

     1  {
     2      "initGenesis": {
     3          "isBering" : true,
     4          "isIceland" : true,
     5          "isLondon" : true
     6      },
     7      "initBalances": [{
     8          "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms",
     9          "rawBalance": "1000000000000000000000000000"
    10      }],
    11      "deployments": [{
    12          "rawByteCode": "608060405234801561001057600080fd5b5061020f806100206000396000f3fe6080604052600436106100295760003560e01c80632e1a7d4d1461002e578063d0e30db014610050575b600080fd5b34801561003a57600080fd5b5061004e610049366004610140565b610058565b005b61004e61011a565b3360009081526020819052604090205481111561007457600080fd5b60408051600481526024810182526020810180516001600160e01b031663192e68cb60e31b1790529051339183916100ac9190610159565b60006040518083038185875af1925050503d80600081146100e9576040519150601f19603f3d011682016040523d82523d6000602084013e6100ee565b606091505b505033600090815260208190526040812080548493509091906101129084906101aa565b909155505050565b33600090815260208190526040812080543492906101399084906101c1565b9091555050565b60006020828403121561015257600080fd5b5035919050565b6000825160005b8181101561017a5760208186018101518583015201610160565b81811115610189576000828501525b509190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000828210156101bc576101bc610194565b500390565b600082198211156101d4576101d4610194565b50019056fea264697066735822122096a59ee60e2ca523261c43e031f863d9edbad9dcd9fcadedb43ce59b548c427c64736f6c634300080e0033",
    13          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    14          "rawAmount": "0",
    15          "rawGasLimit": 5000000,
    16          "rawGasPrice": "0",
    17          "rawExpectedGasConsumed": 171453,
    18          "expectedStatus": 1,
    19          "expectedBalances": [],
    20          "comment": "deploy MiniDAO contract"
    21      },{
    22          "rawByteCode": "60806040526000805560405161027b38038061027b833981016040819052610026916100b5565b600280546001600160a01b0319166001600160a01b03831617905561004c600a346100e5565b60015560025460408051630d0e30db60e41b815290516001600160a01b039092169163d0e30db0913491600480830192600092919082900301818588803b15801561009657600080fd5b505af11580156100aa573d6000803e3d6000fd5b505050505050610107565b6000602082840312156100c757600080fd5b81516001600160a01b03811681146100de57600080fd5b9392505050565b60008261010257634e487b7160e01b600052601260045260246000fd5b500490565b610165806101166000396000f3fe6080604052600436106100295760003560e01c80639e5faafc1461002e578063c973465814610045575b600080fd5b34801561003a57600080fd5b5061004361004d565b005b6100436100b6565b600254600154604051632e1a7d4d60e01b81526001600160a01b0390921691632e1a7d4d916100829160040190815260200190565b600060405180830381600087803b15801561009c57600080fd5b505af11580156100b0573d6000803e3d6000fd5b50505050565b60008054600391806100c783610108565b91905055101561010657600254600154604051632e1a7d4d60e01b81526001600160a01b0390921691632e1a7d4d916100829160040190815260200190565b565b60006001820161012857634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212207811d30a16290f048991954a891003cbdcb7e0243026442539693f1989681b0764736f6c634300080e0033",
    23          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    24          "appendContractAddress": true,
    25          "contractIndexToAppend": 0,
    26          "rawAmount": "5000000000000000000",
    27          "rawGasLimit": 5000000,
    28          "rawGasPrice": "0",
    29          "rawAccessList": [{
    30              "address": "06Abb2Ca03834bd4f62C610CA7627E3dD12D9a97",
    31              "storageKeys": [
    32                  "0000000000000000000000000000000000000000000000000000000000000000",
    33                  "0000000000000000000000000000000000000000000000000000000000000001",
    34                  "0000000000000000000000000000000000000000000000000000000000000002"
    35              ]
    36          },{
    37              "address": "675f1057F81e9e768e33faddbd5609C09F4c0a5C",
    38              "storageKeys": [
    39                  "a13f8e0b4dc774404729f73c84108ed3304902e8d516606ec7c44c0bf6ad9f74"
    40              ]
    41          }],
    42          "rawExpectedGasConsumed": 228673,
    43          "expectedStatus": 1,
    44          "expectedBalances": [],
    45          "comment": "deploy Attacker contract"
    46      }],
    47      "executions": [{
    48          "contractIndex":1,
    49          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    50          "rawByteCode": "9e5faafc",
    51          "rawAmount": "0",
    52          "rawGasLimit": 1000000,
    53          "rawGasPrice": "0",
    54          "rawAccessList": [{
    55              "address": "06Abb2Ca03834bd4f62C610CA7627E3dD12D9a97",
    56              "storageKeys": [
    57                  "0000000000000000000000000000000000000000000000000000000000000000"
    58              ]
    59          },{
    60              "address": "675f1057F81e9e768e33faddbd5609C09F4c0a5C",
    61              "storageKeys": [
    62                  "a13f8e0b4dc774404729f73c84108ed3304902e8d516606ec7c44c0bf6ad9f74"
    63              ]
    64          }],
    65          "rawExpectedGasConsumed": 81795,
    66          "expectedStatus": 1,
    67          "expectedBalances": [{
    68              "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms",
    69              "rawBalance": "999999995000000000000000000"
    70          },{
    71              "account": "",
    72              "rawBalance": "2000000000000000000"
    73          },{
    74              "account": "io1va03q4lcr608dr3nltwm64sfcz05czjuycsqgn",
    75              "rawBalance": "3000000000000000000"
    76          }],
    77          "comment": "attack"
    78      }]
    79  }