Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConfigPath = "config.toml" DefaultGasLimit = sdk.Gas(500000) DefaultFees = sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 100000)) )
Functions ¶
func SetAddressPrefixes ¶
SetAddressPrefixes sets chain specific bech32 prefixes.
Types ¶
type Config ¶
type Config struct { RPC RPCConfig `toml:"rpc"` GRPC GRPCConfig `toml:"grpc"` WalletConfig WalletConfig `toml:"wallet"` TxConfig TxConfig `toml:"tx"` }
Config defines all necessary configuration parameters.
func NewConfig ¶
func NewConfig(rpcCfg RPCConfig, gRPCCfg GRPCConfig) *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 GRPCConfig ¶
GRPCConfig contains configuration of the gRPC endpoint.
type RPCConfig ¶
type RPCConfig struct {
Address string `toml:"address"`
}
RPCConfig contains configuration of the RPC endpoint.
type WalletConfig ¶
WalletConfig contains wallet configuration that is used to sign transaction.
Click to show internal directories.
Click to hide internal directories.