forked from StellarCheckMate/Checkmate-Escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.rs
More file actions
25 lines (24 loc) · 910 Bytes
/
Copy patherrors.rs
File metadata and controls
25 lines (24 loc) · 910 Bytes
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
use soroban_sdk::contracterror;
#[contracterror]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Error {
/// Caller is not the authorized oracle submitter.
Unauthorized = 1,
/// A result has already been submitted for this match.
AlreadySubmitted = 2,
/// No result has been submitted for the requested match.
ResultNotFound = 3,
/// The contract has already been initialized.
AlreadyInitialized = 4,
/// The contract is paused and not accepting submissions.
ContractPaused = 5,
InvalidGameId = 6,
/// Batch exceeds the maximum allowed size (100 entries).
BatchTooLarge = 7,
/// Batch contains duplicate match_ids.
BatchDuplicateEntry = 8,
/// Oracle has exceeded its hourly or daily submission rate limit.
RateLimitExceeded = 9,
/// Rate limit values supplied to `set_oracle_rate_limits` are invalid.
InvalidRateLimit = 10,
}