params

package
v0.0.0-...-b5e13e0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StoreKey is the string key for the params store
	StoreKey = subspace.StoreKey

	// TStoreKey is the string key for the params transient store
	TStoreKey = subspace.TStoreKey
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the global paramstore

func NewKeeper

func NewKeeper(cdc *codec.Codec, key *sdk.KVStoreKey, tkey *sdk.TransientStoreKey) (k Keeper)

NewKeeper constructs a params keeper

func (Keeper) GetSubspace

func (k Keeper) GetSubspace(storename string) (Subspace, bool)

Get existing substore from keeper

func (Keeper) Subspace

func (k Keeper) Subspace(spacename string) Subspace

Allocate subspace used for keepers

type KeyTable

type KeyTable = subspace.KeyTable

re-export types from subspace 从子空间重新导出类型 ?

func NewKeyTable

func NewKeyTable(keytypes ...interface{}) KeyTable

nolint - re-export functions from subspace

type ParamSet

type ParamSet = subspace.ParamSet

type ParamSetPairs

type ParamSetPairs = subspace.ParamSetPairs

re-export types from subspace 从子空间重新导出类型 ?

type ReadOnlySubspace

type ReadOnlySubspace = subspace.ReadOnlySubspace

只读仓库?

type Subspace

type Subspace = subspace.Subspace

参数仓库?

func DefaultTestComponents

func DefaultTestComponents(t *testing.T) (sdk.Context, Subspace, func() sdk.CommitID)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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