github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/snapshots/abi/OptimismPortal2.json (about)

     1  [
     2    {
     3      "inputs": [
     4        {
     5          "internalType": "uint256",
     6          "name": "_proofMaturityDelaySeconds",
     7          "type": "uint256"
     8        },
     9        {
    10          "internalType": "uint256",
    11          "name": "_disputeGameFinalityDelaySeconds",
    12          "type": "uint256"
    13        },
    14        {
    15          "internalType": "GameType",
    16          "name": "_initialRespectedGameType",
    17          "type": "uint32"
    18        }
    19      ],
    20      "stateMutability": "nonpayable",
    21      "type": "constructor"
    22    },
    23    {
    24      "stateMutability": "payable",
    25      "type": "receive"
    26    },
    27    {
    28      "inputs": [],
    29      "name": "GUARDIAN",
    30      "outputs": [
    31        {
    32          "internalType": "address",
    33          "name": "",
    34          "type": "address"
    35        }
    36      ],
    37      "stateMutability": "view",
    38      "type": "function"
    39    },
    40    {
    41      "inputs": [],
    42      "name": "SYSTEM_CONFIG",
    43      "outputs": [
    44        {
    45          "internalType": "contract SystemConfig",
    46          "name": "",
    47          "type": "address"
    48        }
    49      ],
    50      "stateMutability": "view",
    51      "type": "function"
    52    },
    53    {
    54      "inputs": [
    55        {
    56          "internalType": "contract IDisputeGame",
    57          "name": "_disputeGame",
    58          "type": "address"
    59        }
    60      ],
    61      "name": "blacklistDisputeGame",
    62      "outputs": [],
    63      "stateMutability": "nonpayable",
    64      "type": "function"
    65    },
    66    {
    67      "inputs": [
    68        {
    69          "internalType": "bytes32",
    70          "name": "_withdrawalHash",
    71          "type": "bytes32"
    72        }
    73      ],
    74      "name": "checkWithdrawal",
    75      "outputs": [],
    76      "stateMutability": "view",
    77      "type": "function"
    78    },
    79    {
    80      "inputs": [
    81        {
    82          "internalType": "address",
    83          "name": "_to",
    84          "type": "address"
    85        },
    86        {
    87          "internalType": "uint256",
    88          "name": "_value",
    89          "type": "uint256"
    90        },
    91        {
    92          "internalType": "uint64",
    93          "name": "_gasLimit",
    94          "type": "uint64"
    95        },
    96        {
    97          "internalType": "bool",
    98          "name": "_isCreation",
    99          "type": "bool"
   100        },
   101        {
   102          "internalType": "bytes",
   103          "name": "_data",
   104          "type": "bytes"
   105        }
   106      ],
   107      "name": "depositTransaction",
   108      "outputs": [],
   109      "stateMutability": "payable",
   110      "type": "function"
   111    },
   112    {
   113      "inputs": [
   114        {
   115          "internalType": "contract IDisputeGame",
   116          "name": "",
   117          "type": "address"
   118        }
   119      ],
   120      "name": "disputeGameBlacklist",
   121      "outputs": [
   122        {
   123          "internalType": "bool",
   124          "name": "",
   125          "type": "bool"
   126        }
   127      ],
   128      "stateMutability": "view",
   129      "type": "function"
   130    },
   131    {
   132      "inputs": [],
   133      "name": "disputeGameFactory",
   134      "outputs": [
   135        {
   136          "internalType": "contract DisputeGameFactory",
   137          "name": "",
   138          "type": "address"
   139        }
   140      ],
   141      "stateMutability": "view",
   142      "type": "function"
   143    },
   144    {
   145      "inputs": [],
   146      "name": "disputeGameFinalityDelaySeconds",
   147      "outputs": [
   148        {
   149          "internalType": "uint256",
   150          "name": "",
   151          "type": "uint256"
   152        }
   153      ],
   154      "stateMutability": "view",
   155      "type": "function"
   156    },
   157    {
   158      "inputs": [],
   159      "name": "donateETH",
   160      "outputs": [],
   161      "stateMutability": "payable",
   162      "type": "function"
   163    },
   164    {
   165      "inputs": [
   166        {
   167          "components": [
   168            {
   169              "internalType": "uint256",
   170              "name": "nonce",
   171              "type": "uint256"
   172            },
   173            {
   174              "internalType": "address",
   175              "name": "sender",
   176              "type": "address"
   177            },
   178            {
   179              "internalType": "address",
   180              "name": "target",
   181              "type": "address"
   182            },
   183            {
   184              "internalType": "uint256",
   185              "name": "value",
   186              "type": "uint256"
   187            },
   188            {
   189              "internalType": "uint256",
   190              "name": "gasLimit",
   191              "type": "uint256"
   192            },
   193            {
   194              "internalType": "bytes",
   195              "name": "data",
   196              "type": "bytes"
   197            }
   198          ],
   199          "internalType": "struct Types.WithdrawalTransaction",
   200          "name": "_tx",
   201          "type": "tuple"
   202        }
   203      ],
   204      "name": "finalizeWithdrawalTransaction",
   205      "outputs": [],
   206      "stateMutability": "nonpayable",
   207      "type": "function"
   208    },
   209    {
   210      "inputs": [
   211        {
   212          "internalType": "bytes32",
   213          "name": "",
   214          "type": "bytes32"
   215        }
   216      ],
   217      "name": "finalizedWithdrawals",
   218      "outputs": [
   219        {
   220          "internalType": "bool",
   221          "name": "",
   222          "type": "bool"
   223        }
   224      ],
   225      "stateMutability": "view",
   226      "type": "function"
   227    },
   228    {
   229      "inputs": [],
   230      "name": "guardian",
   231      "outputs": [
   232        {
   233          "internalType": "address",
   234          "name": "",
   235          "type": "address"
   236        }
   237      ],
   238      "stateMutability": "view",
   239      "type": "function"
   240    },
   241    {
   242      "inputs": [
   243        {
   244          "internalType": "contract DisputeGameFactory",
   245          "name": "_disputeGameFactory",
   246          "type": "address"
   247        },
   248        {
   249          "internalType": "contract SystemConfig",
   250          "name": "_systemConfig",
   251          "type": "address"
   252        },
   253        {
   254          "internalType": "contract SuperchainConfig",
   255          "name": "_superchainConfig",
   256          "type": "address"
   257        }
   258      ],
   259      "name": "initialize",
   260      "outputs": [],
   261      "stateMutability": "nonpayable",
   262      "type": "function"
   263    },
   264    {
   265      "inputs": [],
   266      "name": "l2Sender",
   267      "outputs": [
   268        {
   269          "internalType": "address",
   270          "name": "",
   271          "type": "address"
   272        }
   273      ],
   274      "stateMutability": "view",
   275      "type": "function"
   276    },
   277    {
   278      "inputs": [
   279        {
   280          "internalType": "uint64",
   281          "name": "_byteCount",
   282          "type": "uint64"
   283        }
   284      ],
   285      "name": "minimumGasLimit",
   286      "outputs": [
   287        {
   288          "internalType": "uint64",
   289          "name": "",
   290          "type": "uint64"
   291        }
   292      ],
   293      "stateMutability": "pure",
   294      "type": "function"
   295    },
   296    {
   297      "inputs": [],
   298      "name": "params",
   299      "outputs": [
   300        {
   301          "internalType": "uint128",
   302          "name": "prevBaseFee",
   303          "type": "uint128"
   304        },
   305        {
   306          "internalType": "uint64",
   307          "name": "prevBoughtGas",
   308          "type": "uint64"
   309        },
   310        {
   311          "internalType": "uint64",
   312          "name": "prevBlockNum",
   313          "type": "uint64"
   314        }
   315      ],
   316      "stateMutability": "view",
   317      "type": "function"
   318    },
   319    {
   320      "inputs": [],
   321      "name": "paused",
   322      "outputs": [
   323        {
   324          "internalType": "bool",
   325          "name": "",
   326          "type": "bool"
   327        }
   328      ],
   329      "stateMutability": "view",
   330      "type": "function"
   331    },
   332    {
   333      "inputs": [],
   334      "name": "proofMaturityDelaySeconds",
   335      "outputs": [
   336        {
   337          "internalType": "uint256",
   338          "name": "",
   339          "type": "uint256"
   340        }
   341      ],
   342      "stateMutability": "view",
   343      "type": "function"
   344    },
   345    {
   346      "inputs": [
   347        {
   348          "components": [
   349            {
   350              "internalType": "uint256",
   351              "name": "nonce",
   352              "type": "uint256"
   353            },
   354            {
   355              "internalType": "address",
   356              "name": "sender",
   357              "type": "address"
   358            },
   359            {
   360              "internalType": "address",
   361              "name": "target",
   362              "type": "address"
   363            },
   364            {
   365              "internalType": "uint256",
   366              "name": "value",
   367              "type": "uint256"
   368            },
   369            {
   370              "internalType": "uint256",
   371              "name": "gasLimit",
   372              "type": "uint256"
   373            },
   374            {
   375              "internalType": "bytes",
   376              "name": "data",
   377              "type": "bytes"
   378            }
   379          ],
   380          "internalType": "struct Types.WithdrawalTransaction",
   381          "name": "_tx",
   382          "type": "tuple"
   383        },
   384        {
   385          "internalType": "uint256",
   386          "name": "_disputeGameIndex",
   387          "type": "uint256"
   388        },
   389        {
   390          "components": [
   391            {
   392              "internalType": "bytes32",
   393              "name": "version",
   394              "type": "bytes32"
   395            },
   396            {
   397              "internalType": "bytes32",
   398              "name": "stateRoot",
   399              "type": "bytes32"
   400            },
   401            {
   402              "internalType": "bytes32",
   403              "name": "messagePasserStorageRoot",
   404              "type": "bytes32"
   405            },
   406            {
   407              "internalType": "bytes32",
   408              "name": "latestBlockhash",
   409              "type": "bytes32"
   410            }
   411          ],
   412          "internalType": "struct Types.OutputRootProof",
   413          "name": "_outputRootProof",
   414          "type": "tuple"
   415        },
   416        {
   417          "internalType": "bytes[]",
   418          "name": "_withdrawalProof",
   419          "type": "bytes[]"
   420        }
   421      ],
   422      "name": "proveWithdrawalTransaction",
   423      "outputs": [],
   424      "stateMutability": "nonpayable",
   425      "type": "function"
   426    },
   427    {
   428      "inputs": [
   429        {
   430          "internalType": "bytes32",
   431          "name": "",
   432          "type": "bytes32"
   433        }
   434      ],
   435      "name": "provenWithdrawals",
   436      "outputs": [
   437        {
   438          "internalType": "contract IDisputeGame",
   439          "name": "disputeGameProxy",
   440          "type": "address"
   441        },
   442        {
   443          "internalType": "uint64",
   444          "name": "timestamp",
   445          "type": "uint64"
   446        }
   447      ],
   448      "stateMutability": "view",
   449      "type": "function"
   450    },
   451    {
   452      "inputs": [],
   453      "name": "respectedGameType",
   454      "outputs": [
   455        {
   456          "internalType": "GameType",
   457          "name": "",
   458          "type": "uint32"
   459        }
   460      ],
   461      "stateMutability": "view",
   462      "type": "function"
   463    },
   464    {
   465      "inputs": [],
   466      "name": "respectedGameTypeUpdatedAt",
   467      "outputs": [
   468        {
   469          "internalType": "uint64",
   470          "name": "",
   471          "type": "uint64"
   472        }
   473      ],
   474      "stateMutability": "view",
   475      "type": "function"
   476    },
   477    {
   478      "inputs": [
   479        {
   480          "internalType": "GameType",
   481          "name": "_gameType",
   482          "type": "uint32"
   483        }
   484      ],
   485      "name": "setRespectedGameType",
   486      "outputs": [],
   487      "stateMutability": "nonpayable",
   488      "type": "function"
   489    },
   490    {
   491      "inputs": [],
   492      "name": "superchainConfig",
   493      "outputs": [
   494        {
   495          "internalType": "contract SuperchainConfig",
   496          "name": "",
   497          "type": "address"
   498        }
   499      ],
   500      "stateMutability": "view",
   501      "type": "function"
   502    },
   503    {
   504      "inputs": [],
   505      "name": "systemConfig",
   506      "outputs": [
   507        {
   508          "internalType": "contract SystemConfig",
   509          "name": "",
   510          "type": "address"
   511        }
   512      ],
   513      "stateMutability": "view",
   514      "type": "function"
   515    },
   516    {
   517      "inputs": [],
   518      "name": "version",
   519      "outputs": [
   520        {
   521          "internalType": "string",
   522          "name": "",
   523          "type": "string"
   524        }
   525      ],
   526      "stateMutability": "view",
   527      "type": "function"
   528    },
   529    {
   530      "anonymous": false,
   531      "inputs": [
   532        {
   533          "indexed": false,
   534          "internalType": "uint8",
   535          "name": "version",
   536          "type": "uint8"
   537        }
   538      ],
   539      "name": "Initialized",
   540      "type": "event"
   541    },
   542    {
   543      "anonymous": false,
   544      "inputs": [
   545        {
   546          "indexed": true,
   547          "internalType": "address",
   548          "name": "from",
   549          "type": "address"
   550        },
   551        {
   552          "indexed": true,
   553          "internalType": "address",
   554          "name": "to",
   555          "type": "address"
   556        },
   557        {
   558          "indexed": true,
   559          "internalType": "uint256",
   560          "name": "version",
   561          "type": "uint256"
   562        },
   563        {
   564          "indexed": false,
   565          "internalType": "bytes",
   566          "name": "opaqueData",
   567          "type": "bytes"
   568        }
   569      ],
   570      "name": "TransactionDeposited",
   571      "type": "event"
   572    },
   573    {
   574      "anonymous": false,
   575      "inputs": [
   576        {
   577          "indexed": true,
   578          "internalType": "bytes32",
   579          "name": "withdrawalHash",
   580          "type": "bytes32"
   581        },
   582        {
   583          "indexed": false,
   584          "internalType": "bool",
   585          "name": "success",
   586          "type": "bool"
   587        }
   588      ],
   589      "name": "WithdrawalFinalized",
   590      "type": "event"
   591    },
   592    {
   593      "anonymous": false,
   594      "inputs": [
   595        {
   596          "indexed": true,
   597          "internalType": "bytes32",
   598          "name": "withdrawalHash",
   599          "type": "bytes32"
   600        },
   601        {
   602          "indexed": true,
   603          "internalType": "address",
   604          "name": "from",
   605          "type": "address"
   606        },
   607        {
   608          "indexed": true,
   609          "internalType": "address",
   610          "name": "to",
   611          "type": "address"
   612        }
   613      ],
   614      "name": "WithdrawalProven",
   615      "type": "event"
   616    }
   617  ]