forked from cerc-io/ipld-eth-server
Start reading available attributes from ABI
This commit is contained in:
1 parent
708ad114ac
commit
60bef69113
9 files changed
+117
-7
No files matched your search
@@ -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)
|
||||
}
|
||||
@@ -4,3 +4,8 @@ type WatchedContract struct {
|
||||
Hash string
|
||||
Transactions []Transaction
|
||||
}
|
||||
|
||||
type ContractAttribute struct {
|
||||
Name string
|
||||
Type string
|
||||
}
|
||||
Reference in new issue
Block a user