Documentation ¶
Index ¶
- type HandlerSvc
- func (h HandlerSvc) BridgeValid(address string) *models.ValidResult
- func (h HandlerSvc) GetBridgeRecords(params *models.QueryBRParams) (*models.BridgeResponse, error)
- func (h HandlerSvc) GetDepositList(params *models.QueryDWParams) (*models.DepositsResponse, error)
- func (h HandlerSvc) GetStakingRecords(params *models.QuerySRParams) (*models.StakingResponse, error)
- func (h HandlerSvc) GetWithdrawalList(params *models.QueryDWParams) (*models.WithdrawsResponse, error)
- func (h HandlerSvc) QueryBRParams(address string, page string, pageSize string, order string) (*models.QueryBRParams, error)
- func (h HandlerSvc) QueryDWParams(chainId string, address string, page string, pageSize string, order string) (*models.QueryDWParams, error)
- func (h HandlerSvc) QuerySRParams(address, page, pageSize, order, txType string) (*models.QuerySRParams, error)
- func (h HandlerSvc) StakingValid(address string) *models.ValidResult
- 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) BridgeValid ¶
func (h HandlerSvc) BridgeValid(address string) *models.ValidResult
func (HandlerSvc) GetBridgeRecords ¶
func (h HandlerSvc) GetBridgeRecords(params *models.QueryBRParams) (*models.BridgeResponse, error)
func (HandlerSvc) GetDepositList ¶
func (h HandlerSvc) GetDepositList(params *models.QueryDWParams) (*models.DepositsResponse, error)
func (HandlerSvc) GetStakingRecords ¶
func (h HandlerSvc) GetStakingRecords(params *models.QuerySRParams) (*models.StakingResponse, error)
func (HandlerSvc) GetWithdrawalList ¶
func (h HandlerSvc) GetWithdrawalList(params *models.QueryDWParams) (*models.WithdrawsResponse, error)
func (HandlerSvc) QueryBRParams ¶
func (h HandlerSvc) QueryBRParams(address string, page string, pageSize string, order string) (*models.QueryBRParams, error)
func (HandlerSvc) QueryDWParams ¶
func (h HandlerSvc) QueryDWParams(chainId string, address string, page string, pageSize string, order string) (*models.QueryDWParams, error)
func (HandlerSvc) QuerySRParams ¶
func (h HandlerSvc) QuerySRParams(address, page, pageSize, order, txType string) (*models.QuerySRParams, error)
func (HandlerSvc) StakingValid ¶
func (h HandlerSvc) StakingValid(address string) *models.ValidResult
type Service ¶
type Service interface { GetDepositList(*models.QueryDWParams) (*models.DepositsResponse, error) GetWithdrawalList(params *models.QueryDWParams) (*models.WithdrawsResponse, error) GetStakingRecords(params *models.QuerySRParams) (*models.StakingResponse, error) GetBridgeRecords(params *models.QueryBRParams) (*models.BridgeResponse, error) StakingValid(address string) *models.ValidResult BridgeValid(address string) *models.ValidResult QueryDWParams(chainId string, address string, page string, pageSize string, order string) (*models.QueryDWParams, error) QuerySRParams(address, page, pageSize, order, txType string) (*models.QuerySRParams, error) QueryBRParams(address string, page string, pageSize string, order string) (*models.QueryBRParams, error) }
func New ¶
func New(v *Validator, l1l2v worker.L1ToL2View, l2l1v worker.L2ToL1View, srv relayer.StakingRecordView, brv relayer.BridgeRecordDBView) Service
type Validator ¶
type Validator struct{}
func (*Validator) ParseValidateAddress ¶
func (*Validator) ValidateIdOrIndex ¶
func (*Validator) ValidateOrder ¶
func (*Validator) ValidatePage ¶
func (*Validator) ValidatePageSize ¶
Click to show internal directories.
Click to hide internal directories.