test

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

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 (o StubOracle) Precompile(addr common.Address, input []byte) ([]byte, bool)

func (StubOracle) ReceiptsByBlockHash

func (o StubOracle) ReceiptsByBlockHash(blockHash common.Hash) (eth.BlockInfo, types.Receipts)

func (StubOracle) TransactionsByBlockHash

func (o StubOracle) TransactionsByBlockHash(blockHash common.Hash) (eth.BlockInfo, types.Transactions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL