Documentation ¶
Index ¶
Constants ¶
View Source
const (
ChainConfigDir = "config"
)
View Source
const GentxFilename = "gentx.json"
Variables ¶
This section is empty.
Functions ¶
func ChangeAddressPrefix ¶
ChangeAddressPrefix returns the address with another prefix.
func GetAddressPrefix ¶
GetAddressPrefix returns the bech 32 prefix used by the address.
Types ¶
type Gentx ¶
type Gentx struct { Body struct { Messages []struct { DelegatorAddress string `json:"delegator_address"` ValidatorAddress string `json:"validator_address"` PubKey struct { Type string `json:"@type"` Key string `json:"key"` } `json:"pubkey"` Value struct { Denom string `json:"denom"` Amount string `json:"amount"` } `json:"value"` } `json:"messages"` Memo string `json:"memo"` } `json:"body"` }
Gentx represents the gentx file.
type GentxInfo ¶
type GentxInfo struct { DelegatorAddress string PubKey ed25519.PubKey SelfDelegation sdk.Coin Memo string }
GentxInfo represents the basic info about gentx file.
func GentxFromPath ¶
GentxFromPath returns GentxInfo from the json file.
func ParseGentx ¶
ParseGentx returns GentxInfo and the gentx file in bytes.
Click to show internal directories.
Click to hide internal directories.