-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patherror.rs
More file actions
36 lines (34 loc) · 1.21 KB
/
error.rs
File metadata and controls
36 lines (34 loc) · 1.21 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
use steel::*;
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
#[repr(u32)]
pub enum EphemeralVrfError {
#[error("Unauthorized authority")]
Unauthorized = 0,
#[error("Randomness request not found")]
RandomnessRequestNotFound = 1,
#[error("Invalid proof")]
InvalidProof = 2,
#[error("Invalid vrf-macro accounts")]
InvalidCallbackAccounts = 3,
#[error("Queue is full and cannot accept more items")]
QueueFull = 4,
#[error("Invalid queue index")]
InvalidQueueIndex = 5,
#[error("Invalid account data")]
InvalidAccountData = 6,
#[error("Account is already initialized")]
AccountAlreadyInitialized = 7,
#[error("Argument size exceeds the maximum allowed")]
ArgumentSizeTooLarge = 8,
#[error("Oracle is not registered")]
OracleNotRegistered = 9,
#[error("Oracle is not authorized")]
OracleNotAuthorized = 10,
#[error("Queue is not empty - cannot close queue with pending requests")]
QueueNotEmpty = 11,
#[error("Invalid oracle identity")]
InvalidOracleIdentity = 12,
#[error("Oracle must fulfill in a different slot than the request slot")]
OracleMustProvideInDifferentSlot = 13,
}
error!(EphemeralVrfError);