keeper

package
v0.0.6-hotfix Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	ps paramtypes.Subspace,

	accountKeeper types.AccountKeeper,
	evmKeeper types.EVMKeeper,
	oracleKeeper types.OracleKeeper,
	interopClientFactory *interop.InteropClientFactory,
) *Keeper

func (Keeper) CheckValidChainId

func (k Keeper) CheckValidChainId(ctx sdk.Context, chainId string) bool

func (Keeper) FindExternalOwner

func (k Keeper) FindExternalOwner(ctx sdk.Context, chainId string, contractAddr string, tokenIdHex string) (*common.Address, error)

func (Keeper) FindInternalOwner

func (k Keeper) FindInternalOwner(
	ctx sdk.Context, contractAddr string, tokenIdHex string,
) (*common.Address, error)

FindInternalOwner returns the owner of the given NFT on current chain

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context)

InitGenesis initializes the module's state from a provided genesis state. If we do not set the module account here, we cannot query the EVM state with nftownership's module account.

func (Keeper) Logger

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

func (Keeper) OwnerOf

func (k Keeper) OwnerOf(ctx sdk.Context, chainId string, contractAddr string, tokenIdHex string) (*common.Address, error)

func (Keeper) Params

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

Jump to

Keyboard shortcuts

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