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
func VerifyPeerFormat ¶
func VerifyPeerFormat(peer launchtypes.Peer) bool
VerifyPeerFormat checks if the peer address format is valid
Types ¶
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
type StargateGentx ¶
type StargateGentx 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"` }
StargateGentx represents the stargate gentx file
Click to show internal directories.
Click to hide internal directories.