Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCodeInternalServerError = "E01" ErrCodeInvalidJSON = "E02" ErrCodeInvalidAPIKey = "E03" ErrCodeValidationFailed = "E04" ErrCodeAccountNotExists = "E05" ErrJWTAuth = "E06" ErrNoRecordFound = "E07" ErrBannedToken = "E08" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAddressParam ¶
type AccountAddressParam struct {
Address string `param:"address" validate:"required,eth_addr_checksum"`
}
type ErrResponse ¶
type LoginRequest ¶
type OKResponse ¶
type OTXByAccountRequest ¶
type PoolDepositRequest ¶
type PoolDepositRequest struct { From string `json:"from" validate:"required,eth_addr_checksum"` TokenAddress string `json:"tokenAddress" validate:"required,eth_addr_checksum"` PoolAddress string `json:"poolAddress" validate:"required,eth_addr_checksum"` Amount string `json:"amount" validate:"required,number,gt=0"` }
type PoolSwapRequest ¶
type PoolSwapRequest struct { From string `json:"from" validate:"required,eth_addr_checksum"` FromTokenAddress string `json:"fromTokenAddress" validate:"required,eth_addr_checksum"` ToTokenAddress string `json:"toTokenAddress" validate:"required,eth_addr_checksum"` PoolAddress string `json:"poolAddress" validate:"required,eth_addr_checksum"` Amount string `json:"amount" validate:"required,number,gt=0"` }
type SweepRequest ¶
type TrackingIDParam ¶
type TrackingIDParam struct {
TrackingID string `param:"trackingId" validate:"required,uuid"`
}
type TransferRequest ¶
Click to show internal directories.
Click to hide internal directories.