0g-chain/x/evmutil/spec/04_events.md
Robert Pirtle f4b8bf8f07
feat(evmutil): implement MsgConvertCosmosCoinFromERC20 (#1609)
* first pass at convert cosmos coin -> evm msg

* test ConvertCosmosCoinFromERC20 method

* test message server for MsgConvertCosmosCoinFromERC20

* update spec to include MsgConvertCosmosCoinFromERC20

* update changelog

* add CLI command for convert-cosmos-coin-from-erc20

* add test of removed/re-enable denom for convert
2023-06-02 14:26:51 -07:00

54 lines
2.4 KiB
Markdown

<!--
order: 4
-->
# Events
The evmutil module emits the following events:
## Handlers
### MsgConvertERC20ToCoin
| Type | Attribute Key | Attribute Value |
| ------------------------- | ------------- | ------------------ |
| convert_evm_erc20_to_coin | initiator | `{initiator}` |
| convert_evm_erc20_to_coin | receiver | `{receiver}` |
| convert_evm_erc20_to_coin | erc20_address | `{erc20_address}` |
| convert_evm_erc20_to_coin | amount | `{amount}` |
| message | module | evmutil |
| message | sender | {'sender address'} |
### MsgConvertCoinToERC20
| Type | Attribute Key | Attribute Value |
| --------------------------- | ------------- | ------------------ |
| convert_evm_erc20_from_coin | initiator | `{initiator}` |
| convert_evm_erc20_from_coin | receiver | `{receiver}` |
| convert_evm_erc20_from_coin | erc20_address | `{erc20_address}` |
| convert_evm_erc20_from_coin | amount | `{amount}` |
| message | module | evmutil |
| message | sender | {'sender address'} |
### MsgConvertCosmosCoinToERC20
| Type | Attribute Key | Attribute Value |
| ---------------------------- | ------------- | ------------------ |
| convert_cosmos_coin_to_erc20 | initiator | `{initiator}` |
| convert_cosmos_coin_to_erc20 | receiver | `{receiver}` |
| convert_cosmos_coin_to_erc20 | erc20_address | `{erc20_address}` |
| convert_cosmos_coin_to_erc20 | amount | `{amount}` |
| message | module | evmutil |
| message | sender | {'sender address'} |
### MsgConvertCosmosCoinFromERC20
| Type | Attribute Key | Attribute Value |
| ------------------------------ | ------------- | ------------------ |
| convert_cosmos_coin_from_erc20 | initiator | `{initiator}` |
| convert_cosmos_coin_from_erc20 | receiver | `{receiver}` |
| convert_cosmos_coin_from_erc20 | erc20_address | `{erc20_address}` |
| convert_cosmos_coin_from_erc20 | amount | `{amount}` |
| message | module | evmutil |
| message | sender | {'sender address'} |