Documentation ¶
Index ¶
Constants ¶
View Source
const ( Development = "dev" Production = "prod" Stage = "stage" )
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
Types ¶
type ChainConfig ¶
type ChainConfig struct { Name string `yaml:"name"` ChainID *big.Int `yaml:"chain_id"` BridgeContract string `yaml:"bridge_contract"` NodeUrl string `yaml:"node_url"` PacketValidityWaitDuration time.Duration `yaml:"pkt_validity_wait_dur"` FeedPacketWaitDuration time.Duration `yaml:"feed_pkt_wait_dur"` FinalityHeight uint64 `yaml:"finality_height"` WalletPath string `yaml:"wallet_path"` DestChains []string `yaml:"dest_chains"` WalletAddress string `yaml:"wallet_address"` StartSeqNum map[string]uint64 `yaml:"sequence_num_start"` // useful for aleo StartHeight uint64 `yaml:"start_height"` // useful for ethereum FilterTopic string `yaml:"filter_topic"` // useful for ethereum RetryPacketWaitDur time.Duration `yaml:"retry_packet_wait_dur"` PruneBaseSeqNumberWaitDur time.Duration `yaml:"prune_base_seq_num_wait_dur"` AverageBlockGenDur time.Duration `yaml:"average_block_gen_dur"` // useful for aleo }
type CollecterServiceConfig ¶
type Config ¶
type Config struct { // ChainConfigs is set of configs of chains each required to communicate with its respective bridge contract Name string `yaml:"name"` ChainConfigs []*ChainConfig `yaml:"chains"` LogConfig *LoggerConfig `yaml:"log"` DBDir string `yaml:"db_dir"` DBPath string `yaml:"-"` // Calculate based on DBDir ConsumePacketWorker int `yaml:"consume_packet_workers"` Mode string `yaml:"mode"` SigningServiceConfig SigningServiceConfig `yaml:"signing_service"` CollectorServiceConfig CollecterServiceConfig `yaml:"collector_service"` CheckHealthServiceDur time.Duration `yaml:"check_health_service"` MetricConfig MetricsConfig `yaml:"metrics"` Version string `yaml:"version"` }
type LoggerConfig ¶
type MetricsConfig ¶
Click to show internal directories.
Click to hide internal directories.