keeper

package
v0.0.0-...-c573acc Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

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(m codec.Codec, erc20Keeper erc20keeper.Keeper, paramSpace paramtypes.Subspace) Keeper

NewKeeper creates a new keeper instance

func (Keeper) Codec

func (k Keeper) Codec() codec.Codec

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis exports empty genesis state.

func (Keeper) HandleContractCall

func (k Keeper) HandleContractCall(goCtx context.Context, signers []authtypes.Account, callInfo txtypes.ContractCallInfo) (*txtypes.ContractCallResult, error)

HandleContractCall is called by ContractModule

func (Keeper) HandleTransferFrom

func (k Keeper) HandleTransferFrom(ctx sdk.Context, spender sdk.AccAddress, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)

InitGenesis initializes Params of genesis state.

func (Keeper) SetAdmin

func (k Keeper) SetAdmin(ctx sdk.Context, admin sdk.AccAddress) error

func (Keeper) TotalSupply

func (k Keeper) TotalSupply(ctx context.Context, req *emptypb.Empty) (*types.QueryTotalSupplyResponse, error)

func (Keeper) Transfer

func (k Keeper) Transfer(ctx sdk.Context, sender, recipient sdk.AccAddress, amount int64) (*txtypes.ContractCallResult, error)

Jump to

Keyboard shortcuts

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