Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllBlockchains = Blockchains{ BlockchainTypeTron, BlockchainTypeEthereum, BlockchainTypeBinanceSmartChain, BlockchainTypePolygon, BlockchainTypeArbitrum, BlockchainTypeOptimism, BlockchainTypeLinea, BlockchainTypeBitcoin, BlockchainTypeLitecoin, BlockchainTypeBitcoinCash, BlockchainTypeDogecoin, }
AllBlockchainsStrings returns all blockchain types as a slice of strings
Functions ¶
This section is empty.
Types ¶
type BlockchainType ¶
type BlockchainType string
const ( // Tron blockchain BlockchainTypeTron BlockchainType = "tron" // EVM blockchains BlockchainTypeEthereum BlockchainType = "ethereum" BlockchainTypeBinanceSmartChain BlockchainType = "bsc" BlockchainTypePolygon BlockchainType = "polygon" BlockchainTypeArbitrum BlockchainType = "arbitrum" BlockchainTypeOptimism BlockchainType = "optimism" BlockchainTypeLinea BlockchainType = "linea" // Bitcoin-like blockchains BlockchainTypeBitcoin BlockchainType = "bitcoin" BlockchainTypeLitecoin BlockchainType = "litecoin" BlockchainTypeBitcoinCash BlockchainType = "bitcoincash" BlockchainTypeDogecoin BlockchainType = "dogecoin" )
func (BlockchainType) GetAssetIdentifier ¶
func (b BlockchainType) GetAssetIdentifier() string
func (BlockchainType) IsBitcoinLike ¶
func (b BlockchainType) IsBitcoinLike() bool
func (BlockchainType) IsEVM ¶
func (b BlockchainType) IsEVM() bool
func (BlockchainType) IsSystemTransactionsSupported ¶
func (b BlockchainType) IsSystemTransactionsSupported() bool
func (BlockchainType) String ¶
func (b BlockchainType) String() string
String returns the blockchain type as a string
func (BlockchainType) Valid ¶
func (b BlockchainType) Valid() bool
Validate checks if the blockchain type is valid
type Blockchains ¶
type Blockchains []BlockchainType
func EVMBlockchains ¶
func EVMBlockchains() Blockchains
func (Blockchains) Strings ¶
func (b Blockchains) Strings() []string
Strings returns the blockchain types as a slice of strings
Click to show internal directories.
Click to hide internal directories.