Documentation ¶
Index ¶
- Constants
- func GetHaqqAddressFromBech32(address string) (sdk.AccAddress, error)
- func IsAllowedVestingFunderAccount(funder string) bool
- func IsLocalNetwork(chainID string) bool
- func IsMainNetwork(chainID string) bool
- func IsSupportedKey(pubkey cryptotypes.PubKey) bool
- func IsTestEdge1Network(chainID string) bool
- func IsTestEdge2Network(chainID string) bool
Constants ¶
View Source
const ( MainNetChainID = "haqq_11235" TestEdge1ChainID = "haqq_53211" TestEdge2ChainID = "haqq_54211" LocalNetChainID = "haqq_121799" // BaseDenom defines the Haqq Network mainnet denomination BaseDenom = "aISLM" )
Variables ¶
This section is empty.
Functions ¶
func GetHaqqAddressFromBech32 ¶
func GetHaqqAddressFromBech32(address string) (sdk.AccAddress, error)
GetHaqqAddressFromBech32 returns the sdk.Account address of given address, while also changing bech32 human readable prefix (HRP) to the value set on the global sdk.Config (eg: `haqq`). The function fails if the provided bech32 address is invalid.
func IsLocalNetwork ¶
func IsMainNetwork ¶
func IsSupportedKey ¶
func IsSupportedKey(pubkey cryptotypes.PubKey) bool
IsSupportedKey returns true if the pubkey type is supported by the chain (i.e eth_secp256k1, amino multisig, ed25519). NOTE: Nested multisigs are not supported.
func IsTestEdge1Network ¶
func IsTestEdge2Network ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.