handlers

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoutes

func NewRoutes(params NewRoutesParams) (echofx.RouteRegistrar, error)

Types

type AdminRoutes

type AdminRoutes struct {
	// contains filtered or unexported fields
}

func (*AdminRoutes) RegisterRoutes

func (a *AdminRoutes) RegisterRoutes(e *echo.Echo)

type NewRoutesParams added in v0.2.2

type NewRoutesParams struct {
	fx.In

	Identity       app.IdentityConfig
	PaymentHandler *PaymentHandler `optional:"true"`
}

type PaymentHandler added in v0.2.2

type PaymentHandler struct {
	// contains filtered or unexported fields
}

func NewPaymentHandler added in v0.2.2

func NewPaymentHandler(payment smartcontracts.Payment, pdpConfig app.PDPServiceConfig, serviceView smartcontracts.Service, serviceValidator smartcontracts.ServiceValidator, ethClient *ethclient.Client, sender ethsender.Sender, db *gorm.DB) *PaymentHandler

func (*PaymentHandler) EstimateSettlement added in v0.2.2

func (h *PaymentHandler) EstimateSettlement(ctx echo.Context) error

EstimateSettlement returns estimated gas and fees for settling a rail

func (*PaymentHandler) EstimateWithdraw added in v0.2.2

func (h *PaymentHandler) EstimateWithdraw(ctx echo.Context) error

EstimateWithdraw returns estimated gas for a withdrawal

func (*PaymentHandler) GetAccountInfo added in v0.2.2

func (h *PaymentHandler) GetAccountInfo(ctx echo.Context) error

func (*PaymentHandler) GetSettlementStatus added in v0.2.2

func (h *PaymentHandler) GetSettlementStatus(ctx echo.Context) error

GetSettlementStatus returns the status of a pending settlement for a rail

func (*PaymentHandler) GetWithdrawalStatus added in v0.2.2

func (h *PaymentHandler) GetWithdrawalStatus(ctx echo.Context) error

GetWithdrawalStatus returns the status of a pending withdrawal

func (*PaymentHandler) SettleRail added in v0.2.2

func (h *PaymentHandler) SettleRail(ctx echo.Context) error

SettleRail submits a settlement transaction

func (*PaymentHandler) Withdraw added in v0.2.2

func (h *PaymentHandler) Withdraw(ctx echo.Context) error

Withdraw submits a withdrawal transaction

Jump to

Keyboard shortcuts

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