Start reading available attributes from ABI

This commit is contained in:
Eric Meyer
2017-11-28 09:41:23 -06:00
parent 708ad114ac
commit 60bef69113
9 changed files with 117 additions and 7 deletions
+1
View File
@@ -5,5 +5,6 @@ type Blockchain interface {
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
GetContractAttributes(contractHash string) ([]ContractAttribute, error)
GetContractStateAttribute(contractHash string, attributeName string) (*string, error)
}
+5
View File
@@ -4,3 +4,8 @@ type WatchedContract struct {
Hash string
Transactions []Transaction
}
type ContractAttribute struct {
Name string
Type string
}