Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CosmosBech32MainPrefix defines the main Bech32 prefix. CosmosBech32MainPrefix = "mesg" // CosmosCoinType is the mesg registered coin type from https://github.com/satoshilabs/slips/blob/master/slip-0044.md. CosmosCoinType = uint32(470) // FullFundraiserPath is the parts of the BIP44 HD path that are fixed by what we used during the fundraiser. FullFundraiserPath = "44'/470'/0'/0/0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.3.0
type Config struct {
Name string `validate:"required" yaml:"-"`
Path string `validate:"required" yaml:"-"`
IpfsEndpoint string `validate:"required"`
DefaultExecutionPrice string `validate:"required"`
// AuthorizedPubKeys are the bech32 public key of the accounts that are authorized to call the gRPC Admin API.
AuthorizedPubKeys []string `validate:"dive,required,bech32accpubkey" yaml:"authorized_pubkeys"`
Server struct {
Address string `validate:"required"`
}
Log struct {
Format string `validate:"required,oneof=json text"`
ForceColors bool
Level string `validate:"required"`
}
Tendermint struct {
Config *tmconfig.Config `validate:"required"`
RelativePath string `validate:"required"`
}
Cosmos struct {
RelativePath string `validate:"required"`
// Minimum gas prices for transactions.
MinGasPrices string `validate:"required,deccoins"`
}
DevGenesis struct {
ChainID string `validate:"required"`
InitialBalances string `validate:"required,coins"`
}
Account struct {
Name string `validate:"required"`
Password string `validate:"required"`
Number uint32
Index uint32
Mnemonic string `validate:"omitempty,mnemonic"`
}
}
Config contains all the configuration needed.
Click to show internal directories.
Click to hide internal directories.