keeper

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultParamspace = types.ModuleName
)

Variables

This section is empty.

Functions

func ParamKeyTable

func ParamKeyTable() params.KeyTable

Types

type Keeper

type Keeper struct {
	Cdc *codec.Codec

	StateDB *types.CommitStateDB
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey, codeKey sdk.StoreKey, codespace sdk.CodespaceType, paramstore params.Subspace, ak auth.AccountKeeper) Keeper

func (*Keeper) GetCode

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

func (*Keeper) GetLogs

func (k *Keeper) GetLogs(ctx sdk.Context, hash sdk.Hash) []*types.Log

func (Keeper) GetMaxCodeSize

func (k Keeper) GetMaxCodeSize(ctx sdk.Context) (res uint64)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (res types.Params)

func (Keeper) GetState

func (k Keeper) GetState(ctx sdk.Context, addr sdk.AccAddress, hash sdk.Hash) sdk.Hash

func (Keeper) GetVMCommonGasParams

func (k Keeper) GetVMCommonGasParams(ctx sdk.Context) (params types.VMCommonGasParams)

func (Keeper) GetVMOpGasParams

func (k Keeper) GetVMOpGasParams(ctx sdk.Context) (params [256]uint64)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) SetMaxCodeSize

func (k Keeper) SetMaxCodeSize(ctx sdk.Context, maxCodeSize uint64)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

func (Keeper) SetVMCommonGasParams

func (k Keeper) SetVMCommonGasParams(ctx sdk.Context, params types.VMCommonGasParams)

func (Keeper) SetVMOpGasParams

func (k Keeper) SetVMOpGasParams(ctx sdk.Context, params [256]uint64)

Jump to

Keyboard shortcuts

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