dealer

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuctionDeals

type AuctionDeals struct {
	ID           string
	BatchID      broker.BatchID
	PayloadCid   cid.Cid
	PieceCid     cid.Cid
	PieceSize    uint64
	Duration     uint64
	Proposals    []Proposal
	RemoteWallet *broker.RemoteWallet
	CARURL       string
}

AuctionDeals describes a set of deals for some prepared data.

type Dealer

type Dealer interface {
	ReadyToCreateDeals(ctx context.Context, sdb AuctionDeals) error
}

Dealer creates deals in the Filecoin network.

type Proposal

type Proposal struct {
	StorageProviderID   string
	PricePerGiBPerEpoch int64
	StartEpoch          uint64
	Verified            bool
	FastRetrieval       bool
	AuctionID           auction.ID
	BidID               auction.BidID
}

Proposal describes information for deal making with a storage-provider.

Jump to

Keyboard shortcuts

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