reporter

package
v0.0.0-...-989067b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationEventReporter

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

func EventListener

func EventListener(logger *zap.Logger) *AttestationEventReporter

func (*AttestationEventReporter) ReportMessagePublication

func (re *AttestationEventReporter) ReportMessagePublication(msg *MessagePublication)

ReportMessagePublication is invoked when an on-chain message is observed.

func (*AttestationEventReporter) ReportVAAQuorum

func (re *AttestationEventReporter) ReportVAAQuorum(msg *vaa.VAA)

ReportVAAQuorum is invoked when quorum is reached.

func (*AttestationEventReporter) Subscribe

func (re *AttestationEventReporter) Subscribe() *activeSubscription

func (*AttestationEventReporter) Unsubscribe

func (re *AttestationEventReporter) Unsubscribe(clientId int)

type MessagePublication

type MessagePublication struct {
	VAA vaa.VAA
	// The native transaction identifier from the EmitterAddress interaction.
	InitiatingTxID common.Hash
}

MessagePublication is a VAA along with a transaction identifer from the EmiterChain

Jump to

Keyboard shortcuts

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