auction

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 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

func ClaimBid(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)

Claim GGP from a lot that was bid on

func CreateLot

func CreateLot(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (uint64, common.Hash, error)

Create a new lot

func EstimateClaimBidGas

func EstimateClaimBidGas(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of ClaimBid

func EstimateCreateLotGas

func EstimateCreateLotGas(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of CreateLot

func EstimatePlaceBidGas

func EstimatePlaceBidGas(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of PlaceBid

func EstimateRecoverUnclaimedGGPGas

func EstimateRecoverUnclaimedGGPGas(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of RecoverUnclaimedGGP

func GetAllottedGGPBalance

func GetAllottedGGPBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the allotted GGP balance of the auction contract

func GetLotAddressBidAmount

func GetLotAddressBidAmount(ggp *gogopool.GoGoPool, lotIndex uint64, bidder common.Address, opts *bind.CallOpts) (*big.Int, error)

Get the ETH amount bid on a lot by an address

func GetLotClaimedGGPAmount

func GetLotClaimedGGPAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotCount

func GetLotCount(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (uint64, error)

Get the number of lots for auction

func GetLotCurrentPrice

func GetLotCurrentPrice(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotEndBlock

func GetLotEndBlock(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (uint64, error)

func GetLotExists

func GetLotExists(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (bool, error)

Lot details

func GetLotGGPRecovered

func GetLotGGPRecovered(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (bool, error)

func GetLotIsCleared

func GetLotIsCleared(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (bool, error)

func GetLotPriceAtBlock

func GetLotPriceAtBlock(ggp *gogopool.GoGoPool, lotIndex, blockNumber uint64, opts *bind.CallOpts) (*big.Int, error)

Get the price of a lot at a specific block

func GetLotPriceAtCurrentBlock

func GetLotPriceAtCurrentBlock(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotPriceByTotalBids

func GetLotPriceByTotalBids(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotRemainingGGPAmount

func GetLotRemainingGGPAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotReservePrice

func GetLotReservePrice(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotStartBlock

func GetLotStartBlock(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (uint64, error)

func GetLotStartPrice

func GetLotStartPrice(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotTotalBidAmount

func GetLotTotalBidAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetLotTotalGGPAmount

func GetLotTotalGGPAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)

func GetRemainingGGPBalance

func GetRemainingGGPBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the remaining GGP balance of the auction contract

func GetTotalGGPBalance

func GetTotalGGPBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the total GGP balance of the auction contract

func PlaceBid

func PlaceBid(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)

Place a bid on a lot

func RecoverUnclaimedGGP

func RecoverUnclaimedGGP(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)

Recover unclaimed GGP 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"`
	TotalGGPAmount      *big.Int `json:"totalGgpAmount"`
	ClaimedGGPAmount    *big.Int `json:"claimedGgpAmount"`
	RemainingGGPAmount  *big.Int `json:"remainingGgpAmount"`
	TotalBidAmount      *big.Int `json:"totalBidAmount"`
	AddressBidAmount    *big.Int `json:"addressBidAmount"`
	Cleared             bool     `json:"cleared"`
	GGPRecovered        bool     `json:"ggpRecovered"`
}

Lot details

func GetLotDetails

func GetLotDetails(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (LotDetails, error)

Get a lot's details

func GetLotDetailsWithBids

func GetLotDetailsWithBids(ggp *gogopool.GoGoPool, lotIndex uint64, bidder common.Address, opts *bind.CallOpts) (LotDetails, error)

Get a lot's details with address bid amounts

func GetLots

func GetLots(ggp *gogopool.GoGoPool, opts *bind.CallOpts) ([]LotDetails, error)

Get all lot details

func GetLotsWithBids

func GetLotsWithBids(ggp *gogopool.GoGoPool, bidder common.Address, opts *bind.CallOpts) ([]LotDetails, error)

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