pub enum Action {
Show 23 variants
Order {
orders: Vec<OrderItem>,
},
Oracle {
oracles: Vec<OraclePrice>,
},
PythOracle {
oracles: Vec<PythOraclePrice>,
},
Faucet(Faucet),
UpdateUserSettings(UserSettings),
AgentWalletCreation(AgentWallet),
WhitelistFaucet(WhitelistFaucet),
CreateSubAccount(CreateSubAccount),
RemoveSubAccount(RemoveSubAccount),
RenameSubAccount(RenameSubAccount),
Transfer(Transfer),
Withdraw(Withdraw),
WithdrawLockRecover(WithdrawLockRecover),
CreateMultisig(CreateMultisig),
MultisigPropose(MultisigPropose),
MultisigApprove(MultisigApprove),
MultisigReject(MultisigReject),
MultisigCancel(MultisigCancel),
MultisigExecute(MultisigExecute),
UpdateMultisigPolicy(UpdateMultisigPolicy),
ApproveCommissionFee(ApproveCommissionFee),
RevokeCommissionFee(RevokeCommissionFee),
UpdateLiquidatorConfig(LiquidatorConfig),
}Expand description
Transaction action type
Variants§
Order
Order operations (place, cancel, cancel all)
Oracle
Oracle price updates (px)
Fields
§
oracles: Vec<OraclePrice>PythOracle
Batch Pyth oracle updates (o)
Fields
§
oracles: Vec<PythOraclePrice>Faucet(Faucet)
Request testnet funds
UpdateUserSettings(UserSettings)
Update user settings
AgentWalletCreation(AgentWallet)
Agent wallet management
WhitelistFaucet(WhitelistFaucet)
Whitelist faucet access for an account (admin)
CreateSubAccount(CreateSubAccount)
Create a named sub-account (optional initial margin transfer)
RemoveSubAccount(RemoveSubAccount)
Remove a sub-account
RenameSubAccount(RenameSubAccount)
Rename a sub-account
Transfer(Transfer)
Margin transfer between accounts
Withdraw(Withdraw)
Portfolio withdraw
WithdrawLockRecover(WithdrawLockRecover)
Recover a withdraw lock
CreateMultisig(CreateMultisig)
Create a multisig account
MultisigPropose(MultisigPropose)
Propose one or more actions for a multisig account
MultisigApprove(MultisigApprove)
Approve a multisig proposal
MultisigReject(MultisigReject)
Reject a multisig proposal
MultisigCancel(MultisigCancel)
Cancel a multisig proposal
MultisigExecute(MultisigExecute)
Execute a multisig proposal
UpdateMultisigPolicy(UpdateMultisigPolicy)
Update a multisig policy
ApproveCommissionFee(ApproveCommissionFee)
Approve a builder-code recipient
RevokeCommissionFee(RevokeCommissionFee)
Revoke a builder-code recipient
UpdateLiquidatorConfig(LiquidatorConfig)
Update the signing account’s liquidator configuration
Implementations§
Trait Implementations§
Source§impl From<CreateMultisig> for Action
impl From<CreateMultisig> for Action
Source§fn from(action: CreateMultisig) -> Self
fn from(action: CreateMultisig) -> Self
Converts to this type from the input type.
Source§impl From<LiquidatorConfig> for Action
impl From<LiquidatorConfig> for Action
Source§fn from(config: LiquidatorConfig) -> Self
fn from(config: LiquidatorConfig) -> Self
Converts to this type from the input type.
Source§impl From<MultisigApprove> for Action
impl From<MultisigApprove> for Action
Source§fn from(action: MultisigApprove) -> Self
fn from(action: MultisigApprove) -> Self
Converts to this type from the input type.
Source§impl From<MultisigCancel> for Action
impl From<MultisigCancel> for Action
Source§fn from(action: MultisigCancel) -> Self
fn from(action: MultisigCancel) -> Self
Converts to this type from the input type.
Source§impl From<MultisigExecute> for Action
impl From<MultisigExecute> for Action
Source§fn from(action: MultisigExecute) -> Self
fn from(action: MultisigExecute) -> Self
Converts to this type from the input type.
Source§impl From<MultisigPropose> for Action
impl From<MultisigPropose> for Action
Source§fn from(action: MultisigPropose) -> Self
fn from(action: MultisigPropose) -> Self
Converts to this type from the input type.
Source§impl From<MultisigReject> for Action
impl From<MultisigReject> for Action
Source§fn from(action: MultisigReject) -> Self
fn from(action: MultisigReject) -> Self
Converts to this type from the input type.
Source§impl From<RenameSubAccount> for Action
impl From<RenameSubAccount> for Action
Source§fn from(action: RenameSubAccount) -> Self
fn from(action: RenameSubAccount) -> Self
Converts to this type from the input type.
Source§impl From<UpdateMultisigPolicy> for Action
impl From<UpdateMultisigPolicy> for Action
Source§fn from(action: UpdateMultisigPolicy) -> Self
fn from(action: UpdateMultisigPolicy) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more