Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChainType error
ErrInvalidChainType is an error to indicate an unsupported chain type
View Source
var SupportedChainTypes = ChainTypes{EVM, Cosmos, Solana, StarkNet, Aptos}
SupportedChainTypes contain all chains that are supported
Functions ¶
func IsSupportedChainType ¶
IsSupportedChainType checks to see if the chain is supported
func NewErrInvalidChainType ¶
NewErrInvalidChainType returns an error wrapping ErrInvalidChainType for an unsupported chain
Types ¶
type ChainType ¶
type ChainType string
ChainType denotes the chain or network to work with
const ( // EVM for Ethereum or other chains supporting the EVM EVM ChainType = "evm" // Cosmos for the Cosmos chain Cosmos ChainType = "cosmos" // Solana for the Solana chain Solana ChainType = "solana" // StarkNet for the StarkNet chain StarkNet ChainType = "starknet" // Aptos for the Aptos chain Aptos ChainType = "aptos" )
type ChainTypes ¶
type ChainTypes []ChainType
func (ChainTypes) String ¶
func (c ChainTypes) String() (out string)
Click to show internal directories.
Click to hide internal directories.