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

13 lines
402 B
Go
Raw Normal View History

package core
import "math/big"
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
LastBlock() *big.Int
Node() Node
2017-12-04 22:54:35 +00:00
GetAttributes(contract Contract) (ContractAttributes, error)
GetAttribute(contract Contract, attributeName string, blockNumber *big.Int) (interface{}, error)
GetLogs(contract Contract, startingBlockNumber *big.Int, endingBlockNumber *big.Int) ([]Log, error)
}