forked from cerc-io/ipld-eth-server
14 lines
401 B
Go
14 lines
401 B
Go
package core
|
|
|
|
import "math/big"
|
|
|
|
type Blockchain interface {
|
|
GetBlockByNumber(blockNumber int64) Block
|
|
SubscribeToBlocks(blocks chan Block)
|
|
StartListening()
|
|
StopListening()
|
|
GetContract(contractHash string) (Contract, error)
|
|
GetContractAttributes(contractHash string) (ContractAttributes, error)
|
|
GetAttribute(contract Contract, attributeName string, blockNumber *big.Int) (interface{}, error)
|
|
}
|