test

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitStateDiff

func CommitStateDiff() *commitStateDiffInputBuilder

Types

type Driver

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

func NewStateStorageDriver

func NewStateStorageDriver(numOfStateRevisionsToRetain uint32) *Driver

func (*Driver) CommitStateDiff

func (*Driver) CommitValuePairs

func (d *Driver) CommitValuePairs(ctx context.Context, contract string, keyValues ...string)

func (*Driver) CommitValuePairsAtHeight

func (d *Driver) CommitValuePairsAtHeight(ctx context.Context, h int, contract string, keyValues ...string) (*services.CommitStateDiffOutput, error)

func (*Driver) GetBlockHeightAndTimestamp

func (d *Driver) GetBlockHeightAndTimestamp(ctx context.Context) (int, int, error)

func (*Driver) ReadKeys

func (d *Driver) ReadKeys(ctx context.Context, contract string, keys ...string) ([]*keyValue, error)

func (*Driver) ReadKeysFromRevision

func (d *Driver) ReadKeysFromRevision(ctx context.Context, revision int, contract string, keys ...string) ([]*keyValue, error)

func (*Driver) ReadSingleKey

func (d *Driver) ReadSingleKey(ctx context.Context, contract string, key string) ([]byte, error)

func (*Driver) ReadSingleKeyFromRevision

func (d *Driver) ReadSingleKeyFromRevision(ctx context.Context, revision int, contract string, key string) ([]byte, error)

Jump to

Keyboard shortcuts

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