ex3_node_types::transaction

Enum TransactionType

Source
pub enum TransactionType {
Show 38 variants WalletRegister = 100, Deposit = 200, Withdrawal = 201, ForceWithdrawal = 202, WithdrawalV2 = 203, Transfer = 300, ResetMainSecret = 400, CreateApiSecret = 401, DestroyApiSecret = 402, SubmitSpotOrder = 500, CancelSpotOrder = 501, AddAmmV2Liquidity = 600, RemoveAmmV2Liquidity = 601, RegisterAsset = 700, UpdateGlobalWithdrawalFeeTo = 701, UpdateAssetWithdrawalFeeTo = 702, UpdateChainConfirmationTimes = 800, RegisterSpotMarket = 900, UpdateSpotMarketTradingSettings = 901, UpdateSpotMarketInitialFeeTo = 902, UpdateSpotMarketFeeTo = 903, UpdateSpotMarketInitialTradingFee = 904, UpdateSpotMarketTradingFee = 905, ClaimSpotMarketTradingFee = 906, UpdateSpotMarketRoyalty = 907, ClaimSpotMarketRoyalty = 908, AssetAccountBinding = 1_000, AssetAccountUnbinding = 1_001, SubmitMemeOrder = 1002, CancelMemeOrder = 1_101, RegisterMemeMarket = 1_200, UpdateMemeMarketInitialTradingSettings = 1_201, UpdateMemeMarketTradingSettings = 1_202, UpdateMemeMarketInitialFeeTo = 1_203, UpdateMemeMarketFeeTo = 1_204, UpdateMemeMarketInitialTradingFee = 1_205, UpdateMemeMarketTradingFee = 1_206, ClaimMemeMarketTradingFee = 1_207,
}
Expand description

Transaction type.

Variants§

§

WalletRegister = 100

Wallet register.

§

Deposit = 200

Deposit.

§

Withdrawal = 201

Withdrawal.

§

ForceWithdrawal = 202

Force withdrawal.

§

WithdrawalV2 = 203

Withdrawal.

§

Transfer = 300

Transfer.

§

ResetMainSecret = 400

Reset main secret.

§

CreateApiSecret = 401

Create API secret.

§

DestroyApiSecret = 402

Destroy API secret.

§

SubmitSpotOrder = 500

Submit spot order.

§

CancelSpotOrder = 501

Cancel spot order.

§

AddAmmV2Liquidity = 600

Add spot liquidity.

§

RemoveAmmV2Liquidity = 601

Remove spot liquidity.

§

RegisterAsset = 700

Register asset

§

UpdateGlobalWithdrawalFeeTo = 701

Update global withdrawal fee to

§

UpdateAssetWithdrawalFeeTo = 702

Update asset withdrawal fee to

§

UpdateChainConfirmationTimes = 800

Update chain confirmation times

§

RegisterSpotMarket = 900

Register spot market

§

UpdateSpotMarketTradingSettings = 901

Update spot market trading settings

§

UpdateSpotMarketInitialFeeTo = 902

Update spot market initial fee to

§

UpdateSpotMarketFeeTo = 903

Update spot market fee to

§

UpdateSpotMarketInitialTradingFee = 904

Update spot market initial trading fee

§

UpdateSpotMarketTradingFee = 905

Update spot market trading fee

§

ClaimSpotMarketTradingFee = 906

Claim spot market trading fee

§

UpdateSpotMarketRoyalty = 907

Update spot market royalty

§

ClaimSpotMarketRoyalty = 908

Claim spot market royalty

§

AssetAccountBinding = 1_000

Asset account binding

§

AssetAccountUnbinding = 1_001

Asset account unbinding

§

SubmitMemeOrder = 1002

Submit meme order.

§

CancelMemeOrder = 1_101

Cancel meme order.

§

RegisterMemeMarket = 1_200

Register meme market

§

UpdateMemeMarketInitialTradingSettings = 1_201

Update meme market initial trading settings

§

UpdateMemeMarketTradingSettings = 1_202

Update meme market trading settings

§

UpdateMemeMarketInitialFeeTo = 1_203

Update meme market initial fee to

§

UpdateMemeMarketFeeTo = 1_204

Update meme market fee to

§

UpdateMemeMarketInitialTradingFee = 1_205

Update meme market initial trading fee

§

UpdateMemeMarketTradingFee = 1_206

Update meme market trading fee

§

ClaimMemeMarketTradingFee = 1_207

Claim meme market trading fee

Implementations§

Trait Implementations§

Source§

impl Clone for TransactionType

Source§

fn clone(&self) -> TransactionType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransactionType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TransactionType

Source§

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 From<BigUint> for TransactionType

Source§

fn from(value: BigUint) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for TransactionType

Source§

fn from(value: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for TransactionType

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for TransactionType

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl Hash for TransactionType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Into<BigUint> for TransactionType

Source§

fn into(self) -> BigUint

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for TransactionType

Source§

fn eq(&self, other: &TransactionType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TransactionType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for TransactionType

Source§

impl Eq for TransactionType

Source§

impl StructuralPartialEq for TransactionType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,