Versions in this module Expand all Collapse all v0 v0.0.2 Dec 18, 2024 Changes in this version + type Hooks struct + func (h Hooks) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error + type Keeper struct + func NewKeeper(storeKey storetypes.StoreKey, cdc codec.BinaryCodec, authority sdk.AccAddress, ...) Keeper + func (k *Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) + func (k Keeper) BalanceOf(ctx sdk.Context, abi abi.ABI, contract, account common.Address) *big.Int + func (k Keeper) CallEVM(ctx sdk.Context, abi abi.ABI, from, contract common.Address, commit bool, ...) (*evmtypes.MsgEthereumTxResponse, error) + func (k Keeper) CallEVMWithData(ctx sdk.Context, from common.Address, contract *common.Address, data []byte, ...) (*evmtypes.MsgEthereumTxResponse, error) + func (k Keeper) ConvertCoin(goCtx context.Context, msg *types.MsgConvertCoin) (*types.MsgConvertCoinResponse, error) + func (k Keeper) ConvertCoinToERC20FromPacket(ctx sdk.Context, data transfertypes.FungibleTokenPacketData) error + func (k Keeper) ConvertERC20(goCtx context.Context, msg *types.MsgConvertERC20) (*types.MsgConvertERC20Response, error) + func (k Keeper) CreateCoinMetadata(ctx sdk.Context, contract common.Address) (*banktypes.Metadata, error) + func (k Keeper) DeleteTokenPair(ctx sdk.Context, tokenPair types.TokenPair) + func (k Keeper) DeployERC20Contract(ctx sdk.Context, coinMetadata banktypes.Metadata) (common.Address, error) + func (k Keeper) GetDenomMap(ctx sdk.Context, denom string) []byte + func (k Keeper) GetERC20Map(ctx sdk.Context, erc20 common.Address) []byte + func (k Keeper) GetEnableEVMHook(ctx sdk.Context) bool + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetTokenPair(ctx sdk.Context, id []byte) (types.TokenPair, bool) + func (k Keeper) GetTokenPairID(ctx sdk.Context, token string) []byte + func (k Keeper) GetTokenPairs(ctx sdk.Context) []types.TokenPair + func (k Keeper) Hooks() Hooks + func (k Keeper) IsDenomRegistered(ctx sdk.Context, denom string) bool + func (k Keeper) IsERC20Enabled(ctx sdk.Context) bool + func (k Keeper) IsERC20Registered(ctx sdk.Context, erc20 common.Address) bool + func (k Keeper) IsTokenPairRegistered(ctx sdk.Context, id []byte) bool + func (k Keeper) IterateTokenPairs(ctx sdk.Context, cb func(tokenPair types.TokenPair) (stop bool)) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MintingEnabled(ctx sdk.Context, sender, receiver sdk.AccAddress, token string) (types.TokenPair, error) + func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, _ channeltypes.Packet, ...) error + func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, ack exported.Acknowledgement) exported.Acknowledgement + func (k Keeper) OnTimeoutPacket(ctx sdk.Context, _ channeltypes.Packet, ...) error + func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error + func (k Keeper) QueryERC20(ctx sdk.Context, contract common.Address) (types.ERC20Data, error) + func (k Keeper) RegisterCoin(ctx sdk.Context, coinMetadata banktypes.Metadata) (*types.TokenPair, error) + func (k Keeper) RegisterERC20(ctx sdk.Context, contract common.Address) (*types.TokenPair, error) + func (k Keeper) SetDenomMap(ctx sdk.Context, denom string, id []byte) + func (k Keeper) SetERC20Map(ctx sdk.Context, erc20 common.Address, id []byte) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error + func (k Keeper) SetTokenPair(ctx sdk.Context, tokenPair types.TokenPair) + func (k Keeper) ToggleConversion(ctx sdk.Context, token string) (types.TokenPair, error) + func (k Keeper) TokenPair(c context.Context, req *types.QueryTokenPairRequest) (*types.QueryTokenPairResponse, error) + func (k Keeper) TokenPairs(c context.Context, req *types.QueryTokenPairsRequest) (*types.QueryTokenPairsResponse, error) + type Migrator struct + func NewMigrator(keeper Keeper, legacySubspace types.Subspace) Migrator + func (m Migrator) Migrate2to3(ctx sdk.Context) error