Documentation
¶
Index ¶
- Constants
- type AlephiumTxInfo
- type AlephiumWatcher
- type BlockTransactions
- type BridgeTransaction
- type EVMWatcher
- type EventsPerIndex
- type Input
- type TransactionUpdate
- type Watcher
- func (w *Watcher) GetLatestEventIndex(ctx context.Context, emitterChain vaa.ChainID) (*uint32, error)
- func (w *Watcher) GetLatestEventIndexAlephium(ctx context.Context) (*uint32, error)
- func (w *Watcher) GetLatestEventIndexBsc(ctx context.Context) (*uint32, error)
- func (w *Watcher) GetLatestEventIndexEth(ctx context.Context) (*uint32, error)
- func (w *Watcher) GetLatestEventIndexEvm(ctx context.Context, chainId vaa.ChainID, confirmations uint32) (*uint32, error)
- func (w *Watcher) Run() func(context.Context) error
Constants ¶
View Source
const ALPHContractAddressPrefix byte = 3
View Source
const BlockRangeLimit = 5000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlephiumTxInfo ¶
type AlephiumTxInfo struct {
Inputs []Input `json:"inputs"`
}
type AlephiumWatcher ¶
type AlephiumWatcher struct {
// contains filtered or unexported fields
}
func NewAlephiumWatcher ¶
func NewAlephiumWatcher( config *common.ChainConfig, nodeUrl string, apiKey string, logger *zap.Logger, blockTxsC chan<- []*BlockTransactions, explorerBackendUrl string, fromEventIndex uint32, pollInterval uint, ) *AlephiumWatcher
type BlockTransactions ¶
type BlockTransactions struct {
// contains filtered or unexported fields
}
type BridgeTransaction ¶
type BridgeTransaction struct {
// contains filtered or unexported fields
}
type EVMWatcher ¶
type EVMWatcher struct {
// contains filtered or unexported fields
}
func NewEVMWatcher ¶
type EventsPerIndex ¶
type EventsPerIndex struct {
// contains filtered or unexported fields
}
type TransactionUpdate ¶
type TransactionUpdate struct { ID string `bson:"_id"` TxId string `bson:"txId"` Address string `bson:"address"` BlockHash string `bson:"blockHash"` BlockNumber uint32 `bson:"blockNumber"` EventIndex uint32 `bson:"eventIndex"` Sequence uint64 `bson:"sequence"` EmitterChain vaa.ChainID `bson:"emitterChain"` TargetChain vaa.ChainID `bson:"targetChain"` Timestamp *time.Time `bson:"timestamp"` }
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(logger *zap.Logger, configs *common.BridgeConfig, db *mongo.Database, blockTxsC chan []*BlockTransactions) *Watcher
func (*Watcher) GetLatestEventIndex ¶
func (*Watcher) GetLatestEventIndexAlephium ¶
func (*Watcher) GetLatestEventIndexBsc ¶
func (*Watcher) GetLatestEventIndexEth ¶
func (*Watcher) GetLatestEventIndexEvm ¶
Click to show internal directories.
Click to hide internal directories.