auction

package
v0.0.0-...-a5a7577 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LotDetailsBatchSize = 10

Settings

Variables

This section is empty.

Functions

func ClaimBid

Claim RPL from a lot that was bid on

func CreateLot

Create a new lot

func EstimateClaimBidGas

func EstimateClaimBidGas(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of ClaimBid

func EstimateCreateLotGas

Estimate the gas of CreateLot

func EstimatePlaceBidGas

func EstimatePlaceBidGas(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of PlaceBid

func EstimateRecoverUnclaimedRPLGas

func EstimateRecoverUnclaimedRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of RecoverUnclaimedRPL

func GetAllottedRPLBalance

func GetAllottedRPLBalance(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the allotted RPL balance of the auction contract

func GetLotAddressBidAmount

func GetLotAddressBidAmount(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, bidder common.Address, opts *bind.CallOpts) (*big.Int, error)

Get the ETH amount bid on a lot by an address

func GetLotClaimedRPLAmount

func GetLotClaimedRPLAmount(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotCount

Get the number of lots for auction

func GetLotCurrentPrice

func GetLotCurrentPrice(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotExists

func GetLotExists(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (bool, error)

Lot details

func GetLotIsCleared

func GetLotIsCleared(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (bool, error)

func GetLotPriceAtBlock

func GetLotPriceAtBlock(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex, blockNumber uint64, opts *bind.CallOpts) (*big.Int, error)

Get the price of a lot at a specific block

func GetLotPriceAtCurrentBlock

func GetLotPriceAtCurrentBlock(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotPriceByTotalBids

func GetLotPriceByTotalBids(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotRPLRecovered

func GetLotRPLRecovered(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (bool, error)

func GetLotRemainingRPLAmount

func GetLotRemainingRPLAmount(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotReservePrice

func GetLotReservePrice(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotStartPrice

func GetLotStartPrice(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotTotalBidAmount

func GetLotTotalBidAmount(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotTotalRPLAmount

func GetLotTotalRPLAmount(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetRemainingRPLBalance

func GetRemainingRPLBalance(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the remaining RPL balance of the auction contract

func GetTotalRPLBalance

func GetTotalRPLBalance(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the total RPL balance of the auction contract

func PlaceBid

Place a bid on a lot

func RecoverUnclaimedRPL

func RecoverUnclaimedRPL(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)

Recover unclaimed RPL from a lot

Types

type LotDetails

type LotDetails struct {
	Index               uint64   `json:"index"`
	Exists              bool     `json:"exists"`
	StartBlock          uint64   `json:"startBlock"`
	EndBlock            uint64   `json:"endBlock"`
	StartPrice          *big.Int `json:"startPrice"`
	ReservePrice        *big.Int `json:"reservePrice"`
	PriceAtCurrentBlock *big.Int `json:"priceAtCurrentBlock"`
	PriceByTotalBids    *big.Int `json:"priceByTotalBids"`
	CurrentPrice        *big.Int `json:"currentPrice"`
	TotalRPLAmount      *big.Int `json:"totalRplAmount"`
	ClaimedRPLAmount    *big.Int `json:"claimedRplAmount"`
	RemainingRPLAmount  *big.Int `json:"remainingRplAmount"`
	TotalBidAmount      *big.Int `json:"totalBidAmount"`
	AddressBidAmount    *big.Int `json:"addressBidAmount"`
	Cleared             bool     `json:"cleared"`
	RPLRecovered        bool     `json:"rplRecovered"`
}

Lot details

func GetLotDetails

Get a lot's details

func GetLotDetailsWithBids

func GetLotDetailsWithBids(rp *stader.PermissionlessNodeRegistryContractManager, lotIndex uint64, bidder common.Address, opts *bind.CallOpts) (LotDetails, error)

Get a lot's details with address bid amounts

func GetLots

Get all lot details

func GetLotsWithBids

Get all lot details with bids from an address

Jump to

Keyboard shortcuts

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