mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
f4b8bf8f07
* 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 |
||
---|---|---|
.. | ||
01_concepts.md | ||
02_state.md | ||
03_messages.md | ||
04_events.md | ||
05_params.md | ||
README.md |
evmutil
Table of Contents
Overview
The evmutil module provides additional functionalities on top of the evm module.
EVM akava
Usage
evmutil stores additional state data for evm accounts and exposes an EvmBankKeeper
that should be used by the x/evm
keeper for bank operations.
The purpose of the EvmBankKeeper
is to allow the usage of the akava
balance on the EVM via an account's existing ukava
balance. This is needed because the EVM gas token use 18 decimals, and since ukava
has 6 decimals, it cannot be used as the EVM gas denom directly.
For additional details on how balance conversions work, see Concepts.
ERC20 Token <> sdk.Coin Conversion
evmutil exposes messages to allow for the conversion of Kava ERC20 tokens and sdk.Coins via a whitelist.
For additional details on how these messages work, see Messages.