Documentation ¶
Index ¶
- type Fetcher
- func (f Fetcher) FetchAddress(method, contractAbi, contractAddress string, blockNumber int64, ...) (common.Address, error)
- func (f Fetcher) FetchBigInt(method, contractAbi, contractAddress string, blockNumber int64, ...) (big.Int, error)
- func (f Fetcher) FetchBool(method, contractAbi, contractAddress string, blockNumber int64, ...) (bool, error)
- func (f Fetcher) FetchHash(method, contractAbi, contractAddress string, blockNumber int64, ...) (common.Hash, error)
- func (f Fetcher) FetchString(method, contractAbi, contractAddress string, blockNumber int64, ...) (string, error)
- type FetcherInterface
- type LogFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
BlockChain core.BlockChain // Underlying Blockchain
}
Fetcher struct
func (Fetcher) FetchAddress ¶
func (f Fetcher) FetchAddress(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (common.Address, error)
FetchAddress is the method used to fetch address value from contract
func (Fetcher) FetchBigInt ¶
func (f Fetcher) FetchBigInt(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (big.Int, error)
FetchBigInt is the method used to fetch big.Int value from contract
func (Fetcher) FetchBool ¶
func (f Fetcher) FetchBool(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (bool, error)
FetchBool is the method used to fetch bool value from contract
type FetcherInterface ¶
type FetcherInterface interface { FetchBigInt(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (big.Int, error) FetchBool(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (bool, error) FetchAddress(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (common.Address, error) FetchString(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (string, error) FetchHash(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (common.Hash, error) }
FetcherInterface is the interface definition for a fetcher
type LogFetcher ¶
type LogFetcher interface {
FetchLogs(contractAddresses []string, topics []common.Hash, missingHeader core.Header) ([]types.Log, error)
}
Fetcher is the fetching interface
func NewFetcher ¶
func NewFetcher(blockchain core.BlockChain) LogFetcher
NewFetcher returns a new Fetcher
Click to show internal directories.
Click to hide internal directories.