Documentation
¶
Index ¶
- func InitDashboardController(s dashboard2.Dashboard, route *gin.RouterGroup, logger logging.Logger) controller.DashboardController
- type ChartItem
- type ChartRes
- type ChartType
- type PoolDetailRes
- type PoolRes
- type PoolsRes
- type RecentRes
- type StatisticRes
- type StatisticResItem
- type TokenRes
- type TokensRes
- type TxRes
- type TxType
- type TxsRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDashboardController ¶
func InitDashboardController(s dashboard2.Dashboard, route *gin.RouterGroup, logger logging.Logger) controller.DashboardController
Types ¶
type PoolDetailRes ¶
type RecentRes ¶
type RecentRes struct {
Volume string `json:"volume"`
VolumeChangeRate float32 `json:"volumeChangeRate"`
Fee string `json:"fee"`
FeeChangeRate float32 `json:"feeChangeRate"`
Tvl string `json:"tvl"`
TvlChangeRate float32 `json:"tvlChangeRate"`
Apr float32 `json:"apr"`
AprChangeRate float32 `json:"aprChangeRate"`
}
type StatisticRes ¶
type StatisticRes []StatisticResItem
type StatisticResItem ¶
type TokenRes ¶
type TokenRes struct {
Address string `json:"address"`
Price string `json:"price"`
PriceChange float32 `json:"priceChange"`
Volume24h string `json:"volume24h"`
Volume24hChange string `json:"volume24hChange,omitempty"`
Volume7d string `json:"volume7d,omitempty"`
Volume7dChange string `json:"volume7dChange,omitempty"`
Tvl string `json:"tvl"`
TvlChange string `json:"tvlChange,omitempty"`
Fee string `json:"fee,omitempty"`
}
type TxRes ¶
type TxRes struct {
Action string `json:"action"`
ActionDisplay string `json:"actionDisplay"`
Address string `json:"address"`
Hash string `json:"hash"`
TotalValue string `json:"totalValue"`
Asset0 string `json:"asset0"`
Asset0Amount string `json:"asset0amount"`
Asset1 string `json:"asset1"`
Asset1Amount string `json:"asset1amount"`
Account string `json:"account"`
Timestamp time.Time `json:"timestamp"`
}
Click to show internal directories.
Click to hide internal directories.