Documentation ¶
Index ¶
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, gs types.GenesisState)
- type Keeper
- func (k Keeper) AddAddressMapping(c context.Context, req *types.MsgAddAddressMapping) (*types.MsgAddAddressMappingResponse, error)
- func (k Keeper) DeleteAddressMapping(ctx sdk.Context, cosmosAddr []byte) error
- func (k Keeper) GetCosmosAddressByEvmAddress(ctx sdk.Context, evmAddr []byte) []byte
- func (k Keeper) GetEvmAddressByCosmosAddress(ctx sdk.Context, cosmosAddr []byte) []byte
- func (k Keeper) GetParamSet(ctx sdk.Context) types.Params
- func (k Keeper) IterateAddressMappings(ctx sdk.Context, cb func(cosmosAddr []byte, evmAddr []byte) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) QueryAddressMappingByCosmosAddress(c context.Context, request *types.QueryAddressMappingByCosmosAddressRequest) (*types.QueryAddressMappingByCosmosAddressResponse, error)
- func (k Keeper) QueryAddressMappingByEVMAddress(c context.Context, request *types.QueryAddressMappingByEVMAddressRequest) (*types.QueryAddressMappingByEVMAddressResponse, error)
- func (k Keeper) QueryAddressMappings(c context.Context, request *types.QueryAddressMappingsRequest) (*types.QueryAddressMappingsResponse, error)
- func (k Keeper) QueryParams(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveAddressMapping(c context.Context, req *types.MsgRemoveAddressMapping) (*types.MsgRemoveAddressMappingResponse, error)
- func (k Keeper) SetAddressMapping(ctx sdk.Context, cosmosAddr []byte, evmAddr []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
ExportGenesis returns the module's exported genesis.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, gs types.GenesisState)
InitGenesis initializes the module's state from a provided genesis state.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) AddAddressMapping ¶
func (k Keeper) AddAddressMapping(c context.Context, req *types.MsgAddAddressMapping) (*types.MsgAddAddressMappingResponse, error)
func (Keeper) DeleteAddressMapping ¶
DeleteAddressMapping deletes the mapping between the cosmos and evm addresses
func (Keeper) GetCosmosAddressByEvmAddress ¶
func (Keeper) GetEvmAddressByCosmosAddress ¶
func (Keeper) GetParamSet ¶
GetParamSet returns the vote period from the parameters
func (Keeper) IterateAddressMappings ¶
func (k Keeper) IterateAddressMappings(ctx sdk.Context, cb func(cosmosAddr []byte, evmAddr []byte) (stop bool))
IterateAddressMappings iterates over all Cosmos to EVM address mappings
func (Keeper) QueryAddressMappingByCosmosAddress ¶
func (k Keeper) QueryAddressMappingByCosmosAddress(c context.Context, request *types.QueryAddressMappingByCosmosAddressRequest) (*types.QueryAddressMappingByCosmosAddressResponse, error)
func (Keeper) QueryAddressMappingByEVMAddress ¶
func (k Keeper) QueryAddressMappingByEVMAddress(c context.Context, request *types.QueryAddressMappingByEVMAddressRequest) (*types.QueryAddressMappingByEVMAddressResponse, error)
func (Keeper) QueryAddressMappings ¶
func (k Keeper) QueryAddressMappings(c context.Context, request *types.QueryAddressMappingsRequest) (*types.QueryAddressMappingsResponse, error)
func (Keeper) QueryParams ¶
func (k Keeper) QueryParams(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
QueryParams implements QueryServer
func (Keeper) RemoveAddressMapping ¶
func (k Keeper) RemoveAddressMapping(c context.Context, req *types.MsgRemoveAddressMapping) (*types.MsgRemoveAddressMappingResponse, error)
Click to show internal directories.
Click to hide internal directories.