Documentation ¶
Index ¶
- type FieldsData
- type GetCheckpointResponse
- type MultipleBlockResult
- type RequestPayload
- type SuiCheckpointSN
- type SuiEventError
- type SuiEventMsg
- type SuiEventResponse
- type SuiEventResponseData
- type SuiResult
- type SuiResultInfo
- type SuiTxnQuery
- type SuiTxnQueryError
- type TxBlockResult
- type Watcher
- type WatcherConfig
- func (wc *WatcherConfig) Create(msgC chan<- *common.MessagePublication, ...) (interfaces.L1Finalizer, supervisor.Runnable, error)
- func (wc *WatcherConfig) GetChainID() vaa.ChainID
- func (wc *WatcherConfig) GetNetworkID() watchers.NetworkID
- func (wc *WatcherConfig) RequiredL1Finalizer() watchers.NetworkID
- func (wc *WatcherConfig) SetL1Finalizer(l1finalizer interfaces.L1Finalizer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldsData ¶
type GetCheckpointResponse ¶
type MultipleBlockResult ¶
type MultipleBlockResult struct { Jsonrpc string `json:"jsonrpc"` Result []TxBlockResult `json:"result"` }
type RequestPayload ¶
type SuiCheckpointSN ¶
type SuiEventError ¶
type SuiEventMsg ¶
type SuiEventResponse ¶
type SuiEventResponse struct { Jsonrpc string `json:"jsonrpc"` Result SuiEventResponseData `json:"result"` ID int `json:"id"` }
type SuiEventResponseData ¶
type SuiResult ¶
type SuiResult struct { ID struct { TxDigest *string `json:"txDigest"` EventSeq *string `json:"eventSeq"` } `json:"id"` PackageID *string `json:"packageId"` TransactionModule *string `json:"transactionModule"` Sender *string `json:"sender"` Type *string `json:"type"` Bcs *string `json:"bcs"` Timestamp *string `json:"timestampMs"` Fields *json.RawMessage `json:"parsedJson"` }
type SuiResultInfo ¶
type SuiResultInfo struct {
// contains filtered or unexported fields
}
type SuiTxnQuery ¶
type SuiTxnQueryError ¶
type TxBlockResult ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is responsible for looking over Sui blockchain and reporting new transactions to the wormhole contract
func NewWatcher ¶
func NewWatcher( suiRPC string, suiMoveEventType string, unsafeDevMode bool, messageEvents chan<- *common.MessagePublication, obsvReqC <-chan *gossipv1.ObservationRequest, ) *Watcher
NewWatcher creates a new Sui appid watcher
type WatcherConfig ¶
type WatcherConfig struct { NetworkID watchers.NetworkID // human readable name ChainID vaa.ChainID // ChainID Rpc string SuiMoveEventType string }
func (*WatcherConfig) Create ¶
func (wc *WatcherConfig) Create( msgC chan<- *common.MessagePublication, obsvReqC <-chan *gossipv1.ObservationRequest, _ <-chan *query.PerChainQueryInternal, _ chan<- *query.PerChainQueryResponseInternal, _ chan<- *common.GuardianSet, env common.Environment, ) (interfaces.L1Finalizer, supervisor.Runnable, error)
func (*WatcherConfig) GetChainID ¶
func (wc *WatcherConfig) GetChainID() vaa.ChainID
func (*WatcherConfig) GetNetworkID ¶
func (wc *WatcherConfig) GetNetworkID() watchers.NetworkID
func (*WatcherConfig) RequiredL1Finalizer ¶
func (wc *WatcherConfig) RequiredL1Finalizer() watchers.NetworkID
func (*WatcherConfig) SetL1Finalizer ¶
func (wc *WatcherConfig) SetL1Finalizer(l1finalizer interfaces.L1Finalizer)
Click to show internal directories.
Click to hide internal directories.