adjusted FetchContractData to work with variable number of contract method arguments, changed fetcher's FetchSupply method to more general FetchBigInt method and added FetchBool and FetchAddress methods

This commit is contained in:
Ian Norden
2018-11-03 13:49:23 -05:00
parent 93960e7c4e
commit ccd21f73c9
12 changed files with 312 additions and 95 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ type BlockChain interface {
}
type ContractDataFetcher interface {
FetchContractData(abiJSON string, address string, method string, methodArg interface{}, result interface{}, blockNumber int64) error
FetchContractData(abiJSON string, address string, method string, methodArgs []interface{}, result interface{}, blockNumber int64) error
}