605b0a96ae
* Add graphql server * Update Makefile * Update log_filters constraint * Add GetLogFilter to repo * Update travis (use Makefile, go fmt, go vet) * Add logFilter schema and resolvers * Add GetWatchedEvent to watched_events_repo * Add watchedEventLog schema and resolvers
15 lines
746 B
Go
15 lines
746 B
Go
package core
|
|
|
|
type WatchedEvent struct {
|
|
Name string `json:"name"` // name
|
|
BlockNumber int64 `json:"block_number" db:"block_number"` // block_number
|
|
Address string `json:"address"` // address
|
|
TxHash string `json:"tx_hash" db:"tx_hash"` // tx_hash
|
|
Index int64 `json:"index"` // index
|
|
Topic0 string `json:"topic0"` // topic0
|
|
Topic1 string `json:"topic1"` // topic1
|
|
Topic2 string `json:"topic2"` // topic2
|
|
Topic3 string `json:"topic3"` // topic3
|
|
Data string `json:"data"` // data
|
|
}
|