cli

package
v0.0.0-...-ce31223 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute is the entry point for the CLI. It executes the root command

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 NativeCfg

type NativeCfg struct {
	RPC  string `mapstructure:"rpc"`
	GRPC string `mapstructure:"grpc"`
}

NativeCfg holds configuration for interacting with Native.

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.

Jump to

Keyboard shortcuts

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