Extract Attributes to contract struct

This commit is contained in:
Eric Meyer
2017-11-30 16:15:32 -06:00
parent 687af1f3d4
commit 5c18639ef4
5 changed files with 128 additions and 110 deletions
+5 -1
View File
@@ -1,10 +1,14 @@
package core
type Contract struct {
Attributes ContractAttributes
}
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
GetContractAttributes(contractHash string) (ContractAttributes, error)
GetContract(contractHash string) (Contract, error)
GetContractStateAttribute(contractHash string, attributeName string) (interface{}, error)
}