-
Notifications
You must be signed in to change notification settings - Fork 613
Expand file tree
/
Copy pathErrors.sol
More file actions
65 lines (60 loc) · 2.42 KB
/
Copy pathErrors.sol
File metadata and controls
65 lines (60 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// SPDX-License-Identifier: Apache-2.0
// Copyright 2023 Aztec Labs.
pragma solidity >=0.8.18;
/**
* @title Errors Library
* @author Aztec Labs
* @notice Library that contains errors used throughout the Aztec protocol
* Errors are prefixed with the contract name to make it easy to identify where the error originated
* when there are multiple contracts that could have thrown the error.
*/
library Errors {
// Inbox
error Inbox__DeadlineBeforeNow(); // 0xbf94a5dc
error Inbox__NotPastDeadline(); //0x3218ad9e
error Inbox__PastDeadline(); // 0x1eb114ea
error Inbox__InvalidVersion(uint256 entry, uint256 rollup); // 0x60be5dca
error Inbox__FeeTooHigh(); // 0x6f478f42
error Inbox__FailedToWithdrawFees(); // 0xbc66d464
error Inbox__Unauthorized(); // 0xe5336a6b
error Inbox__NothingToConsume(bytes32 entryKey); // 0xdd7e995e
error Inbox__IncompatibleEntryArguments(
bytes32 entryKey,
uint64 storedFee,
uint64 feePassed,
uint32 storedVersion,
uint32 versionPassed,
uint32 storedDeadline,
uint32 deadlinePassed
); // 0xd483d8f2
error Inbox__ActorTooLarge(bytes32 actor); // 0xa776a06e
error Inbox__ContentTooLarge(bytes32 content); // 0x47452014
error Inbox__SecretHashTooLarge(bytes32 secretHash); // 0xecde7e2c
// Outbox
error Outbox__Unauthorized(); // 0x2c9490c2
error Outbox__InvalidChainId(); // 0x577ec7c4
error Outbox__InvalidVersion(uint256 entry, uint256 message); // 0x7915cac3
error Outbox__NothingToConsume(bytes32 entryKey); // 0xfb4fb506
error Outbox__IncompatibleEntryArguments(
bytes32 entryKey,
uint64 storedFee,
uint64 feePassed,
uint32 storedVersion,
uint32 versionPassed,
uint32 storedDeadline,
uint32 deadlinePassed
); // 0x5e789f34
// Rollup
error Rollup__InvalidArchive(bytes32 expected, bytes32 actual); // 0xb682a40e
error Rollup__InvalidProof(); // 0xa5b2ba17
error Rollup__InvalidChainId(uint256 expected, uint256 actual); // 0x37b5bc12
error Rollup__InvalidVersion(uint256 expected, uint256 actual); // 0x9ef30794
error Rollup__TimestampInFuture(); // 0xbc1ce916
error Rollup__TimestampTooOld(); // 0x72ed9c81
error Rollup__UnavailableTxs(bytes32 txsHash); // 0x414906c3
// Registry
error Registry__RollupNotRegistered(address rollup); // 0xa1fee4cf
error Registry__RollupAlreadyRegistered(address rollup); // 0x3c34eabf
// HeaderLib
error HeaderLib__InvalidHeaderSize(uint256 expected, uint256 actual); // 0xf3ccb247
}