-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(BEDS-480) add vdb mobile widget endpoint (#869)
- Loading branch information
1 parent
5460d20
commit b261d85
Showing
14 changed files
with
117 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
package types | ||
|
||
import "github.com/shopspring/decimal" | ||
|
||
type MobileBundleData struct { | ||
BundleUrl string `json:"bundle_url,omitempty"` | ||
HasNativeUpdateAvailable bool `json:"has_native_update_available"` | ||
} | ||
|
||
type GetMobileLatestBundleResponse ApiDataResponse[MobileBundleData] | ||
|
||
type MobileWidgetData struct { | ||
ValidatorStateCounts ValidatorStateCounts `json:"validator_state_counts"` | ||
Last24hIncome decimal.Decimal `json:"last_24h_income" faker:"eth"` | ||
Last7dIncome decimal.Decimal `json:"last_7d_income" faker:"eth"` | ||
Last30dApr float64 `json:"last_30d_apr"` | ||
Last30dEfficiency decimal.Decimal `json:"last_30d_efficiency" faker:"eth"` | ||
NetworkEfficiency float64 `json:"network_efficiency"` | ||
RplPrice decimal.Decimal `json:"rpl_price" faker:"eth"` | ||
RplApr float64 `json:"rpl_apr"` | ||
} | ||
|
||
type InternalGetValidatorDashboardMobileWidgetResponse ApiDataResponse[MobileWidgetData] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters