wconstants

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL