cic-chain-events/internal/events/events.go
Mohammed Sohail f0b65a59ad
refactor: filters, jetstream emitter
* add register filter
* update gas filter
2023-02-24 10:21:54 +00:00

18 lines
502 B
Go

package events
type EventEmitter interface {
Close()
Publish(subject string, dedupId string, eventPayload interface{}) error
}
type MinimalTxInfo struct {
Block uint64 `json:"block"`
From string `json:"from"`
To string `json:"to"`
ContractAddress string `json:"contractAddress"`
Success bool `json:"success"`
TxHash string `json:"transactionHash"`
TxIndex uint `json:"transactionIndex"`
Value uint64 `json:"value"`
}