mirror of
https://github.com/status-im/status-go.git
synced 2025-01-19 19:20:00 +00:00
1bb9cbc573
Following the approach we did for keeping requests at the same location, these changes introduce new location for responses. `SuggestedRoutesResponse` is moved there and renamed to `RouterSuggestedRoutes` and code is updated accordingly. New type `Route` defined (since a single route is composed of zero or more paths). Types `Route`, `Path`, `Graph` and `Node` belong to a new `routs` package now.
16 lines
616 B
Go
16 lines
616 B
Go
package responses
|
|
|
|
import (
|
|
"github.com/status-im/status-go/errors"
|
|
"github.com/status-im/status-go/services/wallet/router/routes"
|
|
)
|
|
|
|
type RouterSuggestedRoutes struct {
|
|
Uuid string `json:"Uuid"`
|
|
Best routes.Route `json:"Best,omitempty"`
|
|
Candidates routes.Route `json:"Candidates,omitempty"`
|
|
TokenPrice *float64 `json:"TokenPrice,omitempty"`
|
|
NativeChainTokenPrice *float64 `json:"NativeChainTokenPrice,omitempty"`
|
|
ErrorResponse *errors.ErrorResponse `json:"ErrorResponse,omitempty"`
|
|
}
|