chainutils

package
v0.184.51 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoActiveNetworks   = errors.New("no active networks available")
	ErrUnsupportedNetwork = errors.New("unsupported network")
)

Functions

func GetDefaultChainID

func GetDefaultChainID(networkManager NetworkManagerInterface) (uint64, error)

func GetHexChainID

func GetHexChainID(decimalStr string) (string, error)

func GetSupportedChainIDs

func GetSupportedChainIDs(networkManager NetworkManagerInterface) ([]uint64, error)

GetSupportedChainIDs retrieves the chain IDs from the provided NetworkManager.

Types

type NetworkManagerInterface

type NetworkManagerInterface interface {
	GetActiveNetworks() ([]*params.Network, error)
}

Jump to

Keyboard shortcuts

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