2023-03-07 11:25:42 -08:00
|
|
|
package transactions
|
|
|
|
|
2023-03-22 09:38:43 -07:00
|
|
|
import "github.com/shopspring/decimal"
|
|
|
|
|
2023-03-07 11:25:42 -08:00
|
|
|
type Tx struct {
|
2023-03-22 09:38:43 -07:00
|
|
|
Chain int `json:"chain"`
|
|
|
|
Volume decimal.Decimal `json:"volume"`
|
|
|
|
Percentage float64 `json:"percentage"`
|
|
|
|
Destinations []Destination `json:"destinations"`
|
2023-03-07 11:25:42 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Destination struct {
|
2023-03-22 09:38:43 -07:00
|
|
|
Chain int `json:"chain"`
|
|
|
|
Volume decimal.Decimal `json:"volume"`
|
|
|
|
Percentage float64 `json:"percentage"`
|
2023-03-07 11:25:42 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// ChainActivity represent a cross chain activity.
|
|
|
|
type ChainActivity struct {
|
|
|
|
Txs []Tx `json:"txs"`
|
|
|
|
}
|
2023-04-20 12:01:10 -07:00
|
|
|
|
|
|
|
// ScorecardsResponse is the response model for the endpoint `GET /api/v1/scorecards`.
|
|
|
|
type ScorecardsResponse struct {
|
|
|
|
//TODO: we don't have the data for these fields yet, uncomment as the data becomes available.
|
|
|
|
|
2023-05-04 16:17:03 -07:00
|
|
|
// Number of VAAs emitted in the last 24 hours (includes Pyth messages).
|
|
|
|
//Messages24h string `json:"24h_messages"`
|
2023-04-20 12:01:10 -07:00
|
|
|
|
|
|
|
// Number of VAAs emitted since the creation of the network (does not include Pyth messages)
|
|
|
|
TotalTxCount string `json:"total_tx_count,omitempty"`
|
|
|
|
|
2023-05-04 16:17:03 -07:00
|
|
|
//TotalVolume string `json:"total_volume"`
|
|
|
|
|
|
|
|
//TVL string `json:"tvl"`
|
2023-04-20 12:01:10 -07:00
|
|
|
|
|
|
|
// Number of VAAs emitted in the last 24 hours (does not include Pyth messages).
|
|
|
|
TxCount24h string `json:"24h_tx_count"`
|
|
|
|
|
2023-05-04 16:17:03 -07:00
|
|
|
// Volume transferred through the token bridge in the last 24 hours, in USD.
|
|
|
|
Volume24h string `json:"24h_volume"`
|
2023-04-20 12:01:10 -07:00
|
|
|
}
|