Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEAL_CHECK_UNKNOWN = iota DEAL_CHECK_PROGRESS DEAL_CHECK_DEALID_ON_CHAIN DEAL_CHECK_SECTOR_ON_CHAIN DEAL_NEARLY_EXPIRED DEAL_CHECK_SLASHED )
Variables ¶
View Source
var ErrNotOnChainYet = fmt.Errorf("message not found on chain")
Functions ¶
This section is empty.
Types ¶
type IManager ¶
type IManager interface { GetProviderDealStatus(ctx context.Context, d *model.ContentDeal, maddr address.Address, dealUUID *uuid.UUID) (*storagemarket.ProviderDealState, bool, error) CheckContentReadyForDealMaking(ctx context.Context, content *util.Content) error MakeDealWithMiner(ctx context.Context, content *util.Content, miner address.Address) (*model.ContentDeal, error) DealMakingDisabled() bool SetDealMakingEnabled(enable bool) }
func NewManager ¶
func NewManager( ctx context.Context, db *gorm.DB, api api.Gateway, fc *filclient.FilClient, tbs *util.TrackingBlockstore, nd *node.Node, cfg *config.Estuary, minerManager miner.IMinerManager, log *zap.SugaredLogger, shuttleMgr shuttle.IManager, transferMgr transfer.IManager, commpMgr commp.IManager, contMgr content.IManager, ) IManager
Click to show internal directories.
Click to hide internal directories.