github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/snapshots/abi/PreimageOracle.json (about) 1 [ 2 { 3 "inputs": [ 4 { 5 "internalType": "uint256", 6 "name": "_minProposalSize", 7 "type": "uint256" 8 }, 9 { 10 "internalType": "uint256", 11 "name": "_challengePeriod", 12 "type": "uint256" 13 } 14 ], 15 "stateMutability": "nonpayable", 16 "type": "constructor" 17 }, 18 { 19 "inputs": [], 20 "name": "KECCAK_TREE_DEPTH", 21 "outputs": [ 22 { 23 "internalType": "uint256", 24 "name": "", 25 "type": "uint256" 26 } 27 ], 28 "stateMutability": "view", 29 "type": "function" 30 }, 31 { 32 "inputs": [], 33 "name": "MAX_LEAF_COUNT", 34 "outputs": [ 35 { 36 "internalType": "uint256", 37 "name": "", 38 "type": "uint256" 39 } 40 ], 41 "stateMutability": "view", 42 "type": "function" 43 }, 44 { 45 "inputs": [], 46 "name": "MIN_BOND_SIZE", 47 "outputs": [ 48 { 49 "internalType": "uint256", 50 "name": "", 51 "type": "uint256" 52 } 53 ], 54 "stateMutability": "view", 55 "type": "function" 56 }, 57 { 58 "inputs": [ 59 { 60 "internalType": "uint256", 61 "name": "_uuid", 62 "type": "uint256" 63 }, 64 { 65 "internalType": "uint256", 66 "name": "_inputStartBlock", 67 "type": "uint256" 68 }, 69 { 70 "internalType": "bytes", 71 "name": "_input", 72 "type": "bytes" 73 }, 74 { 75 "internalType": "bytes32[]", 76 "name": "_stateCommitments", 77 "type": "bytes32[]" 78 }, 79 { 80 "internalType": "bool", 81 "name": "_finalize", 82 "type": "bool" 83 } 84 ], 85 "name": "addLeavesLPP", 86 "outputs": [], 87 "stateMutability": "nonpayable", 88 "type": "function" 89 }, 90 { 91 "inputs": [ 92 { 93 "internalType": "address", 94 "name": "_claimant", 95 "type": "address" 96 }, 97 { 98 "internalType": "uint256", 99 "name": "_uuid", 100 "type": "uint256" 101 }, 102 { 103 "components": [ 104 { 105 "internalType": "bytes", 106 "name": "input", 107 "type": "bytes" 108 }, 109 { 110 "internalType": "uint256", 111 "name": "index", 112 "type": "uint256" 113 }, 114 { 115 "internalType": "bytes32", 116 "name": "stateCommitment", 117 "type": "bytes32" 118 } 119 ], 120 "internalType": "struct PreimageOracle.Leaf", 121 "name": "_postState", 122 "type": "tuple" 123 }, 124 { 125 "internalType": "bytes32[]", 126 "name": "_postStateProof", 127 "type": "bytes32[]" 128 } 129 ], 130 "name": "challengeFirstLPP", 131 "outputs": [], 132 "stateMutability": "nonpayable", 133 "type": "function" 134 }, 135 { 136 "inputs": [ 137 { 138 "internalType": "address", 139 "name": "_claimant", 140 "type": "address" 141 }, 142 { 143 "internalType": "uint256", 144 "name": "_uuid", 145 "type": "uint256" 146 }, 147 { 148 "components": [ 149 { 150 "internalType": "uint64[25]", 151 "name": "state", 152 "type": "uint64[25]" 153 } 154 ], 155 "internalType": "struct LibKeccak.StateMatrix", 156 "name": "_stateMatrix", 157 "type": "tuple" 158 }, 159 { 160 "components": [ 161 { 162 "internalType": "bytes", 163 "name": "input", 164 "type": "bytes" 165 }, 166 { 167 "internalType": "uint256", 168 "name": "index", 169 "type": "uint256" 170 }, 171 { 172 "internalType": "bytes32", 173 "name": "stateCommitment", 174 "type": "bytes32" 175 } 176 ], 177 "internalType": "struct PreimageOracle.Leaf", 178 "name": "_preState", 179 "type": "tuple" 180 }, 181 { 182 "internalType": "bytes32[]", 183 "name": "_preStateProof", 184 "type": "bytes32[]" 185 }, 186 { 187 "components": [ 188 { 189 "internalType": "bytes", 190 "name": "input", 191 "type": "bytes" 192 }, 193 { 194 "internalType": "uint256", 195 "name": "index", 196 "type": "uint256" 197 }, 198 { 199 "internalType": "bytes32", 200 "name": "stateCommitment", 201 "type": "bytes32" 202 } 203 ], 204 "internalType": "struct PreimageOracle.Leaf", 205 "name": "_postState", 206 "type": "tuple" 207 }, 208 { 209 "internalType": "bytes32[]", 210 "name": "_postStateProof", 211 "type": "bytes32[]" 212 } 213 ], 214 "name": "challengeLPP", 215 "outputs": [], 216 "stateMutability": "nonpayable", 217 "type": "function" 218 }, 219 { 220 "inputs": [], 221 "name": "challengePeriod", 222 "outputs": [ 223 { 224 "internalType": "uint256", 225 "name": "challengePeriod_", 226 "type": "uint256" 227 } 228 ], 229 "stateMutability": "view", 230 "type": "function" 231 }, 232 { 233 "inputs": [ 234 { 235 "internalType": "address", 236 "name": "_owner", 237 "type": "address" 238 }, 239 { 240 "internalType": "uint256", 241 "name": "_uuid", 242 "type": "uint256" 243 } 244 ], 245 "name": "getTreeRootLPP", 246 "outputs": [ 247 { 248 "internalType": "bytes32", 249 "name": "treeRoot_", 250 "type": "bytes32" 251 } 252 ], 253 "stateMutability": "view", 254 "type": "function" 255 }, 256 { 257 "inputs": [ 258 { 259 "internalType": "uint256", 260 "name": "_uuid", 261 "type": "uint256" 262 }, 263 { 264 "internalType": "uint32", 265 "name": "_partOffset", 266 "type": "uint32" 267 }, 268 { 269 "internalType": "uint32", 270 "name": "_claimedSize", 271 "type": "uint32" 272 } 273 ], 274 "name": "initLPP", 275 "outputs": [], 276 "stateMutability": "payable", 277 "type": "function" 278 }, 279 { 280 "inputs": [ 281 { 282 "internalType": "uint256", 283 "name": "_z", 284 "type": "uint256" 285 }, 286 { 287 "internalType": "uint256", 288 "name": "_y", 289 "type": "uint256" 290 }, 291 { 292 "internalType": "bytes", 293 "name": "_commitment", 294 "type": "bytes" 295 }, 296 { 297 "internalType": "bytes", 298 "name": "_proof", 299 "type": "bytes" 300 }, 301 { 302 "internalType": "uint256", 303 "name": "_partOffset", 304 "type": "uint256" 305 } 306 ], 307 "name": "loadBlobPreimagePart", 308 "outputs": [], 309 "stateMutability": "nonpayable", 310 "type": "function" 311 }, 312 { 313 "inputs": [ 314 { 315 "internalType": "uint256", 316 "name": "_partOffset", 317 "type": "uint256" 318 }, 319 { 320 "internalType": "bytes", 321 "name": "_preimage", 322 "type": "bytes" 323 } 324 ], 325 "name": "loadKeccak256PreimagePart", 326 "outputs": [], 327 "stateMutability": "nonpayable", 328 "type": "function" 329 }, 330 { 331 "inputs": [ 332 { 333 "internalType": "uint256", 334 "name": "_ident", 335 "type": "uint256" 336 }, 337 { 338 "internalType": "bytes32", 339 "name": "_localContext", 340 "type": "bytes32" 341 }, 342 { 343 "internalType": "bytes32", 344 "name": "_word", 345 "type": "bytes32" 346 }, 347 { 348 "internalType": "uint256", 349 "name": "_size", 350 "type": "uint256" 351 }, 352 { 353 "internalType": "uint256", 354 "name": "_partOffset", 355 "type": "uint256" 356 } 357 ], 358 "name": "loadLocalData", 359 "outputs": [ 360 { 361 "internalType": "bytes32", 362 "name": "key_", 363 "type": "bytes32" 364 } 365 ], 366 "stateMutability": "nonpayable", 367 "type": "function" 368 }, 369 { 370 "inputs": [ 371 { 372 "internalType": "uint256", 373 "name": "_partOffset", 374 "type": "uint256" 375 }, 376 { 377 "internalType": "address", 378 "name": "_precompile", 379 "type": "address" 380 }, 381 { 382 "internalType": "bytes", 383 "name": "_input", 384 "type": "bytes" 385 } 386 ], 387 "name": "loadPrecompilePreimagePart", 388 "outputs": [], 389 "stateMutability": "nonpayable", 390 "type": "function" 391 }, 392 { 393 "inputs": [ 394 { 395 "internalType": "uint256", 396 "name": "_partOffset", 397 "type": "uint256" 398 }, 399 { 400 "internalType": "bytes", 401 "name": "_preimage", 402 "type": "bytes" 403 } 404 ], 405 "name": "loadSha256PreimagePart", 406 "outputs": [], 407 "stateMutability": "nonpayable", 408 "type": "function" 409 }, 410 { 411 "inputs": [], 412 "name": "minProposalSize", 413 "outputs": [ 414 { 415 "internalType": "uint256", 416 "name": "minProposalSize_", 417 "type": "uint256" 418 } 419 ], 420 "stateMutability": "view", 421 "type": "function" 422 }, 423 { 424 "inputs": [ 425 { 426 "internalType": "bytes32", 427 "name": "", 428 "type": "bytes32" 429 } 430 ], 431 "name": "preimageLengths", 432 "outputs": [ 433 { 434 "internalType": "uint256", 435 "name": "", 436 "type": "uint256" 437 } 438 ], 439 "stateMutability": "view", 440 "type": "function" 441 }, 442 { 443 "inputs": [ 444 { 445 "internalType": "bytes32", 446 "name": "", 447 "type": "bytes32" 448 }, 449 { 450 "internalType": "uint256", 451 "name": "", 452 "type": "uint256" 453 } 454 ], 455 "name": "preimagePartOk", 456 "outputs": [ 457 { 458 "internalType": "bool", 459 "name": "", 460 "type": "bool" 461 } 462 ], 463 "stateMutability": "view", 464 "type": "function" 465 }, 466 { 467 "inputs": [ 468 { 469 "internalType": "bytes32", 470 "name": "", 471 "type": "bytes32" 472 }, 473 { 474 "internalType": "uint256", 475 "name": "", 476 "type": "uint256" 477 } 478 ], 479 "name": "preimageParts", 480 "outputs": [ 481 { 482 "internalType": "bytes32", 483 "name": "", 484 "type": "bytes32" 485 } 486 ], 487 "stateMutability": "view", 488 "type": "function" 489 }, 490 { 491 "inputs": [ 492 { 493 "internalType": "address", 494 "name": "", 495 "type": "address" 496 }, 497 { 498 "internalType": "uint256", 499 "name": "", 500 "type": "uint256" 501 }, 502 { 503 "internalType": "uint256", 504 "name": "", 505 "type": "uint256" 506 } 507 ], 508 "name": "proposalBlocks", 509 "outputs": [ 510 { 511 "internalType": "uint64", 512 "name": "", 513 "type": "uint64" 514 } 515 ], 516 "stateMutability": "view", 517 "type": "function" 518 }, 519 { 520 "inputs": [ 521 { 522 "internalType": "address", 523 "name": "_claimant", 524 "type": "address" 525 }, 526 { 527 "internalType": "uint256", 528 "name": "_uuid", 529 "type": "uint256" 530 } 531 ], 532 "name": "proposalBlocksLen", 533 "outputs": [ 534 { 535 "internalType": "uint256", 536 "name": "len_", 537 "type": "uint256" 538 } 539 ], 540 "stateMutability": "view", 541 "type": "function" 542 }, 543 { 544 "inputs": [ 545 { 546 "internalType": "address", 547 "name": "", 548 "type": "address" 549 }, 550 { 551 "internalType": "uint256", 552 "name": "", 553 "type": "uint256" 554 } 555 ], 556 "name": "proposalBonds", 557 "outputs": [ 558 { 559 "internalType": "uint256", 560 "name": "", 561 "type": "uint256" 562 } 563 ], 564 "stateMutability": "view", 565 "type": "function" 566 }, 567 { 568 "inputs": [ 569 { 570 "internalType": "address", 571 "name": "", 572 "type": "address" 573 }, 574 { 575 "internalType": "uint256", 576 "name": "", 577 "type": "uint256" 578 }, 579 { 580 "internalType": "uint256", 581 "name": "", 582 "type": "uint256" 583 } 584 ], 585 "name": "proposalBranches", 586 "outputs": [ 587 { 588 "internalType": "bytes32", 589 "name": "", 590 "type": "bytes32" 591 } 592 ], 593 "stateMutability": "view", 594 "type": "function" 595 }, 596 { 597 "inputs": [], 598 "name": "proposalCount", 599 "outputs": [ 600 { 601 "internalType": "uint256", 602 "name": "count_", 603 "type": "uint256" 604 } 605 ], 606 "stateMutability": "view", 607 "type": "function" 608 }, 609 { 610 "inputs": [ 611 { 612 "internalType": "address", 613 "name": "", 614 "type": "address" 615 }, 616 { 617 "internalType": "uint256", 618 "name": "", 619 "type": "uint256" 620 } 621 ], 622 "name": "proposalMetadata", 623 "outputs": [ 624 { 625 "internalType": "LPPMetaData", 626 "name": "", 627 "type": "bytes32" 628 } 629 ], 630 "stateMutability": "view", 631 "type": "function" 632 }, 633 { 634 "inputs": [ 635 { 636 "internalType": "address", 637 "name": "", 638 "type": "address" 639 }, 640 { 641 "internalType": "uint256", 642 "name": "", 643 "type": "uint256" 644 } 645 ], 646 "name": "proposalParts", 647 "outputs": [ 648 { 649 "internalType": "bytes32", 650 "name": "", 651 "type": "bytes32" 652 } 653 ], 654 "stateMutability": "view", 655 "type": "function" 656 }, 657 { 658 "inputs": [ 659 { 660 "internalType": "uint256", 661 "name": "", 662 "type": "uint256" 663 } 664 ], 665 "name": "proposals", 666 "outputs": [ 667 { 668 "internalType": "address", 669 "name": "claimant", 670 "type": "address" 671 }, 672 { 673 "internalType": "uint256", 674 "name": "uuid", 675 "type": "uint256" 676 } 677 ], 678 "stateMutability": "view", 679 "type": "function" 680 }, 681 { 682 "inputs": [ 683 { 684 "internalType": "bytes32", 685 "name": "_key", 686 "type": "bytes32" 687 }, 688 { 689 "internalType": "uint256", 690 "name": "_offset", 691 "type": "uint256" 692 } 693 ], 694 "name": "readPreimage", 695 "outputs": [ 696 { 697 "internalType": "bytes32", 698 "name": "dat_", 699 "type": "bytes32" 700 }, 701 { 702 "internalType": "uint256", 703 "name": "datLen_", 704 "type": "uint256" 705 } 706 ], 707 "stateMutability": "view", 708 "type": "function" 709 }, 710 { 711 "inputs": [ 712 { 713 "internalType": "address", 714 "name": "_claimant", 715 "type": "address" 716 }, 717 { 718 "internalType": "uint256", 719 "name": "_uuid", 720 "type": "uint256" 721 }, 722 { 723 "components": [ 724 { 725 "internalType": "uint64[25]", 726 "name": "state", 727 "type": "uint64[25]" 728 } 729 ], 730 "internalType": "struct LibKeccak.StateMatrix", 731 "name": "_stateMatrix", 732 "type": "tuple" 733 }, 734 { 735 "components": [ 736 { 737 "internalType": "bytes", 738 "name": "input", 739 "type": "bytes" 740 }, 741 { 742 "internalType": "uint256", 743 "name": "index", 744 "type": "uint256" 745 }, 746 { 747 "internalType": "bytes32", 748 "name": "stateCommitment", 749 "type": "bytes32" 750 } 751 ], 752 "internalType": "struct PreimageOracle.Leaf", 753 "name": "_preState", 754 "type": "tuple" 755 }, 756 { 757 "internalType": "bytes32[]", 758 "name": "_preStateProof", 759 "type": "bytes32[]" 760 }, 761 { 762 "components": [ 763 { 764 "internalType": "bytes", 765 "name": "input", 766 "type": "bytes" 767 }, 768 { 769 "internalType": "uint256", 770 "name": "index", 771 "type": "uint256" 772 }, 773 { 774 "internalType": "bytes32", 775 "name": "stateCommitment", 776 "type": "bytes32" 777 } 778 ], 779 "internalType": "struct PreimageOracle.Leaf", 780 "name": "_postState", 781 "type": "tuple" 782 }, 783 { 784 "internalType": "bytes32[]", 785 "name": "_postStateProof", 786 "type": "bytes32[]" 787 } 788 ], 789 "name": "squeezeLPP", 790 "outputs": [], 791 "stateMutability": "nonpayable", 792 "type": "function" 793 }, 794 { 795 "inputs": [], 796 "name": "version", 797 "outputs": [ 798 { 799 "internalType": "string", 800 "name": "", 801 "type": "string" 802 } 803 ], 804 "stateMutability": "view", 805 "type": "function" 806 }, 807 { 808 "inputs": [ 809 { 810 "internalType": "uint256", 811 "name": "", 812 "type": "uint256" 813 } 814 ], 815 "name": "zeroHashes", 816 "outputs": [ 817 { 818 "internalType": "bytes32", 819 "name": "", 820 "type": "bytes32" 821 } 822 ], 823 "stateMutability": "view", 824 "type": "function" 825 }, 826 { 827 "inputs": [], 828 "name": "ActiveProposal", 829 "type": "error" 830 }, 831 { 832 "inputs": [], 833 "name": "AlreadyFinalized", 834 "type": "error" 835 }, 836 { 837 "inputs": [], 838 "name": "BadProposal", 839 "type": "error" 840 }, 841 { 842 "inputs": [], 843 "name": "BondTransferFailed", 844 "type": "error" 845 }, 846 { 847 "inputs": [], 848 "name": "InsufficientBond", 849 "type": "error" 850 }, 851 { 852 "inputs": [], 853 "name": "InvalidInputSize", 854 "type": "error" 855 }, 856 { 857 "inputs": [], 858 "name": "InvalidPreimage", 859 "type": "error" 860 }, 861 { 862 "inputs": [], 863 "name": "InvalidProof", 864 "type": "error" 865 }, 866 { 867 "inputs": [], 868 "name": "NotEOA", 869 "type": "error" 870 }, 871 { 872 "inputs": [], 873 "name": "NotInitialized", 874 "type": "error" 875 }, 876 { 877 "inputs": [], 878 "name": "PartOffsetOOB", 879 "type": "error" 880 }, 881 { 882 "inputs": [], 883 "name": "PostStateMatches", 884 "type": "error" 885 }, 886 { 887 "inputs": [], 888 "name": "StatesNotContiguous", 889 "type": "error" 890 }, 891 { 892 "inputs": [], 893 "name": "TreeSizeOverflow", 894 "type": "error" 895 }, 896 { 897 "inputs": [], 898 "name": "WrongStartingBlock", 899 "type": "error" 900 } 901 ]