# Functions
HandleGasError handles the out of gas panic by resetting the gas meter and returning an error.
HexAddressFromBech32String converts a hex address to a bech32 encoded address.
MakeTopic converts a filter query argument into a filter topic.
NewCoinsResponse converts a response to an array of Coin.
NewDecCoinsResponse converts a response to an array of DecCoin.
PackNum packs the given number (using the reflect value) and will cast it to appropriate number representation.
SafeAdd adds two integers and returns a boolean if an overflow occurs to avoid panic.
UnpackLog unpacks a retrieved log into the provided output structure.
# Constants
ErrDifferentOrigin is raised when an approval is set but the origin address is not the same as the spender.
ErrIntegerOverflow is raised when an integer overflow occurs.
ErrInvalidABI is raised when the ABI cannot be parsed.
ErrInvalidAmount is raised when the amount cannot be cast to a big.Int.
ErrInvalidDelegator is raised when the delegator address is not valid.
ErrInvalidDenom is raised when the denom is not valid.
ErrInvalidMsgType is raised when the transaction type is not valid for the given precompile.
ErrInvalidNumberOfArgs is raised when the number of arguments is not what is expected.
ErrInvalidType is raised when the provided type is different than the expected.
ErrNegativeAmount is raised when an amount is negative.
ErrNotRunInEvm is raised when a function is not called inside the EVM.
ErrUnknownMethod is raised when the method is not known.
# Variables
DefaultChainID is the standard chain id used for testing purposes.
DefaultExpirationDuration is the default duration for an authorization to expire.
DefaultPrecompilesBech32 is the standard bech32 address for the precompiles.
TrueValue is the byte array representing a true value in solidity.
# Structs
Coin defines a struct that stores all needed information about a coin in types native to the EVM.
Dec defines a struct that represents a decimal number of a given precision in types native to the EVM.
DecCoin defines a struct that stores all needed information about a decimal coin in types native to the EVM.
EmitEventArgs are the arguments required to emit an authorization event.
ICS20Allocation defines the spend limit for a particular port and channel.
Precompile is a common struct for all precompiles that holds the common data each precompile needs to run which includes the ABI, Gas config, approval expiration and the authz keeper.