mockstate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	TransactionsByID       map[string]proto.Transaction
	TransactionsHeightByID map[string]uint64
	WavesBalance           uint64
	AssetsBalances         map[crypto.Digest]uint64
	DataEntries            map[string]proto.DataEntry
	AssetIsSponsored       bool
	BlockHeaderByHeight    *proto.BlockHeader
	NewestHeightVal        proto.Height
	Assets                 map[crypto.Digest]proto.AssetInfo
}

func (State) AddingBlockHeight

func (a State) AddingBlockHeight() (uint64, error)

func (State) BlockVRF added in v0.5.0

func (a State) BlockVRF(blockHeader *proto.BlockHeader, height proto.Height) ([]byte, error)

func (State) HitSourceAtHeight added in v0.5.0

func (a State) HitSourceAtHeight(height uint64) ([]byte, error)

func (State) IsNotFound

func (a State) IsNotFound(err error) bool

func (State) NewestAccountBalance

func (a State) NewestAccountBalance(account proto.Recipient, asset []byte) (uint64, error)

func (State) NewestAddrByAlias

func (a State) NewestAddrByAlias(alias proto.Alias) (proto.Address, error)

func (State) NewestAssetInfo

func (a State) NewestAssetInfo(assetID crypto.Digest) (*proto.AssetInfo, error)

func (State) NewestAssetIsSponsored

func (a State) NewestAssetIsSponsored(assetID crypto.Digest) (bool, error)

func (State) NewestHeaderByHeight

func (a State) NewestHeaderByHeight(height proto.Height) (*proto.BlockHeader, error)

func (State) NewestHeight

func (a State) NewestHeight() (uint64, error)

func (State) NewestTransactionByID

func (a State) NewestTransactionByID(b []byte) (proto.Transaction, error)

func (State) NewestTransactionHeightByID

func (a State) NewestTransactionHeightByID(b []byte) (uint64, error)

func (State) RetrieveNewestBinaryEntry

func (a State) RetrieveNewestBinaryEntry(account proto.Recipient, key string) (*proto.BinaryDataEntry, error)

func (State) RetrieveNewestBooleanEntry

func (a State) RetrieveNewestBooleanEntry(account proto.Recipient, key string) (*proto.BooleanDataEntry, error)

func (State) RetrieveNewestEntry

func (a State) RetrieveNewestEntry(account proto.Recipient, key string) (proto.DataEntry, error)

func (State) RetrieveNewestIntegerEntry

func (a State) RetrieveNewestIntegerEntry(account proto.Recipient, key string) (*proto.IntegerDataEntry, error)

func (State) RetrieveNewestStringEntry

func (a State) RetrieveNewestStringEntry(account proto.Recipient, key string) (*proto.StringDataEntry, error)

Jump to

Keyboard shortcuts

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