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

     1  [
     2    {
     3      "inputs": [
     4        {
     5          "internalType": "GameType",
     6          "name": "_gameType",
     7          "type": "uint8"
     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": "Duration",
    21          "name": "_gameDuration",
    22          "type": "uint64"
    23        },
    24        {
    25          "internalType": "contract IBigStepper",
    26          "name": "_vm",
    27          "type": "address"
    28        },
    29        {
    30          "internalType": "contract L2OutputOracle",
    31          "name": "_l2oo",
    32          "type": "address"
    33        },
    34        {
    35          "internalType": "contract BlockOracle",
    36          "name": "_blockOracle",
    37          "type": "address"
    38        }
    39      ],
    40      "stateMutability": "nonpayable",
    41      "type": "constructor"
    42    },
    43    {
    44      "inputs": [],
    45      "name": "ABSOLUTE_PRESTATE",
    46      "outputs": [
    47        {
    48          "internalType": "Claim",
    49          "name": "",
    50          "type": "bytes32"
    51        }
    52      ],
    53      "stateMutability": "view",
    54      "type": "function"
    55    },
    56    {
    57      "inputs": [],
    58      "name": "BLOCK_ORACLE",
    59      "outputs": [
    60        {
    61          "internalType": "contract BlockOracle",
    62          "name": "",
    63          "type": "address"
    64        }
    65      ],
    66      "stateMutability": "view",
    67      "type": "function"
    68    },
    69    {
    70      "inputs": [],
    71      "name": "GAME_DURATION",
    72      "outputs": [
    73        {
    74          "internalType": "Duration",
    75          "name": "",
    76          "type": "uint64"
    77        }
    78      ],
    79      "stateMutability": "view",
    80      "type": "function"
    81    },
    82    {
    83      "inputs": [],
    84      "name": "L2_OUTPUT_ORACLE",
    85      "outputs": [
    86        {
    87          "internalType": "contract L2OutputOracle",
    88          "name": "",
    89          "type": "address"
    90        }
    91      ],
    92      "stateMutability": "view",
    93      "type": "function"
    94    },
    95    {
    96      "inputs": [],
    97      "name": "MAX_GAME_DEPTH",
    98      "outputs": [
    99        {
   100          "internalType": "uint256",
   101          "name": "",
   102          "type": "uint256"
   103        }
   104      ],
   105      "stateMutability": "view",
   106      "type": "function"
   107    },
   108    {
   109      "inputs": [],
   110      "name": "VM",
   111      "outputs": [
   112        {
   113          "internalType": "contract IBigStepper",
   114          "name": "",
   115          "type": "address"
   116        }
   117      ],
   118      "stateMutability": "view",
   119      "type": "function"
   120    },
   121    {
   122      "inputs": [
   123        {
   124          "internalType": "uint256",
   125          "name": "_ident",
   126          "type": "uint256"
   127        },
   128        {
   129          "internalType": "bytes32",
   130          "name": "_localContext",
   131          "type": "bytes32"
   132        },
   133        {
   134          "internalType": "uint256",
   135          "name": "_partOffset",
   136          "type": "uint256"
   137        }
   138      ],
   139      "name": "addLocalData",
   140      "outputs": [],
   141      "stateMutability": "nonpayable",
   142      "type": "function"
   143    },
   144    {
   145      "inputs": [
   146        {
   147          "internalType": "uint256",
   148          "name": "_parentIndex",
   149          "type": "uint256"
   150        },
   151        {
   152          "internalType": "Claim",
   153          "name": "_claim",
   154          "type": "bytes32"
   155        }
   156      ],
   157      "name": "attack",
   158      "outputs": [],
   159      "stateMutability": "payable",
   160      "type": "function"
   161    },
   162    {
   163      "inputs": [
   164        {
   165          "internalType": "uint256",
   166          "name": "",
   167          "type": "uint256"
   168        }
   169      ],
   170      "name": "claimData",
   171      "outputs": [
   172        {
   173          "internalType": "uint32",
   174          "name": "parentIndex",
   175          "type": "uint32"
   176        },
   177        {
   178          "internalType": "bool",
   179          "name": "countered",
   180          "type": "bool"
   181        },
   182        {
   183          "internalType": "Claim",
   184          "name": "claim",
   185          "type": "bytes32"
   186        },
   187        {
   188          "internalType": "Position",
   189          "name": "position",
   190          "type": "uint128"
   191        },
   192        {
   193          "internalType": "Clock",
   194          "name": "clock",
   195          "type": "uint128"
   196        }
   197      ],
   198      "stateMutability": "view",
   199      "type": "function"
   200    },
   201    {
   202      "inputs": [],
   203      "name": "claimDataLen",
   204      "outputs": [
   205        {
   206          "internalType": "uint256",
   207          "name": "len_",
   208          "type": "uint256"
   209        }
   210      ],
   211      "stateMutability": "view",
   212      "type": "function"
   213    },
   214    {
   215      "inputs": [],
   216      "name": "createdAt",
   217      "outputs": [
   218        {
   219          "internalType": "Timestamp",
   220          "name": "",
   221          "type": "uint64"
   222        }
   223      ],
   224      "stateMutability": "view",
   225      "type": "function"
   226    },
   227    {
   228      "inputs": [
   229        {
   230          "internalType": "uint256",
   231          "name": "_parentIndex",
   232          "type": "uint256"
   233        },
   234        {
   235          "internalType": "Claim",
   236          "name": "_claim",
   237          "type": "bytes32"
   238        }
   239      ],
   240      "name": "defend",
   241      "outputs": [],
   242      "stateMutability": "payable",
   243      "type": "function"
   244    },
   245    {
   246      "inputs": [],
   247      "name": "extraData",
   248      "outputs": [
   249        {
   250          "internalType": "bytes",
   251          "name": "extraData_",
   252          "type": "bytes"
   253        }
   254      ],
   255      "stateMutability": "pure",
   256      "type": "function"
   257    },
   258    {
   259      "inputs": [],
   260      "name": "gameData",
   261      "outputs": [
   262        {
   263          "internalType": "GameType",
   264          "name": "gameType_",
   265          "type": "uint8"
   266        },
   267        {
   268          "internalType": "Claim",
   269          "name": "rootClaim_",
   270          "type": "bytes32"
   271        },
   272        {
   273          "internalType": "bytes",
   274          "name": "extraData_",
   275          "type": "bytes"
   276        }
   277      ],
   278      "stateMutability": "view",
   279      "type": "function"
   280    },
   281    {
   282      "inputs": [],
   283      "name": "gameType",
   284      "outputs": [
   285        {
   286          "internalType": "GameType",
   287          "name": "gameType_",
   288          "type": "uint8"
   289        }
   290      ],
   291      "stateMutability": "view",
   292      "type": "function"
   293    },
   294    {
   295      "inputs": [],
   296      "name": "initialize",
   297      "outputs": [],
   298      "stateMutability": "nonpayable",
   299      "type": "function"
   300    },
   301    {
   302      "inputs": [],
   303      "name": "l1BlockNumber",
   304      "outputs": [
   305        {
   306          "internalType": "uint256",
   307          "name": "l1BlockNumber_",
   308          "type": "uint256"
   309        }
   310      ],
   311      "stateMutability": "pure",
   312      "type": "function"
   313    },
   314    {
   315      "inputs": [],
   316      "name": "l1Head",
   317      "outputs": [
   318        {
   319          "internalType": "Hash",
   320          "name": "",
   321          "type": "bytes32"
   322        }
   323      ],
   324      "stateMutability": "view",
   325      "type": "function"
   326    },
   327    {
   328      "inputs": [],
   329      "name": "l2BlockNumber",
   330      "outputs": [
   331        {
   332          "internalType": "uint256",
   333          "name": "l2BlockNumber_",
   334          "type": "uint256"
   335        }
   336      ],
   337      "stateMutability": "pure",
   338      "type": "function"
   339    },
   340    {
   341      "inputs": [
   342        {
   343          "internalType": "uint256",
   344          "name": "_challengeIndex",
   345          "type": "uint256"
   346        },
   347        {
   348          "internalType": "Claim",
   349          "name": "_claim",
   350          "type": "bytes32"
   351        },
   352        {
   353          "internalType": "bool",
   354          "name": "_isAttack",
   355          "type": "bool"
   356        }
   357      ],
   358      "name": "move",
   359      "outputs": [],
   360      "stateMutability": "payable",
   361      "type": "function"
   362    },
   363    {
   364      "inputs": [],
   365      "name": "proposals",
   366      "outputs": [
   367        {
   368          "components": [
   369            {
   370              "internalType": "uint128",
   371              "name": "index",
   372              "type": "uint128"
   373            },
   374            {
   375              "internalType": "uint128",
   376              "name": "l2BlockNumber",
   377              "type": "uint128"
   378            },
   379            {
   380              "internalType": "Hash",
   381              "name": "outputRoot",
   382              "type": "bytes32"
   383            }
   384          ],
   385          "internalType": "struct ILegacyFaultDisputeGame.OutputProposal",
   386          "name": "starting",
   387          "type": "tuple"
   388        },
   389        {
   390          "components": [
   391            {
   392              "internalType": "uint128",
   393              "name": "index",
   394              "type": "uint128"
   395            },
   396            {
   397              "internalType": "uint128",
   398              "name": "l2BlockNumber",
   399              "type": "uint128"
   400            },
   401            {
   402              "internalType": "Hash",
   403              "name": "outputRoot",
   404              "type": "bytes32"
   405            }
   406          ],
   407          "internalType": "struct ILegacyFaultDisputeGame.OutputProposal",
   408          "name": "disputed",
   409          "type": "tuple"
   410        }
   411      ],
   412      "stateMutability": "view",
   413      "type": "function"
   414    },
   415    {
   416      "inputs": [],
   417      "name": "resolve",
   418      "outputs": [
   419        {
   420          "internalType": "enum GameStatus",
   421          "name": "status_",
   422          "type": "uint8"
   423        }
   424      ],
   425      "stateMutability": "nonpayable",
   426      "type": "function"
   427    },
   428    {
   429      "inputs": [
   430        {
   431          "internalType": "uint256",
   432          "name": "_claimIndex",
   433          "type": "uint256"
   434        }
   435      ],
   436      "name": "resolveClaim",
   437      "outputs": [],
   438      "stateMutability": "payable",
   439      "type": "function"
   440    },
   441    {
   442      "inputs": [],
   443      "name": "rootClaim",
   444      "outputs": [
   445        {
   446          "internalType": "Claim",
   447          "name": "rootClaim_",
   448          "type": "bytes32"
   449        }
   450      ],
   451      "stateMutability": "pure",
   452      "type": "function"
   453    },
   454    {
   455      "inputs": [],
   456      "name": "status",
   457      "outputs": [
   458        {
   459          "internalType": "enum GameStatus",
   460          "name": "",
   461          "type": "uint8"
   462        }
   463      ],
   464      "stateMutability": "view",
   465      "type": "function"
   466    },
   467    {
   468      "inputs": [
   469        {
   470          "internalType": "uint256",
   471          "name": "_claimIndex",
   472          "type": "uint256"
   473        },
   474        {
   475          "internalType": "bool",
   476          "name": "_isAttack",
   477          "type": "bool"
   478        },
   479        {
   480          "internalType": "bytes",
   481          "name": "_stateData",
   482          "type": "bytes"
   483        },
   484        {
   485          "internalType": "bytes",
   486          "name": "_proof",
   487          "type": "bytes"
   488        }
   489      ],
   490      "name": "step",
   491      "outputs": [],
   492      "stateMutability": "nonpayable",
   493      "type": "function"
   494    },
   495    {
   496      "inputs": [],
   497      "name": "version",
   498      "outputs": [
   499        {
   500          "internalType": "string",
   501          "name": "",
   502          "type": "string"
   503        }
   504      ],
   505      "stateMutability": "view",
   506      "type": "function"
   507    },
   508    {
   509      "anonymous": false,
   510      "inputs": [
   511        {
   512          "indexed": true,
   513          "internalType": "uint256",
   514          "name": "parentIndex",
   515          "type": "uint256"
   516        },
   517        {
   518          "indexed": true,
   519          "internalType": "Claim",
   520          "name": "claim",
   521          "type": "bytes32"
   522        },
   523        {
   524          "indexed": true,
   525          "internalType": "address",
   526          "name": "claimant",
   527          "type": "address"
   528        }
   529      ],
   530      "name": "Move",
   531      "type": "event"
   532    },
   533    {
   534      "anonymous": false,
   535      "inputs": [
   536        {
   537          "indexed": true,
   538          "internalType": "enum GameStatus",
   539          "name": "status",
   540          "type": "uint8"
   541        }
   542      ],
   543      "name": "Resolved",
   544      "type": "event"
   545    },
   546    {
   547      "inputs": [],
   548      "name": "CannotDefendRootClaim",
   549      "type": "error"
   550    },
   551    {
   552      "inputs": [],
   553      "name": "ClaimAlreadyExists",
   554      "type": "error"
   555    },
   556    {
   557      "inputs": [],
   558      "name": "ClaimAlreadyResolved",
   559      "type": "error"
   560    },
   561    {
   562      "inputs": [],
   563      "name": "ClockNotExpired",
   564      "type": "error"
   565    },
   566    {
   567      "inputs": [],
   568      "name": "ClockTimeExceeded",
   569      "type": "error"
   570    },
   571    {
   572      "inputs": [],
   573      "name": "GameDepthExceeded",
   574      "type": "error"
   575    },
   576    {
   577      "inputs": [],
   578      "name": "GameNotInProgress",
   579      "type": "error"
   580    },
   581    {
   582      "inputs": [],
   583      "name": "InvalidParent",
   584      "type": "error"
   585    },
   586    {
   587      "inputs": [],
   588      "name": "InvalidPrestate",
   589      "type": "error"
   590    },
   591    {
   592      "inputs": [],
   593      "name": "L1HeadTooOld",
   594      "type": "error"
   595    },
   596    {
   597      "inputs": [],
   598      "name": "OutOfOrderResolution",
   599      "type": "error"
   600    },
   601    {
   602      "inputs": [
   603        {
   604          "internalType": "Claim",
   605          "name": "rootClaim",
   606          "type": "bytes32"
   607        }
   608      ],
   609      "name": "UnexpectedRootClaim",
   610      "type": "error"
   611    },
   612    {
   613      "inputs": [],
   614      "name": "ValidStep",
   615      "type": "error"
   616    }
   617  ]