1use steel::*;
2
3#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
4#[repr(u32)]
5pub enum OreError {
6 #[error("The epoch has ended and needs reset")]
7 NeedsReset = 0,
8 #[error("The provided hash is invalid")]
9 HashInvalid = 1,
10 #[error("The provided hash did not satisfy the minimum required difficulty")]
11 HashTooEasy = 2,
12 #[error("The claim amount cannot be greater than the claimable rewards")]
13 ClaimTooLarge = 3,
14 #[error("The clock time is invalid")]
15 ClockInvalid = 4,
16 #[error("You are trying to submit too soon")]
17 Spam = 5,
18 #[error("The maximum supply has been reached")]
19 MaxSupply = 6,
20 #[error("The proof does not match the expected account")]
21 AuthFailed = 7,
22}
23
24error!(OreError);