Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the erc20 Msg service.
ConvertCoin mints a ERC20 representation of the native Cosmos coin denom that is registered on the token mapping.
MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token
Cosmos coin which denomination is registered in a token pair. The coin amount defines the amount of coins to convert.
recipient hex address to receive ERC20 token
cosmos bech32 address from the owner of the given Cosmos coins
MsgConvertCoinResponse returns no fields
(message has no fields)
ConvertERC20 mints a native Cosmos coin representation of the ERC20 token contract that is registered on the token mapping.
MsgConvertERC20 defines a Msg to convert a ERC20 token to a native Cosmos coin.
ERC20 token contract address registered in a token pair
amount of ERC20 tokens to convert
bech32 address to receive native Cosmos coins
sender hex address from the owner of the given ERC20 tokens
MsgConvertERC20Response returns no fields
(message has no fields)
SendCoinToEVM is a simplified version of ConvertCoin, meant for use by machine accounts and the gasfree module. It sends Cosmos coins to the EVM layer where they become ERC20s. It only works for certain whitelisted tokens and will claim a fee separately from the standard tx fee deduction, much like the MsgMicrotx from the microtx module.
MsgSendCoinToEVM will send a whitelisted Cosmos coin to the EVM layer, where it becomes an ERC20. This message is meant for use with machine accounts, and so ordinary fees will not be collected for this tx, instead charging a fee in the Msg handler. You most likely want to use MsgConvertCoin instead. The receiving address on the EVM side will be converted from the sender address.
The amount and denomination of the Cosmos layer coins to send to the EVM. The denom must be whitelisted and registered in a token pair for this to work.
Cosmos bech32 address of the sender, who must own the coins being sent and sign the message.
(message has no fields)
SendERC20ToCosmos is a simplified version of ConvertERC20, meant for use by machine accounts and the gasfree module. It sends ERC20 tokens to the Cosmos layer where they become Coins. It only works for certain whitelisted tokens and will claim a fee separately from the standard tx fee deduction, much like the MsgMicrotx from the microtx module.
MsgSendERC20ToCosmos will send a whitelisted ERC20 to the Cosmos layer, where it becomes a Cosmos coin. This message is meant for use with machine accounts, and so ordinary fees will not be collected for this tx, instead charging a fee in the Msg handler. You most likely want to use MsgConvertERC20 instead. The receiving address on the Cosmos side will be converted from the sender address.
The contract address of the ERC20 token to convert to Cosmos coins. This contract must be whitelisted and registered in a token pair for this to work.
The amount of the ERC20 token to convert to Cosmos coins.
The hex address of the sender, who must own the ERC20 tokens being converted and sign the message.
(message has no fields)
SendERC20ToCosmosAndIBCTransfer is just like UnwrapERC20, but also queues an IBC MsgTransfer to send to another chain. This is also intended for use with the gasfree module and claims fees like MsgMicrotx.
MsgSendERC20ToCosmosAndIBCTransfer will send a whitelisted ERC20 to the Cosmos layer and also queue an IBC transfer to the specified destination. This message is meant for use with machine accounts, and so ordinary fees will not be collected for this tx, instead charging a fee in the Msg handler. You most likely want to use MsgConvertERC20 + MsgTransfer instead. The receiving address on the Cosmos side will be converted from the sender address. WARNING: This message MAY cause a loss of tokens if the IBC transfer is to a chain which does not support Ethermint-style private keys. Use with caution.
The contract address of the ERC20 token to convert to Cosmos coins. This contract must be whitelisted and registered in a token pair for this to work.
The amount of the ERC20 token to convert to Cosmos coins.
The hex address of the sender, who must own the ERC20 tokens being converted and sign the message.
The IBC destination port
The IBC destination channel
The IBC destination receiver bech32 address, with the destination chain's bech32 prefix
(message has no fields)
Query defines the gRPC querier service.
Params retrieves the erc20 module params
QueryParamsRequest is the request type for the Query/Params RPC method.
(message has no fields)
QueryParamsResponse is the response type for the Query/Params RPC method.
TokenPair retrieves a registered token pair
QueryTokenPairRequest is the request type for the Query/TokenPair RPC method.
token identifier can be either the hex contract address of the ERC20 or the Cosmos base denomination
QueryTokenPairResponse is the response type for the Query/TokenPair RPC method.
TokenPairs retrieves registered token pairs
QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC method.
pagination defines an optional pagination for the request.
QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC method.
pagination defines the pagination in the response.
GenesisState defines the module's genesis state.
module parameters
registered token pairs
Owner enumerates the ownership of a ERC20 contract.
Used in:
OWNER_UNSPECIFIED defines an invalid/undefined owner.
OWNER_MODULE erc20 is owned by the erc20 module account.
EXTERNAL erc20 is owned by an external account.
Params defines the erc20 module params
Used in: ,
parameter to enable the conversion of Cosmos coins <--> ERC20 tokens.
parameter to enable the EVM hook that converts an ERC20 token to a Cosmos Coin by transferring the Tokens through a MsgEthereumTx to the ModuleAddress Ethereum address.
RegisterCoinProposal is a gov Content type to register a token pair for a native Cosmos coin.
title of the proposal
proposal description
metadata of the native Cosmos coin
RegisterERC20Proposal is a gov Content type to register a token pair for an ERC20 token
title of the proposa string title = 1;
proposal description
contract address of ERC20 token
ToggleTokenConversionProposal is a gov Content type to toggle the conversion of a token pair.
title of the proposal
proposal description
token identifier can be either the hex contract address of the ERC20 or the Cosmos base denomination
TokenPair defines an instance that records a pairing consisting of a native Cosmos Coin and an ERC20 token address.
Used in: , ,
address of ERC20 contract token
cosmos base denomination to be mapped to
shows token mapping enable status
ERC20 owner address ENUM (0 invalid, 1 ModuleAccount, 2 external address)