ipld-eth-server/pkg/core/blockchain.go

14 lines
401 B
Go
Raw Normal View History

package core
import "math/big"
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
2017-11-30 22:15:32 +00:00
GetContract(contractHash string) (Contract, error)
2017-12-04 21:31:39 +00:00
GetContractAttributes(contractHash string) (ContractAttributes, error)
GetAttribute(contract Contract, attributeName string, blockNumber *big.Int) (interface{}, error)
}