keeper

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package keeper implements custom bank keeper through CVM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	bankKeeper.BaseKeeper
	// contains filtered or unexported fields
}

Keeper is a wrapper of the basekeeper with CVM keeper.

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, ak types.AccountKeeper, cvmk types.CVMKeeper, paramSpace paramsTypes.Subspace,
	blockedAddrs map[string]bool) Keeper

NewKeeper returns a new Keeper.

func (Keeper) GetCode

func (k Keeper) GetCode(ctx sdk.Context, addr sdk.AccAddress) ([]byte, error)

GetCode retrieves VM code from an account.

func (Keeper) InputOutputCoins

func (k Keeper) InputOutputCoins(ctx sdk.Context, inputs []bankTypes.Input, outputs []bankTypes.Output) error

InputOutputCoins handles multisend logic.

func (Keeper) SendCoins

func (k Keeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

SendCoins checks if there is code in the receiver account, and wires the send through CVM if it does.

Jump to

Keyboard shortcuts

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