mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 23:56:46 +01:00
18 lines
502 B
Go
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"`
|
||
|
}
|