forked from cerc-io/ipld-eth-server
Implement SingleTransformerConfig
This commit is contained in:
1 parent
7d3bf1f0f6
commit
33f1f62c11
11 files changed
+33
-26
No files matched your search
@@ -36,6 +36,15 @@ type TransformerConfig struct {
|
||||
EndingBlockNumber int64
|
||||
}
|
||||
|
||||
type SingleTransformerConfig struct {
|
||||
TransformerName string
|
||||
ContractAddresses []string
|
||||
ContractAbi string
|
||||
Topic string
|
||||
StartingBlockNumber int64
|
||||
EndingBlockNumber int64
|
||||
}
|
||||
|
||||
func HexToInt64(byteString string) int64 {
|
||||
value := common.HexToHash(byteString)
|
||||
return value.Big().Int64()
|
||||
|
||||
Reference in new issue
Block a user