Extract Attributes to contract struct
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user