pub enum TokenType {
Native = 0,
NativeGas = 1,
ERC20 = 3,
ERC721 = 4,
DFT = 5,
ICRC1 = 6,
BRC20 = 7,
SPLToken = 8,
TRC20 = 9,
Jetton = 10,
}Expand description
Token type
Variants§
Native = 0
NativeGas = 1
ERC20 = 3
EVM fungible token type
ERC721 = 4
EVM non-fungible token type
DFT = 5
Dfinity token [DFT] standard
ICRC1 = 6
Dfinity token [ICRC1] standard
BRC20 = 7
BRC20
BRC20 is the fungible token type of ordinal protocol (bitcoin)
SPLToken = 8
SPL token
SPL token is the fungible token type of Solana
TRC20 = 9
TRC20
TRC20 is the fungible token type of Tron
Jetton = 10
Jetton
Jetton is the fungible token type of Ton Chain
Trait Implementations§
Source§impl CandidType for TokenType
impl CandidType for TokenType
Source§impl<'de> Deserialize<'de> for TokenType
impl<'de> Deserialize<'de> for TokenType
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 Ord for TokenType
impl Ord for TokenType
Source§impl PartialOrd for TokenType
impl PartialOrd for TokenType
impl Eq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
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