Documentation ¶
Index ¶
- Constants
- func ClaimBid(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)
- func CreateLot(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (uint64, common.Hash, error)
- func EstimateClaimBidGas(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateCreateLotGas(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimatePlaceBidGas(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateRecoverUnclaimedGGPGas(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func GetAllottedGGPBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)
- func GetLotAddressBidAmount(ggp *gogopool.GoGoPool, lotIndex uint64, bidder common.Address, ...) (*big.Int, error)
- func GetLotClaimedGGPAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotCount(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (uint64, error)
- func GetLotCurrentPrice(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotEndBlock(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (uint64, error)
- func GetLotExists(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (bool, error)
- func GetLotGGPRecovered(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (bool, error)
- func GetLotIsCleared(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (bool, error)
- func GetLotPriceAtBlock(ggp *gogopool.GoGoPool, lotIndex, blockNumber uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotPriceAtCurrentBlock(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotPriceByTotalBids(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotRemainingGGPAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotReservePrice(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotStartBlock(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (uint64, error)
- func GetLotStartPrice(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotTotalBidAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetLotTotalGGPAmount(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (*big.Int, error)
- func GetRemainingGGPBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)
- func GetTotalGGPBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)
- func PlaceBid(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)
- func RecoverUnclaimedGGP(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.TransactOpts) (common.Hash, error)
- type LotDetails
- func GetLotDetails(ggp *gogopool.GoGoPool, lotIndex uint64, opts *bind.CallOpts) (LotDetails, error)
- func GetLotDetailsWithBids(ggp *gogopool.GoGoPool, lotIndex uint64, bidder common.Address, ...) (LotDetails, error)
- func GetLots(ggp *gogopool.GoGoPool, opts *bind.CallOpts) ([]LotDetails, error)
- func GetLotsWithBids(ggp *gogopool.GoGoPool, bidder common.Address, opts *bind.CallOpts) ([]LotDetails, error)
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 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 ¶
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 GetLotCount ¶
Get the number of lots for auction
func GetLotCurrentPrice ¶
func GetLotEndBlock ¶
func GetLotExists ¶
Lot details
func GetLotGGPRecovered ¶
func GetLotIsCleared ¶
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 GetLotPriceByTotalBids ¶
func GetLotReservePrice ¶
func GetLotStartBlock ¶
func GetLotStartPrice ¶
func GetLotTotalBidAmount ¶
func GetLotTotalGGPAmount ¶
func GetRemainingGGPBalance ¶
Get the remaining GGP balance of the auction contract
func GetTotalGGPBalance ¶
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 GetLotsWithBids ¶
func GetLotsWithBids(ggp *gogopool.GoGoPool, bidder common.Address, opts *bind.CallOpts) ([]LotDetails, error)
Get all lot details with bids from an address
Click to show internal directories.
Click to hide internal directories.