config

package
v0.0.0-...-8b4944a Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Node                  NodeConfig      `yaml:"node"`
	Manager               ManagerConfig   `yaml:"manager"`
	Contracts             ContractsConfig `yaml:"contracts"`
	EthStartingHeight     int64           `yaml:"eth_starting_height"`
	BabylonStartingHeight int64           `yaml:"babylon_starting_height"`
	EthBlockStep          uint64          `yaml:"eth_block_step"`
	BabylonBlockStep      uint64          `yaml:"babylon_block_step"`
	BabylonRpc            string          `yaml:"babylon_rpc"`
	EthRpc                string          `yaml:"eth_rpc"`
	EthChainID            uint64          `yaml:"eth_chain_id"`
}

func DefaultConfiguration

func DefaultConfiguration() *Config

func NewConfig

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

type ContractsConfig

type ContractsConfig struct {
	FrmContractAddress string `yaml:"frm_contract_address"`
	BarContactAddress  string `yaml:"bar_contact_address"`
}

type ManagerConfig

type ManagerConfig struct {
	LevelDbFolder string        `yaml:"level_db_folder"`
	SdkRpc        string        `yaml:"sdk_rpc"`
	WsAddr        string        `yaml:"ws_addr"`
	SignTimeout   time.Duration `yaml:"sign_timeout"`
	NodeMembers   string        `yaml:"node_members"`
}

type NodeConfig

type NodeConfig struct {
	LevelDbFolder    string        `yaml:"level_db_folder"`
	KeyPath          string        `yaml:"key_path"`
	WsAddr           string        `yaml:"ws_addr"`
	SignTimeout      time.Duration `yaml:"sign_timeout"`
	WaitScanInterval time.Duration `yaml:"wait_scan_interval"`
}

Jump to

Keyboard shortcuts

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