Documentation ¶
Index ¶
- func AccAddressFromTopic(topic common.Hash) sdk.AccAddress
- func CoinsToMap(coins ...sdk.Coin) map[string]string
- func FromAnyPubKeyToConsensusAddress(protoAny *codectypes.Any, codec codec.Codec) (consAddr sdk.ConsAddress, success bool)
- func FromAnyToJsonMap(protoAny *codectypes.Any, codec codec.Codec) (map[string]any, error)
- func GetEvmTransactionHashFromEvent(events []abci.Event) *common.Hash
- func GetIncomingIBCCoin(srcPort, srcChannel string, dstPort, dstChannel string, denom, amt string) (sdk.Coin, error)
- func IsEventTypeWithAllAttributes(event abci.Event, eventType string, attributeKeys ...string) (bool, map[string]string)
- func IsEvmEventMatch(topics []common.Hash, data []byte, wantTopicSize int, wantTopic0 common.Hash, ...) bool
- func IsEvmTx(tx *tx.Tx) bool
- func IsZeroAccAddress(accAddr sdk.AccAddress) bool
- func IsZeroEvmAddress(addr common.Address) bool
- func NormalizeAddress(address string) string
- func NormalizeTransactionHash(hash string, upper bool) string
- func ProtoMessageName(msg sdk.Msg) string
- func QueryContextWithHeight(height int64) context.Context
- func TryConvertAnyStructToMap(source any) (res map[string]any, err error)
- func TryGetMapValueAsType[T any](m map[string]any, key string) (value T, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccAddressFromTopic ¶
func AccAddressFromTopic(topic common.Hash) sdk.AccAddress
func FromAnyPubKeyToConsensusAddress ¶
func FromAnyPubKeyToConsensusAddress(protoAny *codectypes.Any, codec codec.Codec) (consAddr sdk.ConsAddress, success bool)
func FromAnyToJsonMap ¶
func GetIncomingIBCCoin ¶
func IsEvmEventMatch ¶
func IsZeroAccAddress ¶ added in v1.0.3
func IsZeroAccAddress(accAddr sdk.AccAddress) bool
IsZeroAccAddress returns true if the address is 0x00..00
func IsZeroEvmAddress ¶ added in v1.0.3
IsZeroEvmAddress returns true if the address is 0x00..00
func NormalizeAddress ¶
func NormalizeTransactionHash ¶
NormalizeTransactionHash normalizes the transaction hash into '0xHASH' format. Contract: input hash is a valid transaction hash, with or without '0x' prefix.
func ProtoMessageName ¶
func QueryContextWithHeight ¶
func TryConvertAnyStructToMap ¶ added in v1.1.2
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.