types

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkDevnet1           = "devnet1"
	NetworkStagnet1          = "stagnet1"
	NetworkStagnet3          = "stagnet3"
	NetworkFairground        = "fairground"
	NetworkSandbox           = "sandbox"
	NetworkValidatorsTestnet = "validators-testnet"
	NetworkMainnet           = "mainnet"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ETHNetwork

type ETHNetwork string
const (
	ETHMainnet ETHNetwork = "mainnet"
	ETHSepolia ETHNetwork = "sepolia"
	ETHGoerli  ETHNetwork = "goerli"
	ETHRopsten ETHNetwork = "ropsten"
)

func GetEthNetworkForId

func GetEthNetworkForId(chainId string) (ETHNetwork, error)

func (ETHNetwork) IsValid

func (n ETHNetwork) IsValid() error

type NetworkParams

type NetworkParams struct {
	Params map[string]string
}

func NewNetworkParams

func NewNetworkParams(params map[string]string) *NetworkParams

func (*NetworkParams) GetEthereumConfig

func (p *NetworkParams) GetEthereumConfig() (*vega.EthereumConfig, error)

func (*NetworkParams) GetEthereumL2Configs added in v0.74.10

func (p *NetworkParams) GetEthereumL2Configs() (*vega.EthereumL2Configs, error)

func (*NetworkParams) GetMinimumEthereumEventsForNewValidator

func (p *NetworkParams) GetMinimumEthereumEventsForNewValidator() (int, error)

func (*NetworkParams) GetMinimumValidatorStake

func (p *NetworkParams) GetMinimumValidatorStake() (*big.Int, error)

Jump to

Keyboard shortcuts

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