Start reading available attributes from ABI

This commit is contained in:
Eric Meyer committed 2017-11-28 09:41:23 -06:00
1 parent 708ad114ac
commit 60bef69113
9 files changed
+117 -7

No files matched your search

+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
}