2017-10-23 15:56:29 +00:00
|
|
|
package core
|
|
|
|
|
|
|
|
type Blockchain interface {
|
2017-11-06 20:36:12 +00:00
|
|
|
GetBlockByNumber(blockNumber int64) Block
|
2017-11-02 11:41:24 +00:00
|
|
|
SubscribeToBlocks(blocks chan Block)
|
|
|
|
StartListening()
|
2017-11-03 13:54:32 +00:00
|
|
|
StopListening()
|
2017-11-30 22:15:32 +00:00
|
|
|
GetContract(contractHash string) (Contract, error)
|
2017-11-30 22:36:18 +00:00
|
|
|
GetAttribute(contract Contract, attributeName string) (interface{}, error)
|
2017-10-23 15:56:29 +00:00
|
|
|
}
|