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