You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: ✨ update notification types and tests (#4818)
## Explanation
This PR introduces a better definition of the notification types
described by the `NotificationServiceController`. The new types allow
for the description of the new `Web3Notification` while maintaining
compatibility with the current `WalletNotification`.
## References
Related to
https://consensyssoftware.atlassian.net/browse/NOTIFY-1230?atlOrigin=eyJpIjoiMzYwOGEwNTFhN2IxNGRiMWEwZGU0N2IyNzI0MTExNzgiLCJwIjoiaiJ9
## Changelog
### `@metamask/notification-services-controller`
- **CHANGED**: Updated the types described in
`types/on-chain-notification/schema` and
`types/on-chain-notification/on-chain-notification`
- **CHANGED**: Updated the mock data according to the new types in
`mock-raw-notifications`
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
Copy file name to clipboardexpand all lines: packages/notification-services-controller/src/NotificationServicesController/__fixtures__/mock-raw-notifications.ts
-24
Original file line number
Diff line number
Diff line change
@@ -668,8 +668,6 @@ export function createMockNotificationLidoReadyToBeWithdrawn(): OnChainRawNotifi
Copy file name to clipboardexpand all lines: packages/notification-services-controller/src/NotificationServicesController/types/on-chain-notification/on-chain-notification.ts
+14-5
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,9 @@ export type Data_NotionalLoanExpiration =
Copy file name to clipboardexpand all lines: packages/notification-services-controller/src/NotificationServicesController/types/on-chain-notification/schema.ts
0 commit comments