models

package
v0.0.0-...-663aea3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bid

type Bid struct {
	Slot       phase0.Slot
	ParentHash phase0.Hash32
	BlockHash  phase0.Hash32

	FeeRecipient bellatrix.ExecutionAddress
	GasLimit     uint64
	GasUsed      uint64
	Value        *uint256.Int
	NumTx        uint

	Proposer phase0.BLSPubKey
	Builder  phase0.BLSPubKey
}

func (*Bid) FromBidDTO

func (bid *Bid) FromBidDTO(dto *dto.Bid) *Bid

type Relay

type Relay struct {
	ID  uint64 `db:"id"`
	URL string `db:"url"`
}

type Submission

type Submission struct {
	ID           uint64
	RelayID      uint64
	BidBlockHash phase0.Hash32

	IsDelivered  bool
	IsOptimistic bool
	SubmittedAt  time.Time
}

Jump to

Keyboard shortcuts

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