Documentation ¶
Index ¶
- func GenerateAccountContractEvent(t *testing.T, qualifiedIdentifier string, address flow.Address) flow.Event
- func GenerateAccountCreateEvent(t *testing.T, address flow.Address) flow.Event
- func GetEventsWithEncoding(n int, version entities.EventEncodingVersion) []flow.Event
- type EventGeneratorOption
- type Events
- type Identifiers
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
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
type Identifiers ¶
type Identifiers struct {
// contains filtered or unexported fields
}
func IdentifierGenerator ¶
func IdentifierGenerator() *Identifiers
func (*Identifiers) New ¶
func (g *Identifiers) New() flow.Identifier
Click to show internal directories.
Click to hide internal directories.