@metamask-previews/notification-services-controller 26.0.1-preview-4f4c98e → 26.0.1-preview-eb263b0ee
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -1
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.cjs +7 -0
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.cjs.map +1 -0
- package/dist/NotificationServicesController/{NotificationServicesController-method-action-types.d.ts → NotificationServicesController-method-action-types.d.cts} +2 -2
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.cts.map +1 -0
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.mts +206 -0
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.mts.map +1 -0
- package/dist/NotificationServicesController/{NotificationServicesController-method-action-types.js → NotificationServicesController-method-action-types.mjs} +1 -1
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.mjs.map +1 -0
- package/dist/NotificationServicesController/NotificationServicesController.cjs +1055 -0
- package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -0
- package/dist/NotificationServicesController/{NotificationServicesController.d.ts → NotificationServicesController.d.cts} +15 -15
- package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -0
- package/dist/NotificationServicesController/NotificationServicesController.d.mts +292 -0
- package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -0
- package/dist/NotificationServicesController/{NotificationServicesController.js → NotificationServicesController.mjs} +26 -18
- package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -0
- package/dist/NotificationServicesController/constants/index.cjs +18 -0
- package/dist/NotificationServicesController/constants/index.cjs.map +1 -0
- package/dist/NotificationServicesController/constants/index.d.cts +2 -0
- package/dist/NotificationServicesController/constants/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/constants/index.d.mts +2 -0
- package/dist/NotificationServicesController/constants/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/constants/index.mjs +2 -0
- package/dist/NotificationServicesController/constants/index.mjs.map +1 -0
- package/dist/NotificationServicesController/constants/notification-schema.cjs +46 -0
- package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -0
- package/dist/NotificationServicesController/constants/{notification-schema.d.ts → notification-schema.d.cts} +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -0
- package/dist/NotificationServicesController/constants/notification-schema.d.mts +22 -0
- package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -0
- package/dist/NotificationServicesController/constants/{notification-schema.js → notification-schema.mjs} +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -0
- package/dist/NotificationServicesController/index.cjs +44 -0
- package/dist/NotificationServicesController/index.cjs.map +1 -0
- package/dist/NotificationServicesController/{index.d.ts → index.d.cts} +14 -14
- package/dist/NotificationServicesController/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/index.d.mts +16 -0
- package/dist/NotificationServicesController/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/index.mjs +13 -0
- package/dist/NotificationServicesController/index.mjs.map +1 -0
- package/dist/NotificationServicesController/mocks/index.cjs +21 -0
- package/dist/NotificationServicesController/mocks/index.cjs.map +1 -0
- package/dist/NotificationServicesController/mocks/index.d.cts +5 -0
- package/dist/NotificationServicesController/mocks/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/mocks/index.d.mts +5 -0
- package/dist/NotificationServicesController/mocks/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/mocks/index.mjs +5 -0
- package/dist/NotificationServicesController/mocks/index.mjs.map +1 -0
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.cjs +210 -0
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.cjs.map +1 -0
- package/dist/NotificationServicesController/mocks/{mock-feature-announcements.d.ts → mock-feature-announcements.d.cts} +3 -3
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.cts.map +1 -0
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.mts +15 -0
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.mts.map +1 -0
- package/dist/NotificationServicesController/mocks/{mock-feature-announcements.js → mock-feature-announcements.mjs} +2 -2
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.mjs.map +1 -0
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs +830 -0
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/mocks/{mock-raw-notifications.d.ts → mock-raw-notifications.d.cts} +2 -2
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts +104 -0
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/mocks/{mock-raw-notifications.js → mock-raw-notifications.mjs} +2 -2
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/mocks/mock-snap-notification.cjs +29 -0
- package/dist/NotificationServicesController/mocks/mock-snap-notification.cjs.map +1 -0
- package/dist/NotificationServicesController/mocks/{mock-snap-notification.d.ts → mock-snap-notification.d.cts} +2 -2
- package/dist/NotificationServicesController/mocks/mock-snap-notification.d.cts.map +1 -0
- package/dist/NotificationServicesController/mocks/mock-snap-notification.d.mts +8 -0
- package/dist/NotificationServicesController/mocks/mock-snap-notification.d.mts.map +1 -0
- package/dist/NotificationServicesController/mocks/{mock-snap-notification.js → mock-snap-notification.mjs} +2 -2
- package/dist/NotificationServicesController/mocks/mock-snap-notification.mjs.map +1 -0
- package/dist/NotificationServicesController/mocks/mockResponses.cjs +53 -0
- package/dist/NotificationServicesController/mocks/mockResponses.cjs.map +1 -0
- package/dist/NotificationServicesController/mocks/{mockResponses.d.ts → mockResponses.d.cts} +3 -3
- package/dist/NotificationServicesController/mocks/mockResponses.d.cts.map +1 -0
- package/dist/NotificationServicesController/mocks/mockResponses.d.mts +14 -0
- package/dist/NotificationServicesController/mocks/mockResponses.d.mts.map +1 -0
- package/dist/NotificationServicesController/mocks/{mockResponses.js → mockResponses.mjs} +6 -6
- package/dist/NotificationServicesController/mocks/mockResponses.mjs.map +1 -0
- package/dist/NotificationServicesController/processors/index.cjs +20 -0
- package/dist/NotificationServicesController/processors/index.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/index.d.cts +4 -0
- package/dist/NotificationServicesController/processors/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/index.d.mts +4 -0
- package/dist/NotificationServicesController/processors/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/index.mjs +4 -0
- package/dist/NotificationServicesController/processors/index.mjs.map +1 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.cjs +24 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/{process-api-notifications.d.ts → process-api-notifications.d.cts} +3 -3
- package/dist/NotificationServicesController/processors/process-api-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.d.mts +10 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/{process-api-notifications.js → process-api-notifications.mjs} +3 -3
- package/dist/NotificationServicesController/processors/process-api-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +38 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/{process-feature-announcement.d.ts → process-feature-announcement.d.cts} +3 -3
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts +19 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/{process-feature-announcement.js → process-feature-announcement.mjs} +3 -3
- package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -0
- package/dist/NotificationServicesController/processors/process-notifications.cjs +60 -0
- package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/{process-notifications.d.ts → process-notifications.d.cts} +2 -2
- package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-notifications.d.mts +20 -0
- package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/{process-notifications.js → process-notifications.mjs} +5 -5
- package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/processors/process-snap-notifications.cjs +25 -0
- package/dist/NotificationServicesController/processors/process-snap-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/{process-snap-notifications.d.ts → process-snap-notifications.d.cts} +3 -3
- package/dist/NotificationServicesController/processors/process-snap-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts +10 -0
- package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/{process-snap-notifications.js → process-snap-notifications.mjs} +3 -3
- package/dist/NotificationServicesController/processors/process-snap-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/services/api-notifications.cjs +128 -0
- package/dist/NotificationServicesController/services/api-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/services/{api-notifications.d.ts → api-notifications.d.cts} +2 -2
- package/dist/NotificationServicesController/services/api-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/api-notifications.d.mts +44 -0
- package/dist/NotificationServicesController/services/api-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/{api-notifications.js → api-notifications.mjs} +12 -5
- package/dist/NotificationServicesController/services/api-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/services/feature-announcements.cjs +140 -0
- package/dist/NotificationServicesController/services/feature-announcements.cjs.map +1 -0
- package/dist/NotificationServicesController/services/{feature-announcements.d.ts → feature-announcements.d.cts} +4 -4
- package/dist/NotificationServicesController/services/feature-announcements.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/feature-announcements.d.mts +32 -0
- package/dist/NotificationServicesController/services/feature-announcements.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/{feature-announcements.js → feature-announcements.mjs} +5 -5
- package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -0
- package/dist/NotificationServicesController/services/notification-config-cache.cjs +61 -0
- package/dist/NotificationServicesController/services/notification-config-cache.cjs.map +1 -0
- package/dist/NotificationServicesController/services/{notification-config-cache.d.ts → notification-config-cache.d.cts} +1 -1
- package/dist/NotificationServicesController/services/notification-config-cache.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/notification-config-cache.d.mts +15 -0
- package/dist/NotificationServicesController/services/notification-config-cache.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/{notification-config-cache.js → notification-config-cache.mjs} +1 -1
- package/dist/NotificationServicesController/services/notification-config-cache.mjs.map +1 -0
- package/dist/NotificationServicesController/services/perp-notifications.cjs +31 -0
- package/dist/NotificationServicesController/services/perp-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/services/{perp-notifications.d.ts → perp-notifications.d.cts} +2 -2
- package/dist/NotificationServicesController/services/perp-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/perp-notifications.d.mts +11 -0
- package/dist/NotificationServicesController/services/perp-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/{perp-notifications.js → perp-notifications.mjs} +2 -2
- package/dist/NotificationServicesController/services/perp-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/{feature-announcement.d.ts → feature-announcement.d.cts} +3 -3
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts +32 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +2 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.cts +4 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.mts +4 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.mjs +2 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/{type-feature-announcement.d.ts → type-feature-announcement.d.cts} +3 -3
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts +43 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +2 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/{type-links.d.ts → type-links.d.cts} +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts +29 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +2 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +1 -0
- package/dist/NotificationServicesController/types/index.cjs +3 -0
- package/dist/NotificationServicesController/types/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/index.d.cts +6 -0
- package/dist/NotificationServicesController/types/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/index.d.mts +6 -0
- package/dist/NotificationServicesController/types/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/index.mjs +2 -0
- package/dist/NotificationServicesController/types/index.mjs.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.cjs +3 -0
- package/dist/NotificationServicesController/types/notification/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.d.cts +2 -0
- package/dist/NotificationServicesController/types/notification/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.d.mts +2 -0
- package/dist/NotificationServicesController/types/notification/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.mjs +2 -0
- package/dist/NotificationServicesController/types/notification/index.mjs.map +1 -0
- package/dist/NotificationServicesController/types/notification/notification.cjs +3 -0
- package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification/{notification.d.ts → notification.d.cts} +5 -5
- package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification/notification.d.mts +22 -0
- package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification/notification.mjs +2 -0
- package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/index.cjs +3 -0
- package/dist/NotificationServicesController/types/notification-api/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/index.d.cts +3 -0
- package/dist/NotificationServicesController/types/notification-api/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/index.d.mts +3 -0
- package/dist/NotificationServicesController/types/notification-api/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/index.mjs +2 -0
- package/dist/NotificationServicesController/types/notification-api/index.mjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.cjs +4 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/{notification-api.d.ts → notification-api.d.cts} +4 -4
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts +59 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.mjs +2 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.mjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/schema.cjs +6 -0
- package/dist/NotificationServicesController/types/notification-api/schema.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/{schema.d.ts → schema.d.cts} +1 -1
- package/dist/NotificationServicesController/types/notification-api/schema.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/schema.d.mts +752 -0
- package/dist/NotificationServicesController/types/notification-api/schema.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/{schema.js → schema.mjs} +1 -1
- package/dist/NotificationServicesController/types/notification-api/schema.mjs.map +1 -0
- package/dist/NotificationServicesController/types/perps/index.cjs +3 -0
- package/dist/NotificationServicesController/types/perps/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/perps/index.d.cts +2 -0
- package/dist/NotificationServicesController/types/perps/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/perps/index.d.mts +2 -0
- package/dist/NotificationServicesController/types/perps/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/perps/index.mjs +2 -0
- package/dist/NotificationServicesController/types/perps/index.mjs.map +1 -0
- package/dist/NotificationServicesController/types/perps/perp-types.cjs +3 -0
- package/dist/NotificationServicesController/types/perps/perp-types.cjs.map +1 -0
- package/dist/NotificationServicesController/types/perps/perp-types.d.cts +3 -0
- package/dist/NotificationServicesController/types/perps/perp-types.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/perps/perp-types.d.mts +3 -0
- package/dist/NotificationServicesController/types/perps/perp-types.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/perps/perp-types.mjs +2 -0
- package/dist/NotificationServicesController/types/perps/perp-types.mjs.map +1 -0
- package/dist/NotificationServicesController/types/perps/schema.cjs +6 -0
- package/dist/NotificationServicesController/types/perps/schema.cjs.map +1 -0
- package/dist/NotificationServicesController/types/perps/{schema.d.ts → schema.d.cts} +1 -1
- package/dist/NotificationServicesController/types/perps/schema.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/perps/schema.d.mts +133 -0
- package/dist/NotificationServicesController/types/perps/schema.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/perps/{schema.js → schema.mjs} +1 -1
- package/dist/NotificationServicesController/types/perps/schema.mjs.map +1 -0
- package/dist/NotificationServicesController/types/snaps/index.cjs +3 -0
- package/dist/NotificationServicesController/types/snaps/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/snaps/index.d.cts +2 -0
- package/dist/NotificationServicesController/types/snaps/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/snaps/index.d.mts +2 -0
- package/dist/NotificationServicesController/types/snaps/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/snaps/index.mjs +2 -0
- package/dist/NotificationServicesController/types/snaps/index.mjs.map +1 -0
- package/dist/NotificationServicesController/types/snaps/snaps.cjs +3 -0
- package/dist/NotificationServicesController/types/snaps/snaps.cjs.map +1 -0
- package/dist/NotificationServicesController/types/snaps/{snaps.d.ts → snaps.d.cts} +2 -2
- package/dist/NotificationServicesController/types/snaps/snaps.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/snaps/snaps.d.mts +23 -0
- package/dist/NotificationServicesController/types/snaps/snaps.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/snaps/snaps.mjs +2 -0
- package/dist/NotificationServicesController/types/snaps/snaps.mjs.map +1 -0
- package/dist/NotificationServicesController/types/type-utils.cjs +3 -0
- package/dist/NotificationServicesController/types/type-utils.cjs.map +1 -0
- package/dist/NotificationServicesController/types/{type-utils.d.ts → type-utils.d.cts} +1 -1
- package/dist/NotificationServicesController/types/type-utils.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/type-utils.d.mts +7 -0
- package/dist/NotificationServicesController/types/type-utils.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/type-utils.mjs +2 -0
- package/dist/NotificationServicesController/types/type-utils.mjs.map +1 -0
- package/dist/NotificationServicesController/utils/get-notification-subtype.cjs +33 -0
- package/dist/NotificationServicesController/utils/get-notification-subtype.cjs.map +1 -0
- package/dist/NotificationServicesController/utils/{get-notification-subtype.d.ts → get-notification-subtype.d.cts} +2 -2
- package/dist/NotificationServicesController/utils/get-notification-subtype.d.cts.map +1 -0
- package/dist/NotificationServicesController/utils/get-notification-subtype.d.mts +17 -0
- package/dist/NotificationServicesController/utils/get-notification-subtype.d.mts.map +1 -0
- package/dist/NotificationServicesController/utils/{get-notification-subtype.js → get-notification-subtype.mjs} +3 -3
- package/dist/NotificationServicesController/utils/get-notification-subtype.mjs.map +1 -0
- package/dist/NotificationServicesController/utils/isVersionInBounds.cjs +37 -0
- package/dist/NotificationServicesController/utils/isVersionInBounds.cjs.map +1 -0
- package/dist/NotificationServicesController/utils/{isVersionInBounds.d.ts → isVersionInBounds.d.cts} +1 -1
- package/dist/NotificationServicesController/utils/isVersionInBounds.d.cts.map +1 -0
- package/dist/NotificationServicesController/utils/isVersionInBounds.d.mts +18 -0
- package/dist/NotificationServicesController/utils/isVersionInBounds.d.mts.map +1 -0
- package/dist/NotificationServicesController/utils/{isVersionInBounds.js → isVersionInBounds.mjs} +2 -2
- package/dist/NotificationServicesController/utils/isVersionInBounds.mjs.map +1 -0
- package/dist/NotificationServicesController/utils/should-auto-expire.cjs +12 -0
- package/dist/NotificationServicesController/utils/should-auto-expire.cjs.map +1 -0
- package/dist/NotificationServicesController/utils/{should-auto-expire.d.ts → should-auto-expire.d.cts} +1 -1
- package/dist/NotificationServicesController/utils/should-auto-expire.d.cts.map +1 -0
- package/dist/NotificationServicesController/utils/should-auto-expire.d.mts +2 -0
- package/dist/NotificationServicesController/utils/should-auto-expire.d.mts.map +1 -0
- package/dist/NotificationServicesController/utils/{should-auto-expire.js → should-auto-expire.mjs} +1 -1
- package/dist/NotificationServicesController/utils/should-auto-expire.mjs.map +1 -0
- package/dist/NotificationServicesController/utils/utils.cjs +25 -0
- package/dist/NotificationServicesController/utils/utils.cjs.map +1 -0
- package/dist/NotificationServicesController/utils/{utils.d.ts → utils.d.cts} +1 -1
- package/dist/NotificationServicesController/utils/utils.d.cts.map +1 -0
- package/dist/NotificationServicesController/utils/utils.d.mts +11 -0
- package/dist/NotificationServicesController/utils/utils.d.mts.map +1 -0
- package/dist/NotificationServicesController/utils/{utils.js → utils.mjs} +1 -1
- package/dist/NotificationServicesController/utils/utils.mjs.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs +7 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs.map +1 -0
- package/dist/NotificationServicesPushController/{NotificationServicesPushController-method-action-types.d.ts → NotificationServicesPushController-method-action-types.d.cts} +2 -2
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.mts +72 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/{NotificationServicesPushController-method-action-types.js → NotificationServicesPushController-method-action-types.mjs} +1 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.mjs.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +342 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -0
- package/dist/NotificationServicesPushController/{NotificationServicesPushController.d.ts → NotificationServicesPushController.d.cts} +9 -9
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +123 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/{NotificationServicesPushController.js → NotificationServicesPushController.mjs} +11 -4
- package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -0
- package/dist/NotificationServicesPushController/index.cjs +37 -0
- package/dist/NotificationServicesPushController/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/{index.d.ts → index.d.cts} +9 -9
- package/dist/NotificationServicesPushController/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/index.d.mts +11 -0
- package/dist/NotificationServicesPushController/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/index.mjs +8 -0
- package/dist/NotificationServicesPushController/index.mjs.map +1 -0
- package/dist/NotificationServicesPushController/mocks/index.cjs +18 -0
- package/dist/NotificationServicesPushController/mocks/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/mocks/index.d.cts +2 -0
- package/dist/NotificationServicesPushController/mocks/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/mocks/index.d.mts +2 -0
- package/dist/NotificationServicesPushController/mocks/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/mocks/index.mjs +2 -0
- package/dist/NotificationServicesPushController/mocks/index.mjs.map +1 -0
- package/dist/NotificationServicesPushController/mocks/mockResponse.cjs +48 -0
- package/dist/NotificationServicesPushController/mocks/mockResponse.cjs.map +1 -0
- package/dist/NotificationServicesPushController/mocks/{mockResponse.d.ts → mockResponse.d.cts} +1 -1
- package/dist/NotificationServicesPushController/mocks/mockResponse.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/mocks/mockResponse.d.mts +22 -0
- package/dist/NotificationServicesPushController/mocks/mockResponse.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/mocks/{mockResponse.js → mockResponse.mjs} +2 -2
- package/dist/NotificationServicesPushController/mocks/mockResponse.mjs.map +1 -0
- package/dist/NotificationServicesPushController/services/endpoints.cjs +13 -0
- package/dist/NotificationServicesPushController/services/endpoints.cjs.map +1 -0
- package/dist/NotificationServicesPushController/services/{endpoints.d.ts → endpoints.d.cts} +1 -1
- package/dist/NotificationServicesPushController/services/endpoints.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/services/endpoints.d.mts +4 -0
- package/dist/NotificationServicesPushController/services/endpoints.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/services/{endpoints.js → endpoints.mjs} +1 -1
- package/dist/NotificationServicesPushController/services/endpoints.mjs.map +1 -0
- package/dist/NotificationServicesPushController/services/services.cjs +133 -0
- package/dist/NotificationServicesPushController/services/services.cjs.map +1 -0
- package/dist/NotificationServicesPushController/services/{services.d.ts → services.d.cts} +4 -4
- package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/services/services.d.mts +90 -0
- package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/services/{services.js → services.mjs} +2 -2
- package/dist/NotificationServicesPushController/services/services.mjs.map +1 -0
- package/dist/NotificationServicesPushController/types/firebase.cjs +3 -0
- package/dist/NotificationServicesPushController/types/firebase.cjs.map +1 -0
- package/dist/NotificationServicesPushController/types/{firebase.d.ts → firebase.d.cts} +1 -1
- package/dist/NotificationServicesPushController/types/firebase.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/types/firebase.d.mts +53 -0
- package/dist/NotificationServicesPushController/types/firebase.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/types/firebase.mjs +2 -0
- package/dist/NotificationServicesPushController/types/firebase.mjs.map +1 -0
- package/dist/NotificationServicesPushController/types/index.cjs +3 -0
- package/dist/NotificationServicesPushController/types/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/types/index.d.cts +4 -0
- package/dist/NotificationServicesPushController/types/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/types/index.d.mts +4 -0
- package/dist/NotificationServicesPushController/types/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/types/index.mjs +2 -0
- package/dist/NotificationServicesPushController/types/index.mjs.map +1 -0
- package/dist/NotificationServicesPushController/types/push-analytics.cjs +5 -0
- package/dist/NotificationServicesPushController/types/push-analytics.cjs.map +1 -0
- package/dist/NotificationServicesPushController/types/{push-analytics.d.ts → push-analytics.d.cts} +1 -1
- package/dist/NotificationServicesPushController/types/push-analytics.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/types/push-analytics.d.mts +18 -0
- package/dist/NotificationServicesPushController/types/push-analytics.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/types/{push-analytics.js → push-analytics.mjs} +1 -1
- package/dist/NotificationServicesPushController/types/push-analytics.mjs.map +1 -0
- package/dist/NotificationServicesPushController/types/push-service-interface.cjs +3 -0
- package/dist/NotificationServicesPushController/types/push-service-interface.cjs.map +1 -0
- package/dist/NotificationServicesPushController/types/{push-service-interface.d.ts → push-service-interface.d.cts} +2 -2
- package/dist/NotificationServicesPushController/types/push-service-interface.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/types/push-service-interface.d.mts +30 -0
- package/dist/NotificationServicesPushController/types/push-service-interface.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/types/push-service-interface.mjs +2 -0
- package/dist/NotificationServicesPushController/types/push-service-interface.mjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.cjs +84 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/{get-notification-data.d.ts → get-notification-data.d.cts} +2 -2
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts +42 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/{get-notification-data.js → get-notification-data.mjs} +2 -2
- package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +171 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/{get-notification-message.d.ts → get-notification-message.d.cts} +3 -3
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +62 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/{get-notification-message.js → get-notification-message.mjs} +2 -2
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.cjs +20 -0
- package/dist/NotificationServicesPushController/utils/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.d.cts +4 -0
- package/dist/NotificationServicesPushController/utils/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.d.mts +4 -0
- package/dist/NotificationServicesPushController/utils/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.mjs +4 -0
- package/dist/NotificationServicesPushController/utils/index.mjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.cjs +26 -0
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.cjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/{to-push-analytics-payload.d.ts → to-push-analytics-payload.d.cts} +2 -2
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.mts +12 -0
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/{to-push-analytics-payload.js → to-push-analytics-payload.mjs} +1 -1
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.mjs.map +1 -0
- package/dist/NotificationServicesPushController/web/index.cjs +8 -0
- package/dist/NotificationServicesPushController/web/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/web/index.d.cts +2 -0
- package/dist/NotificationServicesPushController/web/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/web/index.d.mts +2 -0
- package/dist/NotificationServicesPushController/web/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/web/index.mjs +2 -0
- package/dist/NotificationServicesPushController/web/index.mjs.map +1 -0
- package/dist/NotificationServicesPushController/web/push-utils.cjs +169 -0
- package/dist/NotificationServicesPushController/web/push-utils.cjs.map +1 -0
- package/dist/NotificationServicesPushController/web/{push-utils.d.ts → push-utils.d.cts} +5 -4
- package/dist/NotificationServicesPushController/web/push-utils.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/web/push-utils.d.mts +37 -0
- package/dist/NotificationServicesPushController/web/push-utils.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/web/{push-utils.js → push-utils.mjs} +13 -6
- package/dist/NotificationServicesPushController/web/push-utils.mjs.map +1 -0
- package/dist/index.cjs +34 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -0
- package/dist/shared/index.cjs +20 -0
- package/dist/shared/index.cjs.map +1 -0
- package/dist/shared/index.d.cts +4 -0
- package/dist/shared/index.d.cts.map +1 -0
- package/dist/shared/index.d.mts +4 -0
- package/dist/shared/index.d.mts.map +1 -0
- package/dist/shared/index.mjs +4 -0
- package/dist/shared/index.mjs.map +1 -0
- package/dist/shared/is-onchain-notification.cjs +15 -0
- package/dist/shared/is-onchain-notification.cjs.map +1 -0
- package/dist/shared/{is-onchain-notification.d.ts → is-onchain-notification.d.cts} +2 -2
- package/dist/shared/is-onchain-notification.d.cts.map +1 -0
- package/dist/shared/is-onchain-notification.d.mts +9 -0
- package/dist/shared/is-onchain-notification.d.mts.map +1 -0
- package/dist/shared/{is-onchain-notification.js → is-onchain-notification.mjs} +2 -2
- package/dist/shared/is-onchain-notification.mjs.map +1 -0
- package/dist/shared/notification-api-type-guards.cjs +24 -0
- package/dist/shared/notification-api-type-guards.cjs.map +1 -0
- package/dist/shared/{notification-api-type-guards.d.ts → notification-api-type-guards.d.cts} +2 -2
- package/dist/shared/notification-api-type-guards.d.cts.map +1 -0
- package/dist/shared/notification-api-type-guards.d.mts +16 -0
- package/dist/shared/notification-api-type-guards.d.mts.map +1 -0
- package/dist/shared/{notification-api-type-guards.js → notification-api-type-guards.mjs} +1 -1
- package/dist/shared/notification-api-type-guards.mjs.map +1 -0
- package/dist/shared/to-raw-notification.cjs +30 -0
- package/dist/shared/to-raw-notification.cjs.map +1 -0
- package/dist/shared/{to-raw-notification.d.ts → to-raw-notification.d.cts} +2 -2
- package/dist/shared/to-raw-notification.d.cts.map +1 -0
- package/dist/shared/to-raw-notification.d.mts +11 -0
- package/dist/shared/to-raw-notification.d.mts.map +1 -0
- package/dist/shared/{to-raw-notification.js → to-raw-notification.mjs} +3 -3
- package/dist/shared/to-raw-notification.mjs.map +1 -0
- package/package.json +58 -24
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.ts.map +0 -1
- package/dist/NotificationServicesController/NotificationServicesController-method-action-types.js.map +0 -1
- package/dist/NotificationServicesController/NotificationServicesController.d.ts.map +0 -1
- package/dist/NotificationServicesController/NotificationServicesController.js.map +0 -1
- package/dist/NotificationServicesController/constants/index.d.ts +0 -2
- package/dist/NotificationServicesController/constants/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/constants/index.js +0 -2
- package/dist/NotificationServicesController/constants/index.js.map +0 -1
- package/dist/NotificationServicesController/constants/notification-schema.d.ts.map +0 -1
- package/dist/NotificationServicesController/constants/notification-schema.js.map +0 -1
- package/dist/NotificationServicesController/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/index.js +0 -13
- package/dist/NotificationServicesController/index.js.map +0 -1
- package/dist/NotificationServicesController/mocks/index.d.ts +0 -5
- package/dist/NotificationServicesController/mocks/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/mocks/index.js +0 -5
- package/dist/NotificationServicesController/mocks/index.js.map +0 -1
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.ts.map +0 -1
- package/dist/NotificationServicesController/mocks/mock-feature-announcements.js.map +0 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.ts.map +0 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.js.map +0 -1
- package/dist/NotificationServicesController/mocks/mock-snap-notification.d.ts.map +0 -1
- package/dist/NotificationServicesController/mocks/mock-snap-notification.js.map +0 -1
- package/dist/NotificationServicesController/mocks/mockResponses.d.ts.map +0 -1
- package/dist/NotificationServicesController/mocks/mockResponses.js.map +0 -1
- package/dist/NotificationServicesController/processors/index.d.ts +0 -4
- package/dist/NotificationServicesController/processors/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/processors/index.js +0 -4
- package/dist/NotificationServicesController/processors/index.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-api-notifications.d.ts.map +0 -1
- package/dist/NotificationServicesController/processors/process-api-notifications.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.ts.map +0 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-notifications.d.ts.map +0 -1
- package/dist/NotificationServicesController/processors/process-notifications.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-snap-notifications.d.ts.map +0 -1
- package/dist/NotificationServicesController/processors/process-snap-notifications.js.map +0 -1
- package/dist/NotificationServicesController/services/api-notifications.d.ts.map +0 -1
- package/dist/NotificationServicesController/services/api-notifications.js.map +0 -1
- package/dist/NotificationServicesController/services/feature-announcements.d.ts.map +0 -1
- package/dist/NotificationServicesController/services/feature-announcements.js.map +0 -1
- package/dist/NotificationServicesController/services/notification-config-cache.d.ts.map +0 -1
- package/dist/NotificationServicesController/services/notification-config-cache.js.map +0 -1
- package/dist/NotificationServicesController/services/perp-notifications.d.ts.map +0 -1
- package/dist/NotificationServicesController/services/perp-notifications.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/index.d.ts +0 -4
- package/dist/NotificationServicesController/types/feature-announcement/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/index.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/index.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +0 -1
- package/dist/NotificationServicesController/types/index.d.ts +0 -6
- package/dist/NotificationServicesController/types/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/index.js +0 -2
- package/dist/NotificationServicesController/types/index.js.map +0 -1
- package/dist/NotificationServicesController/types/notification/index.d.ts +0 -2
- package/dist/NotificationServicesController/types/notification/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/notification/index.js +0 -2
- package/dist/NotificationServicesController/types/notification/index.js.map +0 -1
- package/dist/NotificationServicesController/types/notification/notification.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/notification/notification.js +0 -2
- package/dist/NotificationServicesController/types/notification/notification.js.map +0 -1
- package/dist/NotificationServicesController/types/notification-api/index.d.ts +0 -3
- package/dist/NotificationServicesController/types/notification-api/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/notification-api/index.js +0 -2
- package/dist/NotificationServicesController/types/notification-api/index.js.map +0 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.js +0 -2
- package/dist/NotificationServicesController/types/notification-api/notification-api.js.map +0 -1
- package/dist/NotificationServicesController/types/notification-api/schema.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/notification-api/schema.js.map +0 -1
- package/dist/NotificationServicesController/types/perps/index.d.ts +0 -2
- package/dist/NotificationServicesController/types/perps/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/perps/index.js +0 -2
- package/dist/NotificationServicesController/types/perps/index.js.map +0 -1
- package/dist/NotificationServicesController/types/perps/perp-types.d.ts +0 -3
- package/dist/NotificationServicesController/types/perps/perp-types.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/perps/perp-types.js +0 -2
- package/dist/NotificationServicesController/types/perps/perp-types.js.map +0 -1
- package/dist/NotificationServicesController/types/perps/schema.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/perps/schema.js.map +0 -1
- package/dist/NotificationServicesController/types/snaps/index.d.ts +0 -2
- package/dist/NotificationServicesController/types/snaps/index.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/snaps/index.js +0 -2
- package/dist/NotificationServicesController/types/snaps/index.js.map +0 -1
- package/dist/NotificationServicesController/types/snaps/snaps.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/snaps/snaps.js +0 -2
- package/dist/NotificationServicesController/types/snaps/snaps.js.map +0 -1
- package/dist/NotificationServicesController/types/type-utils.d.ts.map +0 -1
- package/dist/NotificationServicesController/types/type-utils.js +0 -2
- package/dist/NotificationServicesController/types/type-utils.js.map +0 -1
- package/dist/NotificationServicesController/utils/get-notification-subtype.d.ts.map +0 -1
- package/dist/NotificationServicesController/utils/get-notification-subtype.js.map +0 -1
- package/dist/NotificationServicesController/utils/isVersionInBounds.d.ts.map +0 -1
- package/dist/NotificationServicesController/utils/isVersionInBounds.js.map +0 -1
- package/dist/NotificationServicesController/utils/should-auto-expire.d.ts.map +0 -1
- package/dist/NotificationServicesController/utils/should-auto-expire.js.map +0 -1
- package/dist/NotificationServicesController/utils/utils.d.ts.map +0 -1
- package/dist/NotificationServicesController/utils/utils.js.map +0 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.js.map +0 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +0 -1
- package/dist/NotificationServicesPushController/index.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/index.js +0 -8
- package/dist/NotificationServicesPushController/index.js.map +0 -1
- package/dist/NotificationServicesPushController/mocks/index.d.ts +0 -2
- package/dist/NotificationServicesPushController/mocks/index.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/mocks/index.js +0 -2
- package/dist/NotificationServicesPushController/mocks/index.js.map +0 -1
- package/dist/NotificationServicesPushController/mocks/mockResponse.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/mocks/mockResponse.js.map +0 -1
- package/dist/NotificationServicesPushController/services/endpoints.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/services/endpoints.js.map +0 -1
- package/dist/NotificationServicesPushController/services/services.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/services/services.js.map +0 -1
- package/dist/NotificationServicesPushController/types/firebase.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/types/firebase.js +0 -2
- package/dist/NotificationServicesPushController/types/firebase.js.map +0 -1
- package/dist/NotificationServicesPushController/types/index.d.ts +0 -4
- package/dist/NotificationServicesPushController/types/index.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/types/index.js +0 -2
- package/dist/NotificationServicesPushController/types/index.js.map +0 -1
- package/dist/NotificationServicesPushController/types/push-analytics.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/types/push-analytics.js.map +0 -1
- package/dist/NotificationServicesPushController/types/push-service-interface.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/types/push-service-interface.js +0 -2
- package/dist/NotificationServicesPushController/types/push-service-interface.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/index.d.ts +0 -4
- package/dist/NotificationServicesPushController/utils/index.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/utils/index.js +0 -4
- package/dist/NotificationServicesPushController/utils/index.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.js.map +0 -1
- package/dist/NotificationServicesPushController/web/index.d.ts +0 -2
- package/dist/NotificationServicesPushController/web/index.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/web/index.js +0 -2
- package/dist/NotificationServicesPushController/web/index.js.map +0 -1
- package/dist/NotificationServicesPushController/web/push-utils.d.ts.map +0 -1
- package/dist/NotificationServicesPushController/web/push-utils.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +0 -1
- package/dist/shared/index.d.ts +0 -4
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js +0 -4
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/is-onchain-notification.d.ts.map +0 -1
- package/dist/shared/is-onchain-notification.js.map +0 -1
- package/dist/shared/notification-api-type-guards.d.ts.map +0 -1
- package/dist/shared/notification-api-type-guards.js.map +0 -1
- package/dist/shared/to-raw-notification.d.ts.map +0 -1
- package/dist/shared/to-raw-notification.js.map +0 -1
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createMockRawOnChainNotifications = exports.createMockPlatformNotification = exports.createMockNotificationLidoReadyToBeWithdrawn = exports.createMockNotificationLidoWithdrawalCompleted = exports.createMockNotificationLidoWithdrawalRequested = exports.createMockNotificationLidoStakeCompleted = exports.createMockNotificationRocketPoolUnStakeCompleted = exports.createMockNotificationRocketPoolStakeCompleted = exports.createMockNotificationMetaMaskSwapsCompleted = exports.createMockNotificationERC1155Received = exports.createMockNotificationERC1155Sent = exports.createMockNotificationERC721Received = exports.createMockNotificationERC721Sent = exports.createMockNotificationERC20Received = exports.createMockNotificationERC20Sent = exports.createMockNotificationEthReceived = exports.createMockNotificationEthSent = void 0;
|
|
4
|
+
const notification_schema_js_1 = require("../constants/notification-schema.cjs");
|
|
5
|
+
/**
|
|
6
|
+
* Mocking Utility - create a mock Eth sent notification
|
|
7
|
+
*
|
|
8
|
+
* @returns Mock raw Eth sent notification
|
|
9
|
+
*/
|
|
10
|
+
function createMockNotificationEthSent() {
|
|
11
|
+
const mockNotification = {
|
|
12
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ETH_SENT,
|
|
13
|
+
notification_type: 'wallet_activity',
|
|
14
|
+
notification_subtype: 'eth_sent',
|
|
15
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa7',
|
|
16
|
+
unread: true,
|
|
17
|
+
created_at: '2022-03-01T00:00:00Z',
|
|
18
|
+
payload: {
|
|
19
|
+
chain_id: 1,
|
|
20
|
+
block_number: 17485840,
|
|
21
|
+
block_timestamp: '2022-03-01T00:00:00Z',
|
|
22
|
+
tx_hash: '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',
|
|
23
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
24
|
+
network: {
|
|
25
|
+
name: 'Ethereum',
|
|
26
|
+
native_symbol: 'ETH',
|
|
27
|
+
block_explorer: {
|
|
28
|
+
url: 'https://etherscan.io',
|
|
29
|
+
name: 'Etherscan',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
data: {
|
|
33
|
+
kind: 'eth_sent',
|
|
34
|
+
network_fee: {
|
|
35
|
+
gas_price: '207806259583',
|
|
36
|
+
native_token_price_in_usd: '0.83',
|
|
37
|
+
},
|
|
38
|
+
from: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
39
|
+
to: '0x881D40237659C251811CEC9c364ef91dC08D300D',
|
|
40
|
+
amount: {
|
|
41
|
+
usd: '670.64',
|
|
42
|
+
eth: '0.005',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
return mockNotification;
|
|
48
|
+
}
|
|
49
|
+
exports.createMockNotificationEthSent = createMockNotificationEthSent;
|
|
50
|
+
/**
|
|
51
|
+
* Mocking Utility - create a mock Eth Received notification
|
|
52
|
+
*
|
|
53
|
+
* @returns Mock raw Eth Received notification
|
|
54
|
+
*/
|
|
55
|
+
function createMockNotificationEthReceived() {
|
|
56
|
+
const mockNotification = {
|
|
57
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ETH_RECEIVED,
|
|
58
|
+
notification_type: 'wallet_activity',
|
|
59
|
+
notification_subtype: 'eth_received',
|
|
60
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa8',
|
|
61
|
+
unread: true,
|
|
62
|
+
created_at: '2022-03-01T00:00:00Z',
|
|
63
|
+
payload: {
|
|
64
|
+
chain_id: 1,
|
|
65
|
+
block_number: 17485840,
|
|
66
|
+
block_timestamp: '2022-03-01T00:00:00Z',
|
|
67
|
+
tx_hash: '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',
|
|
68
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
69
|
+
network: {
|
|
70
|
+
name: 'Ethereum',
|
|
71
|
+
native_symbol: 'ETH',
|
|
72
|
+
block_explorer: {
|
|
73
|
+
url: 'https://etherscan.io',
|
|
74
|
+
name: 'Etherscan',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
data: {
|
|
78
|
+
kind: 'eth_received',
|
|
79
|
+
network_fee: {
|
|
80
|
+
gas_price: '207806259583',
|
|
81
|
+
native_token_price_in_usd: '0.83',
|
|
82
|
+
},
|
|
83
|
+
from: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
84
|
+
to: '0x881D40237659C251811CEC9c364ef91dC08D300D',
|
|
85
|
+
amount: {
|
|
86
|
+
usd: '670.64',
|
|
87
|
+
eth: '808.000000000000000000',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
return mockNotification;
|
|
93
|
+
}
|
|
94
|
+
exports.createMockNotificationEthReceived = createMockNotificationEthReceived;
|
|
95
|
+
/**
|
|
96
|
+
* Mocking Utility - create a mock ERC20 sent notification
|
|
97
|
+
*
|
|
98
|
+
* @returns Mock raw ERC20 sent notification
|
|
99
|
+
*/
|
|
100
|
+
function createMockNotificationERC20Sent() {
|
|
101
|
+
const mockNotification = {
|
|
102
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ERC20_SENT,
|
|
103
|
+
notification_type: 'wallet_activity',
|
|
104
|
+
notification_subtype: 'erc20_sent',
|
|
105
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa9',
|
|
106
|
+
unread: true,
|
|
107
|
+
created_at: '2022-03-01T00:00:00Z',
|
|
108
|
+
payload: {
|
|
109
|
+
chain_id: 1,
|
|
110
|
+
block_number: 17485840,
|
|
111
|
+
block_timestamp: '2022-03-01T00:00:00Z',
|
|
112
|
+
tx_hash: '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',
|
|
113
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
114
|
+
network: {
|
|
115
|
+
name: 'Ethereum',
|
|
116
|
+
native_symbol: 'ETH',
|
|
117
|
+
block_explorer: {
|
|
118
|
+
url: 'https://etherscan.io',
|
|
119
|
+
name: 'Etherscan',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
data: {
|
|
123
|
+
kind: 'erc20_sent',
|
|
124
|
+
network_fee: {
|
|
125
|
+
gas_price: '207806259583',
|
|
126
|
+
native_token_price_in_usd: '0.83',
|
|
127
|
+
},
|
|
128
|
+
to: '0xecc19e177d24551aa7ed6bc6fe566eca726cc8a9',
|
|
129
|
+
from: '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae',
|
|
130
|
+
token: {
|
|
131
|
+
usd: '1.00',
|
|
132
|
+
name: 'USDC',
|
|
133
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdc.svg',
|
|
134
|
+
amount: '4956250000',
|
|
135
|
+
symbol: 'USDC',
|
|
136
|
+
address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
137
|
+
decimals: '6',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
return mockNotification;
|
|
143
|
+
}
|
|
144
|
+
exports.createMockNotificationERC20Sent = createMockNotificationERC20Sent;
|
|
145
|
+
/**
|
|
146
|
+
* Mocking Utility - create a mock ERC20 received notification
|
|
147
|
+
*
|
|
148
|
+
* @returns Mock raw ERC20 received notification
|
|
149
|
+
*/
|
|
150
|
+
function createMockNotificationERC20Received() {
|
|
151
|
+
const mockNotification = {
|
|
152
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ERC20_RECEIVED,
|
|
153
|
+
notification_type: 'wallet_activity',
|
|
154
|
+
notification_subtype: 'erc20_received',
|
|
155
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
156
|
+
unread: true,
|
|
157
|
+
created_at: '2022-03-01T00:00:00Z',
|
|
158
|
+
payload: {
|
|
159
|
+
chain_id: 1,
|
|
160
|
+
block_number: 17485840,
|
|
161
|
+
block_timestamp: '2022-03-01T00:00:00Z',
|
|
162
|
+
tx_hash: '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',
|
|
163
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
164
|
+
network: {
|
|
165
|
+
name: 'Ethereum',
|
|
166
|
+
native_symbol: 'ETH',
|
|
167
|
+
block_explorer: {
|
|
168
|
+
url: 'https://etherscan.io',
|
|
169
|
+
name: 'Etherscan',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
data: {
|
|
173
|
+
kind: 'erc20_received',
|
|
174
|
+
network_fee: {
|
|
175
|
+
gas_price: '207806259583',
|
|
176
|
+
native_token_price_in_usd: '0.83',
|
|
177
|
+
},
|
|
178
|
+
to: '0xeae7380dd4cef6fbd1144f49e4d1e6964258a4f4',
|
|
179
|
+
from: '0x51c72848c68a965f66fa7a88855f9f7784502a7f',
|
|
180
|
+
token: {
|
|
181
|
+
usd: '0.00',
|
|
182
|
+
name: 'SHIBA INU',
|
|
183
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/shib.svg',
|
|
184
|
+
amount: '8382798736999999457296646144',
|
|
185
|
+
symbol: 'SHIB',
|
|
186
|
+
address: '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce',
|
|
187
|
+
decimals: '18',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
return mockNotification;
|
|
193
|
+
}
|
|
194
|
+
exports.createMockNotificationERC20Received = createMockNotificationERC20Received;
|
|
195
|
+
/**
|
|
196
|
+
* Mocking Utility - create a mock ERC721 sent notification
|
|
197
|
+
*
|
|
198
|
+
* @returns Mock raw ERC721 sent notification
|
|
199
|
+
*/
|
|
200
|
+
function createMockNotificationERC721Sent() {
|
|
201
|
+
const mockNotification = {
|
|
202
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ERC721_SENT,
|
|
203
|
+
notification_type: 'wallet_activity',
|
|
204
|
+
notification_subtype: 'erc721_sent',
|
|
205
|
+
id: 'a4193058-9814-537e-9df4-79dcac727fb6',
|
|
206
|
+
created_at: '2023-11-15T11:08:17.895407Z',
|
|
207
|
+
unread: true,
|
|
208
|
+
payload: {
|
|
209
|
+
block_number: 18576643,
|
|
210
|
+
block_timestamp: '1700043467',
|
|
211
|
+
chain_id: 1,
|
|
212
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
213
|
+
network: {
|
|
214
|
+
name: 'Ethereum',
|
|
215
|
+
native_symbol: 'ETH',
|
|
216
|
+
block_explorer: {
|
|
217
|
+
url: 'https://etherscan.io',
|
|
218
|
+
name: 'Etherscan',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
data: {
|
|
222
|
+
to: '0xf47f628fe3bd2595e9ab384bfffc3859b448e451',
|
|
223
|
+
nft: {
|
|
224
|
+
name: 'Captainz #8680',
|
|
225
|
+
image: 'https://i.seadn.io/s/raw/files/ae0fc06714ff7fb40217340d8a242c0e.gif?w=500&auto=format',
|
|
226
|
+
token_id: '8680',
|
|
227
|
+
collection: {
|
|
228
|
+
name: 'The Captainz',
|
|
229
|
+
image: 'https://i.seadn.io/gcs/files/6df4d75778066bce740050615bc84e21.png?w=500&auto=format',
|
|
230
|
+
symbol: 'Captainz',
|
|
231
|
+
address: '0x769272677fab02575e84945f03eca517acc544cc',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',
|
|
235
|
+
kind: 'erc721_sent',
|
|
236
|
+
network_fee: {
|
|
237
|
+
gas_price: '24550653274',
|
|
238
|
+
native_token_price_in_usd: '1986.61',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
tx_hash: '0x0833c69fb41cf972a0f031fceca242939bc3fcf82b964b74606649abcad371bd',
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
return mockNotification;
|
|
245
|
+
}
|
|
246
|
+
exports.createMockNotificationERC721Sent = createMockNotificationERC721Sent;
|
|
247
|
+
/**
|
|
248
|
+
* Mocking Utility - create a mock ERC721 received notification
|
|
249
|
+
*
|
|
250
|
+
* @returns Mock raw ERC721 received notification
|
|
251
|
+
*/
|
|
252
|
+
function createMockNotificationERC721Received() {
|
|
253
|
+
const mockNotification = {
|
|
254
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ERC721_RECEIVED,
|
|
255
|
+
notification_type: 'wallet_activity',
|
|
256
|
+
notification_subtype: 'erc721_received',
|
|
257
|
+
id: '00a79d24-befa-57ed-a55a-9eb8696e1654',
|
|
258
|
+
created_at: '2023-11-14T17:40:52.319281Z',
|
|
259
|
+
unread: true,
|
|
260
|
+
payload: {
|
|
261
|
+
block_number: 18571446,
|
|
262
|
+
block_timestamp: '1699980623',
|
|
263
|
+
chain_id: 1,
|
|
264
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
265
|
+
network: {
|
|
266
|
+
name: 'Ethereum',
|
|
267
|
+
native_symbol: 'ETH',
|
|
268
|
+
block_explorer: {
|
|
269
|
+
url: 'https://etherscan.io',
|
|
270
|
+
name: 'Etherscan',
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
data: {
|
|
274
|
+
to: '0xba7f3daa8adfdad686574406ab9bd5d2f0a49d2e',
|
|
275
|
+
nft: {
|
|
276
|
+
name: 'The Plague #2722',
|
|
277
|
+
image: 'https://i.seadn.io/s/raw/files/a96f90ec8ebf55a2300c66a0c46d6a16.png?w=500&auto=format',
|
|
278
|
+
token_id: '2722',
|
|
279
|
+
collection: {
|
|
280
|
+
name: 'The Plague NFT',
|
|
281
|
+
image: 'https://i.seadn.io/gcs/files/4577987a5ca45ca5118b2e31559ee4d1.jpg?w=500&auto=format',
|
|
282
|
+
symbol: 'FROG',
|
|
283
|
+
address: '0xc379e535caff250a01caa6c3724ed1359fe5c29b',
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',
|
|
287
|
+
kind: 'erc721_received',
|
|
288
|
+
network_fee: {
|
|
289
|
+
gas_price: '53701898538',
|
|
290
|
+
native_token_price_in_usd: '2047.01',
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
tx_hash: '0xe554c9e29e6eeca8ba94da4d047334ba08b8eb9ca3b801dd69cec08dfdd4ae43',
|
|
294
|
+
},
|
|
295
|
+
};
|
|
296
|
+
return mockNotification;
|
|
297
|
+
}
|
|
298
|
+
exports.createMockNotificationERC721Received = createMockNotificationERC721Received;
|
|
299
|
+
/**
|
|
300
|
+
* Mocking Utility - create a mock ERC1155 sent notification
|
|
301
|
+
*
|
|
302
|
+
* @returns Mock raw ERC1155 sent notification
|
|
303
|
+
*/
|
|
304
|
+
function createMockNotificationERC1155Sent() {
|
|
305
|
+
const mockNotification = {
|
|
306
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ERC1155_SENT,
|
|
307
|
+
notification_type: 'wallet_activity',
|
|
308
|
+
notification_subtype: 'erc1155_sent',
|
|
309
|
+
id: 'a09ff9d1-623a-52ab-a3d4-c7c8c9a58362',
|
|
310
|
+
created_at: '2023-11-20T20:44:10.110706Z',
|
|
311
|
+
unread: true,
|
|
312
|
+
payload: {
|
|
313
|
+
block_number: 18615206,
|
|
314
|
+
block_timestamp: '1700510003',
|
|
315
|
+
chain_id: 1,
|
|
316
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
317
|
+
network: {
|
|
318
|
+
name: 'Ethereum',
|
|
319
|
+
native_symbol: 'ETH',
|
|
320
|
+
block_explorer: {
|
|
321
|
+
url: 'https://etherscan.io',
|
|
322
|
+
name: 'Etherscan',
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
data: {
|
|
326
|
+
to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',
|
|
327
|
+
nft: {
|
|
328
|
+
name: 'IlluminatiNFT DAO',
|
|
329
|
+
image: 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',
|
|
330
|
+
token_id: '1',
|
|
331
|
+
collection: {
|
|
332
|
+
name: 'IlluminatiNFT DAO',
|
|
333
|
+
image: 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',
|
|
334
|
+
symbol: 'TRUTH',
|
|
335
|
+
address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
from: '0x0000000000000000000000000000000000000000',
|
|
339
|
+
kind: 'erc1155_sent',
|
|
340
|
+
network_fee: {
|
|
341
|
+
gas_price: '33571446596',
|
|
342
|
+
native_token_price_in_usd: '2038.88',
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
tx_hash: '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',
|
|
346
|
+
},
|
|
347
|
+
};
|
|
348
|
+
return mockNotification;
|
|
349
|
+
}
|
|
350
|
+
exports.createMockNotificationERC1155Sent = createMockNotificationERC1155Sent;
|
|
351
|
+
/**
|
|
352
|
+
* Mocking Utility - create a mock ERC1155 received notification
|
|
353
|
+
*
|
|
354
|
+
* @returns Mock raw ERC1155 received notification
|
|
355
|
+
*/
|
|
356
|
+
function createMockNotificationERC1155Received() {
|
|
357
|
+
const mockNotification = {
|
|
358
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ERC1155_RECEIVED,
|
|
359
|
+
notification_type: 'wallet_activity',
|
|
360
|
+
notification_subtype: 'erc1155_received',
|
|
361
|
+
id: 'b6b93c84-e8dc-54ed-9396-7ea50474843a',
|
|
362
|
+
created_at: '2023-11-20T20:44:10.110706Z',
|
|
363
|
+
unread: true,
|
|
364
|
+
payload: {
|
|
365
|
+
block_number: 18615206,
|
|
366
|
+
block_timestamp: '1700510003',
|
|
367
|
+
chain_id: 1,
|
|
368
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
369
|
+
network: {
|
|
370
|
+
name: 'Ethereum',
|
|
371
|
+
native_symbol: 'ETH',
|
|
372
|
+
block_explorer: {
|
|
373
|
+
url: 'https://etherscan.io',
|
|
374
|
+
name: 'Etherscan',
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
data: {
|
|
378
|
+
to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',
|
|
379
|
+
nft: {
|
|
380
|
+
name: 'IlluminatiNFT DAO',
|
|
381
|
+
image: 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',
|
|
382
|
+
token_id: '1',
|
|
383
|
+
collection: {
|
|
384
|
+
name: 'IlluminatiNFT DAO',
|
|
385
|
+
image: 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',
|
|
386
|
+
symbol: 'TRUTH',
|
|
387
|
+
address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
from: '0x0000000000000000000000000000000000000000',
|
|
391
|
+
kind: 'erc1155_received',
|
|
392
|
+
network_fee: {
|
|
393
|
+
gas_price: '33571446596',
|
|
394
|
+
native_token_price_in_usd: '2038.88',
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
tx_hash: '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',
|
|
398
|
+
},
|
|
399
|
+
};
|
|
400
|
+
return mockNotification;
|
|
401
|
+
}
|
|
402
|
+
exports.createMockNotificationERC1155Received = createMockNotificationERC1155Received;
|
|
403
|
+
/**
|
|
404
|
+
* Mocking Utility - create a mock MetaMask Swaps notification
|
|
405
|
+
*
|
|
406
|
+
* @returns Mock raw MetaMask Swaps notification
|
|
407
|
+
*/
|
|
408
|
+
function createMockNotificationMetaMaskSwapsCompleted() {
|
|
409
|
+
const mockNotification = {
|
|
410
|
+
type: notification_schema_js_1.TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,
|
|
411
|
+
notification_type: 'wallet_activity',
|
|
412
|
+
notification_subtype: 'metamask_swap_completed',
|
|
413
|
+
id: '7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b',
|
|
414
|
+
created_at: '2023-10-18T13:58:49.854596Z',
|
|
415
|
+
unread: true,
|
|
416
|
+
payload: {
|
|
417
|
+
block_number: 18377666,
|
|
418
|
+
block_timestamp: '1697637275',
|
|
419
|
+
chain_id: 1,
|
|
420
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
421
|
+
network: {
|
|
422
|
+
name: 'Ethereum',
|
|
423
|
+
native_symbol: 'ETH',
|
|
424
|
+
block_explorer: {
|
|
425
|
+
url: 'https://etherscan.io',
|
|
426
|
+
name: 'Etherscan',
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
data: {
|
|
430
|
+
kind: 'metamask_swap_completed',
|
|
431
|
+
rate: '1558.27',
|
|
432
|
+
token_in: {
|
|
433
|
+
usd: '1576.73',
|
|
434
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
435
|
+
amount: '9000000000000000',
|
|
436
|
+
symbol: 'ETH',
|
|
437
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
438
|
+
decimals: '18',
|
|
439
|
+
name: 'Ethereum',
|
|
440
|
+
},
|
|
441
|
+
token_out: {
|
|
442
|
+
usd: '1.00',
|
|
443
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdt.svg',
|
|
444
|
+
amount: '14024419',
|
|
445
|
+
symbol: 'USDT',
|
|
446
|
+
address: '0xdac17f958d2ee523a2206206994597c13d831ec7',
|
|
447
|
+
decimals: '6',
|
|
448
|
+
name: 'USDT',
|
|
449
|
+
},
|
|
450
|
+
network_fee: {
|
|
451
|
+
gas_price: '15406129273',
|
|
452
|
+
native_token_price_in_usd: '1576.73',
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
tx_hash: '0xf69074290f3aa11bce567aabc9ca0df7a12559dfae1b80ba1a124e9dfe19ecc5',
|
|
456
|
+
},
|
|
457
|
+
};
|
|
458
|
+
return mockNotification;
|
|
459
|
+
}
|
|
460
|
+
exports.createMockNotificationMetaMaskSwapsCompleted = createMockNotificationMetaMaskSwapsCompleted;
|
|
461
|
+
/**
|
|
462
|
+
* Mocking Utility - create a mock RocketPool Stake Completed notification
|
|
463
|
+
*
|
|
464
|
+
* @returns Mock raw RocketPool Stake Completed notification
|
|
465
|
+
*/
|
|
466
|
+
function createMockNotificationRocketPoolStakeCompleted() {
|
|
467
|
+
const mockNotification = {
|
|
468
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,
|
|
469
|
+
notification_type: 'wallet_activity',
|
|
470
|
+
notification_subtype: 'rocketpool_stake_completed',
|
|
471
|
+
id: 'c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9',
|
|
472
|
+
created_at: '2023-11-20T12:02:48.796824Z',
|
|
473
|
+
unread: true,
|
|
474
|
+
payload: {
|
|
475
|
+
block_number: 18585057,
|
|
476
|
+
block_timestamp: '1700145059',
|
|
477
|
+
chain_id: 1,
|
|
478
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
479
|
+
network: {
|
|
480
|
+
name: 'Ethereum',
|
|
481
|
+
native_symbol: 'ETH',
|
|
482
|
+
block_explorer: {
|
|
483
|
+
url: 'https://etherscan.io',
|
|
484
|
+
name: 'Etherscan',
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
data: {
|
|
488
|
+
kind: 'rocketpool_stake_completed',
|
|
489
|
+
stake_in: {
|
|
490
|
+
usd: '2031.86',
|
|
491
|
+
name: 'Ethereum',
|
|
492
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
493
|
+
amount: '190690478063438272',
|
|
494
|
+
symbol: 'ETH',
|
|
495
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
496
|
+
decimals: '18',
|
|
497
|
+
},
|
|
498
|
+
stake_out: {
|
|
499
|
+
usd: '2226.49',
|
|
500
|
+
name: 'Rocket Pool ETH',
|
|
501
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',
|
|
502
|
+
amount: '175024360778165879',
|
|
503
|
+
symbol: 'RETH',
|
|
504
|
+
address: '0xae78736Cd615f374D3085123A210448E74Fc6393',
|
|
505
|
+
decimals: '18',
|
|
506
|
+
},
|
|
507
|
+
network_fee: {
|
|
508
|
+
gas_price: '36000000000',
|
|
509
|
+
native_token_price_in_usd: '2031.86',
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
tx_hash: '0xcfc0693bf47995907b0f46ef0644cf16dd9a0de797099b2e00fd481e1b2117d3',
|
|
513
|
+
},
|
|
514
|
+
};
|
|
515
|
+
return mockNotification;
|
|
516
|
+
}
|
|
517
|
+
exports.createMockNotificationRocketPoolStakeCompleted = createMockNotificationRocketPoolStakeCompleted;
|
|
518
|
+
/**
|
|
519
|
+
* Mocking Utility - create a mock RocketPool Un-staked notification
|
|
520
|
+
*
|
|
521
|
+
* @returns Mock raw RocketPool Un-staked notification
|
|
522
|
+
*/
|
|
523
|
+
function createMockNotificationRocketPoolUnStakeCompleted() {
|
|
524
|
+
const mockNotification = {
|
|
525
|
+
type: notification_schema_js_1.TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,
|
|
526
|
+
notification_type: 'wallet_activity',
|
|
527
|
+
notification_subtype: 'rocketpool_unstake_completed',
|
|
528
|
+
id: '291ec897-f569-4837-b6c0-21001b198dff',
|
|
529
|
+
created_at: '2023-10-19T13:11:10.623042Z',
|
|
530
|
+
unread: true,
|
|
531
|
+
payload: {
|
|
532
|
+
block_number: 18384336,
|
|
533
|
+
block_timestamp: '1697718011',
|
|
534
|
+
chain_id: 1,
|
|
535
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
536
|
+
network: {
|
|
537
|
+
name: 'Ethereum',
|
|
538
|
+
native_symbol: 'ETH',
|
|
539
|
+
block_explorer: {
|
|
540
|
+
url: 'https://etherscan.io',
|
|
541
|
+
name: 'Etherscan',
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
data: {
|
|
545
|
+
kind: 'rocketpool_unstake_completed',
|
|
546
|
+
stake_in: {
|
|
547
|
+
usd: '1686.34',
|
|
548
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',
|
|
549
|
+
amount: '66608041413696770',
|
|
550
|
+
symbol: 'RETH',
|
|
551
|
+
address: '0xae78736Cd615f374D3085123A210448E74Fc6393',
|
|
552
|
+
decimals: '18',
|
|
553
|
+
name: 'Rocketpool Eth',
|
|
554
|
+
},
|
|
555
|
+
stake_out: {
|
|
556
|
+
usd: '1553.75',
|
|
557
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
558
|
+
amount: '72387843427700824',
|
|
559
|
+
symbol: 'ETH',
|
|
560
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
561
|
+
decimals: '18',
|
|
562
|
+
name: 'Ethereum',
|
|
563
|
+
},
|
|
564
|
+
network_fee: {
|
|
565
|
+
gas_price: '5656322987',
|
|
566
|
+
native_token_price_in_usd: '1553.75',
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
tx_hash: '0xc7972a7e409abfc62590ec90e633acd70b9b74e76ad02305be8bf133a0e22d5f',
|
|
570
|
+
},
|
|
571
|
+
};
|
|
572
|
+
return mockNotification;
|
|
573
|
+
}
|
|
574
|
+
exports.createMockNotificationRocketPoolUnStakeCompleted = createMockNotificationRocketPoolUnStakeCompleted;
|
|
575
|
+
/**
|
|
576
|
+
* Mocking Utility - create a mock Lido Stake Completed notification
|
|
577
|
+
*
|
|
578
|
+
* @returns Mock raw Lido Stake Completed notification
|
|
579
|
+
*/
|
|
580
|
+
function createMockNotificationLidoStakeCompleted() {
|
|
581
|
+
const mockNotification = {
|
|
582
|
+
type: notification_schema_js_1.TRIGGER_TYPES.LIDO_STAKE_COMPLETED,
|
|
583
|
+
notification_type: 'wallet_activity',
|
|
584
|
+
notification_subtype: 'lido_stake_completed',
|
|
585
|
+
id: 'ec10d66a-f78f-461f-83c9-609aada8cc50',
|
|
586
|
+
created_at: '2023-11-02T22:28:49.970865Z',
|
|
587
|
+
unread: true,
|
|
588
|
+
payload: {
|
|
589
|
+
block_number: 18487118,
|
|
590
|
+
block_timestamp: '1698961091',
|
|
591
|
+
chain_id: 1,
|
|
592
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
593
|
+
network: {
|
|
594
|
+
name: 'Ethereum',
|
|
595
|
+
native_symbol: 'ETH',
|
|
596
|
+
block_explorer: {
|
|
597
|
+
url: 'https://etherscan.io',
|
|
598
|
+
name: 'Etherscan',
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
data: {
|
|
602
|
+
kind: 'lido_stake_completed',
|
|
603
|
+
stake_in: {
|
|
604
|
+
usd: '1806.33',
|
|
605
|
+
name: 'Ethereum',
|
|
606
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
607
|
+
amount: '330303634023928032',
|
|
608
|
+
symbol: 'ETH',
|
|
609
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
610
|
+
decimals: '18',
|
|
611
|
+
},
|
|
612
|
+
stake_out: {
|
|
613
|
+
usd: '1801.30',
|
|
614
|
+
name: 'Liquid staked Ether 2.0',
|
|
615
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',
|
|
616
|
+
amount: '330303634023928032',
|
|
617
|
+
symbol: 'STETH',
|
|
618
|
+
address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
619
|
+
decimals: '18',
|
|
620
|
+
},
|
|
621
|
+
network_fee: {
|
|
622
|
+
gas_price: '26536359866',
|
|
623
|
+
native_token_price_in_usd: '1806.33',
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
tx_hash: '0x8cc0fa805f7c3b1743b14f3b91c6b824113b094f26d4ccaf6a71ad8547ce6a0f',
|
|
627
|
+
},
|
|
628
|
+
};
|
|
629
|
+
return mockNotification;
|
|
630
|
+
}
|
|
631
|
+
exports.createMockNotificationLidoStakeCompleted = createMockNotificationLidoStakeCompleted;
|
|
632
|
+
/**
|
|
633
|
+
* Mocking Utility - create a mock Lido Withdrawal Requested notification
|
|
634
|
+
*
|
|
635
|
+
* @returns Mock raw Lido Withdrawal Requested notification
|
|
636
|
+
*/
|
|
637
|
+
function createMockNotificationLidoWithdrawalRequested() {
|
|
638
|
+
const mockNotification = {
|
|
639
|
+
type: notification_schema_js_1.TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,
|
|
640
|
+
notification_type: 'wallet_activity',
|
|
641
|
+
notification_subtype: 'lido_withdrawal_requested',
|
|
642
|
+
id: 'ef003925-3379-4ba7-9e2d-8218690cadc9',
|
|
643
|
+
created_at: '2023-10-18T15:04:02.482526Z',
|
|
644
|
+
unread: true,
|
|
645
|
+
payload: {
|
|
646
|
+
block_number: 18377760,
|
|
647
|
+
block_timestamp: '1697638415',
|
|
648
|
+
chain_id: 1,
|
|
649
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
650
|
+
network: {
|
|
651
|
+
name: 'Ethereum',
|
|
652
|
+
native_symbol: 'ETH',
|
|
653
|
+
block_explorer: {
|
|
654
|
+
url: 'https://etherscan.io',
|
|
655
|
+
name: 'Etherscan',
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
data: {
|
|
659
|
+
kind: 'lido_withdrawal_requested',
|
|
660
|
+
stake_in: {
|
|
661
|
+
usd: '1568.54',
|
|
662
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',
|
|
663
|
+
amount: '97180668792218669859',
|
|
664
|
+
symbol: 'STETH',
|
|
665
|
+
address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
666
|
+
decimals: '18',
|
|
667
|
+
name: 'Staked Eth',
|
|
668
|
+
},
|
|
669
|
+
stake_out: {
|
|
670
|
+
usd: '1576.73',
|
|
671
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
672
|
+
amount: '97180668792218669859',
|
|
673
|
+
symbol: 'ETH',
|
|
674
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
675
|
+
decimals: '18',
|
|
676
|
+
name: 'Ethereum',
|
|
677
|
+
},
|
|
678
|
+
network_fee: {
|
|
679
|
+
gas_price: '11658906980',
|
|
680
|
+
native_token_price_in_usd: '1576.73',
|
|
681
|
+
},
|
|
682
|
+
},
|
|
683
|
+
tx_hash: '0x58b5f82e084cb750ea174e02b20fbdfd2ba8d78053deac787f34fc38e5d427aa',
|
|
684
|
+
},
|
|
685
|
+
};
|
|
686
|
+
return mockNotification;
|
|
687
|
+
}
|
|
688
|
+
exports.createMockNotificationLidoWithdrawalRequested = createMockNotificationLidoWithdrawalRequested;
|
|
689
|
+
/**
|
|
690
|
+
* Mocking Utility - create a mock Lido Withdrawal Completed notification
|
|
691
|
+
*
|
|
692
|
+
* @returns Mock raw Lido Withdrawal Completed notification
|
|
693
|
+
*/
|
|
694
|
+
function createMockNotificationLidoWithdrawalCompleted() {
|
|
695
|
+
const mockNotification = {
|
|
696
|
+
type: notification_schema_js_1.TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,
|
|
697
|
+
notification_type: 'wallet_activity',
|
|
698
|
+
notification_subtype: 'lido_withdrawal_completed',
|
|
699
|
+
id: 'd73df14d-ce73-4f38-bad3-ab028154042f',
|
|
700
|
+
created_at: '2023-10-18T16:35:03.147606Z',
|
|
701
|
+
unread: true,
|
|
702
|
+
payload: {
|
|
703
|
+
block_number: 18378208,
|
|
704
|
+
block_timestamp: '1697643851',
|
|
705
|
+
chain_id: 1,
|
|
706
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
707
|
+
network: {
|
|
708
|
+
name: 'Ethereum',
|
|
709
|
+
native_symbol: 'ETH',
|
|
710
|
+
block_explorer: {
|
|
711
|
+
url: 'https://etherscan.io',
|
|
712
|
+
name: 'Etherscan',
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
data: {
|
|
716
|
+
kind: 'lido_withdrawal_completed',
|
|
717
|
+
stake_in: {
|
|
718
|
+
usd: '1570.23',
|
|
719
|
+
image: 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',
|
|
720
|
+
amount: '35081997661451346',
|
|
721
|
+
symbol: 'STETH',
|
|
722
|
+
address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
723
|
+
decimals: '18',
|
|
724
|
+
name: 'Staked Eth',
|
|
725
|
+
},
|
|
726
|
+
stake_out: {
|
|
727
|
+
usd: '1571.74',
|
|
728
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
729
|
+
amount: '35081997661451346',
|
|
730
|
+
symbol: 'ETH',
|
|
731
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
732
|
+
decimals: '18',
|
|
733
|
+
name: 'Ethereum',
|
|
734
|
+
},
|
|
735
|
+
network_fee: {
|
|
736
|
+
gas_price: '12699495150',
|
|
737
|
+
native_token_price_in_usd: '1571.74',
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
tx_hash: '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',
|
|
741
|
+
},
|
|
742
|
+
};
|
|
743
|
+
return mockNotification;
|
|
744
|
+
}
|
|
745
|
+
exports.createMockNotificationLidoWithdrawalCompleted = createMockNotificationLidoWithdrawalCompleted;
|
|
746
|
+
/**
|
|
747
|
+
* Mocking Utility - create a mock Lido Withdrawal Ready notification
|
|
748
|
+
*
|
|
749
|
+
* @returns Mock raw Lido Withdrawal Ready notification
|
|
750
|
+
*/
|
|
751
|
+
function createMockNotificationLidoReadyToBeWithdrawn() {
|
|
752
|
+
const mockNotification = {
|
|
753
|
+
type: notification_schema_js_1.TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,
|
|
754
|
+
notification_type: 'wallet_activity',
|
|
755
|
+
notification_subtype: 'lido_stake_ready_to_be_withdrawn',
|
|
756
|
+
id: 'd73df14d-ce73-4f38-bad3-ab028154042e',
|
|
757
|
+
created_at: '2023-10-18T16:35:03.147606Z',
|
|
758
|
+
unread: true,
|
|
759
|
+
payload: {
|
|
760
|
+
block_number: 18378208,
|
|
761
|
+
block_timestamp: '1697643851',
|
|
762
|
+
chain_id: 1,
|
|
763
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300C',
|
|
764
|
+
network: {
|
|
765
|
+
name: 'Ethereum',
|
|
766
|
+
native_symbol: 'ETH',
|
|
767
|
+
block_explorer: {
|
|
768
|
+
url: 'https://etherscan.io',
|
|
769
|
+
name: 'Etherscan',
|
|
770
|
+
},
|
|
771
|
+
},
|
|
772
|
+
data: {
|
|
773
|
+
kind: 'lido_stake_ready_to_be_withdrawn',
|
|
774
|
+
request_id: '123456789',
|
|
775
|
+
staked_eth: {
|
|
776
|
+
address: '0x881D40237659C251811CEC9c364ef91dC08D300F',
|
|
777
|
+
symbol: 'ETH',
|
|
778
|
+
name: 'Ethereum',
|
|
779
|
+
amount: '2.5',
|
|
780
|
+
decimals: '18',
|
|
781
|
+
image: 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',
|
|
782
|
+
usd: '10000.00',
|
|
783
|
+
},
|
|
784
|
+
},
|
|
785
|
+
tx_hash: '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',
|
|
786
|
+
},
|
|
787
|
+
};
|
|
788
|
+
return mockNotification;
|
|
789
|
+
}
|
|
790
|
+
exports.createMockNotificationLidoReadyToBeWithdrawn = createMockNotificationLidoReadyToBeWithdrawn;
|
|
791
|
+
/**
|
|
792
|
+
* Mocking Utility - create a mock Generic Platform notification
|
|
793
|
+
*
|
|
794
|
+
* @returns Mock raw Generic Platform notification
|
|
795
|
+
*/
|
|
796
|
+
function createMockPlatformNotification() {
|
|
797
|
+
const mockNotification = {
|
|
798
|
+
type: notification_schema_js_1.TRIGGER_TYPES.PLATFORM,
|
|
799
|
+
notification_type: 'perps',
|
|
800
|
+
notification_subtype: 'position_liquidated',
|
|
801
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
802
|
+
unread: true,
|
|
803
|
+
created_at: '2025-10-09T09:45:34.202Z',
|
|
804
|
+
template: {
|
|
805
|
+
image_url: 'https://images.ctfassets.net/clixtyxoaeas/4rnpEzy1ATWRKVBOLxZ1Fm/a74dc1eed36d23d7ea6030383a4d5163/MetaMask-icon-fox.svg',
|
|
806
|
+
title: 'This is a Platform Notification!',
|
|
807
|
+
body: 'Teams can now build out their own notifications, and add an optional CTA (like this one below).',
|
|
808
|
+
cta: {
|
|
809
|
+
content: 'Get Started',
|
|
810
|
+
link: 'https://metamask.io/get-started',
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
};
|
|
814
|
+
return mockNotification;
|
|
815
|
+
}
|
|
816
|
+
exports.createMockPlatformNotification = createMockPlatformNotification;
|
|
817
|
+
/**
|
|
818
|
+
* Mocking Utility - creates an array of raw on-chain notifications
|
|
819
|
+
*
|
|
820
|
+
* @returns Array of raw on-chain notifications
|
|
821
|
+
*/
|
|
822
|
+
function createMockRawOnChainNotifications() {
|
|
823
|
+
return [1, 2, 3].map((id) => {
|
|
824
|
+
const notification = createMockNotificationEthSent();
|
|
825
|
+
notification.id += `-${id}`;
|
|
826
|
+
return notification;
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
exports.createMockRawOnChainNotifications = createMockRawOnChainNotifications;
|
|
830
|
+
//# sourceMappingURL=mock-raw-notifications.cjs.map
|