service

package
v0.0.0-...-e865ecf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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)
}

type Validator

type Validator struct{}

func (*Validator) ParseValidateAddress

func (v *Validator) ParseValidateAddress(addr string) (common.Address, error)

func (*Validator) ValidateIdOrIndex

func (v *Validator) ValidateIdOrIndex(idOrIndex uint64) error

func (*Validator) ValidateOrder

func (v *Validator) ValidateOrder(order string) error

func (*Validator) ValidatePage

func (v *Validator) ValidatePage(page int) error

func (*Validator) ValidatePageSize

func (v *Validator) ValidatePageSize(pageSize int) error

Jump to

Keyboard shortcuts

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