Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultConfigPath = "./config.toml"
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RPC *RPCConfig `toml:"rpc"` GRPC *GRPCConfig `toml:"grpc"` LCD *LCDConfig `toml:"lcd"` Custom *CustomConfig `toml:"custom"` }
Config defines all necessary configuration parameters.
func NewConfig ¶
func NewConfig(rpc *RPCConfig, gRPC *GRPCConfig, lcd *LCDConfig) *Config
NewConfig builds a new Config instance.
func ParseString ¶
ParseString attempts to read and parse config from the given string bytes. An error reading or parsing the config results in a panic.
type CustomConfig ¶
type CustomConfig struct { Mnemonic string `toml:"mnemonic"` GasLimit int64 `toml:"gas_limit"` FeeDenom string `toml:"fee_denom"` FeeAmount int64 `toml:"fee_amount"` Memo string `toml:"memo"` }
CustomConfig contains custom configuration for stress testing.
type GRPCConfig ¶
type GRPCConfig struct {
Address string `toml:"address"`
}
GRPCConfig contains the configuration of the gRPC endpoint.
Click to show internal directories.
Click to hide internal directories.