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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
BlockChain core.BlockChain // Underyling Blockchain
}
Fetcher struct
func (Fetcher) FetchAddress ¶
func (f Fetcher) FetchAddress(method, contractAbi, contractAddress string, blockNumber int64, methodArgs []interface{}) (common.Address, error)
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)
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)
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) }
Interface definition for a Fetcher
Click to show internal directories.
Click to hide internal directories.