Enum stable_swap::instruction::AdminInstruction
source · [−]#[repr(C)]
pub enum AdminInstruction {
RampA(RampAData),
StopRampA,
Pause,
Unpause,
SetFeeAccount,
ApplyNewAdmin,
CommitNewAdmin,
SetNewFees(Fees),
}
Expand description
Admin only instructions.
Variants
RampA(RampAData)
Starts a ramp of A to the next value.
[writable]
StableSwap[signer]
Admin account
StopRampA
Cancels the pending ramp of A.
[writable]
StableSwap[signer]
Admin account
Pause
Pauses swap, deposit, and withdraw_one.
[writable]
StableSwap[signer]
Admin account
Unpause
Unpauses the swap.
[writable]
StableSwap[signer]
Admin account
SetFeeAccount
Sets the account that receives admin fees.
[writable]
StableSwap[signer]
Admin account[]
Token account to receive fees. Must have mint of Token A or Token B.
ApplyNewAdmin
Finalizes the admin transfer. This is run after CommitNewAdmin.
[writable]
StableSwap[signer]
Admin account
CommitNewAdmin
Commits a new admin. The admin must accept ownership within 3 days.
[writable]
StableSwap[signer]
Admin account[]
New admin account
SetNewFees(Fees)
Updates the swap fees.
[writable]
StableSwap[signer]
Admin account
Implementations
Trait Implementations
sourceimpl Clone for AdminInstruction
impl Clone for AdminInstruction
sourcefn clone(&self) -> AdminInstruction
fn clone(&self) -> AdminInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AdminInstruction
impl Debug for AdminInstruction
sourceimpl PartialEq<AdminInstruction> for AdminInstruction
impl PartialEq<AdminInstruction> for AdminInstruction
sourcefn eq(&self, other: &AdminInstruction) -> bool
fn eq(&self, other: &AdminInstruction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AdminInstruction) -> bool
fn ne(&self, other: &AdminInstruction) -> bool
This method tests for !=
.
impl Copy for AdminInstruction
impl StructuralPartialEq for AdminInstruction
Auto Trait Implementations
impl RefUnwindSafe for AdminInstruction
impl Send for AdminInstruction
impl Sync for AdminInstruction
impl Unpin for AdminInstruction
impl UnwindSafe for AdminInstruction
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more