Documentation ¶
Index ¶
- func NewClientNodeAdapter(state full.StateAPI, chain full.ChainAPI, mpool full.MpoolAPI, ...) storagemarket.StorageClientNode
- func NewProviderNodeAdapter(dag dtypes.StagingDAG, secb *sectorblocks.SectorBlocks, full api.FullNode) storagemarket.StorageProviderNode
- type ClientNodeAdapter
- func (n *ClientNodeAdapter) AddFunds(ctx context.Context, addr address.Address, amount tokenamount.TokenAmount) error
- func (n *ClientNodeAdapter) EnsureFunds(ctx context.Context, addr address.Address, amount tokenamount.TokenAmount) error
- func (n *ClientNodeAdapter) GetBalance(ctx context.Context, addr address.Address) (storagemarket.Balance, error)
- func (n *ClientNodeAdapter) GetDefaultWalletAddress(ctx context.Context) (address.Address, error)
- func (n *ClientNodeAdapter) ListClientDeals(ctx context.Context, addr address.Address) ([]storagemarket.StorageDeal, error)
- func (n *ClientNodeAdapter) ListStorageProviders(ctx context.Context) ([]*storagemarket.StorageProviderInfo, error)
- func (n *ClientNodeAdapter) MostRecentStateId(ctx context.Context) (storagemarket.StateKey, error)
- func (c *ClientNodeAdapter) OnDealSectorCommitted(ctx context.Context, provider address.Address, dealId uint64, ...) error
- func (n *ClientNodeAdapter) SignProposal(ctx context.Context, signer address.Address, ...) error
- func (n *ClientNodeAdapter) ValidateAskSignature(ask *sharedtypes.SignedStorageAsk) error
- func (c *ClientNodeAdapter) ValidatePublishedDeal(ctx context.Context, deal storagemarket.ClientDeal) (uint64, error)
- type ProviderNodeAdapter
- func (n *ProviderNodeAdapter) AddFunds(ctx context.Context, addr address.Address, amount tokenamount.TokenAmount) error
- func (n *ProviderNodeAdapter) EnsureFunds(ctx context.Context, addr address.Address, amt tokenamount.TokenAmount) error
- func (n *ProviderNodeAdapter) GetBalance(ctx context.Context, addr address.Address) (storagemarket.Balance, error)
- func (n *ProviderNodeAdapter) GetMinerWorker(ctx context.Context, miner address.Address) (address.Address, error)
- func (n *ProviderNodeAdapter) ListProviderDeals(ctx context.Context, addr address.Address) ([]storagemarket.StorageDeal, error)
- func (n *ProviderNodeAdapter) MostRecentStateId(ctx context.Context) (storagemarket.StateKey, error)
- func (n *ProviderNodeAdapter) OnDealComplete(ctx context.Context, deal storagemarket.MinerDeal, piecePath string) (uint64, error)
- func (n *ProviderNodeAdapter) PublishDeals(ctx context.Context, deal storagemarket.MinerDeal) (storagemarket.DealID, cid.Cid, error)
- func (n *ProviderNodeAdapter) SignBytes(ctx context.Context, signer address.Address, b []byte) (*sharedtypes.Signature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientNodeAdapter ¶
func NewClientNodeAdapter(state full.StateAPI, chain full.ChainAPI, mpool full.MpoolAPI, sm *stmgr.StateManager, cs *store.ChainStore, fm *market.FundMgr) storagemarket.StorageClientNode
func NewProviderNodeAdapter ¶
func NewProviderNodeAdapter(dag dtypes.StagingDAG, secb *sectorblocks.SectorBlocks, full api.FullNode) storagemarket.StorageProviderNode
Types ¶
type ClientNodeAdapter ¶
type ClientNodeAdapter struct { full.StateAPI full.ChainAPI full.MpoolAPI // contains filtered or unexported fields }
func (*ClientNodeAdapter) AddFunds ¶
func (n *ClientNodeAdapter) AddFunds(ctx context.Context, addr address.Address, amount tokenamount.TokenAmount) error
Adds funds with the StorageMinerActor for a storage participant. Used by both providers and clients.
func (*ClientNodeAdapter) EnsureFunds ¶
func (n *ClientNodeAdapter) EnsureFunds(ctx context.Context, addr address.Address, amount tokenamount.TokenAmount) error
func (*ClientNodeAdapter) GetBalance ¶
func (n *ClientNodeAdapter) GetBalance(ctx context.Context, addr address.Address) (storagemarket.Balance, error)
func (*ClientNodeAdapter) GetDefaultWalletAddress ¶
func (n *ClientNodeAdapter) GetDefaultWalletAddress(ctx context.Context) (address.Address, error)
func (*ClientNodeAdapter) ListClientDeals ¶
func (n *ClientNodeAdapter) ListClientDeals(ctx context.Context, addr address.Address) ([]storagemarket.StorageDeal, error)
func (*ClientNodeAdapter) ListStorageProviders ¶
func (n *ClientNodeAdapter) ListStorageProviders(ctx context.Context) ([]*storagemarket.StorageProviderInfo, error)
func (*ClientNodeAdapter) MostRecentStateId ¶
func (n *ClientNodeAdapter) MostRecentStateId(ctx context.Context) (storagemarket.StateKey, error)
func (*ClientNodeAdapter) OnDealSectorCommitted ¶
func (c *ClientNodeAdapter) OnDealSectorCommitted(ctx context.Context, provider address.Address, dealId uint64, cb storagemarket.DealSectorCommittedCallback) error
func (*ClientNodeAdapter) SignProposal ¶
func (n *ClientNodeAdapter) SignProposal(ctx context.Context, signer address.Address, proposal *storagemarket.StorageDealProposal) error
func (*ClientNodeAdapter) ValidateAskSignature ¶
func (n *ClientNodeAdapter) ValidateAskSignature(ask *sharedtypes.SignedStorageAsk) error
func (*ClientNodeAdapter) ValidatePublishedDeal ¶
func (c *ClientNodeAdapter) ValidatePublishedDeal(ctx context.Context, deal storagemarket.ClientDeal) (uint64, error)
ValidatePublishedDeal validates that the provided deal has appeared on chain and references the same ClientDeal returns the Deal id if there is no error
type ProviderNodeAdapter ¶
func (*ProviderNodeAdapter) AddFunds ¶
func (n *ProviderNodeAdapter) AddFunds(ctx context.Context, addr address.Address, amount tokenamount.TokenAmount) error
Adds funds with the StorageMinerActor for a storage participant. Used by both providers and clients.
func (*ProviderNodeAdapter) EnsureFunds ¶
func (n *ProviderNodeAdapter) EnsureFunds(ctx context.Context, addr address.Address, amt tokenamount.TokenAmount) error
func (*ProviderNodeAdapter) GetBalance ¶
func (n *ProviderNodeAdapter) GetBalance(ctx context.Context, addr address.Address) (storagemarket.Balance, error)
func (*ProviderNodeAdapter) GetMinerWorker ¶
func (n *ProviderNodeAdapter) GetMinerWorker(ctx context.Context, miner address.Address) (address.Address, error)
func (*ProviderNodeAdapter) ListProviderDeals ¶
func (n *ProviderNodeAdapter) ListProviderDeals(ctx context.Context, addr address.Address) ([]storagemarket.StorageDeal, error)
func (*ProviderNodeAdapter) MostRecentStateId ¶
func (n *ProviderNodeAdapter) MostRecentStateId(ctx context.Context) (storagemarket.StateKey, error)
func (*ProviderNodeAdapter) OnDealComplete ¶
func (n *ProviderNodeAdapter) OnDealComplete(ctx context.Context, deal storagemarket.MinerDeal, piecePath string) (uint64, error)
func (*ProviderNodeAdapter) PublishDeals ¶
func (n *ProviderNodeAdapter) PublishDeals(ctx context.Context, deal storagemarket.MinerDeal) (storagemarket.DealID, cid.Cid, error)
func (*ProviderNodeAdapter) SignBytes ¶
func (n *ProviderNodeAdapter) SignBytes(ctx context.Context, signer address.Address, b []byte) (*sharedtypes.Signature, error)
Click to show internal directories.
Click to hide internal directories.