# 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.
LoadABI read the ABI file described by the path and parse it as JSON.
MakeTopic converts a filter query argument into a filter topic.
No description provided by the author
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
No description provided by the author
ErrDelegatorDifferentOrigin 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.
ErrInvalidCommission is raised when the input commission cannot be cast to stakingtypes.CommissionRates{}.
ErrInvalidDelegator is raised when the delegator address is not valid.
ErrInvalidDenom is raised when the denom is not valid.
ErrInvalidDescription is raised when the input description cannot be cast to stakingtypes.Description{}.
ErrInvalidHexAddress is raised when the hex address 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.
ErrInvalidValidator is raised when the validator address is not valid.
ErrNegativeAmount is raised when an amount is negative.
ErrNotRunInEvm is raised when a function is not called inside the EVM.
ErrSpenderDifferentOrigin is raised when the origin address is not the same as the spender.
ErrUnknownMethod is raised when the method is not known.
No description provided by the author
# Variables
DefaultChainID is the standard chain id used for testing purposes.
DefaultExpirationDuration is the default duration for an authorization to expire.
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.
# Type aliases
Operation is a type that defines if the precompile call produced an addition or subtraction of an account's balance.