states

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: LGPL-3.0 Imports: 4 Imported by: 1 module, 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

func GenRawStorageItem

func GenRawStorageItem(value []byte) []byte

func GetValueFromRawStorageItem

func GetValueFromRawStorageItem(raw []byte) ([]byte, error)

Types

type BookkeeperState

type BookkeeperState struct {
	StateBase
	CurrBookkeeper []keypair.PublicKey
	NextBookkeeper []keypair.PublicKey
}

func (*BookkeeperState) Deserialization

func (this *BookkeeperState) Deserialization(source *common.ZeroCopySource) error

func (*BookkeeperState) Serialization

func (this *BookkeeperState) Serialization(sink *common.ZeroCopySink)

func (*BookkeeperState) ToArray

func (v *BookkeeperState) ToArray() []byte

type StateBase

type StateBase struct {
	StateVersion byte
}

func (*StateBase) Deserialization

func (this *StateBase) Deserialization(source *common.ZeroCopySource) error

func (*StateBase) Serialization

func (this *StateBase) Serialization(sink *common.ZeroCopySink)

type StateValue

type StateValue interface {
	Serialize(w io.Writer) error
	Deserialize(r io.Reader) error
}

type StorageItem

type StorageItem struct {
	StateBase
	Value []byte
}

func (*StorageItem) Deserialization

func (this *StorageItem) Deserialization(source *common.ZeroCopySource) error

func (*StorageItem) Serialization

func (this *StorageItem) Serialization(sink *common.ZeroCopySink)

func (*StorageItem) ToArray

func (storageItem *StorageItem) ToArray() []byte

type StorageKey

type StorageKey struct {
	ContractAddress common.Address
	Key             []byte
}

func (*StorageKey) Deserialization

func (this *StorageKey) Deserialization(source *common.ZeroCopySource) error

func (*StorageKey) Serialization

func (this *StorageKey) Serialization(sink *common.ZeroCopySink)

func (*StorageKey) ToArray

func (this *StorageKey) ToArray() []byte

type ValidatorState

type ValidatorState struct {
	StateBase
	PublicKey keypair.PublicKey
}

func (*ValidatorState) Deserialization

func (this *ValidatorState) Deserialization(source *common.ZeroCopySource) error

func (*ValidatorState) Serialization

func (this *ValidatorState) Serialization(sink *common.ZeroCopySink)

type VoteState

type VoteState struct {
	StateBase
	PublicKeys []keypair.PublicKey
	Count      common.Fixed64
}

func (*VoteState) Deserialization

func (this *VoteState) Deserialization(source *common.ZeroCopySource) error

func (*VoteState) Serialization

func (this *VoteState) Serialization(sink *common.ZeroCopySink)

Jump to

Keyboard shortcuts

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