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"`
|
|
|
|
}
|