Documentation
¶
Index ¶
- type StubOracle
- func (o StubOracle) GetBlob(ref eth.L1BlockRef, blobHash eth.IndexedBlobHash) *eth.Blob
- func (o StubOracle) HeaderByBlockHash(blockHash common.Hash) eth.BlockInfo
- func (o StubOracle) Precompile(addr common.Address, input []byte, requiredGas uint64) ([]byte, bool)
- func (o StubOracle) ReceiptsByBlockHash(blockHash common.Hash) (eth.BlockInfo, types.Receipts)
- func (o StubOracle) TransactionsByBlockHash(blockHash common.Hash) (eth.BlockInfo, types.Transactions)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StubOracle ¶
type StubOracle struct { // Blocks maps block hash to eth.BlockInfo Blocks map[common.Hash]eth.BlockInfo // Txs maps block hash to transactions Txs map[common.Hash]types.Transactions // Rcpts maps Block hash to receipts Rcpts map[common.Hash]types.Receipts // Blobs maps indexed blob hash to l1 block ref to blob Blobs map[eth.L1BlockRef]map[eth.IndexedBlobHash]*eth.Blob // PcmpResults maps hashed input to the results of precompile calls PcmpResults map[common.Hash][]byte // contains filtered or unexported fields }
func NewStubOracle ¶
func NewStubOracle(t *testing.T) *StubOracle
func (StubOracle) GetBlob ¶ added in v1.5.1
func (o StubOracle) GetBlob(ref eth.L1BlockRef, blobHash eth.IndexedBlobHash) *eth.Blob
func (StubOracle) HeaderByBlockHash ¶
func (o StubOracle) HeaderByBlockHash(blockHash common.Hash) eth.BlockInfo
func (StubOracle) Precompile ¶ added in v1.7.2
func (StubOracle) ReceiptsByBlockHash ¶
func (StubOracle) TransactionsByBlockHash ¶
func (o StubOracle) TransactionsByBlockHash(blockHash common.Hash) (eth.BlockInfo, types.Transactions)
Click to show internal directories.
Click to hide internal directories.