chaintype

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 3 Imported by: 4

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, Solana, StarkNet}

SupportedChainTypes contain all chains that are supported

Functions

func IsSupportedChainType

func IsSupportedChainType(chainType ChainType) bool

IsSupportedChainType checks to see if the chain is supported

func NewErrInvalidChainType

func NewErrInvalidChainType(chainType ChainType) error

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"
	// Solana for the Solana chain
	Solana ChainType = "solana"
	// StarkNet for the StarkNet chain
	StarkNet ChainType = "starknet"
)

type ChainTypes added in v1.6.0

type ChainTypes []ChainType

func (ChainTypes) String added in v1.6.0

func (c ChainTypes) String() (out string)

Jump to

Keyboard shortcuts

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