Contract hist (#84)

Add ability to query contract historical state
This commit is contained in:
Matt K
2017-12-04 12:54:33 -06:00
committed by ericmeyer
parent 7501fe70a7
commit 71de8e970d
8 changed files with 143 additions and 44 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
package core
import "math/big"
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
GetContract(contractHash string) (Contract, error)
GetAttribute(contract Contract, attributeName string) (interface{}, error)
GetAttribute(contract Contract, attributeName string, blockNumber *big.Int) (interface{}, error)
}