wormhole-explorer/api/routes/wormscan/transactions/response.go

22 lines
543 B
Go
Raw Normal View History

package transactions
import "github.com/shopspring/decimal"
type Tx struct {
Chain int `json:"chain"`
Volume decimal.Decimal `json:"volume"`
Percentage float64 `json:"percentage"`
Destinations []Destination `json:"destinations"`
}
type Destination struct {
Chain int `json:"chain"`
Volume decimal.Decimal `json:"volume"`
Percentage float64 `json:"percentage"`
}
// ChainActivity represent a cross chain activity.
type ChainActivity struct {
Txs []Tx `json:"txs"`
}