Skip to content

Commit

Permalink
(BEDS-510) fix field typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly authored and benji-bitfly committed Oct 1, 2024
1 parent 2270cff commit dc1ee12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions backend/pkg/api/types/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ type NotificationSettingsValidatorDashboard struct {
IsWithdrawalProcessedSubscribed bool `json:"is_withdrawal_processed_subscribed"`
IsSlashedSubscribed bool `json:"is_slashed_subscribed"`

IsMaxCollateralSubscribed bool `json:"is__max_collateral_subscribed"`
MaxCollateralThreshold float64 `json:"_max_collateral_threshold" faker:"boundary_start=0, boundary_end=1"`
IsMinCollateralSubscribed bool `json:"is__min_collateral_subscribed"`
MinCollateralThreshold float64 `json:"_min_collateral_threshold" faker:"boundary_start=0, boundary_end=1"`
IsMaxCollateralSubscribed bool `json:"is_max_collateral_subscribed"`
MaxCollateralThreshold float64 `json:"max_collateral_threshold" faker:"boundary_start=0, boundary_end=1"`
IsMinCollateralSubscribed bool `json:"is_min_collateral_subscribed"`
MinCollateralThreshold float64 `json:"min_collateral_threshold" faker:"boundary_start=0, boundary_end=1"`
}

type InternalPutUserNotificationSettingsValidatorDashboardResponse ApiDataResponse[NotificationSettingsValidatorDashboard]
Expand Down
10 changes: 5 additions & 5 deletions frontend/types/api/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export interface NotificationNetworksTableRow {
chain_id: number /* uint64 */;
timestamp: number /* int64 */;
event_type: 'new_reward_round' | 'gas_above' | 'gas_below' | 'participation_rate';
threshold?: string /* decimal.Decimal */;
threshold?: string /* decimal.Decimal */; // participation rate threshold should also be passed as decimal string
}
export type InternalGetUserNotificationNetworksResponse = ApiPagingResponse<NotificationNetworksTableRow>;
/**
Expand Down Expand Up @@ -198,10 +198,10 @@ export interface NotificationSettingsValidatorDashboard {
is_sync_subscribed: boolean;
is_withdrawal_processed_subscribed: boolean;
is_slashed_subscribed: boolean;
is__max_collateral_subscribed: boolean;
_max_collateral_threshold: number /* float64 */;
is__min_collateral_subscribed: boolean;
_min_collateral_threshold: number /* float64 */;
is_max_collateral_subscribed: boolean;
max_collateral_threshold: number /* float64 */;
is_min_collateral_subscribed: boolean;
min_collateral_threshold: number /* float64 */;
}
export type InternalPutUserNotificationSettingsValidatorDashboardResponse = ApiDataResponse<NotificationSettingsValidatorDashboard>;
export interface NotificationSettingsAccountDashboard {
Expand Down

0 comments on commit dc1ee12

Please sign in to comment.