Documentation ¶
Index ¶
- Variables
- type CombinedNetwork
- type Manager
- func (nm *Manager) Delete(chainID uint64) error
- func (nm *Manager) Find(chainID uint64) *params.Network
- func (nm *Manager) Get(onlyEnabled bool) ([]*params.Network, error)
- func (nm *Manager) GetActiveNetworks() ([]*params.Network, error)
- func (nm *Manager) GetAll() ([]*params.Network, error)
- func (nm *Manager) GetCombinedNetworks() ([]*CombinedNetwork, error)
- func (nm *Manager) GetConfiguredNetworks() []params.Network
- func (nm *Manager) GetTestNetworksEnabled() (result bool, err error)
- func (nm *Manager) Init(networks []params.Network) error
- func (nm *Manager) UpdateRelatedChainID(chainID uint64, relatedChainID uint64) error
- func (nm *Manager) Upsert(network *params.Network) error
- type ManagerInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var GoerliChainIDs = []uint64{5, 421613, 420}
View Source
var SepoliaChainIDs = []uint64{11155111, 421614, 11155420}
Functions ¶
This section is empty.
Types ¶
type CombinedNetwork ¶ added in v0.162.1
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetActiveNetworks ¶ added in v0.180.31
Returns all networks for active mode (test/prod) and in case of test mode, returns either Goerli or Sepolia networks based on the value of isGoerliEnabled
func (*Manager) GetCombinedNetworks ¶ added in v0.162.1
func (nm *Manager) GetCombinedNetworks() ([]*CombinedNetwork, error)
func (*Manager) GetConfiguredNetworks ¶ added in v0.109.1
func (*Manager) GetTestNetworksEnabled ¶ added in v0.175.3
func (*Manager) UpdateRelatedChainID ¶ added in v0.162.1
Click to show internal directories.
Click to hide internal directories.