Documentation ¶
Index ¶
- type HandlerSvc
- func (svc *HandlerSvc) DepositResponse(deposits *database.L1BridgeDepositsResponse) models.DepositResponse
- func (svc *HandlerSvc) GetDeposits(params *models.QueryParams) (*database.L1BridgeDepositsResponse, error)
- func (svc *HandlerSvc) GetSupplyInfo() (*models.BridgeSupplyView, error)
- func (svc *HandlerSvc) GetWithdrawals(params *models.QueryParams) (*database.L2BridgeWithdrawalsResponse, error)
- func (svc *HandlerSvc) QueryParams(a, c, l string) (*models.QueryParams, error)
- func (svc *HandlerSvc) WithdrawResponse(withdrawals *database.L2BridgeWithdrawalsResponse) models.WithdrawalResponse
- type Service
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerSvc ¶
type HandlerSvc struct {
// contains filtered or unexported fields
}
func (*HandlerSvc) DepositResponse ¶
func (svc *HandlerSvc) DepositResponse(deposits *database.L1BridgeDepositsResponse) models.DepositResponse
DepositResponse ... Converts a database.L1BridgeDepositsResponse to an api.DepositResponse
func (*HandlerSvc) GetDeposits ¶
func (svc *HandlerSvc) GetDeposits(params *models.QueryParams) (*database.L1BridgeDepositsResponse, error)
func (*HandlerSvc) GetSupplyInfo ¶
func (svc *HandlerSvc) GetSupplyInfo() (*models.BridgeSupplyView, error)
GetSupplyInfo ... Fetch native bridge supply info
func (*HandlerSvc) GetWithdrawals ¶
func (svc *HandlerSvc) GetWithdrawals(params *models.QueryParams) (*database.L2BridgeWithdrawalsResponse, error)
func (*HandlerSvc) QueryParams ¶
func (svc *HandlerSvc) QueryParams(a, c, l string) (*models.QueryParams, error)
func (*HandlerSvc) WithdrawResponse ¶
func (svc *HandlerSvc) WithdrawResponse(withdrawals *database.L2BridgeWithdrawalsResponse) models.WithdrawalResponse
type Service ¶
type Service interface { GetDeposits(*models.QueryParams) (*database.L1BridgeDepositsResponse, error) DepositResponse(*database.L1BridgeDepositsResponse) models.DepositResponse GetWithdrawals(params *models.QueryParams) (*database.L2BridgeWithdrawalsResponse, error) WithdrawResponse(*database.L2BridgeWithdrawalsResponse) models.WithdrawalResponse GetSupplyInfo() (*models.BridgeSupplyView, error) QueryParams(address, cursor, limit string) (*models.QueryParams, error) }
type Validator ¶
type Validator struct{}
Validator ... Validates API user request parameters
func (*Validator) ParseValidateAddress ¶
ParseValidateAddress ... Validates and parses the address query parameter
func (*Validator) ParseValidateLimit ¶
ParseValidateLimit ... Validates and parses the limit query parameters
func (*Validator) ValidateCursor ¶
ValidateCursor ... Validates and parses the cursor query parameter
Click to show internal directories.
Click to hide internal directories.