Documentation ¶
Index ¶
- type ImmutableState
- func (st *ImmutableState) AllStatuses(ctx context.Context) ([]*churp.Status, error)
- func (st *ImmutableState) ConsensusParameters(ctx context.Context) (*churp.ConsensusParameters, error)
- func (st *ImmutableState) Status(ctx context.Context, runtimeID common.Namespace, churpID uint8) (*churp.Status, error)
- func (st *ImmutableState) Statuses(ctx context.Context, runtimeID common.Namespace) ([]*churp.Status, error)
- type MutableState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImmutableState ¶
type ImmutableState struct {
// contains filtered or unexported fields
}
ImmutableState is a immutable state wrapper.
func NewImmutableState ¶
func NewImmutableState(ctx context.Context, state abciAPI.ApplicationQueryState, version int64) (*ImmutableState, error)
NewImmutableState creates a new immutable state wrapper.
func (*ImmutableState) AllStatuses ¶
AllStatuses returns the CHURP statuses for all runtimes.
func (*ImmutableState) ConsensusParameters ¶
func (st *ImmutableState) ConsensusParameters(ctx context.Context) (*churp.ConsensusParameters, error)
ConsensusParameters returns the consensus parameters.
type MutableState ¶
type MutableState struct { *ImmutableState // contains filtered or unexported fields }
MutableState is a mutable state wrapper.
func NewMutableState ¶
func NewMutableState(tree mkvs.KeyValueTree) *MutableState
NewMutableState creates a new mutable state wrapper.
func (*MutableState) SetConsensusParameters ¶
func (st *MutableState) SetConsensusParameters(ctx context.Context, params *churp.ConsensusParameters) error
SetConsensusParameters updates the state using the provided consensus parameters.
This method must only be called from InitChain or EndBlock contexts.
Click to show internal directories.
Click to hide internal directories.