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-27 22:18:42 +00:00
|
|
|
GetContractAttributes(contractHash string) ([]ContractAttribute, error)
|
2017-11-27 15:39:53 +00:00
|
|
|
GetContractStateAttribute(contractHash string, attributeName string) (*string, error)
|
2017-10-23 15:56:29 +00:00
|
|
|
}
|