app

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CommonModules added in v0.0.13

func CommonModules(cfg app.AppConfig) fx.Option

func ProvideEthClient added in v0.0.13

func ProvideEthClient(lc fx.Lifecycle, cfg app.AppConfig) (*ethclient.Client, error)

func ProvideLotusClient added in v0.0.13

func ProvideLotusClient(lc fx.Lifecycle, cfg app.AppConfig) (api.FullNode, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL