Documentation
¶
Index ¶
- Constants
- Variables
- func EpochToTime(epoch abi.ChainEpoch) time.Time
- func TimeToEpoch(t time.Time) abi.ChainEpoch
- type DatacapWalletChooser
- type DealMaker
- func (d DealMaker) GetProtocols(ctx context.Context, minerInfo peer.AddrInfo) ([]protocol.ID, error)
- func (d DealMaker) GetProviderInfo(ctx context.Context, provider string) (MinerInfo, error)
- func (d DealMaker) MakeDeal(ctx context.Context, now time.Time, walletObj model.Wallet, car model.Car, ...) (string, error)
- type DealProviderCollateralBound
- type DefaultWalletChooser
- type MinerInfo
- type WalletChooser
Constants ¶
View Source
const ( StorageProposalV120 = "/fil/storage/mk/1.2.0" StorageProposalV111 = "/fil/storage/mk/1.1.1" )
Variables ¶
View Source
var ErrNoDatacap = errors.New("no wallets have enough datacap")
View Source
var ErrNoWallet = errors.New("no wallets to choose from")
Functions ¶
func EpochToTime ¶
func EpochToTime(epoch abi.ChainEpoch) time.Time
func TimeToEpoch ¶
func TimeToEpoch(t time.Time) abi.ChainEpoch
Types ¶
type DatacapWalletChooser ¶ added in v0.2.21
type DatacapWalletChooser struct {
// contains filtered or unexported fields
}
func NewDatacapWalletChooser ¶ added in v0.2.21
type DealMaker ¶
type DealMaker struct {
// contains filtered or unexported fields
}
func NewDealMaker ¶
func (DealMaker) GetProtocols ¶
func (DealMaker) GetProviderInfo ¶
type DefaultWalletChooser ¶ added in v0.2.21
type DefaultWalletChooser struct{}
Click to show internal directories.
Click to hide internal directories.