forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.rs
More file actions
39 lines (32 loc) · 1.02 KB
/
Copy patherrors.rs
File metadata and controls
39 lines (32 loc) · 1.02 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
use soroban_sdk::contracterror;
#[contracterror]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Error {
AlreadyInitialized = 1,
NotInitialized = 2,
Unauthorized = 3,
InvalidAmount = 4,
InvalidFeeBps = 5,
SplitNotFound = 6,
SplitNotPending = 7,
SplitNotReady = 8,
TreasuryNotSet = 9,
/// The maximum number of participants for this escrow has been reached.
ParticipantCapExceeded = 10,
InvalidVersion = 11,
InvalidInput = 12,
EscrowNotActive = 13,
SplitNotActive = 14,
InvalidMetadata = 15,
ParticipantNotOwed = 16,
InsufficientFulfillment = 17,
TotalAmountMismatch = 18,
/// A state-changing operation was attempted while the contract is paused.
ContractPaused = 19,
/// An unpause step was attempted while the contract is not paused.
NotPaused = 20,
/// `unpause` was called without a prior `schedule_unpause`.
UnpauseNotScheduled = 21,
/// `unpause` was called before the 48-hour timelock elapsed.
TimelockNotElapsed = 22,
}