Documentation ¶
Index ¶
- func GetStorageDeal(ctx context.Context, client Node, dealID abi.DealID, ts *types.TipSet) (*api.MarketDeal, error)
- func NewStorageProviderInfo(address address.Address, miner address.Address, sectorSize abi.SectorSize, ...) storagemarket.StorageProviderInfo
- func StateMinerInfo(ctx context.Context, client Node, ts *types.TipSet, maddr address.Address) (api.MinerInfo, error)
- type ApiBStore
- type Chain
- func (c *Chain) ChainGetBlockMessages(ctx context.Context, blockCid cid.Cid) (*api.BlockMessages, error)
- func (c *Chain) ChainGetTipSet(ctx context.Context, key types.TipSetKey) (*types.TipSet, error)
- func (c *Chain) ChainGetTipSetByHeight(ctx context.Context, e abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error)
- func (c *Chain) ChainHead(ctx context.Context) (*types.TipSet, error)
- func (c *Chain) ChainNotify(ctx context.Context) (<-chan []*api.HeadChange, error)
- type ChainAPI
- type ChainStore
- type ChainStoreAPI
- type Mpool
- type MpoolAPI
- type Node
- type PaymentManager
- func (pm *PaymentManager) AllocateLane(ctx context.Context, ch address.Address) (uint64, error)
- func (pm *PaymentManager) GetPaych(ctx context.Context, from, to address.Address, ensureFree types.BigInt) (*api.ChannelInfo, error)
- func (pm *PaymentManager) PaychVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*paych.SignedVoucher, error)
- type PaymentManagerAPI
- type State
- func (s *State) StateAccountKey(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func (s *State) StateDealProviderCollateralBounds(ctx context.Context, size abi.PaddedPieceSize, verified bool, ...) (api.DealCollateralBounds, error)
- func (s *State) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error)
- func (s *State) StateGetReceipt(ctx context.Context, cid cid.Cid, tsk types.TipSetKey) (*types.MessageReceipt, error)
- func (s *State) StateListMiners(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error)
- func (s *State) StateLookupID(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func (s *State) StateMarketBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MarketBalance, error)
- func (s *State) StateMarketDeals(ctx context.Context, tsk types.TipSetKey) (map[string]api.MarketDeal, error)
- func (s *State) StateMarketStorageDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*api.MarketDeal, error)
- func (s *State) StateMinerInfo(ctx context.Context, actor address.Address, tsk types.TipSetKey) (api.MinerInfo, error)
- func (s *State) StateMinerProvingDeadline(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*miner.DeadlineInfo, error)
- func (s *State) StateWaitMsg(ctx context.Context, msg cid.Cid, confidence uint64) (*api.MsgLookup, error)
- type StateAPI
- type StateManager
- type StateManagerAPI
- type UtilsAPI
- type Wallet
- type WalletAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStorageDeal ¶
func NewStorageProviderInfo ¶
func NewStorageProviderInfo(address address.Address, miner address.Address, sectorSize abi.SectorSize, peer peer.ID, addrs []abi.Multiaddrs) storagemarket.StorageProviderInfo
Types ¶
type Chain ¶
type Chain struct{}
func (*Chain) ChainGetBlockMessages ¶
func (*Chain) ChainGetTipSet ¶
func (*Chain) ChainGetTipSetByHeight ¶
func (*Chain) ChainNotify ¶
type ChainAPI ¶
type ChainAPI struct { ChainHead func(ctx context.Context) (*types.TipSet, error) ChainGetTipSet func(ctx context.Context, key types.TipSetKey) (*types.TipSet, error) ChainNotify func(context.Context) (<-chan []*api.HeadChange, error) ChainGetBlockMessages func(ctx context.Context, blockCid cid.Cid) (*api.BlockMessages, error) ChainGetTipSetByHeight func(ctx context.Context, e abi.ChainEpoch, ts types.TipSetKey) (*types.TipSet, error) ChainReadObj func(context.Context, cid.Cid) ([]byte, error) ChainHasObj func(context.Context, cid.Cid) (bool, error) }
type ChainStore ¶
type ChainStore struct{}
func (*ChainStore) GetHeaviestTipSet ¶
func (cs *ChainStore) GetHeaviestTipSet() *types.TipSet
func (*ChainStore) GetMessage ¶
func (cs *ChainStore) GetMessage(c cid.Cid) (*types.Message, error)
type ChainStoreAPI ¶
type Node ¶
type Node struct { ChainAPI MpoolAPI PaymentManagerAPI StateAPI StateManagerAPI ChainStoreAPI WalletAPI UtilsAPI }
var NodeClient *Node // TODO(arijit): Clean this up.
func GetNodeAPI ¶
type PaymentManager ¶
type PaymentManager struct{}
func (*PaymentManager) AllocateLane ¶
func (pm *PaymentManager) AllocateLane(ctx context.Context, ch address.Address) (uint64, error)
func (*PaymentManager) GetPaych ¶
func (pm *PaymentManager) GetPaych(ctx context.Context, from, to address.Address, ensureFree types.BigInt) (*api.ChannelInfo, error)
func (*PaymentManager) PaychVoucherCreate ¶
func (pm *PaymentManager) PaychVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*paych.SignedVoucher, error)
PaychVoucherCreate creates a new signed voucher on the given payment channel with the given lane and amount. The value passed in is exactly the value that will be used to create the voucher, so if previous vouchers exist, the actual additional value of this voucher will only be the difference between the two.
type PaymentManagerAPI ¶
type PaymentManagerAPI struct { PaychGet func(ctx context.Context, from, to address.Address, amt types.BigInt) (*api.ChannelInfo, error) PaychAllocateLane func(ctx context.Context, ch address.Address) (uint64, error) PaychVoucherCreate func(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*paych.SignedVoucher, error) }
type State ¶
type State struct{}
func (*State) StateAccountKey ¶
func (*State) StateDealProviderCollateralBounds ¶
func (*State) StateGetActor ¶
func (*State) StateGetReceipt ¶
func (*State) StateListMiners ¶
func (*State) StateLookupID ¶
func (*State) StateMarketBalance ¶
func (*State) StateMarketDeals ¶
func (*State) StateMarketStorageDeal ¶
func (*State) StateMinerInfo ¶
func (*State) StateMinerProvingDeadline ¶
type StateAPI ¶
type StateAPI struct { StateMarketBalance func(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MarketBalance, error) StateAccountKey func(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error) WaitForMessage func(ctx context.Context) error StateWaitMsg func(ctx context.Context, msg cid.Cid, confidence uint64) (*api.MsgLookup, error) StateMarketDeals func(ctx context.Context, tsk types.TipSetKey) (map[string]api.MarketDeal, error) StateListMiners func(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error) StateMinerInfo func(ctx context.Context, actor address.Address, tsk types.TipSetKey) (api.MinerInfo, error) StateLookupID func(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error) StateMarketStorageDeal func(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*api.MarketDeal, error) StateMinerProvingDeadline func(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*miner.DeadlineInfo, error) StateGetActor func(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error) StateGetReceipt func(context.Context, cid.Cid, types.TipSetKey) (*types.MessageReceipt, error) StateDealProviderCollateralBounds func(context.Context, abi.PaddedPieceSize, bool, types.TipSetKey) (api.DealCollateralBounds, error) StateVerifiedClientStatus func(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*verifreg.DataCap, error) }
type StateManager ¶
type StateManager struct{}
func (*StateManager) ResolveToKeyAddress ¶
func (*StateManager) WaitForMessage ¶
func (sm *StateManager) WaitForMessage(ctx context.Context, mcid cid.Cid, confidence uint64) (*types.TipSet, *types.MessageReceipt, error)
type StateManagerAPI ¶
type UtilsAPI ¶
type UtilsAPI struct { StateMarketStorageDeal func(ctx context.Context, dealID abi.DealID, ts types.TipSetKey) (*api.MarketDeal, error) StateMinerInfo func(ctx context.Context, addr address.Address, ts types.TipSetKey) (api.MinerInfo, error) NetFindPeer func(context.Context, peer.ID) (peer.AddrInfo, error) ClientFindData func(ctx context.Context, root cid.Cid, piece *cid.Cid) ([]api.QueryOffer, error) ClientRetrieve func(ctx context.Context, order api.RetrievalOrder, ref *api.FileRef) error Version func(ctx context.Context) (api.Version, error) }
Click to show internal directories.
Click to hide internal directories.