bids

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BidBoard

type BidBoard struct {
	// contains filtered or unexported fields
}

func NewBidBoard

func NewBidBoard(redis redisPackage.RedisInterface, bulletin bulletinboard.RelayMQTT, timeout time.Duration) *BidBoard

func (*BidBoard) AuctionBid

func (b *BidBoard) AuctionBid(slot uint64) (builder string, value big.Int, err error)

func (*BidBoard) BuilderBlockLast

func (b *BidBoard) BuilderBlockLast(slot uint64, builder string) (value int64, err error)

func (*BidBoard) GetBountyBidForSlot

func (b *BidBoard) GetBountyBidForSlot(slot uint64) (builder string, err error)

@dev Gives Winner Of Bounty Bid Of A Slot

func (*BidBoard) GetOpenAuctionHighestBid

func (b *BidBoard) GetOpenAuctionHighestBid(slot uint64) (value *big.Int, err error)

@dev Gives highest bid for open bidding

func (*BidBoard) GetPayloadDelivered

func (b *BidBoard) GetPayloadDelivered(slot uint64) (value string, err error)

func (*BidBoard) PayloadUtils

func (b *BidBoard) PayloadUtils(slot uint64, blockhash string) (utils.GetPayloadUtils, error)

func (*BidBoard) PutPayloadDelivered

func (b *BidBoard) PutPayloadDelivered(slot uint64, builder string) error

func (*BidBoard) SaveBuilderBid

func (r *BidBoard) SaveBuilderBid(slot uint64, builderPubkey string, proposerPubKey string, receivedAt uint64, builderHeader *utils.GetHeaderResponse) (err error)

func (*BidBoard) SavePayloadUtils

func (b *BidBoard) SavePayloadUtils(slot uint64, proposer string, blockhash string, payloadUtils *utils.GetPayloadUtils) error

func (*BidBoard) SetBountyBidForSlot

func (b *BidBoard) SetBountyBidForSlot(slot uint64, builder string) (bountyBidWin bool, err error)

@dev Sets The Bounty Bid Winner

func (*BidBoard) WinningBid

func (b *BidBoard) WinningBid(slot uint64) (*utils.ProposerHeaderResponse, error)

Jump to

Keyboard shortcuts

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