Expand description
This module contains definiation of arguments that specify the environment and networks that a HOPR node runs in.
EnvironmentType defines the environment type. EnvironmentType of a network is defined in
contracts-addresses.json
under the foundry contract root. Different environment type uses
a different foundry profile.
Network is a collection of several major/minor releases.
NetworkDetail specifies the environment type of the network, the starting block number, and the deployed contract addresses in ContractAddresses
Structs§
- Network
Config - mapping of networks with its details
- Network
Detail - Network
Provider Args - Arguments for getting network and ethereum RPC provider.
Functions§
- ensure_
environment_ and_ network_ are_ set - ensures that the network and environment_type exist
in
contracts-addresses.json
and are matched - get_
environment_ type_ from_ name - Returns the environment type from the network name
according to
contracts-addresses.json
- get_
network_ details_ from_ name - Get the NetworkDetail (contract addresses, environment type) from network names