states

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

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 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