Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitcoinCfg ¶
type BitcoinCfg struct {
RPCHost string `mapstructure:"rpc_host"`
RPCUser string `mapstructure:"rpc_user"`
RPCPass string `mapstructure:"rpc_pass"`
Network string `mapstructure:"network"`
ConfirmationThreshold uint8 `mapstructure:"confirmation_threshold"`
HTTPPostMode bool `mapstructure:"http_post_mode"`
DisableTLS bool `mapstructure:"disable_tls"`
}
BitcoinCfg holds configuration for interacting with Bitcoin.
type Config ¶
type Config struct {
Ika IkaCfg `mapstructure:"ika"`
Native NativeCfg `mapstructure:"native"`
DB DBCfg `mapstructure:"db"`
Btc BitcoinCfg `mapstructure:"bitcoin"`
Relayer RelayerCfg `mapstructure:"relayer"`
}
Config aggregates configurations for different components within the native-relayer.
type DBCfg ¶
type DBCfg struct {
File string `mapstructure:"file"`
}
DBCfg holds configuration for the database.
type IkaCfg ¶
type IkaCfg struct {
RPC string `mapstructure:"rpc"`
SignerMnemonic string `mapstructure:"signer_mnemonic"`
NativeLcPackage string `mapstructure:"native_lc_package"`
NativeLcModule string `mapstructure:"native_lc_module"`
NativeLcFunction string `mapstructure:"native_lc_function"`
GasAcc string `mapstructure:"gas_acc"`
GasBudget string `mapstructure:"gas_budget"`
}
IkaCfg holds configuration specific to Ika.
type RelayerCfg ¶
type RelayerCfg struct {
ProcessTxsInterval time.Duration `mapstructure:"process_txs_interval"`
ConfirmTxsInterval time.Duration `mapstructure:"confirm_txs_interval"`
SignReqFetchInterval time.Duration `mapstructure:"sign_req_fetch_interval"`
SignReqFetchFrom int `mapstructure:"sign_req_fetch_from"`
SignReqFetchLimit int `mapstructure:"sign_req_fetch_limit"`
}
RelayerCfg holds configuration specific to the relayer's operation.
Click to show internal directories.
Click to hide internal directories.