@metamask-previews/notification-services-controller 24.3.0-preview-3a27accda → 24.3.0-preview-380bb5c
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 +16 -0
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs +32 -16
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.cts.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs +32 -16
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/services/api-notifications.cjs +2 -2
- package/dist/NotificationServicesController/services/api-notifications.cjs.map +1 -1
- package/dist/NotificationServicesController/services/api-notifications.mjs +2 -2
- package/dist/NotificationServicesController/services/api-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.cjs +1 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.cjs.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts +7 -14
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts +7 -14
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.mjs +1 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.mjs.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/schema.cjs.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/schema.d.cts +366 -2
- package/dist/NotificationServicesController/types/notification-api/schema.d.cts.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/schema.d.mts +366 -2
- package/dist/NotificationServicesController/types/notification-api/schema.d.mts.map +1 -1
- package/dist/NotificationServicesController/types/notification-api/schema.mjs.map +1 -1
- package/dist/shared/index.cjs +1 -0
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +1 -0
- package/dist/shared/index.d.cts.map +1 -1
- package/dist/shared/index.d.mts +1 -0
- package/dist/shared/index.d.mts.map +1 -1
- package/dist/shared/index.mjs +1 -0
- package/dist/shared/index.mjs.map +1 -1
- 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.cts +16 -0
- 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.mjs +19 -0
- package/dist/shared/notification-api-type-guards.mjs.map +1 -0
- package/dist/shared/to-raw-notification.cjs +8 -13
- package/dist/shared/to-raw-notification.cjs.map +1 -1
- package/dist/shared/to-raw-notification.d.cts.map +1 -1
- package/dist/shared/to-raw-notification.d.mts.map +1 -1
- package/dist/shared/to-raw-notification.mjs +8 -13
- package/dist/shared/to-raw-notification.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Export `isOnChainNotification` and `isPlatformNotification` type guards for discriminating v4 API notification shapes ([#9384](https://github.com/MetaMask/core/pull/9384))
|
|
13
|
+
- Export `PlatformNotification` and `OnChainNotification` types derived from the v4 Notification API schema ([#9384](https://github.com/MetaMask/core/pull/9384))
|
|
14
|
+
|
|
10
15
|
### Changed
|
|
11
16
|
|
|
17
|
+
- **BREAKING:** Moved Notification API from v3 to v4 ([#9384](https://github.com/MetaMask/core/pull/9384))
|
|
18
|
+
- API Endpoint Changes: Updated from `/api/v3/notifications` to `/api/v4/notifications` for listing notifications and marking as read
|
|
19
|
+
- Response Structure: `notification_type` and `notification_subtype` now reflect producer-set database fields instead of fixed enum values
|
|
20
|
+
- On-chain notifications: `notification_type` is now `"wallet_activity"` (was `"on-chain"`), with `notification_subtype` set to the on-chain kind (e.g. `"metamask_swap_completed"`)
|
|
21
|
+
- Platform notifications: `notification_type` is now a producer-set value (e.g. `"perps"`, was `"platform"`), with `notification_subtype` set to the platform subtype (e.g. `"position_liquidated"`)
|
|
22
|
+
- Clients should use the `isOnChainNotification` / `isPlatformNotification` type guards to distinguish on-chain vs platform notifications
|
|
23
|
+
- Type System:
|
|
24
|
+
- `UnprocessedRawNotification` now uses `NotificationOutputV4` shapes (`PlatformNotificationV4` | `OnChainNotificationV4`)
|
|
25
|
+
- `toRawAPINotification()` now normalises v4 notifications, mapping on-chain `notification_subtype` to the `type` field
|
|
26
|
+
- Regenerated `schema.ts` from the latest Notification API OpenAPI spec, including v4 paths and legacy v1–v3 schemas
|
|
27
|
+
- `AppPlatform` now includes `"portfolio"` in addition to `"extension"` and `"mobile"`
|
|
12
28
|
- Bump `@metamask/messenger` from `^1.2.0` to `^2.0.0` ([#9392](https://github.com/MetaMask/core/pull/9392))
|
|
13
29
|
|
|
14
30
|
## [24.3.0]
|
|
@@ -10,7 +10,8 @@ const notification_schema_1 = require("../constants/notification-schema.cjs");
|
|
|
10
10
|
function createMockNotificationEthSent() {
|
|
11
11
|
const mockNotification = {
|
|
12
12
|
type: notification_schema_1.TRIGGER_TYPES.ETH_SENT,
|
|
13
|
-
notification_type: '
|
|
13
|
+
notification_type: 'wallet_activity',
|
|
14
|
+
notification_subtype: 'eth_sent',
|
|
14
15
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa7',
|
|
15
16
|
unread: true,
|
|
16
17
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -54,7 +55,8 @@ exports.createMockNotificationEthSent = createMockNotificationEthSent;
|
|
|
54
55
|
function createMockNotificationEthReceived() {
|
|
55
56
|
const mockNotification = {
|
|
56
57
|
type: notification_schema_1.TRIGGER_TYPES.ETH_RECEIVED,
|
|
57
|
-
notification_type: '
|
|
58
|
+
notification_type: 'wallet_activity',
|
|
59
|
+
notification_subtype: 'eth_received',
|
|
58
60
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa8',
|
|
59
61
|
unread: true,
|
|
60
62
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -98,7 +100,8 @@ exports.createMockNotificationEthReceived = createMockNotificationEthReceived;
|
|
|
98
100
|
function createMockNotificationERC20Sent() {
|
|
99
101
|
const mockNotification = {
|
|
100
102
|
type: notification_schema_1.TRIGGER_TYPES.ERC20_SENT,
|
|
101
|
-
notification_type: '
|
|
103
|
+
notification_type: 'wallet_activity',
|
|
104
|
+
notification_subtype: 'erc20_sent',
|
|
102
105
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa9',
|
|
103
106
|
unread: true,
|
|
104
107
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -147,7 +150,8 @@ exports.createMockNotificationERC20Sent = createMockNotificationERC20Sent;
|
|
|
147
150
|
function createMockNotificationERC20Received() {
|
|
148
151
|
const mockNotification = {
|
|
149
152
|
type: notification_schema_1.TRIGGER_TYPES.ERC20_RECEIVED,
|
|
150
|
-
notification_type: '
|
|
153
|
+
notification_type: 'wallet_activity',
|
|
154
|
+
notification_subtype: 'erc20_received',
|
|
151
155
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
152
156
|
unread: true,
|
|
153
157
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -196,7 +200,8 @@ exports.createMockNotificationERC20Received = createMockNotificationERC20Receive
|
|
|
196
200
|
function createMockNotificationERC721Sent() {
|
|
197
201
|
const mockNotification = {
|
|
198
202
|
type: notification_schema_1.TRIGGER_TYPES.ERC721_SENT,
|
|
199
|
-
notification_type: '
|
|
203
|
+
notification_type: 'wallet_activity',
|
|
204
|
+
notification_subtype: 'erc721_sent',
|
|
200
205
|
id: 'a4193058-9814-537e-9df4-79dcac727fb6',
|
|
201
206
|
created_at: '2023-11-15T11:08:17.895407Z',
|
|
202
207
|
unread: true,
|
|
@@ -247,7 +252,8 @@ exports.createMockNotificationERC721Sent = createMockNotificationERC721Sent;
|
|
|
247
252
|
function createMockNotificationERC721Received() {
|
|
248
253
|
const mockNotification = {
|
|
249
254
|
type: notification_schema_1.TRIGGER_TYPES.ERC721_RECEIVED,
|
|
250
|
-
notification_type: '
|
|
255
|
+
notification_type: 'wallet_activity',
|
|
256
|
+
notification_subtype: 'erc721_received',
|
|
251
257
|
id: '00a79d24-befa-57ed-a55a-9eb8696e1654',
|
|
252
258
|
created_at: '2023-11-14T17:40:52.319281Z',
|
|
253
259
|
unread: true,
|
|
@@ -298,7 +304,8 @@ exports.createMockNotificationERC721Received = createMockNotificationERC721Recei
|
|
|
298
304
|
function createMockNotificationERC1155Sent() {
|
|
299
305
|
const mockNotification = {
|
|
300
306
|
type: notification_schema_1.TRIGGER_TYPES.ERC1155_SENT,
|
|
301
|
-
notification_type: '
|
|
307
|
+
notification_type: 'wallet_activity',
|
|
308
|
+
notification_subtype: 'erc1155_sent',
|
|
302
309
|
id: 'a09ff9d1-623a-52ab-a3d4-c7c8c9a58362',
|
|
303
310
|
created_at: '2023-11-20T20:44:10.110706Z',
|
|
304
311
|
unread: true,
|
|
@@ -349,7 +356,8 @@ exports.createMockNotificationERC1155Sent = createMockNotificationERC1155Sent;
|
|
|
349
356
|
function createMockNotificationERC1155Received() {
|
|
350
357
|
const mockNotification = {
|
|
351
358
|
type: notification_schema_1.TRIGGER_TYPES.ERC1155_RECEIVED,
|
|
352
|
-
notification_type: '
|
|
359
|
+
notification_type: 'wallet_activity',
|
|
360
|
+
notification_subtype: 'erc1155_received',
|
|
353
361
|
id: 'b6b93c84-e8dc-54ed-9396-7ea50474843a',
|
|
354
362
|
created_at: '2023-11-20T20:44:10.110706Z',
|
|
355
363
|
unread: true,
|
|
@@ -400,7 +408,8 @@ exports.createMockNotificationERC1155Received = createMockNotificationERC1155Rec
|
|
|
400
408
|
function createMockNotificationMetaMaskSwapsCompleted() {
|
|
401
409
|
const mockNotification = {
|
|
402
410
|
type: notification_schema_1.TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,
|
|
403
|
-
notification_type: '
|
|
411
|
+
notification_type: 'wallet_activity',
|
|
412
|
+
notification_subtype: 'metamask_swap_completed',
|
|
404
413
|
id: '7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b',
|
|
405
414
|
created_at: '2023-10-18T13:58:49.854596Z',
|
|
406
415
|
unread: true,
|
|
@@ -457,7 +466,8 @@ exports.createMockNotificationMetaMaskSwapsCompleted = createMockNotificationMet
|
|
|
457
466
|
function createMockNotificationRocketPoolStakeCompleted() {
|
|
458
467
|
const mockNotification = {
|
|
459
468
|
type: notification_schema_1.TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,
|
|
460
|
-
notification_type: '
|
|
469
|
+
notification_type: 'wallet_activity',
|
|
470
|
+
notification_subtype: 'rocketpool_stake_completed',
|
|
461
471
|
id: 'c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9',
|
|
462
472
|
created_at: '2023-11-20T12:02:48.796824Z',
|
|
463
473
|
unread: true,
|
|
@@ -513,7 +523,8 @@ exports.createMockNotificationRocketPoolStakeCompleted = createMockNotificationR
|
|
|
513
523
|
function createMockNotificationRocketPoolUnStakeCompleted() {
|
|
514
524
|
const mockNotification = {
|
|
515
525
|
type: notification_schema_1.TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,
|
|
516
|
-
notification_type: '
|
|
526
|
+
notification_type: 'wallet_activity',
|
|
527
|
+
notification_subtype: 'rocketpool_unstake_completed',
|
|
517
528
|
id: '291ec897-f569-4837-b6c0-21001b198dff',
|
|
518
529
|
created_at: '2023-10-19T13:11:10.623042Z',
|
|
519
530
|
unread: true,
|
|
@@ -569,7 +580,8 @@ exports.createMockNotificationRocketPoolUnStakeCompleted = createMockNotificatio
|
|
|
569
580
|
function createMockNotificationLidoStakeCompleted() {
|
|
570
581
|
const mockNotification = {
|
|
571
582
|
type: notification_schema_1.TRIGGER_TYPES.LIDO_STAKE_COMPLETED,
|
|
572
|
-
notification_type: '
|
|
583
|
+
notification_type: 'wallet_activity',
|
|
584
|
+
notification_subtype: 'lido_stake_completed',
|
|
573
585
|
id: 'ec10d66a-f78f-461f-83c9-609aada8cc50',
|
|
574
586
|
created_at: '2023-11-02T22:28:49.970865Z',
|
|
575
587
|
unread: true,
|
|
@@ -625,7 +637,8 @@ exports.createMockNotificationLidoStakeCompleted = createMockNotificationLidoSta
|
|
|
625
637
|
function createMockNotificationLidoWithdrawalRequested() {
|
|
626
638
|
const mockNotification = {
|
|
627
639
|
type: notification_schema_1.TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,
|
|
628
|
-
notification_type: '
|
|
640
|
+
notification_type: 'wallet_activity',
|
|
641
|
+
notification_subtype: 'lido_withdrawal_requested',
|
|
629
642
|
id: 'ef003925-3379-4ba7-9e2d-8218690cadc9',
|
|
630
643
|
created_at: '2023-10-18T15:04:02.482526Z',
|
|
631
644
|
unread: true,
|
|
@@ -681,7 +694,8 @@ exports.createMockNotificationLidoWithdrawalRequested = createMockNotificationLi
|
|
|
681
694
|
function createMockNotificationLidoWithdrawalCompleted() {
|
|
682
695
|
const mockNotification = {
|
|
683
696
|
type: notification_schema_1.TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,
|
|
684
|
-
notification_type: '
|
|
697
|
+
notification_type: 'wallet_activity',
|
|
698
|
+
notification_subtype: 'lido_withdrawal_completed',
|
|
685
699
|
id: 'd73df14d-ce73-4f38-bad3-ab028154042f',
|
|
686
700
|
created_at: '2023-10-18T16:35:03.147606Z',
|
|
687
701
|
unread: true,
|
|
@@ -737,7 +751,8 @@ exports.createMockNotificationLidoWithdrawalCompleted = createMockNotificationLi
|
|
|
737
751
|
function createMockNotificationLidoReadyToBeWithdrawn() {
|
|
738
752
|
const mockNotification = {
|
|
739
753
|
type: notification_schema_1.TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,
|
|
740
|
-
notification_type: '
|
|
754
|
+
notification_type: 'wallet_activity',
|
|
755
|
+
notification_subtype: 'lido_stake_ready_to_be_withdrawn',
|
|
741
756
|
id: 'd73df14d-ce73-4f38-bad3-ab028154042e',
|
|
742
757
|
created_at: '2023-10-18T16:35:03.147606Z',
|
|
743
758
|
unread: true,
|
|
@@ -781,7 +796,8 @@ exports.createMockNotificationLidoReadyToBeWithdrawn = createMockNotificationLid
|
|
|
781
796
|
function createMockPlatformNotification() {
|
|
782
797
|
const mockNotification = {
|
|
783
798
|
type: notification_schema_1.TRIGGER_TYPES.PLATFORM,
|
|
784
|
-
notification_type: '
|
|
799
|
+
notification_type: 'perps',
|
|
800
|
+
notification_subtype: 'position_liquidated',
|
|
785
801
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
786
802
|
unread: true,
|
|
787
803
|
created_at: '2025-10-09T09:45:34.202Z',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-raw-notifications.cjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":";;;AAAA,8EAAiE;AAGjE;;;;GAIG;AACH,SAAgB,6BAA6B;IAC3C,MAAM,gBAAgB,GAA8B;QAClD,IAAI,EAAE,mCAAa,CAAC,QAAQ;QAC5B,iBAAiB,EAAE,UAAU;QAC7B,EAAE,EAAE,sCAAsC;QAC1C,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,sBAAsB;QAClC,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC;YACX,YAAY,EAAE,QAAQ;YACtB,eAAe,EAAE,sBAAsB;YACvC,OAAO,EACL,oEAAoE;YACtE,OAAO,EAAE,4CAA4C;YACrD,OAAO,EAAE;gBACP,IAAI,EAAE,UAAU;gBAChB,aAAa,EAAE,KAAK;gBACpB,cAAc,EAAE;oBACd,GAAG,EAAE,sBAAsB;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7B,EAAE,EAAE,sCAAsC;QAC1C,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,0BAA0B;QACtC,QAAQ,EAAE;YACR,SAAS,EACP,yHAAyH;YAC3H,KAAK,EAAE,kCAAkC;YACzC,IAAI,EAAE,iGAAiG;YACvG,GAAG,EAAE;gBACH,OAAO,EAAE,aAAa;gBACtB,IAAI,EAAE,iCAAiC;aACxC;SACF;KACF,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AApBD,wEAoBC;AAED;;;;GAIG;AACH,SAAgB,iCAAiC;IAC/C,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QAC1B,MAAM,YAAY,GAAG,6BAA6B,EAAE,CAAC;QACrD,YAAY,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;QAC5B,OAAO,YAAY,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC;AAND,8EAMC","sourcesContent":["import { TRIGGER_TYPES } from '../constants/notification-schema';\nimport type { NormalisedAPINotification } from '../types/notification-api/notification-api';\n\n/**\n * Mocking Utility - create a mock Eth sent notification\n *\n * @returns Mock raw Eth sent notification\n */\nexport function createMockNotificationEthSent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ETH_SENT,\n notification_type: 'on-chain',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa7',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'eth_sent',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n from: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n to: '0x881D40237659C251811CEC9c364ef91dC08D300D',\n amount: {\n usd: '670.64',\n eth: '0.005',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Eth Received notification\n *\n * @returns Mock raw Eth Received notification\n */\nexport function createMockNotificationEthReceived(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ETH_RECEIVED,\n notification_type: 'on-chain',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa8',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'eth_received',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n from: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n to: '0x881D40237659C251811CEC9c364ef91dC08D300D',\n amount: {\n usd: '670.64',\n eth: '808.000000000000000000',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC20 sent notification\n *\n * @returns Mock raw ERC20 sent notification\n */\nexport function createMockNotificationERC20Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC20_SENT,\n notification_type: 'on-chain',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa9',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'erc20_sent',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n to: '0xecc19e177d24551aa7ed6bc6fe566eca726cc8a9',\n from: '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae',\n token: {\n usd: '1.00',\n name: 'USDC',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdc.svg',\n amount: '4956250000',\n symbol: 'USDC',\n address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',\n decimals: '6',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC20 received notification\n *\n * @returns Mock raw ERC20 received notification\n */\nexport function createMockNotificationERC20Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC20_RECEIVED,\n notification_type: 'on-chain',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'erc20_received',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n to: '0xeae7380dd4cef6fbd1144f49e4d1e6964258a4f4',\n from: '0x51c72848c68a965f66fa7a88855f9f7784502a7f',\n token: {\n usd: '0.00',\n name: 'SHIBA INU',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/shib.svg',\n amount: '8382798736999999457296646144',\n symbol: 'SHIB',\n address: '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce',\n decimals: '18',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC721 sent notification\n *\n * @returns Mock raw ERC721 sent notification\n */\nexport function createMockNotificationERC721Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC721_SENT,\n notification_type: 'on-chain',\n id: 'a4193058-9814-537e-9df4-79dcac727fb6',\n created_at: '2023-11-15T11:08:17.895407Z',\n unread: true,\n payload: {\n block_number: 18576643,\n block_timestamp: '1700043467',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0xf47f628fe3bd2595e9ab384bfffc3859b448e451',\n nft: {\n name: 'Captainz #8680',\n image:\n 'https://i.seadn.io/s/raw/files/ae0fc06714ff7fb40217340d8a242c0e.gif?w=500&auto=format',\n token_id: '8680',\n collection: {\n name: 'The Captainz',\n image:\n 'https://i.seadn.io/gcs/files/6df4d75778066bce740050615bc84e21.png?w=500&auto=format',\n symbol: 'Captainz',\n address: '0x769272677fab02575e84945f03eca517acc544cc',\n },\n },\n from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',\n kind: 'erc721_sent',\n network_fee: {\n gas_price: '24550653274',\n native_token_price_in_usd: '1986.61',\n },\n },\n tx_hash:\n '0x0833c69fb41cf972a0f031fceca242939bc3fcf82b964b74606649abcad371bd',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC721 received notification\n *\n * @returns Mock raw ERC721 received notification\n */\nexport function createMockNotificationERC721Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC721_RECEIVED,\n notification_type: 'on-chain',\n id: '00a79d24-befa-57ed-a55a-9eb8696e1654',\n created_at: '2023-11-14T17:40:52.319281Z',\n unread: true,\n payload: {\n block_number: 18571446,\n block_timestamp: '1699980623',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0xba7f3daa8adfdad686574406ab9bd5d2f0a49d2e',\n nft: {\n name: 'The Plague #2722',\n image:\n 'https://i.seadn.io/s/raw/files/a96f90ec8ebf55a2300c66a0c46d6a16.png?w=500&auto=format',\n token_id: '2722',\n collection: {\n name: 'The Plague NFT',\n image:\n 'https://i.seadn.io/gcs/files/4577987a5ca45ca5118b2e31559ee4d1.jpg?w=500&auto=format',\n symbol: 'FROG',\n address: '0xc379e535caff250a01caa6c3724ed1359fe5c29b',\n },\n },\n from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',\n kind: 'erc721_received',\n network_fee: {\n gas_price: '53701898538',\n native_token_price_in_usd: '2047.01',\n },\n },\n tx_hash:\n '0xe554c9e29e6eeca8ba94da4d047334ba08b8eb9ca3b801dd69cec08dfdd4ae43',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC1155 sent notification\n *\n * @returns Mock raw ERC1155 sent notification\n */\nexport function createMockNotificationERC1155Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC1155_SENT,\n notification_type: 'on-chain',\n id: 'a09ff9d1-623a-52ab-a3d4-c7c8c9a58362',\n created_at: '2023-11-20T20:44:10.110706Z',\n unread: true,\n payload: {\n block_number: 18615206,\n block_timestamp: '1700510003',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',\n nft: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',\n token_id: '1',\n collection: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',\n symbol: 'TRUTH',\n address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',\n },\n },\n from: '0x0000000000000000000000000000000000000000',\n kind: 'erc1155_sent',\n network_fee: {\n gas_price: '33571446596',\n native_token_price_in_usd: '2038.88',\n },\n },\n tx_hash:\n '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC1155 received notification\n *\n * @returns Mock raw ERC1155 received notification\n */\nexport function createMockNotificationERC1155Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC1155_RECEIVED,\n notification_type: 'on-chain',\n id: 'b6b93c84-e8dc-54ed-9396-7ea50474843a',\n created_at: '2023-11-20T20:44:10.110706Z',\n unread: true,\n payload: {\n block_number: 18615206,\n block_timestamp: '1700510003',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',\n nft: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',\n token_id: '1',\n collection: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',\n symbol: 'TRUTH',\n address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',\n },\n },\n from: '0x0000000000000000000000000000000000000000',\n kind: 'erc1155_received',\n network_fee: {\n gas_price: '33571446596',\n native_token_price_in_usd: '2038.88',\n },\n },\n tx_hash:\n '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock MetaMask Swaps notification\n *\n * @returns Mock raw MetaMask Swaps notification\n */\nexport function createMockNotificationMetaMaskSwapsCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,\n notification_type: 'on-chain',\n id: '7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b',\n created_at: '2023-10-18T13:58:49.854596Z',\n unread: true,\n payload: {\n block_number: 18377666,\n block_timestamp: '1697637275',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'metamask_swap_completed',\n rate: '1558.27',\n token_in: {\n usd: '1576.73',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '9000000000000000',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n token_out: {\n usd: '1.00',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdt.svg',\n amount: '14024419',\n symbol: 'USDT',\n address: '0xdac17f958d2ee523a2206206994597c13d831ec7',\n decimals: '6',\n name: 'USDT',\n },\n network_fee: {\n gas_price: '15406129273',\n native_token_price_in_usd: '1576.73',\n },\n },\n tx_hash:\n '0xf69074290f3aa11bce567aabc9ca0df7a12559dfae1b80ba1a124e9dfe19ecc5',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock RocketPool Stake Completed notification\n *\n * @returns Mock raw RocketPool Stake Completed notification\n */\nexport function createMockNotificationRocketPoolStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,\n notification_type: 'on-chain',\n id: 'c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9',\n created_at: '2023-11-20T12:02:48.796824Z',\n unread: true,\n payload: {\n block_number: 18585057,\n block_timestamp: '1700145059',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'rocketpool_stake_completed',\n stake_in: {\n usd: '2031.86',\n name: 'Ethereum',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '190690478063438272',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n },\n stake_out: {\n usd: '2226.49',\n name: 'Rocket Pool ETH',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',\n amount: '175024360778165879',\n symbol: 'RETH',\n address: '0xae78736Cd615f374D3085123A210448E74Fc6393',\n decimals: '18',\n },\n network_fee: {\n gas_price: '36000000000',\n native_token_price_in_usd: '2031.86',\n },\n },\n tx_hash:\n '0xcfc0693bf47995907b0f46ef0644cf16dd9a0de797099b2e00fd481e1b2117d3',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock RocketPool Un-staked notification\n *\n * @returns Mock raw RocketPool Un-staked notification\n */\nexport function createMockNotificationRocketPoolUnStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,\n notification_type: 'on-chain',\n id: '291ec897-f569-4837-b6c0-21001b198dff',\n created_at: '2023-10-19T13:11:10.623042Z',\n unread: true,\n payload: {\n block_number: 18384336,\n block_timestamp: '1697718011',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'rocketpool_unstake_completed',\n stake_in: {\n usd: '1686.34',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',\n amount: '66608041413696770',\n symbol: 'RETH',\n address: '0xae78736Cd615f374D3085123A210448E74Fc6393',\n decimals: '18',\n name: 'Rocketpool Eth',\n },\n stake_out: {\n usd: '1553.75',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '72387843427700824',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '5656322987',\n native_token_price_in_usd: '1553.75',\n },\n },\n tx_hash:\n '0xc7972a7e409abfc62590ec90e633acd70b9b74e76ad02305be8bf133a0e22d5f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Stake Completed notification\n *\n * @returns Mock raw Lido Stake Completed notification\n */\nexport function createMockNotificationLidoStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_STAKE_COMPLETED,\n notification_type: 'on-chain',\n id: 'ec10d66a-f78f-461f-83c9-609aada8cc50',\n created_at: '2023-11-02T22:28:49.970865Z',\n unread: true,\n payload: {\n block_number: 18487118,\n block_timestamp: '1698961091',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_stake_completed',\n stake_in: {\n usd: '1806.33',\n name: 'Ethereum',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '330303634023928032',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n },\n stake_out: {\n usd: '1801.30',\n name: 'Liquid staked Ether 2.0',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '330303634023928032',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n },\n network_fee: {\n gas_price: '26536359866',\n native_token_price_in_usd: '1806.33',\n },\n },\n tx_hash:\n '0x8cc0fa805f7c3b1743b14f3b91c6b824113b094f26d4ccaf6a71ad8547ce6a0f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Requested notification\n *\n * @returns Mock raw Lido Withdrawal Requested notification\n */\nexport function createMockNotificationLidoWithdrawalRequested(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,\n notification_type: 'on-chain',\n id: 'ef003925-3379-4ba7-9e2d-8218690cadc9',\n created_at: '2023-10-18T15:04:02.482526Z',\n unread: true,\n payload: {\n block_number: 18377760,\n block_timestamp: '1697638415',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_withdrawal_requested',\n stake_in: {\n usd: '1568.54',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '97180668792218669859',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n name: 'Staked Eth',\n },\n stake_out: {\n usd: '1576.73',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '97180668792218669859',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '11658906980',\n native_token_price_in_usd: '1576.73',\n },\n },\n tx_hash:\n '0x58b5f82e084cb750ea174e02b20fbdfd2ba8d78053deac787f34fc38e5d427aa',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Completed notification\n *\n * @returns Mock raw Lido Withdrawal Completed notification\n */\nexport function createMockNotificationLidoWithdrawalCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,\n notification_type: 'on-chain',\n id: 'd73df14d-ce73-4f38-bad3-ab028154042f',\n created_at: '2023-10-18T16:35:03.147606Z',\n unread: true,\n payload: {\n block_number: 18378208,\n block_timestamp: '1697643851',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_withdrawal_completed',\n stake_in: {\n usd: '1570.23',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '35081997661451346',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n name: 'Staked Eth',\n },\n stake_out: {\n usd: '1571.74',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '35081997661451346',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '12699495150',\n native_token_price_in_usd: '1571.74',\n },\n },\n tx_hash:\n '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Ready notification\n *\n * @returns Mock raw Lido Withdrawal Ready notification\n */\nexport function createMockNotificationLidoReadyToBeWithdrawn(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,\n notification_type: 'on-chain',\n id: 'd73df14d-ce73-4f38-bad3-ab028154042e',\n created_at: '2023-10-18T16:35:03.147606Z',\n unread: true,\n payload: {\n block_number: 18378208,\n block_timestamp: '1697643851',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_stake_ready_to_be_withdrawn',\n request_id: '123456789',\n staked_eth: {\n address: '0x881D40237659C251811CEC9c364ef91dC08D300F',\n symbol: 'ETH',\n name: 'Ethereum',\n amount: '2.5',\n decimals: '18',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n usd: '10000.00',\n },\n },\n tx_hash:\n '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Generic Platform notification\n *\n * @returns Mock raw Generic Platform notification\n */\nexport function createMockPlatformNotification(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.PLATFORM,\n notification_type: 'platform',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',\n unread: true,\n created_at: '2025-10-09T09:45:34.202Z',\n template: {\n image_url:\n 'https://images.ctfassets.net/clixtyxoaeas/4rnpEzy1ATWRKVBOLxZ1Fm/a74dc1eed36d23d7ea6030383a4d5163/MetaMask-icon-fox.svg',\n title: 'This is a Platform Notification!',\n body: 'Teams can now build out their own notifications, and add an optional CTA (like this one below).',\n cta: {\n content: 'Get Started',\n link: 'https://metamask.io/get-started',\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - creates an array of raw on-chain notifications\n *\n * @returns Array of raw on-chain notifications\n */\nexport function createMockRawOnChainNotifications(): NormalisedAPINotification[] {\n return [1, 2, 3].map((id) => {\n const notification = createMockNotificationEthSent();\n notification.id += `-${id}`;\n return notification;\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"mock-raw-notifications.cjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":";;;AAAA,8EAAiE;AAGjE;;;;GAIG;AACH,SAAgB,6BAA6B;IAC3C,MAAM,gBAAgB,GAA8B;QAClD,IAAI,EAAE,mCAAa,CAAC,QAAQ;QAC5B,iBAAiB,EAAE,iBAAiB;QACpC,oBAAoB,EAAE,UAAU;QAChC,EAAE,EAAE,sCAAsC;QAC1C,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,sBAAsB;QAClC,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC;YACX,YAAY,EAAE,QAAQ;YACtB,eAAe,EAAE,sBAAsB;YACvC,OAAO,EACL,oEAAoE;YACtE,OAAO,EAAE,4CAA4C;YACrD,OAAO,EAAE;gBACP,IAAI,EAAE,UAAU;gBAChB,aAAa,EAAE,KAAK;gBACpB,cAAc,EAAE;oBACd,GAAG,EAAE,sBAAsB;oBAC3B,IAAI,EAAE,WAAW;iBAClB;aACF;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE;oBACX,SAAS,EAAE,cAAc;oBACzB,yBAAyB,EAAE,MAAM;iBAClC;gBACD,IAAI,EAAE,4CAA4C;gBAClD,EAAE,EAAE,4C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EAAoE;SACvE;KACF,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAzCD,oGAyCC;AAED;;;;GAIG;AACH,SAAgB,8BAA8B;IAC5C,MAAM,gBAAgB,GAA8B;QAClD,IAAI,EAAE,mCAAa,CAAC,QAAQ;QAC5B,iBAAiB,EAAE,OAAO;QAC1B,oBAAoB,EAAE,qBAAqB;QAC3C,EAAE,EAAE,sCAAsC;QAC1C,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,0BAA0B;QACtC,QAAQ,EAAE;YACR,SAAS,EACP,yHAAyH;YAC3H,KAAK,EAAE,kCAAkC;YACzC,IAAI,EAAE,iGAAiG;YACvG,GAAG,EAAE;gBACH,OAAO,EAAE,aAAa;gBACtB,IAAI,EAAE,iCAAiC;aACxC;SACF;KACF,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AArBD,wEAqBC;AAED;;;;GAIG;AACH,SAAgB,iCAAiC;IAC/C,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QAC1B,MAAM,YAAY,GAAG,6BAA6B,EAAE,CAAC;QACrD,YAAY,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;QAC5B,OAAO,YAAY,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC;AAND,8EAMC","sourcesContent":["import { TRIGGER_TYPES } from '../constants/notification-schema';\nimport type { NormalisedAPINotification } from '../types/notification-api/notification-api';\n\n/**\n * Mocking Utility - create a mock Eth sent notification\n *\n * @returns Mock raw Eth sent notification\n */\nexport function createMockNotificationEthSent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ETH_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'eth_sent',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa7',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'eth_sent',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n from: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n to: '0x881D40237659C251811CEC9c364ef91dC08D300D',\n amount: {\n usd: '670.64',\n eth: '0.005',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Eth Received notification\n *\n * @returns Mock raw Eth Received notification\n */\nexport function createMockNotificationEthReceived(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ETH_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'eth_received',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa8',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'eth_received',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n from: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n to: '0x881D40237659C251811CEC9c364ef91dC08D300D',\n amount: {\n usd: '670.64',\n eth: '808.000000000000000000',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC20 sent notification\n *\n * @returns Mock raw ERC20 sent notification\n */\nexport function createMockNotificationERC20Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC20_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc20_sent',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa9',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'erc20_sent',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n to: '0xecc19e177d24551aa7ed6bc6fe566eca726cc8a9',\n from: '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae',\n token: {\n usd: '1.00',\n name: 'USDC',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdc.svg',\n amount: '4956250000',\n symbol: 'USDC',\n address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',\n decimals: '6',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC20 received notification\n *\n * @returns Mock raw ERC20 received notification\n */\nexport function createMockNotificationERC20Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC20_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc20_received',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'erc20_received',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n to: '0xeae7380dd4cef6fbd1144f49e4d1e6964258a4f4',\n from: '0x51c72848c68a965f66fa7a88855f9f7784502a7f',\n token: {\n usd: '0.00',\n name: 'SHIBA INU',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/shib.svg',\n amount: '8382798736999999457296646144',\n symbol: 'SHIB',\n address: '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce',\n decimals: '18',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC721 sent notification\n *\n * @returns Mock raw ERC721 sent notification\n */\nexport function createMockNotificationERC721Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC721_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc721_sent',\n id: 'a4193058-9814-537e-9df4-79dcac727fb6',\n created_at: '2023-11-15T11:08:17.895407Z',\n unread: true,\n payload: {\n block_number: 18576643,\n block_timestamp: '1700043467',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0xf47f628fe3bd2595e9ab384bfffc3859b448e451',\n nft: {\n name: 'Captainz #8680',\n image:\n 'https://i.seadn.io/s/raw/files/ae0fc06714ff7fb40217340d8a242c0e.gif?w=500&auto=format',\n token_id: '8680',\n collection: {\n name: 'The Captainz',\n image:\n 'https://i.seadn.io/gcs/files/6df4d75778066bce740050615bc84e21.png?w=500&auto=format',\n symbol: 'Captainz',\n address: '0x769272677fab02575e84945f03eca517acc544cc',\n },\n },\n from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',\n kind: 'erc721_sent',\n network_fee: {\n gas_price: '24550653274',\n native_token_price_in_usd: '1986.61',\n },\n },\n tx_hash:\n '0x0833c69fb41cf972a0f031fceca242939bc3fcf82b964b74606649abcad371bd',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC721 received notification\n *\n * @returns Mock raw ERC721 received notification\n */\nexport function createMockNotificationERC721Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC721_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc721_received',\n id: '00a79d24-befa-57ed-a55a-9eb8696e1654',\n created_at: '2023-11-14T17:40:52.319281Z',\n unread: true,\n payload: {\n block_number: 18571446,\n block_timestamp: '1699980623',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0xba7f3daa8adfdad686574406ab9bd5d2f0a49d2e',\n nft: {\n name: 'The Plague #2722',\n image:\n 'https://i.seadn.io/s/raw/files/a96f90ec8ebf55a2300c66a0c46d6a16.png?w=500&auto=format',\n token_id: '2722',\n collection: {\n name: 'The Plague NFT',\n image:\n 'https://i.seadn.io/gcs/files/4577987a5ca45ca5118b2e31559ee4d1.jpg?w=500&auto=format',\n symbol: 'FROG',\n address: '0xc379e535caff250a01caa6c3724ed1359fe5c29b',\n },\n },\n from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',\n kind: 'erc721_received',\n network_fee: {\n gas_price: '53701898538',\n native_token_price_in_usd: '2047.01',\n },\n },\n tx_hash:\n '0xe554c9e29e6eeca8ba94da4d047334ba08b8eb9ca3b801dd69cec08dfdd4ae43',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC1155 sent notification\n *\n * @returns Mock raw ERC1155 sent notification\n */\nexport function createMockNotificationERC1155Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC1155_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc1155_sent',\n id: 'a09ff9d1-623a-52ab-a3d4-c7c8c9a58362',\n created_at: '2023-11-20T20:44:10.110706Z',\n unread: true,\n payload: {\n block_number: 18615206,\n block_timestamp: '1700510003',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',\n nft: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',\n token_id: '1',\n collection: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',\n symbol: 'TRUTH',\n address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',\n },\n },\n from: '0x0000000000000000000000000000000000000000',\n kind: 'erc1155_sent',\n network_fee: {\n gas_price: '33571446596',\n native_token_price_in_usd: '2038.88',\n },\n },\n tx_hash:\n '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC1155 received notification\n *\n * @returns Mock raw ERC1155 received notification\n */\nexport function createMockNotificationERC1155Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC1155_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc1155_received',\n id: 'b6b93c84-e8dc-54ed-9396-7ea50474843a',\n created_at: '2023-11-20T20:44:10.110706Z',\n unread: true,\n payload: {\n block_number: 18615206,\n block_timestamp: '1700510003',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',\n nft: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',\n token_id: '1',\n collection: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',\n symbol: 'TRUTH',\n address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',\n },\n },\n from: '0x0000000000000000000000000000000000000000',\n kind: 'erc1155_received',\n network_fee: {\n gas_price: '33571446596',\n native_token_price_in_usd: '2038.88',\n },\n },\n tx_hash:\n '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock MetaMask Swaps notification\n *\n * @returns Mock raw MetaMask Swaps notification\n */\nexport function createMockNotificationMetaMaskSwapsCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'metamask_swap_completed',\n id: '7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b',\n created_at: '2023-10-18T13:58:49.854596Z',\n unread: true,\n payload: {\n block_number: 18377666,\n block_timestamp: '1697637275',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'metamask_swap_completed',\n rate: '1558.27',\n token_in: {\n usd: '1576.73',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '9000000000000000',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n token_out: {\n usd: '1.00',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdt.svg',\n amount: '14024419',\n symbol: 'USDT',\n address: '0xdac17f958d2ee523a2206206994597c13d831ec7',\n decimals: '6',\n name: 'USDT',\n },\n network_fee: {\n gas_price: '15406129273',\n native_token_price_in_usd: '1576.73',\n },\n },\n tx_hash:\n '0xf69074290f3aa11bce567aabc9ca0df7a12559dfae1b80ba1a124e9dfe19ecc5',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock RocketPool Stake Completed notification\n *\n * @returns Mock raw RocketPool Stake Completed notification\n */\nexport function createMockNotificationRocketPoolStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'rocketpool_stake_completed',\n id: 'c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9',\n created_at: '2023-11-20T12:02:48.796824Z',\n unread: true,\n payload: {\n block_number: 18585057,\n block_timestamp: '1700145059',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'rocketpool_stake_completed',\n stake_in: {\n usd: '2031.86',\n name: 'Ethereum',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '190690478063438272',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n },\n stake_out: {\n usd: '2226.49',\n name: 'Rocket Pool ETH',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',\n amount: '175024360778165879',\n symbol: 'RETH',\n address: '0xae78736Cd615f374D3085123A210448E74Fc6393',\n decimals: '18',\n },\n network_fee: {\n gas_price: '36000000000',\n native_token_price_in_usd: '2031.86',\n },\n },\n tx_hash:\n '0xcfc0693bf47995907b0f46ef0644cf16dd9a0de797099b2e00fd481e1b2117d3',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock RocketPool Un-staked notification\n *\n * @returns Mock raw RocketPool Un-staked notification\n */\nexport function createMockNotificationRocketPoolUnStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'rocketpool_unstake_completed',\n id: '291ec897-f569-4837-b6c0-21001b198dff',\n created_at: '2023-10-19T13:11:10.623042Z',\n unread: true,\n payload: {\n block_number: 18384336,\n block_timestamp: '1697718011',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'rocketpool_unstake_completed',\n stake_in: {\n usd: '1686.34',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',\n amount: '66608041413696770',\n symbol: 'RETH',\n address: '0xae78736Cd615f374D3085123A210448E74Fc6393',\n decimals: '18',\n name: 'Rocketpool Eth',\n },\n stake_out: {\n usd: '1553.75',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '72387843427700824',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '5656322987',\n native_token_price_in_usd: '1553.75',\n },\n },\n tx_hash:\n '0xc7972a7e409abfc62590ec90e633acd70b9b74e76ad02305be8bf133a0e22d5f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Stake Completed notification\n *\n * @returns Mock raw Lido Stake Completed notification\n */\nexport function createMockNotificationLidoStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_STAKE_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_stake_completed',\n id: 'ec10d66a-f78f-461f-83c9-609aada8cc50',\n created_at: '2023-11-02T22:28:49.970865Z',\n unread: true,\n payload: {\n block_number: 18487118,\n block_timestamp: '1698961091',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_stake_completed',\n stake_in: {\n usd: '1806.33',\n name: 'Ethereum',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '330303634023928032',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n },\n stake_out: {\n usd: '1801.30',\n name: 'Liquid staked Ether 2.0',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '330303634023928032',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n },\n network_fee: {\n gas_price: '26536359866',\n native_token_price_in_usd: '1806.33',\n },\n },\n tx_hash:\n '0x8cc0fa805f7c3b1743b14f3b91c6b824113b094f26d4ccaf6a71ad8547ce6a0f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Requested notification\n *\n * @returns Mock raw Lido Withdrawal Requested notification\n */\nexport function createMockNotificationLidoWithdrawalRequested(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_withdrawal_requested',\n id: 'ef003925-3379-4ba7-9e2d-8218690cadc9',\n created_at: '2023-10-18T15:04:02.482526Z',\n unread: true,\n payload: {\n block_number: 18377760,\n block_timestamp: '1697638415',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_withdrawal_requested',\n stake_in: {\n usd: '1568.54',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '97180668792218669859',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n name: 'Staked Eth',\n },\n stake_out: {\n usd: '1576.73',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '97180668792218669859',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '11658906980',\n native_token_price_in_usd: '1576.73',\n },\n },\n tx_hash:\n '0x58b5f82e084cb750ea174e02b20fbdfd2ba8d78053deac787f34fc38e5d427aa',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Completed notification\n *\n * @returns Mock raw Lido Withdrawal Completed notification\n */\nexport function createMockNotificationLidoWithdrawalCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_withdrawal_completed',\n id: 'd73df14d-ce73-4f38-bad3-ab028154042f',\n created_at: '2023-10-18T16:35:03.147606Z',\n unread: true,\n payload: {\n block_number: 18378208,\n block_timestamp: '1697643851',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_withdrawal_completed',\n stake_in: {\n usd: '1570.23',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '35081997661451346',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n name: 'Staked Eth',\n },\n stake_out: {\n usd: '1571.74',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '35081997661451346',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '12699495150',\n native_token_price_in_usd: '1571.74',\n },\n },\n tx_hash:\n '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Ready notification\n *\n * @returns Mock raw Lido Withdrawal Ready notification\n */\nexport function createMockNotificationLidoReadyToBeWithdrawn(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_stake_ready_to_be_withdrawn',\n id: 'd73df14d-ce73-4f38-bad3-ab028154042e',\n created_at: '2023-10-18T16:35:03.147606Z',\n unread: true,\n payload: {\n block_number: 18378208,\n block_timestamp: '1697643851',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_stake_ready_to_be_withdrawn',\n request_id: '123456789',\n staked_eth: {\n address: '0x881D40237659C251811CEC9c364ef91dC08D300F',\n symbol: 'ETH',\n name: 'Ethereum',\n amount: '2.5',\n decimals: '18',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n usd: '10000.00',\n },\n },\n tx_hash:\n '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Generic Platform notification\n *\n * @returns Mock raw Generic Platform notification\n */\nexport function createMockPlatformNotification(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.PLATFORM,\n notification_type: 'perps',\n notification_subtype: 'position_liquidated',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',\n unread: true,\n created_at: '2025-10-09T09:45:34.202Z',\n template: {\n image_url:\n 'https://images.ctfassets.net/clixtyxoaeas/4rnpEzy1ATWRKVBOLxZ1Fm/a74dc1eed36d23d7ea6030383a4d5163/MetaMask-icon-fox.svg',\n title: 'This is a Platform Notification!',\n body: 'Teams can now build out their own notifications, and add an optional CTA (like this one below).',\n cta: {\n content: 'Get Started',\n link: 'https://metamask.io/get-started',\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - creates an array of raw on-chain notifications\n *\n * @returns Array of raw on-chain notifications\n */\nexport function createMockRawOnChainNotifications(): NormalisedAPINotification[] {\n return [1, 2, 3].map((id) => {\n const notification = createMockNotificationEthSent();\n notification.id += `-${id}`;\n return notification;\n });\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-raw-notifications.d.cts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,uDAAmD;AAE5F;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,yBAAyB,
|
|
1
|
+
{"version":3,"file":"mock-raw-notifications.d.cts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,uDAAmD;AAE5F;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,yBAAyB,CAwCzE;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAwC7E;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,yBAAyB,CA8C3E;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,yBAAyB,CA8C/E;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,IAAI,yBAAyB,CAiD5E;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,IAAI,yBAAyB,CAiDhF;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAiD7E;AAED;;;;GAIG;AACH,wBAAgB,qCAAqC,IAAI,yBAAyB,CAiDjF;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,IAAI,yBAAyB,CAuDxF;AAED;;;;GAIG;AACH,wBAAgB,8CAA8C,IAAI,yBAAyB,CAsD1F;AAED;;;;GAIG;AACH,wBAAgB,gDAAgD,IAAI,yBAAyB,CAsD5F;AAED;;;;GAIG;AACH,wBAAgB,wCAAwC,IAAI,yBAAyB,CAsDpF;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,IAAI,yBAAyB,CAsDzF;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,IAAI,yBAAyB,CAsDzF;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,IAAI,yBAAyB,CAyCxF;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,yBAAyB,CAqB1E;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,EAAE,CAM/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-raw-notifications.d.mts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,uDAAmD;AAE5F;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,yBAAyB,
|
|
1
|
+
{"version":3,"file":"mock-raw-notifications.d.mts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,uDAAmD;AAE5F;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,yBAAyB,CAwCzE;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAwC7E;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,yBAAyB,CA8C3E;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,yBAAyB,CA8C/E;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,IAAI,yBAAyB,CAiD5E;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,IAAI,yBAAyB,CAiDhF;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAiD7E;AAED;;;;GAIG;AACH,wBAAgB,qCAAqC,IAAI,yBAAyB,CAiDjF;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,IAAI,yBAAyB,CAuDxF;AAED;;;;GAIG;AACH,wBAAgB,8CAA8C,IAAI,yBAAyB,CAsD1F;AAED;;;;GAIG;AACH,wBAAgB,gDAAgD,IAAI,yBAAyB,CAsD5F;AAED;;;;GAIG;AACH,wBAAgB,wCAAwC,IAAI,yBAAyB,CAsDpF;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,IAAI,yBAAyB,CAsDzF;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,IAAI,yBAAyB,CAsDzF;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,IAAI,yBAAyB,CAyCxF;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,yBAAyB,CAqB1E;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,EAAE,CAM/E"}
|
|
@@ -7,7 +7,8 @@ import { TRIGGER_TYPES } from "../constants/notification-schema.mjs";
|
|
|
7
7
|
export function createMockNotificationEthSent() {
|
|
8
8
|
const mockNotification = {
|
|
9
9
|
type: TRIGGER_TYPES.ETH_SENT,
|
|
10
|
-
notification_type: '
|
|
10
|
+
notification_type: 'wallet_activity',
|
|
11
|
+
notification_subtype: 'eth_sent',
|
|
11
12
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa7',
|
|
12
13
|
unread: true,
|
|
13
14
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -50,7 +51,8 @@ export function createMockNotificationEthSent() {
|
|
|
50
51
|
export function createMockNotificationEthReceived() {
|
|
51
52
|
const mockNotification = {
|
|
52
53
|
type: TRIGGER_TYPES.ETH_RECEIVED,
|
|
53
|
-
notification_type: '
|
|
54
|
+
notification_type: 'wallet_activity',
|
|
55
|
+
notification_subtype: 'eth_received',
|
|
54
56
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa8',
|
|
55
57
|
unread: true,
|
|
56
58
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -93,7 +95,8 @@ export function createMockNotificationEthReceived() {
|
|
|
93
95
|
export function createMockNotificationERC20Sent() {
|
|
94
96
|
const mockNotification = {
|
|
95
97
|
type: TRIGGER_TYPES.ERC20_SENT,
|
|
96
|
-
notification_type: '
|
|
98
|
+
notification_type: 'wallet_activity',
|
|
99
|
+
notification_subtype: 'erc20_sent',
|
|
97
100
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa9',
|
|
98
101
|
unread: true,
|
|
99
102
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -141,7 +144,8 @@ export function createMockNotificationERC20Sent() {
|
|
|
141
144
|
export function createMockNotificationERC20Received() {
|
|
142
145
|
const mockNotification = {
|
|
143
146
|
type: TRIGGER_TYPES.ERC20_RECEIVED,
|
|
144
|
-
notification_type: '
|
|
147
|
+
notification_type: 'wallet_activity',
|
|
148
|
+
notification_subtype: 'erc20_received',
|
|
145
149
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
146
150
|
unread: true,
|
|
147
151
|
created_at: '2022-03-01T00:00:00Z',
|
|
@@ -189,7 +193,8 @@ export function createMockNotificationERC20Received() {
|
|
|
189
193
|
export function createMockNotificationERC721Sent() {
|
|
190
194
|
const mockNotification = {
|
|
191
195
|
type: TRIGGER_TYPES.ERC721_SENT,
|
|
192
|
-
notification_type: '
|
|
196
|
+
notification_type: 'wallet_activity',
|
|
197
|
+
notification_subtype: 'erc721_sent',
|
|
193
198
|
id: 'a4193058-9814-537e-9df4-79dcac727fb6',
|
|
194
199
|
created_at: '2023-11-15T11:08:17.895407Z',
|
|
195
200
|
unread: true,
|
|
@@ -239,7 +244,8 @@ export function createMockNotificationERC721Sent() {
|
|
|
239
244
|
export function createMockNotificationERC721Received() {
|
|
240
245
|
const mockNotification = {
|
|
241
246
|
type: TRIGGER_TYPES.ERC721_RECEIVED,
|
|
242
|
-
notification_type: '
|
|
247
|
+
notification_type: 'wallet_activity',
|
|
248
|
+
notification_subtype: 'erc721_received',
|
|
243
249
|
id: '00a79d24-befa-57ed-a55a-9eb8696e1654',
|
|
244
250
|
created_at: '2023-11-14T17:40:52.319281Z',
|
|
245
251
|
unread: true,
|
|
@@ -289,7 +295,8 @@ export function createMockNotificationERC721Received() {
|
|
|
289
295
|
export function createMockNotificationERC1155Sent() {
|
|
290
296
|
const mockNotification = {
|
|
291
297
|
type: TRIGGER_TYPES.ERC1155_SENT,
|
|
292
|
-
notification_type: '
|
|
298
|
+
notification_type: 'wallet_activity',
|
|
299
|
+
notification_subtype: 'erc1155_sent',
|
|
293
300
|
id: 'a09ff9d1-623a-52ab-a3d4-c7c8c9a58362',
|
|
294
301
|
created_at: '2023-11-20T20:44:10.110706Z',
|
|
295
302
|
unread: true,
|
|
@@ -339,7 +346,8 @@ export function createMockNotificationERC1155Sent() {
|
|
|
339
346
|
export function createMockNotificationERC1155Received() {
|
|
340
347
|
const mockNotification = {
|
|
341
348
|
type: TRIGGER_TYPES.ERC1155_RECEIVED,
|
|
342
|
-
notification_type: '
|
|
349
|
+
notification_type: 'wallet_activity',
|
|
350
|
+
notification_subtype: 'erc1155_received',
|
|
343
351
|
id: 'b6b93c84-e8dc-54ed-9396-7ea50474843a',
|
|
344
352
|
created_at: '2023-11-20T20:44:10.110706Z',
|
|
345
353
|
unread: true,
|
|
@@ -389,7 +397,8 @@ export function createMockNotificationERC1155Received() {
|
|
|
389
397
|
export function createMockNotificationMetaMaskSwapsCompleted() {
|
|
390
398
|
const mockNotification = {
|
|
391
399
|
type: TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,
|
|
392
|
-
notification_type: '
|
|
400
|
+
notification_type: 'wallet_activity',
|
|
401
|
+
notification_subtype: 'metamask_swap_completed',
|
|
393
402
|
id: '7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b',
|
|
394
403
|
created_at: '2023-10-18T13:58:49.854596Z',
|
|
395
404
|
unread: true,
|
|
@@ -445,7 +454,8 @@ export function createMockNotificationMetaMaskSwapsCompleted() {
|
|
|
445
454
|
export function createMockNotificationRocketPoolStakeCompleted() {
|
|
446
455
|
const mockNotification = {
|
|
447
456
|
type: TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,
|
|
448
|
-
notification_type: '
|
|
457
|
+
notification_type: 'wallet_activity',
|
|
458
|
+
notification_subtype: 'rocketpool_stake_completed',
|
|
449
459
|
id: 'c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9',
|
|
450
460
|
created_at: '2023-11-20T12:02:48.796824Z',
|
|
451
461
|
unread: true,
|
|
@@ -500,7 +510,8 @@ export function createMockNotificationRocketPoolStakeCompleted() {
|
|
|
500
510
|
export function createMockNotificationRocketPoolUnStakeCompleted() {
|
|
501
511
|
const mockNotification = {
|
|
502
512
|
type: TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,
|
|
503
|
-
notification_type: '
|
|
513
|
+
notification_type: 'wallet_activity',
|
|
514
|
+
notification_subtype: 'rocketpool_unstake_completed',
|
|
504
515
|
id: '291ec897-f569-4837-b6c0-21001b198dff',
|
|
505
516
|
created_at: '2023-10-19T13:11:10.623042Z',
|
|
506
517
|
unread: true,
|
|
@@ -555,7 +566,8 @@ export function createMockNotificationRocketPoolUnStakeCompleted() {
|
|
|
555
566
|
export function createMockNotificationLidoStakeCompleted() {
|
|
556
567
|
const mockNotification = {
|
|
557
568
|
type: TRIGGER_TYPES.LIDO_STAKE_COMPLETED,
|
|
558
|
-
notification_type: '
|
|
569
|
+
notification_type: 'wallet_activity',
|
|
570
|
+
notification_subtype: 'lido_stake_completed',
|
|
559
571
|
id: 'ec10d66a-f78f-461f-83c9-609aada8cc50',
|
|
560
572
|
created_at: '2023-11-02T22:28:49.970865Z',
|
|
561
573
|
unread: true,
|
|
@@ -610,7 +622,8 @@ export function createMockNotificationLidoStakeCompleted() {
|
|
|
610
622
|
export function createMockNotificationLidoWithdrawalRequested() {
|
|
611
623
|
const mockNotification = {
|
|
612
624
|
type: TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,
|
|
613
|
-
notification_type: '
|
|
625
|
+
notification_type: 'wallet_activity',
|
|
626
|
+
notification_subtype: 'lido_withdrawal_requested',
|
|
614
627
|
id: 'ef003925-3379-4ba7-9e2d-8218690cadc9',
|
|
615
628
|
created_at: '2023-10-18T15:04:02.482526Z',
|
|
616
629
|
unread: true,
|
|
@@ -665,7 +678,8 @@ export function createMockNotificationLidoWithdrawalRequested() {
|
|
|
665
678
|
export function createMockNotificationLidoWithdrawalCompleted() {
|
|
666
679
|
const mockNotification = {
|
|
667
680
|
type: TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,
|
|
668
|
-
notification_type: '
|
|
681
|
+
notification_type: 'wallet_activity',
|
|
682
|
+
notification_subtype: 'lido_withdrawal_completed',
|
|
669
683
|
id: 'd73df14d-ce73-4f38-bad3-ab028154042f',
|
|
670
684
|
created_at: '2023-10-18T16:35:03.147606Z',
|
|
671
685
|
unread: true,
|
|
@@ -720,7 +734,8 @@ export function createMockNotificationLidoWithdrawalCompleted() {
|
|
|
720
734
|
export function createMockNotificationLidoReadyToBeWithdrawn() {
|
|
721
735
|
const mockNotification = {
|
|
722
736
|
type: TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,
|
|
723
|
-
notification_type: '
|
|
737
|
+
notification_type: 'wallet_activity',
|
|
738
|
+
notification_subtype: 'lido_stake_ready_to_be_withdrawn',
|
|
724
739
|
id: 'd73df14d-ce73-4f38-bad3-ab028154042e',
|
|
725
740
|
created_at: '2023-10-18T16:35:03.147606Z',
|
|
726
741
|
unread: true,
|
|
@@ -763,7 +778,8 @@ export function createMockNotificationLidoReadyToBeWithdrawn() {
|
|
|
763
778
|
export function createMockPlatformNotification() {
|
|
764
779
|
const mockNotification = {
|
|
765
780
|
type: TRIGGER_TYPES.PLATFORM,
|
|
766
|
-
notification_type: '
|
|
781
|
+
notification_type: 'perps',
|
|
782
|
+
notification_subtype: 'position_liquidated',
|
|
767
783
|
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
768
784
|
unread: true,
|
|
769
785
|
created_at: '2025-10-09T09:45:34.202Z',
|