github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/src/cannon/libraries/CannonErrors.sol (about) 1 // SPDX-License-Identifier: MIT 2 pragma solidity 0.8.15; 3 4 /// @notice Thrown when a passed part offset is out of bounds. 5 error PartOffsetOOB(); 6 7 /// @notice Thrown when a merkle proof fails to verify. 8 error InvalidProof(); 9 10 /// @notice Thrown when the prestate preimage doesn't match the claimed preimage. 11 error InvalidPreimage(); 12 13 /// @notice Thrown when a leaf with an invalid input size is added. 14 error InvalidInputSize(); 15 16 /// @notice Thrown when data is submitted out of order in a large preimage proposal. 17 error WrongStartingBlock(); 18 19 /// @notice Thrown when the pre and post states passed aren't contiguous. 20 error StatesNotContiguous(); 21 22 /// @notice Thrown when the permutation yields the expected result. 23 error PostStateMatches(); 24 25 /// @notice Thrown when the preimage is too large to fit in the tree. 26 error TreeSizeOverflow(); 27 28 /// @notice Thrown when the preimage proposal has already been finalized. 29 error AlreadyFinalized(); 30 31 /// @notice Thrown when the proposal has not matured past the challenge period. 32 error ActiveProposal(); 33 34 /// @notice Thrown when attempting to finalize a proposal that has been challenged. 35 error BadProposal(); 36 37 /// @notice Thrown when attempting to add leaves to a preimage proposal that has not been initialized. 38 error NotInitialized(); 39 40 /// @notice Thrown when the caller of a function is not an EOA. 41 error NotEOA(); 42 43 /// @notice Thrown when an insufficient bond is provided for a large preimage proposal. 44 error InsufficientBond(); 45 46 /// @notice Thrown when a bond transfer fails. 47 error BondTransferFailed();