Documentation ¶
Index ¶
- func AccountAddressFromBytes(bech32Prefix string, b []byte) (string, error)
- func AccountAddressFromPubKey(bech32Prefix string, pubKey []byte) (string, error)
- func AccountAddressFromValidatorAddress(bech32Prefix string, srcAddress string) (string, error)
- func ConsensusNodeAddressFromConsensusNodePubKey(bech32Prefix string, consensusNodePubKey string) (string, error)
- func ConsensusNodeAddressFromTmPubKey(bech32Prefix string, pubKey []byte) (string, error)
- func ConsensusNodePubKeyFromTmPubKey(bech32Prefix string, pubKey []byte) (string, error)
- func IsValidCosmosAddress(address string) bool
- func ModuleAccountFromBytes(bech32Prefix string, b []byte) (string, error)
- func MultiSigAddressFromPubKeys(bech32Prefix string, pubKeys [][]byte, threshold int, sortPubKeys bool) (string, error)
- func MustAccountAddressFromPubKey(bech32Prefix string, pubKey []byte) string
- func MustAccountAddressFromValidatorAddress(bech32Prefix string, srcAddress string) string
- func MustConsensusAddressFromTmPubKey(bech32Prefix string, pubKey []byte) string
- func MustConsensusNodePubKeyFromTmPubKey(bech32Prefix string, pubKey []byte) string
- func MustModuleAccountFromBytes(bech32Prefix string, b []byte) string
- func MustMultiSigAddressFromPubKeys(bech32Prefix string, pubKeys [][]byte, threshold int, sortPubKeys bool) string
- func MustNewCoinFromAmountInterface(amount map[string]interface{}) coin.Coin
- func MustNewCoinsFromAmountInterface(amounts []interface{}) coin.Coins
- func MustValidatorAddressFromAccountAddress(bech32Prefix string, srcAddress string) string
- func NewCoinFromAmountInterface(amount map[string]interface{}) (coin.Coin, error)
- func NewCoinsFromAmountInterface(amounts []interface{}) (coin.Coins, error)
- func PubKeyFromCosmosPubKey(accountPubKey string) ([]byte, error)
- func TmAddressFromTmPubKey(pubKey []byte) string
- func ValidatorAddressFromAccountAddress(bech32Prefix string, srcAddress string) (string, error)
- type ModuleAccounts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountAddressFromBytes ¶
func IsValidCosmosAddress ¶
func ModuleAccountFromBytes ¶
func MustNewCoinFromAmountInterface ¶
MustNewCoinFromAmountInterface returns a Coin from the amount map in the form of map[string]interface{}. It panics when the amount is invalid.
func MustNewCoinsFromAmountInterface ¶
NewCoinsFromAmountInterface returns Coins from the list of amount in the from of []interface{}. It behaves the same as NewCoinsFromAmountInterface except it panics on any error.
func NewCoinFromAmountInterface ¶
NewCoinFromAmountInterface returns a Coin from the amount in the form of map[string]interface{}. It returns error when the amount is invalid.
func NewCoinsFromAmountInterface ¶
NewCoinsFromAmountInterface returns Coins from the list of amount in the from of []interface{}. It returns error when any of the amount inside is invalid
func PubKeyFromCosmosPubKey ¶
func TmAddressFromTmPubKey ¶
Types ¶
type ModuleAccounts ¶
type ModuleAccounts struct { FeeCollector string Mint string Distribution string Gov string BondedTokensPool string NotBondedTokensPool string IBCTransfer string }
func NewModuleAccounts ¶
func NewModuleAccounts(addressPrefix string) ModuleAccounts
Click to show internal directories.
Click to hide internal directories.