wormhole-explorer/fly/event/types.go

29 lines
701 B
Go
Raw Normal View History

2024-04-24 07:00:30 -07:00
package event
import (
"context"
"time"
)
type DuplicateVaa struct {
VaaID string `json:"vaaId"`
2024-04-24 08:55:57 -07:00
ChainID uint16 `json:"chainId"`
2024-04-24 07:00:30 -07:00
Version uint8 `json:"version"`
GuardianSetIndex uint32 `json:"guardianSetIndex"`
Vaa []byte `json:"vaas"`
Digest string `json:"digest"`
ConsistencyLevel uint8 `json:"consistencyLevel"`
Timestamp *time.Time `json:"timestamp"`
}
type event struct {
2024-04-25 13:35:53 -07:00
TrackID string `json:"trackId"`
Type string `json:"type"`
Source string `json:"source"`
Data any `json:"data"`
2024-04-24 07:00:30 -07:00
}
type EventDispatcher interface {
NewDuplicateVaa(ctx context.Context, e DuplicateVaa) error
}