keeper

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 5 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

This section is empty.

Types

type Keeper

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

Keeper is a wrapper of the basekeeper with CVM keeper.

func NewKeeper

func NewKeeper(
	ak types.AccountKeeper, cvmk types.CVMKeeper, paramSpace params.Subspace, blacklistedAddrs 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) 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