Skip to content

Commit

Permalink
ts structs
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Aug 7, 2024
1 parent e7099aa commit 8864e61
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions frontend/types/api/latest_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ export interface LatestStateData {
exchange_rates: EthConversionRate[];
}
export type InternalGetLatestStateResponse = ApiDataResponse<LatestStateData>;
export interface RocketPoolData {
last_update_slot: number /* uint64 */;
next_update_slot: number /* uint64 */;
eth_rates: {
rpl: number /* float64 */;
reth: number /* float64 */;
};
}
export type InternalGetRocketPoolResponse = ApiDataResponse<RocketPoolData>;
7 changes: 6 additions & 1 deletion frontend/types/api/validator_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ export type InternalGetValidatorDashboardTotalWithdrawalsResponse = ApiDataRespo
*/
export interface VDBRocketPoolTableRow {
node: Address;
staked_eth: string /* decimal.Decimal */;
staked: {
eth: string /* decimal.Decimal */;
rpl: string /* decimal.Decimal */;
};
minipools: {
total: number /* uint64 */;
leb_16: number /* uint64 */;
Expand All @@ -265,6 +268,8 @@ export interface VDBRocketPoolTableRow {
};
effective_rpl: string /* decimal.Decimal */;
rpl_apr: number /* float64 */;
rpl_apr_update_ts: number /* int64 */;
rpl_estimate: string /* decimal.Decimal */;
smoothing_pool: {
is_opt_in: boolean;
claimed: string /* decimal.Decimal */;
Expand Down

0 comments on commit 8864e61

Please sign in to comment.