Documentation
¶
Index ¶
- Variables
- func CommonModules(cfg app.AppConfig) fx.Option
- func ProvideEthClient(lc fx.Lifecycle, cfg app.AppConfig) (*ethclient.Client, error)
- func ProvideLotusClient(lc fx.Lifecycle, cfg app.AppConfig) (api.FullNode, error)
- func ProvidePaymentHandler(params ProvidePaymentHandlerParams) *handlers.PaymentHandler
- type ProvidePaymentHandlerParams
Constants ¶
This section is empty.
Variables ¶
View Source
var PDPModule = fx.Module("pdp", fx.Provide( ProvideEthClient, fx.Annotate( provideEthClientAsInterfaces, fx.As(new(service.EthClient)), fx.As(new(bind.ContractBackend)), ), fx.Annotate( ProvideLotusClient, fx.As(new(service.ChainClient)), ), ProvidePaymentHandler, ), smartcontracts.Module, aggregation.Module, scheduler.Module, pdp.Module, piece.Module, wallet.Module, )
View Source
var UCANModule = fx.Module("ucan", presigner.Module, root.Module, blobs.Module, claims.Module, claimvalidation.Module, publisher.Module, egresstracker.Module, replicator.Module, storage.Module, retrieval.Module, principalresolver.Module, storageucan.Module, retrievalucan.Module, )
Functions ¶
func ProvideEthClient ¶ added in v0.0.13
func ProvideLotusClient ¶ added in v0.0.13
func ProvidePaymentHandler ¶ added in v0.2.2
func ProvidePaymentHandler(params ProvidePaymentHandlerParams) *handlers.PaymentHandler
ProvidePaymentHandler creates the payment handler for admin routes
Types ¶
type ProvidePaymentHandlerParams ¶ added in v0.2.2
type ProvidePaymentHandlerParams struct {
fx.In
Payment smartcontracts.Payment
PDPConfig app.PDPServiceConfig
ServiceView smartcontracts.Service `optional:"true"`
ServiceValidator smartcontracts.ServiceValidator `optional:"true"`
EthClient *ethclient.Client
Sender ethsender.Sender
DB *gorm.DB `name:"engine_db"`
}
ProvidePaymentHandlerParams contains the dependencies for the payment handler
Click to show internal directories.
Click to hide internal directories.