keeper

package
v8.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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) DeleteAddressMapping

func (k Keeper) DeleteAddressMapping(ctx sdk.Context, cosmosAddr []byte) error

DeleteAddressMapping deletes the mapping between the cosmos and evm addresses

func (Keeper) GetCosmosAddressByEvmAddress

func (k Keeper) GetCosmosAddressByEvmAddress(ctx sdk.Context, evmAddr []byte) []byte

func (Keeper) GetEvmAddressByCosmosAddress

func (k Keeper) GetEvmAddressByCosmosAddress(ctx sdk.Context, cosmosAddr []byte) []byte

func (Keeper) GetParamSet

func (k Keeper) GetParamSet(ctx sdk.Context) types.Params

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) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) QueryParams

QueryParams implements QueryServer

func (Keeper) SetAddressMapping

func (k Keeper) SetAddressMapping(ctx sdk.Context, cosmosAddr []byte, evmAddr []byte) error

SetAddressMapping stores the mapping between the cosmos and evm addresses

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL