stellar_access/role_transfer/
mod.rs

1//! This module only acts as a utility crate for `Access Control` and `Ownable`.
2//! It is not intended to be used directly.
3
4use soroban_sdk::contracterror;
5
6mod storage;
7
8pub use storage::{accept_transfer, transfer_role};
9
10#[contracterror]
11#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
12#[repr(u32)]
13pub enum RoleTransferError {
14    NoPendingTransfer = 2200,
15    InvalidLiveUntilLedger = 2201,
16    InvalidPendingAccount = 2202,
17}
18
19#[cfg(test)]
20mod test;