auction

package
v2.0.0-b2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuctionLot

type AuctionLot struct {
	// The index of the auction lot
	Index uint64

	// True if an auction lot with this index exists
	Exists *core.SimpleField[bool]

	// The lot's start block
	StartBlock *core.FormattedUint256Field[uint64]

	// The lot's end block
	EndBlock *core.FormattedUint256Field[uint64]

	// The lot's starting price
	StartPrice *core.FormattedUint256Field[float64]

	// The lot's reserve price
	ReservePrice *core.FormattedUint256Field[float64]

	// The price of the lot in RPL/ETH in the current block
	PriceAtCurrentBlock *core.FormattedUint256Field[float64]

	// The price of the lot by the total bids
	PriceByTotalBids *core.FormattedUint256Field[float64]

	// The price of the lot at the current block
	CurrentPrice *core.FormattedUint256Field[float64]

	// The lot's total RPL
	TotalRplAmount *core.SimpleField[*big.Int]

	// The amount of RPL claimed for the lot
	ClaimedRplAmount *core.SimpleField[*big.Int]

	// The amount of RPL remaining for the lot
	RemainingRplAmount *core.SimpleField[*big.Int]

	// The lot's total bid amount
	TotalBidAmount *core.SimpleField[*big.Int]

	// True if the lot has been cleared already
	IsCleared *core.SimpleField[bool]

	// True if RPL has been recovered by the lot
	RplRecovered *core.SimpleField[bool]
	// contains filtered or unexported fields
}

Binding for auction lots

func NewAuctionLot

func NewAuctionLot(rp *rocketpool.RocketPool, index uint64) (*AuctionLot, error)

Creates a new AuctionLot instance

func (*AuctionLot) ClaimBid

func (c *AuctionLot) ClaimBid(opts *bind.TransactOpts) (*eth.TransactionInfo, error)

Get info for claiming RPL from a lot that was bid on

func (*AuctionLot) GetLotAddressBidAmount

func (c *AuctionLot) GetLotAddressBidAmount(mc *batch.MultiCaller, out **big.Int, bidder common.Address)

Get the ETH amount bid on the lot by an address

func (*AuctionLot) GetLotPriceAtBlock

func (c *AuctionLot) GetLotPriceAtBlock(mc *batch.MultiCaller, out **big.Int, blockNumber uint64)

Get the price of the lot at the given block

func (*AuctionLot) PlaceBid

func (c *AuctionLot) PlaceBid(opts *bind.TransactOpts) (*eth.TransactionInfo, error)

Get info for placing a bid on a lot

func (*AuctionLot) RecoverUnclaimedRpl

func (c *AuctionLot) RecoverUnclaimedRpl(opts *bind.TransactOpts) (*eth.TransactionInfo, error)

Get info for recovering unclaimed RPL from a lot

type AuctionManager

type AuctionManager struct {
	// The total RPL balance of the auction contract
	TotalRplBalance *core.SimpleField[*big.Int]

	// The allotted RPL balance of the auction contract
	AllottedRplBalance *core.SimpleField[*big.Int]

	// The remaining RPL balance of the auction contract
	RemainingRplBalance *core.SimpleField[*big.Int]

	// The number of lots for auction
	LotCount *core.FormattedUint256Field[uint64]
	// contains filtered or unexported fields
}

Binding for RocketAuctionManager

func NewAuctionManager

func NewAuctionManager(rp *rocketpool.RocketPool) (*AuctionManager, error)

Creates a new AuctionManager contract binding

func (*AuctionManager) CreateLot

func (c *AuctionManager) CreateLot(opts *bind.TransactOpts) (*eth.TransactionInfo, error)

Get info for creating a new lot

type AuctionManagerDetails

type AuctionManagerDetails struct {
}

Details for RocketAuctionManager

Jump to

Keyboard shortcuts

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