types

package
v0.1.1-experimental.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilBeaconBlockInRequest is an error for when
	// the beacon block in an abci request is nil.
	ErrNilBeaconBlockInRequest = errors.New("nil beacon block in abci request")

	// ErrNoBeaconBlockInRequest is an error for when
	// there is no beacon block in an abci request.
	ErrNoBeaconBlockInRequest = errors.New("no beacon block in abci request")

	// ErrBzIndexOutOfBounds is an error for when the index
	// is out of bounds.
	ErrBzIndexOutOfBounds = errors.New("bzIndex out of bounds")

	// ErrNilABCIRequest is an error for when the abci request
	// is nil.
	ErrNilABCIRequest = errors.New("nil abci request")
)

Functions

func GetBlobSideCars

func GetBlobSideCars(
	req ABCIRequest,
	bzIndex uint,
) (*datypes.BlobSidecars, error)

func ReadOnlyBeaconBlockFromABCIRequest

func ReadOnlyBeaconBlockFromABCIRequest(
	req ABCIRequest,
	bzIndex uint,
	forkVersion uint32,
) (beacontypes.ReadOnlyBeaconBlock, error)

ReadOnlyBeaconBlockFromABCIRequest assembles a new read-only beacon block by extracting a marshalled block out of an ABCI request.

Types

type ABCIRequest

type ABCIRequest interface {
	GetHeight() int64
	GetTime() time.Time
	GetTxs() [][]byte
}

ABCIRequest is the interface for an ABCI request.

Jump to

Keyboard shortcuts

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