state

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(gasConfig config.GasConfig) *Manager

func (*Manager) ClearState

func (mgr *Manager) ClearState(mode sdk.ExecMode)

func (*Manager) GetState

func (mgr *Manager) GetState(mode sdk.ExecMode) *State

func (*Manager) SetState

func (mgr *Manager) SetState(
	mode sdk.ExecMode,
	unbranchedStore storetypes.CommitMultiStore,
	h cmtproto.Header,
	logger log.Logger,
	streamingManager storetypes.StreamingManager,
)

SetState sets the BaseApp's state for the corresponding mode with a branched multi-store (i.e. a CacheMultiStore) and a new Context with the same multi-store branch, and provided header.

type State

type State struct {
	MultiStore storetypes.CacheMultiStore
	// contains filtered or unexported fields
}

func NewState

func NewState(ctx sdk.Context, ms storetypes.CacheMultiStore) *State

func (*State) CacheMultiStore

func (st *State) CacheMultiStore() storetypes.CacheMultiStore

CacheMultiStore calls and returns a CacheMultiStore on the state's underlying CacheMultiStore.

func (*State) Context

func (st *State) Context() sdk.Context

Context returns the Context of the state.

func (*State) SetContext

func (st *State) SetContext(ctx sdk.Context)

SetContext updates the state's context to the context provided.

Jump to

Keyboard shortcuts

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