types

package
v0.0.0-...-f2ae4c7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package types adds AccountKeeper and CVMKeeper expected keeper.

Index

Constants

This section is empty.

Variables

View Source
var ModuleCdc *codec.Codec

ModuleCdc defines module codec.

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec registers concrete types on codec.

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) exported.Account

	GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account
	GetAllAccounts(ctx sdk.Context) []exported.Account
	SetAccount(ctx sdk.Context, acc exported.Account)

	IterateAccounts(ctx sdk.Context, process func(exported.Account) bool)
}

AccountKeeper defines the account contract that must be fulfilled when creating a x/bank keeper.

type CVMKeeper

type CVMKeeper interface {
	Send(ctx sdk.Context, from, to sdk.AccAddress, value sdk.Coins) error
	GetCode(ctx sdk.Context, addr crypto.Address) ([]byte, error)
}

CVMKeeper defines the CVM interface that must be fulfilled when wrapping the basekeeper.

Jump to

Keyboard shortcuts

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