Documentation ¶
Index ¶
- func AmountBytesToString(amt []byte) string
- func TokenBytesToString(token []byte) string
- type DividendPoolInfo
- type RpcBrokerFeeAccount
- type RpcBrokerFeeSumByPeriod
- type RpcBrokerMarketFee
- type RpcDexTokenInfo
- type RpcFeeSumByPeriod
- type RpcFeeSumForDividend
- type RpcFeeSumForMine
- type RpcMarketInfo
- type RpcPledgeForVxByPeriod
- type RpcPledgesForVx
- type RpcThresholdForTradeAndMine
- type RpcUserFeeAccount
- type RpcUserFeeByPeriod
- type RpcUserFees
- type RpcVxFundByPeriod
- type RpcVxFunds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmountBytesToString ¶
func TokenBytesToString ¶
Types ¶
type DividendPoolInfo ¶
type DividendPoolInfo struct { Amount string `json:"amount"` QuoteTokenType int32 `json:"quoteTokenType"` TokenInfo *RpcDexTokenInfo `json:"tokenInfo,omitempty"` }
type RpcBrokerFeeAccount ¶
type RpcBrokerFeeAccount struct { Token string `json:"token"` MarketFees []*RpcBrokerMarketFee `json:"marketFees"` }
type RpcBrokerFeeSumByPeriod ¶
type RpcBrokerFeeSumByPeriod struct {
BrokerFees []*RpcBrokerFeeAccount `json:"brokerFees"`
}
func BrokerFeeSumByPeriodToRpc ¶
func BrokerFeeSumByPeriodToRpc(brokerFeeSum *dex.BrokerFeeSumByPeriod) *RpcBrokerFeeSumByPeriod
type RpcBrokerMarketFee ¶
type RpcDexTokenInfo ¶
type RpcDexTokenInfo struct { TokenSymbol string `json:"tokenSymbol"` Decimals int32 `json:"decimals"` TokenId types.TokenTypeId `json:"tokenId"` Index int32 `json:"index"` Owner types.Address `json:"owner"` QuoteTokenType int32 `json:"quoteTokenType"` }
func TokenInfoToRpc ¶
func TokenInfoToRpc(tinfo *dex.TokenInfo, tti types.TokenTypeId) *RpcDexTokenInfo
type RpcFeeSumByPeriod ¶
type RpcFeeSumByPeriod struct { FeesForDividend []*RpcFeeSumForDividend `json:"feesForDividend"` FeesForMine []*RpcFeeSumForMine `json:"feesForMine"` LastValidPeriod uint64 `json:"lastValidPeriod"` FinishFeeDividend bool `json:"finishFeeDividend"` FinishVxMine bool `json:"finishVxMine"` }
func FeeSumByPeriodToRpc ¶
func FeeSumByPeriodToRpc(feeSum *dex.FeeSumByPeriod) *RpcFeeSumByPeriod
type RpcFeeSumForDividend ¶
type RpcFeeSumForMine ¶
type RpcMarketInfo ¶
type RpcMarketInfo struct { MarketId int32 `json:"marketId"` MarketSymbol string `json:"marketSymbol"` TradeToken string `json:"tradeToken"` QuoteToken string `json:"quoteToken"` QuoteTokenType int32 `json:"quoteTokenType"` TradeTokenDecimals int32 `json:"tradeTokenDecimals,omitempty"` QuoteTokenDecimals int32 `json:"quoteTokenDecimals"` TakerBrokerFeeRate int32 `json:"takerBrokerFeeRate"` MakerBrokerFeeRate int32 `json:"makerBrokerFeeRate"` AllowMine bool `json:"allowMine"` Valid bool `json:"valid"` Owner string `json:"owner"` Creator string `json:"creator"` Stopped bool `json:"stopped"` Timestamp int64 `json:"timestamp"` }
func MarketInfoToRpc ¶
func MarketInfoToRpc(mkInfo *dex.MarketInfo) *RpcMarketInfo
type RpcPledgeForVxByPeriod ¶
type RpcPledgesForVx ¶
type RpcPledgesForVx struct {
Pledges []*RpcPledgeForVxByPeriod `json:"Pledges"`
}
func PledgesForVxToRpc ¶
func PledgesForVxToRpc(pledges *dex.PledgesForVx) *RpcPledgesForVx
type RpcUserFeeAccount ¶
type RpcUserFeeByPeriod ¶
type RpcUserFeeByPeriod struct { UserFees []*RpcUserFeeAccount `json:"userFees"` Period uint64 `json:"period"` }
type RpcUserFees ¶
type RpcUserFees struct {
Fees []*RpcUserFeeByPeriod `json:"fees"`
}
func UserFeesToRpc ¶
func UserFeesToRpc(userFees *dex.UserFees) *RpcUserFees
type RpcVxFundByPeriod ¶
type RpcVxFunds ¶
type RpcVxFunds struct {
Funds []*RpcVxFundByPeriod `json:"funds"`
}
func VxFundsToRpc ¶
func VxFundsToRpc(funds *dex.VxFunds) *RpcVxFunds
Click to show internal directories.
Click to hide internal directories.