network

package
v0.128.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(db *sql.DB) *Manager

func (*Manager) Delete

func (nm *Manager) Delete(chainID uint64) error

func (*Manager) Find

func (nm *Manager) Find(chainID uint64) *params.Network

func (*Manager) Get

func (nm *Manager) Get(onlyEnabled bool) ([]*params.Network, error)

func (*Manager) GetConfiguredNetworks added in v0.109.1

func (nm *Manager) GetConfiguredNetworks() []params.Network

func (*Manager) Init

func (nm *Manager) Init(networks []params.Network) error

func (*Manager) UpdateRPCURL added in v0.100.0

func (nm *Manager) UpdateRPCURL(chainID uint64, rpcURL string) error

func (*Manager) Upsert

func (nm *Manager) Upsert(network *params.Network) error

Jump to

Keyboard shortcuts

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