config

package
v0.0.0-...-e6d60d5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainId

type ChainId struct {
	L1SepoliaChainId uint64 `yaml:"l1_chain_sepolia_id"`
	L1HoleskyChainId uint64 `yaml:"l1_chain_holesky_id"`
	ZkfairChainId    uint64 `yaml:"zkfair_chain_id"`
	X1ChainId        uint64 `yaml:"x1_chain_id"`
	MantleChainId    uint64 `yaml:"mantle_chain_id"`
	OpChainId        uint64 `yaml:"op_chain_id"`
}

type Config

type Config struct {
	Migrations           string   `yaml:"migrations"`
	Server               Server   `yaml:"server"`
	RPCs                 []*RPC   `yaml:"rpcs"`
	Metrics              Server   `yaml:"metrics"`
	Database             DB       `yaml:"database"`
	Exporter             Exporter `yaml:"exporter"`
	L1StakingManagerAddr string   `yaml:"l1_staking_manager_addr"`
	ChainId              ChainId  `yaml:"chain_id"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

type DB

type DB struct {
	DbHost     string `yaml:"db_host"`
	DbPort     int    `yaml:"db_port"`
	DbName     string `yaml:"db_name"`
	DbUser     string `yaml:"db_user"`
	DbPassword string `yaml:"db_password"`
}

type Exporter

type Exporter struct {
	ExporterAddress string `yaml:"exporter_address"`
}

type RPC

type RPC struct {
	RpcUrl                string `yaml:"rpc_url"`
	ChainId               uint64 `yaml:"chain_id"`
	FoundingPoolAddress   string `yaml:"founding_pool_address"`
	EthAddress            string `yaml:"eth_address"`
	WEthAddress           string `yaml:"weth_address"`
	USDTAddress           string `yaml:"usdt_address"`
	USDCAddress           string `yaml:"usdc_address"`
	DAIAddress            string `yaml:"dai_address"`
	OKBAddress            string `yaml:"okb_address"`
	MNTAddress            string `yaml:"mnt_address"`
	DaStrategyAddress     string `yaml:"da_strategy_address"`
	GamingStrategyAddress string `yaml:"gaming_strategy_address"`
	SocialStrategyAddress string `yaml:"social_strategy_address"`
	StrategyManager       string `yaml:"strategy_manager"`
	DelegationManager     string `yaml:"delegation_manager"`
}

type Server

type Server struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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