auctioneer

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auction

type Auction struct {
	ID                       auction.ID
	BatchID                  broker.BatchID
	PayloadCid               cid.Cid
	DealSize                 uint64
	DealDuration             uint64
	DealReplication          uint32
	DealVerified             bool
	FilEpochDeadline         uint64
	ExcludedStorageProviders []string
	Providers                []string
	Sources                  auction.Sources
	ClientAddress            string
	Status                   broker.AuctionStatus
	Bids                     map[auction.BidID]Bid
	WinningBids              map[auction.BidID]WinningBid
	StartedAt                time.Time
	UpdatedAt                time.Time
	Duration                 time.Duration
	ErrorCause               string
}

Auction defines the core auction model.

type Bid

type Bid struct {
	ID                       auction.BidID
	StorageProviderID        string
	WalletAddrSig            []byte
	BidderID                 peer.ID
	AskPrice                 int64 // attoFIL per GiB per epoch
	VerifiedAskPrice         int64 // attoFIL per GiB per epoch
	StartEpoch               uint64
	FastRetrieval            bool
	ReceivedAt               time.Time
	WonAt                    time.Time
	ProposalCid              cid.Cid
	ProposalCidDeliveredAt   time.Time
	ProposalCidDeliveryError string
	DealUID                  string
}

Bid defines the core bid model.

type WinningBid

type WinningBid struct {
	BidderID      peer.ID
	ProposalCid   cid.Cid
	DealUID       string
	WinningReason string
	ErrorCause    string // an error that may have occurred when delivering the proposal cid
}

WinningBid contains details about a winning bid.

Jump to

Keyboard shortcuts

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