-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrors.sol
More file actions
125 lines (87 loc) · 2.54 KB
/
Errors.sol
File metadata and controls
125 lines (87 loc) · 2.54 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// SPDX-License-Identifier: MIT
pragma solidity =0.8.25;
library ErrorLib {
// @dev Error thrown when renounceOwnership is called
// 0x2fab92ca
error OwnershipCannotBeRenounced();
/// @dev Thrown if trying to receive ussuported token type
// 0xc6de466a
error UnsupportedType();
/// @dev Thrown if trying to receive invalid token
// 0x6d5f86d5
error InvalidTokenReceived();
/// @dev Thrown if trying to receive unsupported token
// 0x6a172882
error UnsupportedToken();
/// @dev Thrown if caller is invalid
// 0x6a172882
error InvalidCaller(address caller, address expectedCaller);
/// @dev Thrown if data cap transfer failed
// 0x728dfdbb
error DataCapTransferFailed();
/// @dev Thrown if allocation request is invalid
// 0x46ac3f35
error InvalidAllocationRequest();
// 0xc5271dad
error AllocationFailed();
// 0xd0d9169a
error StorageEntityAlreadyExists();
// 0x87afb878
error StorageProviderAlreadyUsed();
// 0xe300f557
error CallerIsNotAllocator();
// 0xac57b77e
error CallerIsNotStorageEntity();
// 0xdaec9bb7
error CallerIsNoOwnerOrStorageEntity();
// 0x6db2465f
error CallerIsNotOwner();
// 0xe9211a00
error CallerIsNotOwnerOrAllocator();
// 0xa6d5c1f0
error StorageEntityDoesNotExist();
// 0x0e7d9cac
error NotEnoughActiveStorageEntities();
// 0x391fe496
error NotEnoughStorageEntities();
// 0xafa2b48b
error InvalidReplicaSize();
// 0x2b3bc985
error InsufficientCollateral(uint256);
// 0x449e70a5
error NotEnoughAllocationData();
// 0xed3c247c
error InvalidClaim();
// 0xc9bab621
error CollateralAlreadyClaimed();
// 0x08ebe172
error GetClaimsFailed();
// 0x17076eb1
error IncompleteProviderClaims(uint64);
// 0xe9d8d821
error CallerIsNotEOA();
// 0x25a87396
error InvalidPackageId();
// 0xc6b1bc18
error InvalidCollateralPerCID();
// 0x453684ba
error InvalidMinRequiredStorageProviders();
// 0x3a4735aa
error InvalidTopLevelArray();
// 0xccfa6de2
error InvalidFirstElement();
// 0x87537aa0
error InvalidSecondElement();
// 0xe5f19a39
error InvalidThirdElement();
// 0x3c29cbb6
error NotPendingOwner(address caller, address pendingOwner);
// 0xf6b2911f
error InvalidZeroAddress();
// 0xa40d5a3b
error InvalidDataCapTermMaxDays();
// 0x35278d12
error Overflow();
// 0x8865bd93
error StorageProviderNotAssignedToEntity();
}