testtxsystem

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterTxSystem

type CounterTxSystem struct {
	InitCount       uint64
	BeginBlockCount uint64
	EndBlockCount   uint64
	ExecuteCount    uint64
	RevertCount     uint64
	SummaryValue    uint64

	ExecuteCountDelta    uint64
	EndBlockCountDelta   uint64
	BeginBlockCountDelta uint64

	// setting this affects the state once EndBlock() is called
	EndBlockChangesState bool

	FixedState   txsystem.StateReader
	ErrorState   *ErrorState
	FeelessMode  bool
	ExecuteError error

	// fee charged for each tx
	Fee uint64
	// contains filtered or unexported fields
}

func (*CounterTxSystem) BeginBlock

func (m *CounterTxSystem) BeginBlock(nr uint64) error

func (*CounterTxSystem) Commit

func (*CounterTxSystem) CommittedUC added in v0.3.0

func (m *CounterTxSystem) CommittedUC() *types.UnicityCertificate

func (*CounterTxSystem) EndBlock

func (m *CounterTxSystem) EndBlock() (txsystem.StateSummary, error)

func (*CounterTxSystem) Execute

func (*CounterTxSystem) IsFeelessMode added in v1.0.0

func (m *CounterTxSystem) IsFeelessMode() bool

func (*CounterTxSystem) IsPermissionedMode added in v1.0.0

func (m *CounterTxSystem) IsPermissionedMode() bool

func (*CounterTxSystem) Revert

func (m *CounterTxSystem) Revert()

func (*CounterTxSystem) SerializeState added in v0.3.0

func (m *CounterTxSystem) SerializeState(writer io.Writer, committed bool) error

func (*CounterTxSystem) State

func (*CounterTxSystem) StateSize added in v1.0.0

func (m *CounterTxSystem) StateSize() (uint64, error)

func (*CounterTxSystem) StateSummary added in v0.2.0

func (m *CounterTxSystem) StateSummary() (txsystem.StateSummary, error)

func (*CounterTxSystem) TypeID added in v1.0.0

type ErrorState added in v0.4.0

type ErrorState struct {
	txsystem.StateReader
	Err error
}

func (*ErrorState) Serialize added in v0.4.0

func (m *ErrorState) Serialize(writer io.Writer, committed bool) error

type Summary

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

func (*Summary) Root

func (s *Summary) Root() []byte

func (*Summary) Summary

func (s *Summary) Summary() []byte

Jump to

Keyboard shortcuts

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