package
0.1.6-alpha-hotfix
Repository: https://github.com/berachain/polaris.git
Documentation: pkg.go.dev
# Functions
ConvertCommonHexAddress transfers a common hex address attribute to a common.Address and returns it as type any.
ConvertInt64 converts a creation height (from the Cosmos SDK staking module) `string` to an `int64`.
ConvertSdkCoins converts the string representation of an `sdk.Coins` to a `[]generated.CosmosCoin`.
ConvertInt64 converts a `string` to an `int64`.
NewFactory returns a `Factory` with the events and custom value decoders of the given precompiles registered.
ReturnStringAsIs converts a given attribute of type string and returns the same string (as type any).
# Variables
ErrNoAttributeKeyFound is returned when no Cosmos event attribute is provided for a certain Ethereum event's argument.
ErrNotEnoughAttributes is returned when a Cosmos event does not have enough attributes for its corresponding Ethereum event; there are less Cosmos event attributes than Ethereum event arguments.
ErrNoValueDecoderFunc is returned when a Cosmos event's attribute key is not mapped to any attribute value decoder function.
ErrNumberOfCoinsNotSupported is returned when the number of coins in a Cosmos event for the "amount" attribute is not equal to 1.