Documentation ¶
Index ¶
- Constants
- Variables
- func APISecret(keystore types.KeyStore, lr repo.LockedRepo) (*dtypes.APIAlg, error)
- func BasicDealFilter(user dtypes.StorageDealFilter) ...
- func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
- func BuiltinDrandConfig() dtypes.DrandSchedule
- func ChainBitswap(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, rt routing.Routing, ...) dtypes.ChainBitswap
- func ChainBlockService(bs dtypes.ChainRawBlockstore, rem dtypes.ChainBitswap) dtypes.ChainBlockService
- func ChainGCBlockstore(bs dtypes.ChainRawBlockstore, gcl dtypes.ChainGCLocker) dtypes.ChainGCBlockstore
- func ChainRawBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.ChainRawBlockstore, error)
- func ChainStore(bs dtypes.ChainBlockstore, lbs dtypes.ChainRawBlockstore, ds dtypes.MetadataDS, ...) *store.ChainStore
- func ClientBlockstore(imgr dtypes.ClientImportMgr) dtypes.ClientBlockstore
- func ClientBlockstoreRetrievalStoreManager(bs dtypes.ClientBlockstore) dtypes.ClientRetrievalStoreManager
- func ClientImportMgr(mds dtypes.ClientMultiDstore, ds dtypes.MetadataDS) dtypes.ClientImportMgr
- func ClientMultiDatastore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.ClientMultiDstore, error)
- func ClientRetrievalStoreManager(imgr dtypes.ClientImportMgr) dtypes.ClientRetrievalStoreManager
- func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
- func Datastore(r repo.LockedRepo) (dtypes.MetadataDS, error)
- func DoSetGenesis(_ dtypes.AfterGenesisSet)
- func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error)
- func FallbackChainBlockstore(rbs dtypes.ChainRawBlockstore) dtypes.ChainBlockstore
- func GetParams(sbc *ffiwrapper.Config) error
- func Graphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, clientBs dtypes.ClientBlockstore, ...) (dtypes.Graphsync, error)
- func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, ...)
- func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, s *chain.Syncer, ...)
- func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, ...)
- func HandleMigrateClientFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, wallet full.WalletAPI, ...)
- func HandleMigrateProviderFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, node api.FullNode, ...)
- func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider, ...)
- func IpfsClientBlockstore(ipfsMaddr string, onlineMode bool) ...
- func KeyStore(lr repo.LockedRepo) (types.KeyStore, error)
- func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis
- func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
- func MessagePool(lc fx.Lifecycle, sm *stmgr.StateManager, ps *pubsub.PubSub, ...) (*messagepool.MessagePool, error)
- func MinerAddress(ds dtypes.MetadataDS) (dtypes.MinerAddress, error)
- func MinerID(ma dtypes.MinerAddress) (dtypes.MinerID, error)
- func NetworkName(mctx helpers.MetricsCtx, lc fx.Lifecycle, cs *store.ChainStore, ...) (dtypes.NetworkName, error)
- func NewClientDatastore(ds dtypes.MetadataDS) dtypes.ClientDatastore
- func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Graphsync, ds dtypes.MetadataDS) (dtypes.ClientDataTransfer, error)
- func NewConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineRetrievalDealsConfigFunc, error)
- func NewConsiderOfflineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineStorageDealsConfigFunc, error)
- func NewConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineRetrievalDealsConfigFunc, error)
- func NewConsiderOnlineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineStorageDealsConfigFunc, error)
- func NewDefaultMaxFeeFunc(r repo.LockedRepo) dtypes.DefaultMaxFeeFunc
- func NewGetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.GetExpectedSealDurationFunc, error)
- func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error)
- func NewLocalDiscovery(lc fx.Lifecycle, ds dtypes.MetadataDS) (*discoveryimpl.Local, error)
- func NewProviderDAGServiceDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.StagingGraphsync, ds dtypes.MetadataDS) (dtypes.ProviderDataTransfer, error)
- func NewProviderPieceStore(lc fx.Lifecycle, ds dtypes.MetadataDS) (dtypes.ProviderPieceStore, error)
- func NewSetConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineRetrievalDealsConfigFunc, error)
- func NewSetConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineRetrievalDealsConfigFunc, error)
- func NewSetConsideringOfflineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineStorageDealsConfigFunc, error)
- func NewSetConsideringOnlineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineStorageDealsConfigFunc, error)
- func NewSetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.SetExpectedSealDurationFunc, error)
- func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error)
- func NewSetStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.SetStorageDealPieceCidBlocklistConfigFunc, error)
- func NewSlashFilter(ds dtypes.MetadataDS) *slashfilter.SlashFilter
- func NewStorageAsk(ctx helpers.MetricsCtx, fapi lapi.FullNode, ds dtypes.MetadataDS, ...) (*storedask.StoredAsk, error)
- func NewStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.StorageDealPieceCidBlocklistConfigFunc, error)
- func NewSyncer(params SyncerParams) (*chain.Syncer, error)
- func OpenFilesystemJournal(lr repo.LockedRepo, lc fx.Lifecycle, disabled journal.DisabledEvents) (journal.Journal, error)
- func ProofsConfig(maddr dtypes.MinerAddress, fnapi lapi.FullNode) (*ffiwrapper.Config, error)
- func RandomSchedule(p RandomBeaconParams, _ dtypes.AfterGenesisSet) (beacon.Schedule, error)
- func RecordValidator(ps peerstore.Peerstore) record.Validator
- func RegisterClientValidator(crv dtypes.ClientRequestValidator, dtm dtypes.ClientDataTransfer)
- func RetrievalClient(lc fx.Lifecycle, h host.Host, mds dtypes.ClientMultiDstore, ...) (retrievalmarket.RetrievalClient, error)
- func RetrievalDealFilter(userFilter dtypes.RetrievalDealFilter) ...
- func RetrievalProvider(h host.Host, miner *storage.Miner, sealer sectorstorage.SectorManager, ...) (retrievalmarket.RetrievalProvider, error)
- func RetrievalResolver(l *discoveryimpl.Local) discovery.PeerResolver
- func RunChainExchange(h host.Host, svc exchange.Server)
- func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service) error
- func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)
- func SectorIDCounter(ds dtypes.MetadataDS) sealing.SectorIDCounter
- func SectorStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, ls stores.LocalStorage, ...) (*sectorstorage.Manager, error)
- func SetGenesis(cs *store.ChainStore, g Genesis) (dtypes.AfterGenesisSet, error)
- func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api lapi.FullNode, ...) (*miner.Miner, error)
- func SetupFallbackBlockstore(cbs dtypes.ChainBlockstore, rem dtypes.ChainBitswap) error
- func StagingBlockstore(r repo.LockedRepo) (dtypes.StagingBlockstore, error)
- func StagingDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, ...) (dtypes.StagingDAG, error)
- func StagingGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, ...) dtypes.StagingGraphsync
- func StagingMultiDatastore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.StagingMultiDstore, error)
- func StorageAuth(ctx helpers.MetricsCtx, ca lapi.Common) (sectorstorage.StorageAuth, error)
- func StorageClient(lc fx.Lifecycle, h host.Host, ibs dtypes.ClientBlockstore, ...) (storagemarket.StorageClient, error)
- func StorageMiner(fc config.MinerFeeConfig) func(params StorageMinerParams) (*storage.Miner, error)
- func StorageNetworkName(ctx helpers.MetricsCtx, a lapi.FullNode) (dtypes.NetworkName, error)
- func StorageProvider(minerAddress dtypes.MinerAddress, ffiConfig *ffiwrapper.Config, ...) (storagemarket.StorageProvider, error)
- type Genesis
- type JwtPayload
- type MpoolNonceAPI
- type RPCStateManager
- func (s *RPCStateManager) Call(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.InvocResult, error)
- func (s *RPCStateManager) GetPaychState(ctx context.Context, addr address.Address, ts *types.TipSet) (*types.Actor, paych.State, error)
- func (s *RPCStateManager) LoadActorTsk(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*types.Actor, error)
- func (s *RPCStateManager) LookupID(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- func (s *RPCStateManager) ResolveToKeyAddress(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- type RandomBeaconParams
- type StorageMinerParams
- type SyncerParams
Constants ¶
const JWTSecretName = "auth-jwt-private" //nolint:gosec
const KTJwtHmacSecret = "jwt-hmac-secret" //nolint:gosec
Variables ¶
var ManagerWorkPrefix = datastore.NewKey("/stmgr/calls")
var StorageCounterDSPrefix = "/storage/nextid"
var WorkerCallsPrefix = datastore.NewKey("/worker/calls")
Functions ¶
func BasicDealFilter ¶ added in v0.5.0
func BasicDealFilter(user dtypes.StorageDealFilter) func(onlineOk dtypes.ConsiderOnlineStorageDealsConfigFunc, offlineOk dtypes.ConsiderOfflineStorageDealsConfigFunc, blocklistFunc dtypes.StorageDealPieceCidBlocklistConfigFunc, expectedSealTimeFunc dtypes.GetExpectedSealDurationFunc, spn storagemarket.StorageProviderNode) dtypes.StorageDealFilter
func BuiltinBootstrap ¶
func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
func BuiltinDrandConfig ¶ added in v0.4.1
func BuiltinDrandConfig() dtypes.DrandSchedule
func ChainBitswap ¶ added in v0.6.2
func ChainBitswap(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, rt routing.Routing, bs dtypes.ChainGCBlockstore) dtypes.ChainBitswap
func ChainBlockService ¶ added in v0.6.2
func ChainBlockService(bs dtypes.ChainRawBlockstore, rem dtypes.ChainBitswap) dtypes.ChainBlockService
func ChainGCBlockstore ¶
func ChainGCBlockstore(bs dtypes.ChainRawBlockstore, gcl dtypes.ChainGCLocker) dtypes.ChainGCBlockstore
func ChainRawBlockstore ¶ added in v1.1.3
func ChainRawBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.LockedRepo) (dtypes.ChainRawBlockstore, error)
func ChainStore ¶
func ChainStore(bs dtypes.ChainBlockstore, lbs dtypes.ChainRawBlockstore, ds dtypes.MetadataDS, syscalls vm.SyscallBuilder, j journal.Journal) *store.ChainStore
func ClientBlockstore ¶
func ClientBlockstore(imgr dtypes.ClientImportMgr) dtypes.ClientBlockstore
func ClientBlockstoreRetrievalStoreManager ¶ added in v0.5.0
func ClientBlockstoreRetrievalStoreManager(bs dtypes.ClientBlockstore) dtypes.ClientRetrievalStoreManager
ClientBlockstoreRetrievalStoreManager is the default version of the RetrievalStoreManager that runs on multistore
func ClientImportMgr ¶ added in v0.5.0
func ClientImportMgr(mds dtypes.ClientMultiDstore, ds dtypes.MetadataDS) dtypes.ClientImportMgr
func ClientMultiDatastore ¶ added in v0.5.0
func ClientMultiDatastore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.ClientMultiDstore, error)
func ClientRetrievalStoreManager ¶ added in v0.5.0
func ClientRetrievalStoreManager(imgr dtypes.ClientImportMgr) dtypes.ClientRetrievalStoreManager
ClientRetrievalStoreManager is the default version of the RetrievalStoreManager that runs on multistore
func ConfigBootstrap ¶
func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
func Datastore ¶
func Datastore(r repo.LockedRepo) (dtypes.MetadataDS, error)
func DoSetGenesis ¶ added in v0.3.0
func DoSetGenesis(_ dtypes.AfterGenesisSet)
func DrandBootstrap ¶ added in v0.4.0
func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error)
func FallbackChainBlockstore ¶ added in v1.1.3
func FallbackChainBlockstore(rbs dtypes.ChainRawBlockstore) dtypes.ChainBlockstore
func GetParams ¶
func GetParams(sbc *ffiwrapper.Config) error
func Graphsync ¶ added in v0.3.0
func Graphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, clientBs dtypes.ClientBlockstore, chainBs dtypes.ChainBlockstore, h host.Host) (dtypes.Graphsync, error)
Graphsync creates a graphsync instance from the given loader and storer
func HandleDeals ¶
func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, h storagemarket.StorageProvider, j journal.Journal)
func HandleIncomingBlocks ¶
func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, s *chain.Syncer, bserv dtypes.ChainBlockService, chain *store.ChainStore, stmgr *stmgr.StateManager, h host.Host, nn dtypes.NetworkName)
func HandleIncomingMessages ¶
func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, mpool *messagepool.MessagePool, h host.Host, nn dtypes.NetworkName)
func HandleMigrateClientFunds ¶ added in v1.1.3
func HandleMigrateClientFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, wallet full.WalletAPI, fundMgr *market.FundManager)
func HandleMigrateProviderFunds ¶ added in v1.1.3
func HandleMigrateProviderFunds(lc fx.Lifecycle, ds dtypes.MetadataDS, node api.FullNode, minerAddress dtypes.MinerAddress)
func HandleRetrieval ¶
func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider, j journal.Journal)
func IpfsClientBlockstore ¶ added in v0.3.0
func IpfsClientBlockstore(ipfsMaddr string, onlineMode bool) func(helpers.MetricsCtx, fx.Lifecycle, dtypes.ClientImportMgr) (dtypes.ClientBlockstore, error)
IpfsClientBlockstore returns a ClientBlockstore implementation backed by an IPFS node. If ipfsMaddr is empty, a local IPFS node is assumed considering IPFS_PATH configuration. If ipfsMaddr is not empty, it will connect to the remote IPFS node with the provided multiaddress. The flag useForRetrieval indicates if the IPFS node will also be used for storing retrieving deals.
func LoadGenesis ¶
func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis
func LockedRepo ¶
func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
func MessagePool ¶
func MessagePool(lc fx.Lifecycle, sm *stmgr.StateManager, ps *pubsub.PubSub, ds dtypes.MetadataDS, nn dtypes.NetworkName, j journal.Journal) (*messagepool.MessagePool, error)
func MinerAddress ¶ added in v0.3.0
func MinerAddress(ds dtypes.MetadataDS) (dtypes.MinerAddress, error)
func NetworkName ¶ added in v0.3.0
func NetworkName(mctx helpers.MetricsCtx, lc fx.Lifecycle, cs *store.ChainStore, us stmgr.UpgradeSchedule, _ dtypes.AfterGenesisSet) (dtypes.NetworkName, error)
func NewClientDatastore ¶ added in v0.3.0
func NewClientDatastore(ds dtypes.MetadataDS) dtypes.ClientDatastore
NewClientDatastore creates a datastore for the client to store its deals
func NewClientGraphsyncDataTransfer ¶ added in v0.3.0
func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Graphsync, ds dtypes.MetadataDS) (dtypes.ClientDataTransfer, error)
NewClientGraphsyncDataTransfer returns a data transfer manager that just uses the clients's Client DAG service for transfers
func NewConsiderOfflineRetrievalDealsConfigFunc ¶ added in v0.4.1
func NewConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineRetrievalDealsConfigFunc, error)
func NewConsiderOfflineStorageDealsConfigFunc ¶ added in v0.4.1
func NewConsiderOfflineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOfflineStorageDealsConfigFunc, error)
func NewConsiderOnlineRetrievalDealsConfigFunc ¶ added in v0.4.1
func NewConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineRetrievalDealsConfigFunc, error)
func NewConsiderOnlineStorageDealsConfigFunc ¶ added in v0.4.1
func NewConsiderOnlineStorageDealsConfigFunc(r repo.LockedRepo) (dtypes.ConsiderOnlineStorageDealsConfigFunc, error)
func NewDefaultMaxFeeFunc ¶ added in v1.1.3
func NewDefaultMaxFeeFunc(r repo.LockedRepo) dtypes.DefaultMaxFeeFunc
func NewGetExpectedSealDurationFunc ¶ added in v0.5.0
func NewGetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.GetExpectedSealDurationFunc, error)
func NewGetSealConfigFunc ¶ added in v0.5.0
func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error)
func NewLocalDiscovery ¶ added in v0.2.1
func NewLocalDiscovery(lc fx.Lifecycle, ds dtypes.MetadataDS) (*discoveryimpl.Local, error)
func NewProviderDAGServiceDataTransfer ¶
func NewProviderDAGServiceDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.StagingGraphsync, ds dtypes.MetadataDS) (dtypes.ProviderDataTransfer, error)
NewProviderDAGServiceDataTransfer returns a data transfer manager that just uses the provider's Staging DAG service for transfers
func NewProviderPieceStore ¶ added in v0.3.0
func NewProviderPieceStore(lc fx.Lifecycle, ds dtypes.MetadataDS) (dtypes.ProviderPieceStore, error)
NewProviderPieceStore creates a statestore for storing metadata about pieces shared by the storage and retrieval providers
func NewSetConsiderOfflineRetrievalDealsConfigFunc ¶ added in v0.4.1
func NewSetConsiderOfflineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineRetrievalDealsConfigFunc, error)
func NewSetConsiderOnlineRetrievalDealsConfigFunc ¶ added in v0.4.1
func NewSetConsiderOnlineRetrievalDealsConfigFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineRetrievalDealsConfigFunc, error)
func NewSetConsideringOfflineStorageDealsFunc ¶ added in v0.4.1
func NewSetConsideringOfflineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOfflineStorageDealsConfigFunc, error)
func NewSetConsideringOnlineStorageDealsFunc ¶ added in v0.4.1
func NewSetConsideringOnlineStorageDealsFunc(r repo.LockedRepo) (dtypes.SetConsiderOnlineStorageDealsConfigFunc, error)
func NewSetExpectedSealDurationFunc ¶ added in v0.5.0
func NewSetExpectedSealDurationFunc(r repo.LockedRepo) (dtypes.SetExpectedSealDurationFunc, error)
func NewSetSealConfigFunc ¶ added in v0.5.0
func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error)
func NewSetStorageDealPieceCidBlocklistConfigFunc ¶ added in v0.4.1
func NewSetStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.SetStorageDealPieceCidBlocklistConfigFunc, error)
func NewSlashFilter ¶ added in v0.5.0
func NewSlashFilter(ds dtypes.MetadataDS) *slashfilter.SlashFilter
func NewStorageAsk ¶ added in v0.3.1
func NewStorageAsk(ctx helpers.MetricsCtx, fapi lapi.FullNode, ds dtypes.MetadataDS, minerAddress dtypes.MinerAddress, spn storagemarket.StorageProviderNode) (*storedask.StoredAsk, error)
func NewStorageDealPieceCidBlocklistConfigFunc ¶ added in v0.4.1
func NewStorageDealPieceCidBlocklistConfigFunc(r repo.LockedRepo) (dtypes.StorageDealPieceCidBlocklistConfigFunc, error)
func OpenFilesystemJournal ¶ added in v0.7.1
func OpenFilesystemJournal(lr repo.LockedRepo, lc fx.Lifecycle, disabled journal.DisabledEvents) (journal.Journal, error)
func ProofsConfig ¶ added in v0.3.0
func ProofsConfig(maddr dtypes.MinerAddress, fnapi lapi.FullNode) (*ffiwrapper.Config, error)
func RandomSchedule ¶ added in v0.7.0
func RandomSchedule(p RandomBeaconParams, _ dtypes.AfterGenesisSet) (beacon.Schedule, error)
func RecordValidator ¶
RecordValidator provides namesys compatible routing record validator
func RegisterClientValidator ¶
func RegisterClientValidator(crv dtypes.ClientRequestValidator, dtm dtypes.ClientDataTransfer)
RegisterClientValidator is an initialization hook that registers the client request validator with the data transfer module as the validator for StorageDataTransferVoucher types
func RetrievalClient ¶ added in v0.2.1
func RetrievalClient(lc fx.Lifecycle, h host.Host, mds dtypes.ClientMultiDstore, dt dtypes.ClientDataTransfer, payAPI payapi.PaychAPI, resolver discovery.PeerResolver, ds dtypes.MetadataDS, chainAPI full.ChainAPI, stateAPI full.StateAPI, j journal.Journal) (retrievalmarket.RetrievalClient, error)
RetrievalClient creates a new retrieval client attached to the client blockstore
func RetrievalDealFilter ¶ added in v1.0.0
func RetrievalDealFilter(userFilter dtypes.RetrievalDealFilter) func(onlineOk dtypes.ConsiderOnlineRetrievalDealsConfigFunc, offlineOk dtypes.ConsiderOfflineRetrievalDealsConfigFunc) dtypes.RetrievalDealFilter
func RetrievalProvider ¶ added in v0.2.1
func RetrievalProvider(h host.Host, miner *storage.Miner, sealer sectorstorage.SectorManager, full lapi.FullNode, ds dtypes.MetadataDS, pieceStore dtypes.ProviderPieceStore, mds dtypes.StagingMultiDstore, dt dtypes.ProviderDataTransfer, onlineOk dtypes.ConsiderOnlineRetrievalDealsConfigFunc, offlineOk dtypes.ConsiderOfflineRetrievalDealsConfigFunc, userFilter dtypes.RetrievalDealFilter, ) (retrievalmarket.RetrievalProvider, error)
RetrievalProvider creates a new retrieval provider attached to the provider blockstore
func RetrievalResolver ¶
func RetrievalResolver(l *discoveryimpl.Local) discovery.PeerResolver
func RunPeerMgr ¶
func SectorIDCounter ¶ added in v0.3.0
func SectorIDCounter(ds dtypes.MetadataDS) sealing.SectorIDCounter
func SectorStorage ¶ added in v0.3.0
func SectorStorage(mctx helpers.MetricsCtx, lc fx.Lifecycle, ls stores.LocalStorage, si stores.SectorIndex, cfg *ffiwrapper.Config, sc sectorstorage.SealerConfig, urls sectorstorage.URLs, sa sectorstorage.StorageAuth, ds dtypes.MetadataDS) (*sectorstorage.Manager, error)
func SetGenesis ¶
func SetGenesis(cs *store.ChainStore, g Genesis) (dtypes.AfterGenesisSet, error)
func SetupBlockProducer ¶
func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api lapi.FullNode, epp gen.WinningPoStProver, sf *slashfilter.SlashFilter, j journal.Journal) (*miner.Miner, error)
func SetupFallbackBlockstore ¶ added in v1.1.3
func SetupFallbackBlockstore(cbs dtypes.ChainBlockstore, rem dtypes.ChainBitswap) error
func StagingBlockstore ¶ added in v0.2.1
func StagingBlockstore(r repo.LockedRepo) (dtypes.StagingBlockstore, error)
StagingBlockstore creates a blockstore for staging blocks for a miner in a storage deal, prior to sealing
func StagingDAG ¶
func StagingDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, rt routing.Routing, h host.Host) (dtypes.StagingDAG, error)
StagingDAG is a DAGService for the StagingBlockstore
func StagingGraphsync ¶ added in v0.2.1
func StagingGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, h host.Host) dtypes.StagingGraphsync
StagingGraphsync creates a graphsync instance which reads and writes blocks to the StagingBlockstore
func StagingMultiDatastore ¶ added in v0.5.0
func StagingMultiDatastore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.StagingMultiDstore, error)
func StorageAuth ¶ added in v0.3.0
func StorageAuth(ctx helpers.MetricsCtx, ca lapi.Common) (sectorstorage.StorageAuth, error)
func StorageClient ¶ added in v0.2.1
func StorageClient(lc fx.Lifecycle, h host.Host, ibs dtypes.ClientBlockstore, mds dtypes.ClientMultiDstore, r repo.LockedRepo, dataTransfer dtypes.ClientDataTransfer, discovery *discoveryimpl.Local, deals dtypes.ClientDatastore, scn storagemarket.StorageClientNode, j journal.Journal) (storagemarket.StorageClient, error)
func StorageMiner ¶
func StorageMiner(fc config.MinerFeeConfig) func(params StorageMinerParams) (*storage.Miner, error)
func StorageNetworkName ¶ added in v0.3.0
func StorageNetworkName(ctx helpers.MetricsCtx, a lapi.FullNode) (dtypes.NetworkName, error)
func StorageProvider ¶ added in v0.2.1
func StorageProvider(minerAddress dtypes.MinerAddress, ffiConfig *ffiwrapper.Config, storedAsk *storedask.StoredAsk, h host.Host, ds dtypes.MetadataDS, mds dtypes.StagingMultiDstore, r repo.LockedRepo, pieceStore dtypes.ProviderPieceStore, dataTransfer dtypes.ProviderDataTransfer, spn storagemarket.StorageProviderNode, df dtypes.StorageDealFilter, ) (storagemarket.StorageProvider, error)
Types ¶
type Genesis ¶
type Genesis func() (*types.BlockHeader, error)
func ErrorGenesis ¶
func ErrorGenesis() Genesis
type JwtPayload ¶ added in v0.5.0
type JwtPayload struct {
Allow []auth.Permission
}
type MpoolNonceAPI ¶ added in v0.9.1
MpoolNonceAPI substitutes the mpool nonce with an implementation that doesn't rely on the mpool - it just gets the nonce from actor state
func (*MpoolNonceAPI) GetNonce ¶ added in v0.9.1
func (a *MpoolNonceAPI) GetNonce(addr address.Address) (uint64, error)
GetNonce gets the nonce from actor state
type RPCStateManager ¶ added in v0.9.1
type RPCStateManager struct {
// contains filtered or unexported fields
}
func NewRPCStateManager ¶ added in v0.9.1
func NewRPCStateManager(api api.GatewayAPI) *RPCStateManager
func (*RPCStateManager) Call ¶ added in v1.1.1
func (s *RPCStateManager) Call(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.InvocResult, error)
func (*RPCStateManager) GetPaychState ¶ added in v1.1.1
func (*RPCStateManager) LoadActorTsk ¶ added in v0.9.1
func (*RPCStateManager) ResolveToKeyAddress ¶ added in v0.9.1
type RandomBeaconParams ¶ added in v0.3.1
type RandomBeaconParams struct { fx.In PubSub *pubsub.PubSub `optional:"true"` Cs *store.ChainStore DrandConfig dtypes.DrandSchedule }
type StorageMinerParams ¶ added in v0.7.1
type StorageMinerParams struct { fx.In Lifecycle fx.Lifecycle MetricsCtx helpers.MetricsCtx API lapi.FullNode Host host.Host MetadataDS dtypes.MetadataDS Sealer sectorstorage.SectorManager SectorIDCounter sealing.SectorIDCounter Verifier ffiwrapper.Verifier GetSealingConfigFn dtypes.GetSealingConfigFunc Journal journal.Journal }
type SyncerParams ¶ added in v0.7.1
type SyncerParams struct { fx.In Lifecycle fx.Lifecycle MetadataDS dtypes.MetadataDS StateManager *stmgr.StateManager ChainXchg exchange.Client SyncMgrCtor chain.SyncManagerCtor Host host.Host Beacon beacon.Schedule Verifier ffiwrapper.Verifier }