# Functions
CreateDenom generates a string the module name plus the address to avoid conflicts with names staring with a number.
CreateDenomDescription generates a string with the coin description.
DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.
No description provided by the author
EqualMetadata checks if all the fields of the provided coin metadata are equal.
EqualStringSlice checks if two string slices are equal.
IsModuleAccount returns true if the given account is a module account.
NewERC20Data creates a new ERC20Data instance.
NewGenesisState creates a new genesis state.
No description provided by the author
NewMsgConvertCoin creates a new instance of MsgConvertCoin.
NewMsgConvertERC20 creates a new instance of MsgConvertERC20.
NewParams creates a new Params object.
No description provided by the author
NewRegisterCoinProposal returns new instance of RegisterCoinProposal.
NewRegisterERC20Proposal returns new instance of RegisterERC20Proposal.
NewToggleTokenConversionProposal returns new instance of ToggleTokenConversionProposal.
NewTokenPair returns an instance of TokenPair.
RegisterInterfaces register implementations.
RegisterLegacyAminoCodec registers the necessary x/erc20 interfaces and concrete types on the provided LegacyAmino codec.
RegisterMsgHandler registers the http handlers for service Msg to "mux".
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux".
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux".
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
SanitizeERC20Name enforces 128 max string length, deletes leading numbers removes special characters (except /) and spaces from the ERC20 name.
No description provided by the author
ValidateErc20Denom checks if a denom is a valid erc20/ denomination.
# Constants
erc20 events.
#nosec.
erc20 events.
ERC20EventTransfer defines the transfer event for ERC20.
erc20 events.
erc20 events.
erc20 events.
erc20 events.
erc20 events.
erc20 events.
#nosec.
erc20 events.
erc20 events.
module name.
OWNER_EXTERNAL - erc20 is owned by an external account.
OWNER_MODULE - erc20 is owned by the erc20 module account.
OWNER_UNSPECIFIED defines an invalid/undefined owner.
constants.
constants.
#nosec.
RouterKey to be used for message routing.
StoreKey to be used when creating the KVStore.
No description provided by the author
No description provided by the author
# Variables
AminoCdc is a amino codec created to support amino JSON compatible msgs.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
errors.
errors.
errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
errors.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
ModuleAddress is the native module address for EVM.
ModuleCdc references the global erc20 module codec.
No description provided by the author
No description provided by the author
Parameter store key.
Parameter store key.
# Structs
ERC20BoolResponse defines the bool value from the call response.
ERC20Data represents the ERC20 token details used to map the token to a Cosmos Coin.
ERC20StringResponse defines the string value from the call response.
ERC20Uint8Response defines the uint8 value from the call response.
EventConvertCoin is an event emitted when a coin is converted.
EventConvertERC20 is an event emitted when an ERC20 is converted.
EventRegisterPair is an event emitted when a coin is registered.
EventToggleTokenConversion is an event emitted when a coin's token conversion is toggled.
GenesisState defines the module's genesis state.
LogTransfer Event type for Transfer(address from, address to, uint256 value).
MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token.
MsgConvertCoinResponse returns no fields.
MsgConvertERC20 defines a Msg to convert a ERC20 token to a native Cosmos coin.
MsgConvertERC20Response returns no fields.
MsgUpdateParams is the Msg/UpdateParams request type for Erc20 parameters.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Params defines the erc20 module params.
ProposalMetadata is used to parse a slice of denom metadata and generate the RegisterCoinProposal content.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryTokenPairRequest is the request type for the Query/TokenPair RPC method.
QueryTokenPairResponse is the response type for the Query/TokenPair RPC method.
QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC method.
QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC method.
RegisterCoinProposal is a gov Content type to register a token pair for a native Cosmos coin.
RegisterERC20Proposal is a gov Content type to register a token pair for an ERC20 token.
ToggleTokenConversionProposal is a gov Content type to toggle the conversion of a token pair.
TokenPair defines an instance that records a pairing consisting of a native
Cosmos Coin and an ERC20 token address.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
# Interfaces
AccountKeeper defines the expected interface needed to retrieve account info.
BankKeeper defines the expected interface needed to retrieve account balances.
EVMKeeper defines the expected EVM keeper interface used on erc20.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
StakingKeeper defines the expected interface needed to retrieve the staking denom.
No description provided by the author
# Type aliases
No description provided by the author
Owner enumerates the ownership of a ERC20 contract.