Documentation ¶
Index ¶
Constants ¶
View Source
const ( AwsKms = "aws-kms" Local = "local" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { ChainID string `yaml:"chain_id"` ChainName string `yaml:"chain_name"` ChainType string `yaml:"chain_type"` RpcUrl string `yaml:"rpc_url"` }
func (*ChainConfig) Validate ¶
func (c *ChainConfig) Validate() error
type Config ¶
type Config struct { Settlus SettlusConfig `yaml:"settlus"` Feeder FeederConfig `yaml:"feeder"` Chains []ChainConfig `yaml:"chains"` DBHome string `yaml:"db_home"` LogLevel string `yaml:"log_level"` Port uint16 `yaml:"port"` }
func (*Config) MustMarshalYaml ¶
type FeederConfig ¶
type FeederConfig struct { Topics string `yaml:"topics"` SignerMode string `yaml:"signer_mode"` Address string `yaml:"address"` // derived from private key or aws kms key id, no need to set manually FeePayer string `yaml:"fee_payer"` // optional fee payer address Key string `yaml:"key"` // aws kms key id or private key ValidatorAddress string `yaml:"validator_address"` }
func (*FeederConfig) Validate ¶
func (fc *FeederConfig) Validate() error
type RuntimeConfig ¶
func (RuntimeConfig) WriteConfigFile ¶
func (c RuntimeConfig) WriteConfigFile() error
type SettlusConfig ¶
type SettlusConfig struct { ChainId string `yaml:"chain_id"` RpcUrl string `yaml:"rpc_url"` GrpcUrl string `yaml:"grpc_url"` Insecure bool `yaml:"insecure"` GasLimit uint64 `yaml:"gas_limit"` Fees Fee `yaml:"fees"` }
func (*SettlusConfig) Validate ¶
func (sc *SettlusConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.