events

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: AGPL-3.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedEvent added in v0.33.1

type ParsedEvent struct {
	Type         ParsedEventType
	EventType    flow.EventType
	Address      string
	Contract     string
	ContractName string
	Name         string
}

func ParseEvent added in v0.33.1

func ParseEvent(eventType flow.EventType) (*ParsedEvent, error)

ParseEvent parses an event type into its parts. There are 2 valid EventType formats: - flow.[EventName] - A.[Address].[Contract].[EventName] Any other format results in an error.

func ValidateEvent added in v0.33.1

func ValidateEvent(eventType flow.EventType, chain flow.Chain) (*ParsedEvent, error)

ValidateEvent validates an event type is properly formed and for the correct network, and returns a parsed event. If the event type is invalid, an error is returned.

type ParsedEventType added in v0.33.1

type ParsedEventType int
const (
	ProtocolEventType ParsedEventType = iota + 1
	AccountEventType
)

type SyncedBlock

type SyncedBlock struct {
	OriginID flow.Identifier
	Block    messages.UntrustedBlock
}

type SyncedClusterBlock

type SyncedClusterBlock struct {
	OriginID flow.Identifier
	Block    messages.UntrustedClusterBlock
}

Jump to

Keyboard shortcuts

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