keeper

package
v0.0.0-...-f9bcfd4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 12 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(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 bridge module's portID and denom trace info into its genesis state.

func (Keeper) HandleApprove

func (k Keeper) HandleApprove(ctx sdk.Context, owner types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)

func (Keeper) HandleBurn

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

func (Keeper) HandleTransfer

func (k Keeper) HandleTransfer(ctx sdk.Context, sender types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)

func (Keeper) HandleTransferFrom

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

func (Keeper) InitGenesis

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

InitGenesis initializes the bridge module state and binds to PortID.

func (Keeper) SetAdmin

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

func (Keeper) TotalSupply

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

Jump to

Keyboard shortcuts

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