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

     1  [
     2    {
     3      "inputs": [
     4        {
     5          "internalType": "GameType",
     6          "name": "_gameType",
     7          "type": "uint32"
     8        },
     9        {
    10          "internalType": "Claim",
    11          "name": "_absolutePrestate",
    12          "type": "bytes32"
    13        },
    14        {
    15          "internalType": "uint256",
    16          "name": "_maxGameDepth",
    17          "type": "uint256"
    18        },
    19        {
    20          "internalType": "uint256",
    21          "name": "_splitDepth",
    22          "type": "uint256"
    23        },
    24        {
    25          "internalType": "Duration",
    26          "name": "_gameDuration",
    27          "type": "uint64"
    28        },
    29        {
    30          "internalType": "contract IBigStepper",
    31          "name": "_vm",
    32          "type": "address"
    33        },
    34        {
    35          "internalType": "contract IDelayedWETH",
    36          "name": "_weth",
    37          "type": "address"
    38        },
    39        {
    40          "internalType": "contract IAnchorStateRegistry",
    41          "name": "_anchorStateRegistry",
    42          "type": "address"
    43        },
    44        {
    45          "internalType": "uint256",
    46          "name": "_l2ChainId",
    47          "type": "uint256"
    48        },
    49        {
    50          "internalType": "address",
    51          "name": "_proposer",
    52          "type": "address"
    53        },
    54        {
    55          "internalType": "address",
    56          "name": "_challenger",
    57          "type": "address"
    58        }
    59      ],
    60      "stateMutability": "nonpayable",
    61      "type": "constructor"
    62    },
    63    {
    64      "stateMutability": "payable",
    65      "type": "fallback"
    66    },
    67    {
    68      "stateMutability": "payable",
    69      "type": "receive"
    70    },
    71    {
    72      "inputs": [],
    73      "name": "absolutePrestate",
    74      "outputs": [
    75        {
    76          "internalType": "Claim",
    77          "name": "absolutePrestate_",
    78          "type": "bytes32"
    79        }
    80      ],
    81      "stateMutability": "view",
    82      "type": "function"
    83    },
    84    {
    85      "inputs": [
    86        {
    87          "internalType": "uint256",
    88          "name": "_ident",
    89          "type": "uint256"
    90        },
    91        {
    92          "internalType": "uint256",
    93          "name": "_execLeafIdx",
    94          "type": "uint256"
    95        },
    96        {
    97          "internalType": "uint256",
    98          "name": "_partOffset",
    99          "type": "uint256"
   100        }
   101      ],
   102      "name": "addLocalData",
   103      "outputs": [],
   104      "stateMutability": "nonpayable",
   105      "type": "function"
   106    },
   107    {
   108      "inputs": [
   109        {
   110          "internalType": "uint256",
   111          "name": "_parentIndex",
   112          "type": "uint256"
   113        },
   114        {
   115          "internalType": "Claim",
   116          "name": "_claim",
   117          "type": "bytes32"
   118        }
   119      ],
   120      "name": "attack",
   121      "outputs": [],
   122      "stateMutability": "payable",
   123      "type": "function"
   124    },
   125    {
   126      "inputs": [
   127        {
   128          "internalType": "address",
   129          "name": "_recipient",
   130          "type": "address"
   131        }
   132      ],
   133      "name": "claimCredit",
   134      "outputs": [],
   135      "stateMutability": "nonpayable",
   136      "type": "function"
   137    },
   138    {
   139      "inputs": [
   140        {
   141          "internalType": "uint256",
   142          "name": "",
   143          "type": "uint256"
   144        }
   145      ],
   146      "name": "claimData",
   147      "outputs": [
   148        {
   149          "internalType": "uint32",
   150          "name": "parentIndex",
   151          "type": "uint32"
   152        },
   153        {
   154          "internalType": "address",
   155          "name": "counteredBy",
   156          "type": "address"
   157        },
   158        {
   159          "internalType": "address",
   160          "name": "claimant",
   161          "type": "address"
   162        },
   163        {
   164          "internalType": "uint128",
   165          "name": "bond",
   166          "type": "uint128"
   167        },
   168        {
   169          "internalType": "Claim",
   170          "name": "claim",
   171          "type": "bytes32"
   172        },
   173        {
   174          "internalType": "Position",
   175          "name": "position",
   176          "type": "uint128"
   177        },
   178        {
   179          "internalType": "Clock",
   180          "name": "clock",
   181          "type": "uint128"
   182        }
   183      ],
   184      "stateMutability": "view",
   185      "type": "function"
   186    },
   187    {
   188      "inputs": [],
   189      "name": "claimDataLen",
   190      "outputs": [
   191        {
   192          "internalType": "uint256",
   193          "name": "len_",
   194          "type": "uint256"
   195        }
   196      ],
   197      "stateMutability": "view",
   198      "type": "function"
   199    },
   200    {
   201      "inputs": [],
   202      "name": "claimedBondFlag",
   203      "outputs": [
   204        {
   205          "internalType": "uint128",
   206          "name": "claimedBondFlag_",
   207          "type": "uint128"
   208        }
   209      ],
   210      "stateMutability": "pure",
   211      "type": "function"
   212    },
   213    {
   214      "inputs": [],
   215      "name": "createdAt",
   216      "outputs": [
   217        {
   218          "internalType": "Timestamp",
   219          "name": "",
   220          "type": "uint64"
   221        }
   222      ],
   223      "stateMutability": "view",
   224      "type": "function"
   225    },
   226    {
   227      "inputs": [
   228        {
   229          "internalType": "address",
   230          "name": "",
   231          "type": "address"
   232        }
   233      ],
   234      "name": "credit",
   235      "outputs": [
   236        {
   237          "internalType": "uint256",
   238          "name": "",
   239          "type": "uint256"
   240        }
   241      ],
   242      "stateMutability": "view",
   243      "type": "function"
   244    },
   245    {
   246      "inputs": [
   247        {
   248          "internalType": "uint256",
   249          "name": "_parentIndex",
   250          "type": "uint256"
   251        },
   252        {
   253          "internalType": "Claim",
   254          "name": "_claim",
   255          "type": "bytes32"
   256        }
   257      ],
   258      "name": "defend",
   259      "outputs": [],
   260      "stateMutability": "payable",
   261      "type": "function"
   262    },
   263    {
   264      "inputs": [],
   265      "name": "extraData",
   266      "outputs": [
   267        {
   268          "internalType": "bytes",
   269          "name": "extraData_",
   270          "type": "bytes"
   271        }
   272      ],
   273      "stateMutability": "pure",
   274      "type": "function"
   275    },
   276    {
   277      "inputs": [],
   278      "name": "gameData",
   279      "outputs": [
   280        {
   281          "internalType": "GameType",
   282          "name": "gameType_",
   283          "type": "uint32"
   284        },
   285        {
   286          "internalType": "Claim",
   287          "name": "rootClaim_",
   288          "type": "bytes32"
   289        },
   290        {
   291          "internalType": "bytes",
   292          "name": "extraData_",
   293          "type": "bytes"
   294        }
   295      ],
   296      "stateMutability": "view",
   297      "type": "function"
   298    },
   299    {
   300      "inputs": [],
   301      "name": "gameDuration",
   302      "outputs": [
   303        {
   304          "internalType": "Duration",
   305          "name": "gameDuration_",
   306          "type": "uint64"
   307        }
   308      ],
   309      "stateMutability": "view",
   310      "type": "function"
   311    },
   312    {
   313      "inputs": [],
   314      "name": "gameType",
   315      "outputs": [
   316        {
   317          "internalType": "GameType",
   318          "name": "gameType_",
   319          "type": "uint32"
   320        }
   321      ],
   322      "stateMutability": "view",
   323      "type": "function"
   324    },
   325    {
   326      "inputs": [
   327        {
   328          "internalType": "Position",
   329          "name": "_position",
   330          "type": "uint128"
   331        }
   332      ],
   333      "name": "getRequiredBond",
   334      "outputs": [
   335        {
   336          "internalType": "uint256",
   337          "name": "requiredBond_",
   338          "type": "uint256"
   339        }
   340      ],
   341      "stateMutability": "view",
   342      "type": "function"
   343    },
   344    {
   345      "inputs": [],
   346      "name": "initialize",
   347      "outputs": [],
   348      "stateMutability": "payable",
   349      "type": "function"
   350    },
   351    {
   352      "inputs": [],
   353      "name": "l1Head",
   354      "outputs": [
   355        {
   356          "internalType": "Hash",
   357          "name": "l1Head_",
   358          "type": "bytes32"
   359        }
   360      ],
   361      "stateMutability": "pure",
   362      "type": "function"
   363    },
   364    {
   365      "inputs": [],
   366      "name": "l2BlockNumber",
   367      "outputs": [
   368        {
   369          "internalType": "uint256",
   370          "name": "l2BlockNumber_",
   371          "type": "uint256"
   372        }
   373      ],
   374      "stateMutability": "pure",
   375      "type": "function"
   376    },
   377    {
   378      "inputs": [],
   379      "name": "l2ChainId",
   380      "outputs": [
   381        {
   382          "internalType": "uint256",
   383          "name": "l2ChainId_",
   384          "type": "uint256"
   385        }
   386      ],
   387      "stateMutability": "view",
   388      "type": "function"
   389    },
   390    {
   391      "inputs": [],
   392      "name": "maxGameDepth",
   393      "outputs": [
   394        {
   395          "internalType": "uint256",
   396          "name": "maxGameDepth_",
   397          "type": "uint256"
   398        }
   399      ],
   400      "stateMutability": "view",
   401      "type": "function"
   402    },
   403    {
   404      "inputs": [
   405        {
   406          "internalType": "uint256",
   407          "name": "_challengeIndex",
   408          "type": "uint256"
   409        },
   410        {
   411          "internalType": "Claim",
   412          "name": "_claim",
   413          "type": "bytes32"
   414        },
   415        {
   416          "internalType": "bool",
   417          "name": "_isAttack",
   418          "type": "bool"
   419        }
   420      ],
   421      "name": "move",
   422      "outputs": [],
   423      "stateMutability": "payable",
   424      "type": "function"
   425    },
   426    {
   427      "inputs": [],
   428      "name": "resolve",
   429      "outputs": [
   430        {
   431          "internalType": "enum GameStatus",
   432          "name": "status_",
   433          "type": "uint8"
   434        }
   435      ],
   436      "stateMutability": "nonpayable",
   437      "type": "function"
   438    },
   439    {
   440      "inputs": [
   441        {
   442          "internalType": "uint256",
   443          "name": "_claimIndex",
   444          "type": "uint256"
   445        }
   446      ],
   447      "name": "resolveClaim",
   448      "outputs": [],
   449      "stateMutability": "payable",
   450      "type": "function"
   451    },
   452    {
   453      "inputs": [],
   454      "name": "resolvedAt",
   455      "outputs": [
   456        {
   457          "internalType": "Timestamp",
   458          "name": "",
   459          "type": "uint64"
   460        }
   461      ],
   462      "stateMutability": "view",
   463      "type": "function"
   464    },
   465    {
   466      "inputs": [],
   467      "name": "rootClaim",
   468      "outputs": [
   469        {
   470          "internalType": "Claim",
   471          "name": "rootClaim_",
   472          "type": "bytes32"
   473        }
   474      ],
   475      "stateMutability": "pure",
   476      "type": "function"
   477    },
   478    {
   479      "inputs": [],
   480      "name": "splitDepth",
   481      "outputs": [
   482        {
   483          "internalType": "uint256",
   484          "name": "splitDepth_",
   485          "type": "uint256"
   486        }
   487      ],
   488      "stateMutability": "view",
   489      "type": "function"
   490    },
   491    {
   492      "inputs": [],
   493      "name": "startingBlockNumber",
   494      "outputs": [
   495        {
   496          "internalType": "uint256",
   497          "name": "startingBlockNumber_",
   498          "type": "uint256"
   499        }
   500      ],
   501      "stateMutability": "view",
   502      "type": "function"
   503    },
   504    {
   505      "inputs": [],
   506      "name": "startingOutputRoot",
   507      "outputs": [
   508        {
   509          "internalType": "Hash",
   510          "name": "root",
   511          "type": "bytes32"
   512        },
   513        {
   514          "internalType": "uint256",
   515          "name": "l2BlockNumber",
   516          "type": "uint256"
   517        }
   518      ],
   519      "stateMutability": "view",
   520      "type": "function"
   521    },
   522    {
   523      "inputs": [],
   524      "name": "startingRootHash",
   525      "outputs": [
   526        {
   527          "internalType": "Hash",
   528          "name": "startingRootHash_",
   529          "type": "bytes32"
   530        }
   531      ],
   532      "stateMutability": "view",
   533      "type": "function"
   534    },
   535    {
   536      "inputs": [],
   537      "name": "status",
   538      "outputs": [
   539        {
   540          "internalType": "enum GameStatus",
   541          "name": "",
   542          "type": "uint8"
   543        }
   544      ],
   545      "stateMutability": "view",
   546      "type": "function"
   547    },
   548    {
   549      "inputs": [
   550        {
   551          "internalType": "uint256",
   552          "name": "_claimIndex",
   553          "type": "uint256"
   554        },
   555        {
   556          "internalType": "bool",
   557          "name": "_isAttack",
   558          "type": "bool"
   559        },
   560        {
   561          "internalType": "bytes",
   562          "name": "_stateData",
   563          "type": "bytes"
   564        },
   565        {
   566          "internalType": "bytes",
   567          "name": "_proof",
   568          "type": "bytes"
   569        }
   570      ],
   571      "name": "step",
   572      "outputs": [],
   573      "stateMutability": "nonpayable",
   574      "type": "function"
   575    },
   576    {
   577      "inputs": [],
   578      "name": "version",
   579      "outputs": [
   580        {
   581          "internalType": "string",
   582          "name": "",
   583          "type": "string"
   584        }
   585      ],
   586      "stateMutability": "view",
   587      "type": "function"
   588    },
   589    {
   590      "inputs": [],
   591      "name": "vm",
   592      "outputs": [
   593        {
   594          "internalType": "contract IBigStepper",
   595          "name": "vm_",
   596          "type": "address"
   597        }
   598      ],
   599      "stateMutability": "view",
   600      "type": "function"
   601    },
   602    {
   603      "inputs": [],
   604      "name": "weth",
   605      "outputs": [
   606        {
   607          "internalType": "contract IDelayedWETH",
   608          "name": "weth_",
   609          "type": "address"
   610        }
   611      ],
   612      "stateMutability": "view",
   613      "type": "function"
   614    },
   615    {
   616      "anonymous": false,
   617      "inputs": [
   618        {
   619          "indexed": true,
   620          "internalType": "uint256",
   621          "name": "parentIndex",
   622          "type": "uint256"
   623        },
   624        {
   625          "indexed": true,
   626          "internalType": "Claim",
   627          "name": "claim",
   628          "type": "bytes32"
   629        },
   630        {
   631          "indexed": true,
   632          "internalType": "address",
   633          "name": "claimant",
   634          "type": "address"
   635        }
   636      ],
   637      "name": "Move",
   638      "type": "event"
   639    },
   640    {
   641      "anonymous": false,
   642      "inputs": [
   643        {
   644          "indexed": true,
   645          "internalType": "enum GameStatus",
   646          "name": "status",
   647          "type": "uint8"
   648        }
   649      ],
   650      "name": "Resolved",
   651      "type": "event"
   652    },
   653    {
   654      "inputs": [],
   655      "name": "AlreadyInitialized",
   656      "type": "error"
   657    },
   658    {
   659      "inputs": [],
   660      "name": "AnchorRootNotFound",
   661      "type": "error"
   662    },
   663    {
   664      "inputs": [],
   665      "name": "BadAuth",
   666      "type": "error"
   667    },
   668    {
   669      "inputs": [],
   670      "name": "BondTransferFailed",
   671      "type": "error"
   672    },
   673    {
   674      "inputs": [],
   675      "name": "CannotDefendRootClaim",
   676      "type": "error"
   677    },
   678    {
   679      "inputs": [],
   680      "name": "ClaimAboveSplit",
   681      "type": "error"
   682    },
   683    {
   684      "inputs": [],
   685      "name": "ClaimAlreadyExists",
   686      "type": "error"
   687    },
   688    {
   689      "inputs": [],
   690      "name": "ClaimAlreadyResolved",
   691      "type": "error"
   692    },
   693    {
   694      "inputs": [],
   695      "name": "ClockNotExpired",
   696      "type": "error"
   697    },
   698    {
   699      "inputs": [],
   700      "name": "ClockTimeExceeded",
   701      "type": "error"
   702    },
   703    {
   704      "inputs": [],
   705      "name": "DuplicateStep",
   706      "type": "error"
   707    },
   708    {
   709      "inputs": [],
   710      "name": "GameDepthExceeded",
   711      "type": "error"
   712    },
   713    {
   714      "inputs": [],
   715      "name": "GameNotInProgress",
   716      "type": "error"
   717    },
   718    {
   719      "inputs": [],
   720      "name": "InsufficientBond",
   721      "type": "error"
   722    },
   723    {
   724      "inputs": [],
   725      "name": "InvalidLocalIdent",
   726      "type": "error"
   727    },
   728    {
   729      "inputs": [],
   730      "name": "InvalidParent",
   731      "type": "error"
   732    },
   733    {
   734      "inputs": [],
   735      "name": "InvalidPrestate",
   736      "type": "error"
   737    },
   738    {
   739      "inputs": [],
   740      "name": "InvalidSplitDepth",
   741      "type": "error"
   742    },
   743    {
   744      "inputs": [],
   745      "name": "NoCreditToClaim",
   746      "type": "error"
   747    },
   748    {
   749      "inputs": [],
   750      "name": "OutOfOrderResolution",
   751      "type": "error"
   752    },
   753    {
   754      "inputs": [
   755        {
   756          "internalType": "Claim",
   757          "name": "rootClaim",
   758          "type": "bytes32"
   759        }
   760      ],
   761      "name": "UnexpectedRootClaim",
   762      "type": "error"
   763    },
   764    {
   765      "inputs": [],
   766      "name": "ValidStep",
   767      "type": "error"
   768    }
   769  ]