generator

package
v0.35.12 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccountContractEvent added in v0.33.30

func GenerateAccountContractEvent(t *testing.T, qualifiedIdentifier string, address flow.Address) flow.Event

GenerateAccountContractEvent returns a mock account contract event.

func GenerateAccountCreateEvent added in v0.33.30

func GenerateAccountCreateEvent(t *testing.T, address flow.Address) flow.Event

GenerateAccountCreateEvent returns a mock account creation event.

func GetEventsWithEncoding added in v0.32.7

func GetEventsWithEncoding(n int, version entities.EventEncodingVersion) []flow.Event

GetEventsWithEncoding generates a specified number of events with a given encoding version.

Types

type EventGeneratorOption added in v0.31.11

type EventGeneratorOption func(*Events)

func WithEncoding added in v0.31.11

func WithEncoding(encoding entities.EventEncodingVersion) EventGeneratorOption

type Events

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

func EventGenerator

func EventGenerator(opts ...EventGeneratorOption) *Events

func (*Events) New

func (g *Events) New() flow.Event

type Identifiers

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

func IdentifierGenerator

func IdentifierGenerator() *Identifiers

func (*Identifiers) New

func (g *Identifiers) New() flow.Identifier

Jump to

Keyboard shortcuts

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