Documentation
¶
Index ¶
- func NewRoutes(params NewRoutesParams) (echofx.RouteRegistrar, error)
- type AdminRoutes
- type NewRoutesParams
- type PaymentHandler
- func (h *PaymentHandler) EstimateSettlement(ctx echo.Context) error
- func (h *PaymentHandler) EstimateWithdraw(ctx echo.Context) error
- func (h *PaymentHandler) GetAccountInfo(ctx echo.Context) error
- func (h *PaymentHandler) GetSettlementStatus(ctx echo.Context) error
- func (h *PaymentHandler) GetWithdrawalStatus(ctx echo.Context) error
- func (h *PaymentHandler) SettleRail(ctx echo.Context) error
- func (h *PaymentHandler) Withdraw(ctx echo.Context) error
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
Click to show internal directories.
Click to hide internal directories.