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

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