Add FlipKick log events transformer

This commit is contained in:
Elizabeth
2018-08-07 10:51:34 -05:00
committed by GitHub
parent 66decaaa78
commit c617cd9c9d
1066 changed files with 200929 additions and 95 deletions
+6 -1
View File
@@ -1,12 +1,17 @@
package core
import "math/big"
import (
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/core/types"
"math/big"
)
type BlockChain interface {
ContractDataFetcher
GetBlockByNumber(blockNumber int64) (Block, error)
GetHeaderByNumber(blockNumber int64) (Header, error)
GetLogs(contract Contract, startingBlockNumber *big.Int, endingBlockNumber *big.Int) ([]Log, error)
GetEthLogsWithCustomQuery(query ethereum.FilterQuery) ([]types.Log, error)
LastBlock() *big.Int
Node() Node
}
+1
View File
@@ -1,6 +1,7 @@
package core
type Header struct {
Id int64
BlockNumber int64 `db:"block_number"`
Hash string
Raw []byte
+1
View File
@@ -10,6 +10,7 @@ const (
GETH NodeType = iota
PARITY
INFURA
GANACHE
)
type Node struct {