package
0.0.2
Repository: https://github.com/aizelnetwork/cosmevm.git
Documentation: pkg.go.dev

# Functions

AcceptGrant implements the ICS20 accept grant.
Approve implements the ICS20 Authorization approve transactions.
CheckAndAcceptAuthorizationIfNeeded checks if authorization exists and accepts the grant.
CheckOriginAndSender ensures the correct sender is being used.
CreateAndValidateMsgTransfer creates a new MsgTransfer message and run validate basic.
DecreaseAllowance implements the ICS20 Authorization decrease allowance transactions.
EmitIBCTransferEvent creates a new IBC transfer event emitted on a Transfer transaction.
IncreaseAllowance implements the ICS20 Authorization increase allowance transactions.
NewDenomHashRequest returns a new denom hash request from the given arguments.
NewDenomTraceRequest returns a new denom trace request from the given arguments.
NewDenomTracesRequest returns a new denom traces request from the given arguments.
NewMsgTransfer returns a new transfer message from the given arguments.
NewPrecompile creates a new ICS-20 Precompile instance as a PrecompiledContract interface.
NewTransferAuthorization returns a new transfer authorization authz type from the given arguments.
Revoke implements the ICS20 Authorization revoke transactions.
UpdateGrant implements the ICS20 authz update grant.
UpdateGrantIfNeeded updates the grant in case the contract caller is not the origin of the message.

# Constants

DefaultRevisionHeight is the default value used to not set a timeout revision height.
DefaultRevisionNumber is the default value used to not set a timeout revision number.
DefaultTimeoutMinutes is the default value in minutes used to set a timeout timestamp.
DenomHashMethod defines the ABI method name for the ICS20 DenomHash query.
DenomTraceMethod defines the ABI method name for the ICS20 DenomTrace query.
DenomTracesMethod defines the ABI method name for the ICS20 DenomTraces query.
ErrDifferentOriginFromSender is raised when the origin address is not the same as the sender address.
ErrInvalidHash is raised when the hash is invalid.
ErrInvalidMemo is raised when the memo is invalid.
ErrInvalidReceiver is raised when the receiver is invalid.
ErrInvalidSender is raised when the sender is invalid.
ErrInvalidSourceChannel is raised when the source channel is invalid.
ErrInvalidSourcePort is raised when the source port is invalid.
ErrInvalidTimeoutTimestamp is raised when the timeout timestamp is invalid.
ErrNoMatchingAllocation is raised when no matching allocation is found.
ErrTraceNotFound is raised when the denom trace for the specified request does not exist.
EventTypeIBCTransfer defines the event type for the ICS20 Transfer transaction.
PrecompileAddress of the ICS-20 EVM extension in hex format.
TransferMethod defines the ABI method name for the ICS20 Transfer transaction.

# Variables

DefaultTimeoutHeight is the default value used to set a timeout height.
TransferMsgURL is the ICS20 transfer message URL string.

# Structs

DenomTraceResponse defines the data for the denom trace response.
DenomTracesResponse defines the data for the denom traces response.
EventIBCTransfer is the event type emitted when a transfer is executed.
EventTransferAuthorization is the event type emitted when a transfer authorization is created.
PageRequest defines the data for the page request.
No description provided by the author