-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathevent.go
More file actions
29 lines (24 loc) · 776 Bytes
/
event.go
File metadata and controls
29 lines (24 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package listener
import (
"github.com/ethereum/go-ethereum/common"
)
type ContractEvent struct {
// block in which the transaction was included
BlockNumber uint64
// hash of the block in which the transaction was included
BlockHash common.Hash
// hash of the transaction
TxHash common.Hash
// contract which the event belongs to
Contract *Contract
// name of the contract event
Name string
// supplied by the contract, usually ABI-encoded
Data []byte
// The Removed field is true if this log was reverted due to a chain reorganisation.
// You must pay attention to this field if you receive logs through a filter query.
Removed bool
}
//func (c ContractEvent) Unpack(output interface{}) error {
// return c.Contract.abi.Unpack(output, c.Name, c.Data)
//}