Documentation ¶
Index ¶
- Constants
- func APICheckKeyImages(c *gin.Context)
- func APICheckRate(c *gin.Context)
- func APICheckTXs(c *gin.Context)
- func APICheckTxPending(c *gin.Context)
- func APIGetBridgeAggState(c *gin.Context)
- func APIGetCoinInfo(c *gin.Context)
- func APIGetCoins(c *gin.Context)
- func APIGetCoinsPending(c *gin.Context)
- func APIGetContributeHistory(c *gin.Context)
- func APIGetDefaultTokens(c *gin.Context)
- func APIGetDeviceByQRCode(c *gin.Context)
- func APIGetKeyInfo(c *gin.Context)
- func APIGetLatestTxs(c *gin.Context)
- func APIGetPdecimal(c *gin.Context)
- func APIGetPendingTxs(c *gin.Context)
- func APIGetRandomCommitments(c *gin.Context)
- func APIGetShieldHistory(c *gin.Context)
- func APIGetTokenInfo(c *gin.Context)
- func APIGetTokenList(c *gin.Context)
- func APIGetTop10(c *gin.Context)
- func APIGetTradeHistory(c *gin.Context)
- func APIGetTxDetail(c *gin.Context)
- func APIGetTxShield(c *gin.Context)
- func APIGetTxsByPubkey(c *gin.Context)
- func APIGetTxsByReceiver(c *gin.Context)
- func APIGetTxsBySender(c *gin.Context)
- func APIGetUnshieldHistory(c *gin.Context)
- func APIGetWithdrawFeeHistory(c *gin.Context)
- func APIGetWithdrawHistory(c *gin.Context)
- func APIHealthCheck(c *gin.Context)
- func APIPDEState(c *gin.Context)
- func APIRescanOTA(c *gin.Context)
- func APISubmitOTA(c *gin.Context)
- func APISubmitOTAFullmode(c *gin.Context)
- func StartGinService()
- type APICheckKeyImagesRequest
- type APICheckTxRequest
- type APIGetRandomCommitmentRequest
- type APIGetTxTradeRespond
- type APIGetTxsByPubkeyRequest
- type APIGetTxsBySenderRequest
- type APILatestTxRespond
- type APIRespond
- type APISubmitOTAkeyRequest
- type APITokenInfoRequest
- type ContributionDataV1
- type CoordinatorState
- type PdexV3ContributionData
- type PdexV3EstimateTradeRespond
- type PdexV3EstimateTradeRespondBig
- type PdexV3LiquidityHistoryRespond
- type PdexV3OrderBookRespond
- type PdexV3OrderBookVolume
- type PdexV3PairData
- type PdexV3PendingOrderData
- type PdexV3PoolDetail
- type PdexV3PoolShareRespond
- type PdexV3PriceHistoryRespond
- type PdexV3StakePoolRewardHistoryData
- type PdexV3StakingPoolHistoryData
- type PdexV3StakingPoolInfo
- type PdexV3WithdrawFeeRespond
- type PdexV3WithdrawRespond
- type ReceivedTransactionV2
- type TokenInfo
- type TradeDataRespond
- type TradeWithdrawInfo
- type TxBridgeDetail
- type TxTradeDetail
Constants ¶
View Source
const ( AMP_CLASS1 = 200 AMP_CLASS2 = 10 AMP_CLASS3 = 2 AMP_CLASS4 = 1 )
Variables ¶
This section is empty.
Functions ¶
func APICheckKeyImages ¶
func APICheckRate ¶ added in v1.8.0
func APICheckTXs ¶
func APICheckTxPending ¶
func APIGetBridgeAggState ¶ added in v1.8.1
func APIGetCoinInfo ¶
func APIGetCoins ¶
func APIGetCoinsPending ¶
func APIGetContributeHistory ¶
func APIGetDefaultTokens ¶ added in v1.8.0
func APIGetDeviceByQRCode ¶ added in v1.8.0
func APIGetKeyInfo ¶
func APIGetLatestTxs ¶
func APIGetPdecimal ¶ added in v1.8.0
func APIGetPendingTxs ¶
func APIGetRandomCommitments ¶
func APIGetShieldHistory ¶
func APIGetTokenInfo ¶ added in v1.8.0
func APIGetTokenList ¶
func APIGetTop10 ¶ added in v1.8.0
func APIGetTradeHistory ¶
func APIGetTxDetail ¶
func APIGetTxShield ¶ added in v1.8.0
func APIGetTxsByPubkey ¶
func APIGetTxsByReceiver ¶
func APIGetTxsBySender ¶
func APIGetUnshieldHistory ¶
func APIGetWithdrawHistory ¶
func APIHealthCheck ¶
func APIPDEState ¶
func APIRescanOTA ¶
func APISubmitOTA ¶
func APISubmitOTAFullmode ¶
func StartGinService ¶
func StartGinService()
Types ¶
type APICheckTxRequest ¶
type APIGetTxTradeRespond ¶
type APIGetTxTradeRespond struct { }
type APILatestTxRespond ¶
type APIRespond ¶
type APIRespond struct { Result interface{} Error *string }
type APISubmitOTAkeyRequest ¶
type APITokenInfoRequest ¶ added in v1.8.0
type ContributionDataV1 ¶ added in v1.8.0
type ContributionDataV1 struct { ID string `json:"id"` CreatedAt string `json:"created_at"` UpdateAt string `json:"updated_at"` RequestTx string `json:"requesttx"` RespondTx string `json:"respondtx"` Status string `json:"status"` PairID string `json:"pairid"` TokenID string `json:"tokenid"` Amount uint64 `json:"amount"` ReturnAmount uint64 `json:"returnamount"` ContributorAddressStr string `json:"contributor"` Respondblock uint64 `json:"respondblock"` }
type CoordinatorState ¶ added in v1.8.0
type CoordinatorState struct {
// contains filtered or unexported fields
}
type PdexV3ContributionData ¶ added in v1.8.0
type PdexV3EstimateTradeRespond ¶ added in v1.8.0
type PdexV3EstimateTradeRespondBig ¶ added in v1.8.0
type PdexV3EstimateTradeRespondBig struct { FeePRV PdexV3EstimateTradeRespond FeeToken PdexV3EstimateTradeRespond }
type PdexV3LiquidityHistoryRespond ¶ added in v1.8.0
type PdexV3OrderBookRespond ¶ added in v1.8.0
type PdexV3OrderBookRespond struct { Buy []PdexV3OrderBookVolume Sell []PdexV3OrderBookVolume }
type PdexV3OrderBookVolume ¶ added in v1.8.0
type PdexV3PairData ¶ added in v1.8.0
type PdexV3PendingOrderData ¶ added in v1.8.0
type PdexV3PoolDetail ¶ added in v1.8.0
type PdexV3PoolShareRespond ¶ added in v1.8.0
type PdexV3PoolShareRespond struct {}
type PdexV3PriceHistoryRespond ¶ added in v1.8.0
type PdexV3StakePoolRewardHistoryData ¶ added in v1.8.0
type PdexV3StakingPoolHistoryData ¶ added in v1.8.0
type PdexV3StakingPoolInfo ¶ added in v1.8.0
type PdexV3WithdrawFeeRespond ¶ added in v1.8.0
type PdexV3WithdrawRespond ¶ added in v1.8.0
type ReceivedTransactionV2 ¶
type ReceivedTransactionV2 struct { TxDetail *shared.TransactionDetail FromShardID byte }
type TokenInfo ¶ added in v1.8.0
type TokenInfo struct { TokenID string Name string Symbol string Image string IsPrivacy bool IsBridge bool ExternalID string PDecimals int Decimals int64 ContractID string Status int Type int CurrencyType int Default bool Verified bool UserID int ListChildToken []TokenInfo ListUnifiedToken []TokenInfo PSymbol string OriginalSymbol string LiquidityReward float64 ExternalPriceUSD float64 `json:"ExternalPriceUSD"` PriceUsd float64 `json:"PriceUsd"` PercentChange1h string `json:"PercentChange1h"` PercentChangePrv1h string `json:"PercentChangePrv1h"` PercentChange24h string `json:"PercentChange24h"` CurrentPrvPool uint64 `json:"CurrentPrvPool"` PricePrv float64 `json:"PricePrv"` Volume24 uint64 `json:"volume24"` ParentID int `json:"ParentID"` Network string DefaultPoolPair string DefaultPairToken string //additional p-unified token NetworkID int MovedUnifiedToken bool ParentUnifiedID int }
type TradeDataRespond ¶ added in v1.8.0
type TradeDataRespond struct { RequestTx string RespondTxs []string RespondTokens []string RespondAmounts []uint64 WithdrawTxs map[string]TradeWithdrawInfo SellTokenID string BuyTokenID string Status string StatusCode int PairID string PoolID string MinAccept uint64 Amount uint64 Matched uint64 Requestime int64 NFTID string Receiver string Fee uint64 FeeToken string IsCompleted bool SellTokenBalance uint64 BuyTokenBalance uint64 SellTokenWithdrawed uint64 BuyTokenWithdrawed uint64 TradingPath []string }
type TradeWithdrawInfo ¶ added in v1.8.0
type TxBridgeDetail ¶
type TxTradeDetail ¶
type TxTradeDetail struct { RequestTx string `json:"requesttx"` RespondTx []string `json:"respondtx"` Status string `json:"status"` BuyToken string `json:"buytoken"` SellToken string `json:"selltoken"` //from respondtx ReceiveAmount map[string]uint64 `json:"receive"` //from requesttx SellAmount uint64 `json:"sell"` Fee uint64 `json:"fee"` RequestTime int64 `json:"requesttime"` }
Click to show internal directories.
Click to hide internal directories.