#[repr(u8)]pub enum LighterTxType {
Show 43 variants
Empty = 0,
L1Deposit = 1,
L1ChangePubKey = 2,
L1CreateMarket = 3,
L1UpdateMarket = 4,
L1CancelAllOrders = 5,
L1Withdraw = 6,
L1CreateOrder = 7,
ChangePubKey = 8,
CreateSubAccount = 9,
CreatePublicPool = 10,
UpdatePublicPool = 11,
Transfer = 12,
Withdraw = 13,
CreateOrder = 14,
CancelOrder = 15,
CancelAllOrders = 16,
ModifyOrder = 17,
MintShares = 18,
BurnShares = 19,
UpdateLeverage = 20,
InternalClaimOrder = 21,
InternalCancelOrder = 22,
InternalDeleverage = 23,
InternalExitPosition = 24,
InternalCancelAllOrders = 25,
InternalLiquidatePosition = 26,
InternalCreateOrder = 27,
CreateGroupedOrders = 28,
UpdateMargin = 29,
L1BurnShares = 30,
L1RegisterAsset = 31,
L1UpdateAsset = 32,
CreateStakingPool = 33,
StakeAssets = 35,
UnstakeAssets = 36,
L1UnstakeAssets = 37,
L1SetSystemConfig = 38,
ForceBurnShares = 40,
UpdateAccountConfig = 41,
StrategyTransfer = 43,
UpdateMarketConfig = 44,
ApproveIntegrator = 45,
}Expand description
Lighter L2 transaction-type discriminants.
These are the tx_type values the venue accepts on sendTx / sendTxBatch.
Numeric values are wire-format and must match the venue spec.
Variants§
Empty = 0
L1Deposit = 1
L1ChangePubKey = 2
L1CreateMarket = 3
L1UpdateMarket = 4
L1CancelAllOrders = 5
L1Withdraw = 6
L1CreateOrder = 7
ChangePubKey = 8
CreateSubAccount = 9
CreatePublicPool = 10
UpdatePublicPool = 11
Transfer = 12
Withdraw = 13
CreateOrder = 14
CancelOrder = 15
CancelAllOrders = 16
ModifyOrder = 17
UpdateLeverage = 20
InternalClaimOrder = 21
InternalCancelOrder = 22
InternalDeleverage = 23
InternalExitPosition = 24
InternalCancelAllOrders = 25
InternalLiquidatePosition = 26
InternalCreateOrder = 27
CreateGroupedOrders = 28
UpdateMargin = 29
L1RegisterAsset = 31
L1UpdateAsset = 32
CreateStakingPool = 33
StakeAssets = 35
UnstakeAssets = 36
L1UnstakeAssets = 37
L1SetSystemConfig = 38
UpdateAccountConfig = 41
StrategyTransfer = 43
UpdateMarketConfig = 44
ApproveIntegrator = 45
Trait Implementations§
Source§impl AsRef<str> for LighterTxType
impl AsRef<str> for LighterTxType
Source§impl Clone for LighterTxType
impl Clone for LighterTxType
Source§fn clone(&self) -> LighterTxType
fn clone(&self) -> LighterTxType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LighterTxType
Source§impl Debug for LighterTxType
impl Debug for LighterTxType
Source§impl<'de> Deserialize<'de> for LighterTxType
impl<'de> Deserialize<'de> for LighterTxType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LighterTxType
impl Display for LighterTxType
impl Eq for LighterTxType
Source§impl Hash for LighterTxType
impl Hash for LighterTxType
Source§impl PartialEq for LighterTxType
impl PartialEq for LighterTxType
Source§fn eq(&self, other: &LighterTxType) -> bool
fn eq(&self, other: &LighterTxType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LighterTxType
impl Serialize for LighterTxType
impl StructuralPartialEq for LighterTxType
Auto Trait Implementations§
impl Freeze for LighterTxType
impl RefUnwindSafe for LighterTxType
impl Send for LighterTxType
impl Sync for LighterTxType
impl Unpin for LighterTxType
impl UnsafeUnpin for LighterTxType
impl UnwindSafe for LighterTxType
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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