fixture

package
v0.2.21-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 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 TransactionResultGenerator

type TransactionResultGenerator struct {
	Blocks []types.BlockID
	Addrs  []types.Address
	Layers []types.LayerID
	// contains filtered or unexported fields
}

TransactionResultGenerator generates random transaction with results. Transactions are not syntactically or contextually valid. This is for testing databases and APIs.

func NewTransactionResultGenerator

func NewTransactionResultGenerator() *TransactionResultGenerator

NewTransactionResultGenerator with some random parameters.

func (*TransactionResultGenerator) Next

Next generates TransactionWithResult.

func (*TransactionResultGenerator) WithAddresses

WithAddresses update addresses.

func (*TransactionResultGenerator) WithBlocks

WithBlocks update blocks ids.

func (*TransactionResultGenerator) WithLayers

WithLayers updates layers.

func (*TransactionResultGenerator) WithSeed

WithSeed update randomness source.

Jump to

Keyboard shortcuts

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