Move WatchedContract back to core
This commit is contained in:
@@ -8,5 +8,6 @@ type Blockchain interface {
|
||||
StartListening()
|
||||
StopListening()
|
||||
GetContract(contractHash string) (Contract, error)
|
||||
GetContractAttributes(contractHash string) (ContractAttributes, error)
|
||||
GetAttribute(contract Contract, attributeName string, blockNumber *big.Int) (interface{}, error)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package core
|
||||
|
||||
type WatchedContract struct {
|
||||
Abi string
|
||||
Hash string
|
||||
Transactions []Transaction
|
||||
}
|
||||
Reference in New Issue
Block a user