Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2021 Changes in this version + 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 struct + BondedTokensPool string + Distribution string + FeeCollector string + Gov string + IBCTransfer string + Mint string + NotBondedTokensPool string + func NewModuleAccounts(addressPrefix string) ModuleAccounts