config

package
v0.0.0-...-9fdd194 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultChain = bttcChainID
)

Functions

func IsV1FactoryAddr

func IsV1FactoryAddr(addr string) bool

func IsV2FactoryAddr

func IsV2FactoryAddr(addr string) bool

Types

type ChainConfig

type ChainConfig struct {
	StartBlock         uint64
	CurrentFactory     common.Address
	PriceOracleAddress common.Address
	BatchAddress       common.Address
	VaultLogicAddress  common.Address
	DeploymentGas      string
	Endpoint           string
	StatusAddress      common.Address
	FileMetaAddress    common.Address
	MultiEndpoint      []string
}

func GetChainConfig

func GetChainConfig(chainID int64) (*ChainConfig, bool)

func InitChainConfig

func InitChainConfig(
	cfg *cfg.Config,
	stored bool,
	chainid int64,
) (*ChainConfig, error)

Jump to

Keyboard shortcuts

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