@metamask/notification-services-controller 19.0.0 → 20.0.0
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 +25 -1
- package/dist/NotificationServicesController/NotificationServicesController.cjs +17 -38
- package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -1
- package/dist/NotificationServicesController/NotificationServicesController.d.cts +2 -2
- package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -1
- package/dist/NotificationServicesController/NotificationServicesController.d.mts +2 -2
- package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -1
- package/dist/NotificationServicesController/NotificationServicesController.mjs +17 -15
- package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.cjs +4 -14
- package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.d.cts +3 -13
- package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.d.mts +3 -13
- package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.mjs +3 -13
- package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs +427 -529
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.cts +20 -50
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.cts.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts +20 -50
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts.map +1 -1
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs +424 -521
- package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/mocks/mockResponses.cjs +5 -5
- package/dist/NotificationServicesController/mocks/mockResponses.cjs.map +1 -1
- package/dist/NotificationServicesController/mocks/mockResponses.d.cts +2 -2
- package/dist/NotificationServicesController/mocks/mockResponses.d.cts.map +1 -1
- package/dist/NotificationServicesController/mocks/mockResponses.d.mts +2 -2
- package/dist/NotificationServicesController/mocks/mockResponses.d.mts.map +1 -1
- package/dist/NotificationServicesController/mocks/mockResponses.mjs +1 -1
- package/dist/NotificationServicesController/mocks/mockResponses.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/index.cjs +1 -1
- package/dist/NotificationServicesController/processors/index.cjs.map +1 -1
- package/dist/NotificationServicesController/processors/index.d.cts +1 -1
- package/dist/NotificationServicesController/processors/index.d.cts.map +1 -1
- package/dist/NotificationServicesController/processors/index.d.mts +1 -1
- package/dist/NotificationServicesController/processors/index.d.mts.map +1 -1
- package/dist/NotificationServicesController/processors/index.mjs +1 -1
- package/dist/NotificationServicesController/processors/index.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-api-notifications.cjs +22 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.d.cts +10 -0
- 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.mjs +18 -0
- package/dist/NotificationServicesController/processors/process-api-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +2 -7
- package/dist/NotificationServicesController/processors/process-feature-announcement.cjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +1 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +1 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +1 -6
- package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.cjs +3 -3
- package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.d.cts +398 -458
- package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.d.mts +398 -458
- package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.mjs +4 -4
- package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/services/{onchain-notifications.cjs → api-notifications.cjs} +28 -15
- package/dist/NotificationServicesController/services/api-notifications.cjs.map +1 -0
- package/dist/NotificationServicesController/services/{onchain-notifications.d.cts → api-notifications.d.cts} +9 -7
- package/dist/NotificationServicesController/services/api-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/{onchain-notifications.d.mts → api-notifications.d.mts} +9 -7
- package/dist/NotificationServicesController/services/api-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/{onchain-notifications.mjs → api-notifications.mjs} +26 -13
- package/dist/NotificationServicesController/services/api-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/services/feature-announcements.cjs.map +1 -1
- package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -1
- package/dist/NotificationServicesController/services/notification-config-cache.cjs.map +1 -1
- package/dist/NotificationServicesController/services/notification-config-cache.mjs.map +1 -1
- package/dist/NotificationServicesController/services/perp-notifications.cjs +0 -1
- package/dist/NotificationServicesController/services/perp-notifications.cjs.map +1 -1
- package/dist/NotificationServicesController/services/perp-notifications.d.cts.map +1 -1
- package/dist/NotificationServicesController/services/perp-notifications.d.mts.map +1 -1
- package/dist/NotificationServicesController/services/perp-notifications.mjs +0 -1
- package/dist/NotificationServicesController/services/perp-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/types/index.cjs.map +1 -1
- package/dist/NotificationServicesController/types/index.d.cts +1 -1
- package/dist/NotificationServicesController/types/index.d.cts.map +1 -1
- package/dist/NotificationServicesController/types/index.d.mts +1 -1
- package/dist/NotificationServicesController/types/index.d.mts.map +1 -1
- package/dist/NotificationServicesController/types/index.mjs.map +1 -1
- package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -1
- package/dist/NotificationServicesController/types/notification/notification.d.cts +3 -11
- package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -1
- package/dist/NotificationServicesController/types/notification/notification.d.mts +3 -11
- package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -1
- package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -1
- 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.map +1 -0
- package/dist/NotificationServicesController/types/{on-chain-notification/on-chain-notification.cjs → notification-api/notification-api.cjs} +1 -1
- package/dist/NotificationServicesController/types/notification-api/notification-api.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts +64 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts +64 -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.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/schema.d.cts +365 -0
- package/dist/NotificationServicesController/types/notification-api/schema.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/schema.d.mts +365 -0
- package/dist/NotificationServicesController/types/notification-api/schema.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification-api/schema.mjs.map +1 -0
- package/dist/NotificationServicesController/ui/constants.d.cts +27 -27
- package/dist/NotificationServicesController/ui/constants.d.mts +27 -27
- package/dist/NotificationServicesController/utils/isVersionInBounds.cjs.map +1 -1
- package/dist/NotificationServicesController/utils/isVersionInBounds.mjs.map +1 -1
- 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.cts +2 -0
- 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.mjs +8 -0
- package/dist/NotificationServicesController/utils/should-auto-expire.mjs.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -1
- package/dist/NotificationServicesPushController/services/push/push-web.cjs +5 -2
- package/dist/NotificationServicesPushController/services/push/push-web.cjs.map +1 -1
- package/dist/NotificationServicesPushController/services/push/push-web.d.cts.map +1 -1
- package/dist/NotificationServicesPushController/services/push/push-web.d.mts.map +1 -1
- package/dist/NotificationServicesPushController/services/push/push-web.mjs +6 -3
- package/dist/NotificationServicesPushController/services/push/push-web.mjs.map +1 -1
- package/dist/NotificationServicesPushController/services/services.cjs.map +1 -1
- package/dist/NotificationServicesPushController/services/services.mjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +51 -43
- package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts +4 -2
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +4 -2
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +51 -43
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -1
- package/dist/NotificationServicesPushController/web/push-utils.cjs +5 -2
- package/dist/NotificationServicesPushController/web/push-utils.cjs.map +1 -1
- package/dist/NotificationServicesPushController/web/push-utils.d.cts.map +1 -1
- package/dist/NotificationServicesPushController/web/push-utils.d.mts.map +1 -1
- package/dist/NotificationServicesPushController/web/push-utils.mjs +6 -3
- package/dist/NotificationServicesPushController/web/push-utils.mjs.map +1 -1
- package/dist/shared/is-onchain-notification.cjs +1 -2
- package/dist/shared/is-onchain-notification.cjs.map +1 -1
- package/dist/shared/is-onchain-notification.d.cts.map +1 -1
- package/dist/shared/is-onchain-notification.d.mts.map +1 -1
- package/dist/shared/is-onchain-notification.mjs +1 -2
- package/dist/shared/is-onchain-notification.mjs.map +1 -1
- package/dist/shared/to-raw-notification.cjs +22 -6
- package/dist/shared/to-raw-notification.cjs.map +1 -1
- package/dist/shared/to-raw-notification.d.cts +2 -2
- package/dist/shared/to-raw-notification.d.cts.map +1 -1
- package/dist/shared/to-raw-notification.d.mts +2 -2
- package/dist/shared/to-raw-notification.d.mts.map +1 -1
- package/dist/shared/to-raw-notification.mjs +20 -4
- package/dist/shared/to-raw-notification.mjs.map +1 -1
- package/package.json +5 -3
- package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs +0 -19
- package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs.map +0 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.cts +0 -10
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.cts.map +0 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts +0 -10
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts.map +0 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +0 -15
- package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs.map +0 -1
- package/dist/NotificationServicesController/services/onchain-notifications.cjs.map +0 -1
- package/dist/NotificationServicesController/services/onchain-notifications.d.cts.map +0 -1
- package/dist/NotificationServicesController/services/onchain-notifications.d.mts.map +0 -1
- package/dist/NotificationServicesController/services/onchain-notifications.mjs.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/index.cjs.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts +0 -2
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts +0 -2
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/index.mjs.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts +0 -49
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts +0 -49
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs +0 -2
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.cts +0 -681
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.cts.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts +0 -681
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs.map +0 -1
- /package/dist/NotificationServicesController/types/{on-chain-notification → notification-api}/index.cjs +0 -0
- /package/dist/NotificationServicesController/types/{on-chain-notification → notification-api}/index.mjs +0 -0
- /package/dist/NotificationServicesController/types/{on-chain-notification → notification-api}/schema.cjs +0 -0
- /package/dist/NotificationServicesController/types/{on-chain-notification → notification-api}/schema.mjs +0 -0
|
@@ -25,401 +25,425 @@ export declare const processAndFilterNotifications: (ns: RawNotificationUnion[],
|
|
|
25
25
|
isRead: boolean;
|
|
26
26
|
} | {
|
|
27
27
|
id: string;
|
|
28
|
-
|
|
29
|
-
trigger_id: string;
|
|
30
|
-
chain_id: number;
|
|
31
|
-
block_number: number;
|
|
32
|
-
block_timestamp: string;
|
|
33
|
-
tx_hash: string;
|
|
28
|
+
notification_type: "on-chain";
|
|
34
29
|
unread: boolean;
|
|
35
30
|
created_at: string;
|
|
36
31
|
type: TRIGGER_TYPES.METAMASK_SWAP_COMPLETED;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
32
|
+
payload: {
|
|
33
|
+
address: string;
|
|
34
|
+
chain_id: number;
|
|
35
|
+
block_number: number;
|
|
36
|
+
block_timestamp: string;
|
|
37
|
+
tx_hash: string;
|
|
38
|
+
data: {
|
|
39
|
+
kind: "metamask_swap_completed";
|
|
40
|
+
network_fee: {
|
|
41
|
+
gas_price: string;
|
|
42
|
+
native_token_price_in_usd: string;
|
|
43
|
+
};
|
|
44
|
+
rate: string;
|
|
45
|
+
token_in: {
|
|
46
|
+
address: string;
|
|
47
|
+
symbol: string;
|
|
48
|
+
name: string;
|
|
49
|
+
amount: string;
|
|
50
|
+
decimals: string;
|
|
51
|
+
image: string;
|
|
52
|
+
usd: string;
|
|
53
|
+
};
|
|
54
|
+
token_out: {
|
|
55
|
+
address: string;
|
|
56
|
+
symbol: string;
|
|
57
|
+
name: string;
|
|
58
|
+
amount: string;
|
|
59
|
+
decimals: string;
|
|
60
|
+
image: string;
|
|
61
|
+
usd: string;
|
|
62
|
+
};
|
|
61
63
|
};
|
|
62
64
|
};
|
|
63
65
|
createdAt: string;
|
|
64
66
|
isRead: boolean;
|
|
65
67
|
} | {
|
|
66
68
|
id: string;
|
|
67
|
-
|
|
68
|
-
trigger_id: string;
|
|
69
|
-
chain_id: number;
|
|
70
|
-
block_number: number;
|
|
71
|
-
block_timestamp: string;
|
|
72
|
-
tx_hash: string;
|
|
69
|
+
notification_type: "on-chain";
|
|
73
70
|
unread: boolean;
|
|
74
71
|
created_at: string;
|
|
75
72
|
type: TRIGGER_TYPES.ERC20_SENT;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
73
|
+
payload: {
|
|
74
|
+
address: string;
|
|
75
|
+
chain_id: number;
|
|
76
|
+
block_number: number;
|
|
77
|
+
block_timestamp: string;
|
|
78
|
+
tx_hash: string;
|
|
79
|
+
data: {
|
|
80
|
+
kind: "erc20_sent";
|
|
81
|
+
network_fee: {
|
|
82
|
+
gas_price: string;
|
|
83
|
+
native_token_price_in_usd: string;
|
|
84
|
+
};
|
|
85
|
+
from: string;
|
|
86
|
+
to: string;
|
|
87
|
+
token: {
|
|
88
|
+
address: string;
|
|
89
|
+
symbol: string;
|
|
90
|
+
name: string;
|
|
91
|
+
amount: string;
|
|
92
|
+
decimals: string;
|
|
93
|
+
image: string;
|
|
94
|
+
usd: string;
|
|
95
|
+
};
|
|
92
96
|
};
|
|
93
97
|
};
|
|
94
98
|
createdAt: string;
|
|
95
99
|
isRead: boolean;
|
|
96
100
|
} | {
|
|
97
101
|
id: string;
|
|
98
|
-
|
|
99
|
-
trigger_id: string;
|
|
100
|
-
chain_id: number;
|
|
101
|
-
block_number: number;
|
|
102
|
-
block_timestamp: string;
|
|
103
|
-
tx_hash: string;
|
|
102
|
+
notification_type: "on-chain";
|
|
104
103
|
unread: boolean;
|
|
105
104
|
created_at: string;
|
|
106
105
|
type: TRIGGER_TYPES.ERC20_RECEIVED;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
106
|
+
payload: {
|
|
107
|
+
address: string;
|
|
108
|
+
chain_id: number;
|
|
109
|
+
block_number: number;
|
|
110
|
+
block_timestamp: string;
|
|
111
|
+
tx_hash: string;
|
|
112
|
+
data: {
|
|
113
|
+
kind: "erc20_received";
|
|
114
|
+
network_fee: {
|
|
115
|
+
gas_price: string;
|
|
116
|
+
native_token_price_in_usd: string;
|
|
117
|
+
};
|
|
118
|
+
from: string;
|
|
119
|
+
to: string;
|
|
120
|
+
token: {
|
|
121
|
+
address: string;
|
|
122
|
+
symbol: string;
|
|
123
|
+
name: string;
|
|
124
|
+
amount: string;
|
|
125
|
+
decimals: string;
|
|
126
|
+
image: string;
|
|
127
|
+
usd: string;
|
|
128
|
+
};
|
|
123
129
|
};
|
|
124
130
|
};
|
|
125
131
|
createdAt: string;
|
|
126
132
|
isRead: boolean;
|
|
127
133
|
} | {
|
|
128
134
|
id: string;
|
|
129
|
-
|
|
130
|
-
trigger_id: string;
|
|
131
|
-
chain_id: number;
|
|
132
|
-
block_number: number;
|
|
133
|
-
block_timestamp: string;
|
|
134
|
-
tx_hash: string;
|
|
135
|
+
notification_type: "on-chain";
|
|
135
136
|
unread: boolean;
|
|
136
137
|
created_at: string;
|
|
137
138
|
type: TRIGGER_TYPES.ETH_SENT;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
139
|
+
payload: {
|
|
140
|
+
address: string;
|
|
141
|
+
chain_id: number;
|
|
142
|
+
block_number: number;
|
|
143
|
+
block_timestamp: string;
|
|
144
|
+
tx_hash: string;
|
|
145
|
+
data: {
|
|
146
|
+
kind: "eth_sent";
|
|
147
|
+
network_fee: {
|
|
148
|
+
gas_price: string;
|
|
149
|
+
native_token_price_in_usd: string;
|
|
150
|
+
};
|
|
151
|
+
from: string;
|
|
152
|
+
to: string;
|
|
153
|
+
amount: {
|
|
154
|
+
usd: string;
|
|
155
|
+
eth: string;
|
|
156
|
+
};
|
|
149
157
|
};
|
|
150
158
|
};
|
|
151
159
|
createdAt: string;
|
|
152
160
|
isRead: boolean;
|
|
153
161
|
} | {
|
|
154
162
|
id: string;
|
|
155
|
-
|
|
156
|
-
trigger_id: string;
|
|
157
|
-
chain_id: number;
|
|
158
|
-
block_number: number;
|
|
159
|
-
block_timestamp: string;
|
|
160
|
-
tx_hash: string;
|
|
163
|
+
notification_type: "on-chain";
|
|
161
164
|
unread: boolean;
|
|
162
165
|
created_at: string;
|
|
163
166
|
type: TRIGGER_TYPES.ETH_RECEIVED;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
payload: {
|
|
168
|
+
address: string;
|
|
169
|
+
chain_id: number;
|
|
170
|
+
block_number: number;
|
|
171
|
+
block_timestamp: string;
|
|
172
|
+
tx_hash: string;
|
|
173
|
+
data: {
|
|
174
|
+
kind: "eth_received";
|
|
175
|
+
network_fee: {
|
|
176
|
+
gas_price: string;
|
|
177
|
+
native_token_price_in_usd: string;
|
|
178
|
+
};
|
|
179
|
+
from: string;
|
|
180
|
+
to: string;
|
|
181
|
+
amount: {
|
|
182
|
+
usd: string;
|
|
183
|
+
eth: string;
|
|
184
|
+
};
|
|
175
185
|
};
|
|
176
186
|
};
|
|
177
187
|
createdAt: string;
|
|
178
188
|
isRead: boolean;
|
|
179
189
|
} | {
|
|
180
190
|
id: string;
|
|
181
|
-
|
|
182
|
-
trigger_id: string;
|
|
183
|
-
chain_id: number;
|
|
184
|
-
block_number: number;
|
|
185
|
-
block_timestamp: string;
|
|
186
|
-
tx_hash: string;
|
|
191
|
+
notification_type: "on-chain";
|
|
187
192
|
unread: boolean;
|
|
188
193
|
created_at: string;
|
|
189
194
|
type: TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
195
|
+
payload: {
|
|
196
|
+
address: string;
|
|
197
|
+
chain_id: number;
|
|
198
|
+
block_number: number;
|
|
199
|
+
block_timestamp: string;
|
|
200
|
+
tx_hash: string;
|
|
201
|
+
data: {
|
|
202
|
+
kind: "rocketpool_stake_completed";
|
|
203
|
+
network_fee: {
|
|
204
|
+
gas_price: string;
|
|
205
|
+
native_token_price_in_usd: string;
|
|
206
|
+
};
|
|
207
|
+
stake_in: {
|
|
208
|
+
address: string;
|
|
209
|
+
symbol: string;
|
|
210
|
+
name: string;
|
|
211
|
+
amount: string;
|
|
212
|
+
decimals: string;
|
|
213
|
+
image: string;
|
|
214
|
+
usd: string;
|
|
215
|
+
};
|
|
216
|
+
stake_out: {
|
|
217
|
+
address: string;
|
|
218
|
+
symbol: string;
|
|
219
|
+
name: string;
|
|
220
|
+
amount: string;
|
|
221
|
+
decimals: string;
|
|
222
|
+
image: string;
|
|
223
|
+
usd: string;
|
|
224
|
+
};
|
|
213
225
|
};
|
|
214
226
|
};
|
|
215
227
|
createdAt: string;
|
|
216
228
|
isRead: boolean;
|
|
217
229
|
} | {
|
|
218
230
|
id: string;
|
|
219
|
-
|
|
220
|
-
trigger_id: string;
|
|
221
|
-
chain_id: number;
|
|
222
|
-
block_number: number;
|
|
223
|
-
block_timestamp: string;
|
|
224
|
-
tx_hash: string;
|
|
231
|
+
notification_type: "on-chain";
|
|
225
232
|
unread: boolean;
|
|
226
233
|
created_at: string;
|
|
227
234
|
type: TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
235
|
+
payload: {
|
|
236
|
+
address: string;
|
|
237
|
+
chain_id: number;
|
|
238
|
+
block_number: number;
|
|
239
|
+
block_timestamp: string;
|
|
240
|
+
tx_hash: string;
|
|
241
|
+
data: {
|
|
242
|
+
kind: "rocketpool_unstake_completed";
|
|
243
|
+
network_fee: {
|
|
244
|
+
gas_price: string;
|
|
245
|
+
native_token_price_in_usd: string;
|
|
246
|
+
};
|
|
247
|
+
stake_in: {
|
|
248
|
+
address: string;
|
|
249
|
+
symbol: string;
|
|
250
|
+
name: string;
|
|
251
|
+
amount: string;
|
|
252
|
+
decimals: string;
|
|
253
|
+
image: string;
|
|
254
|
+
usd: string;
|
|
255
|
+
};
|
|
256
|
+
stake_out: {
|
|
257
|
+
address: string;
|
|
258
|
+
symbol: string;
|
|
259
|
+
name: string;
|
|
260
|
+
amount: string;
|
|
261
|
+
decimals: string;
|
|
262
|
+
image: string;
|
|
263
|
+
usd: string;
|
|
264
|
+
};
|
|
251
265
|
};
|
|
252
266
|
};
|
|
253
267
|
createdAt: string;
|
|
254
268
|
isRead: boolean;
|
|
255
269
|
} | {
|
|
256
270
|
id: string;
|
|
257
|
-
|
|
258
|
-
trigger_id: string;
|
|
259
|
-
chain_id: number;
|
|
260
|
-
block_number: number;
|
|
261
|
-
block_timestamp: string;
|
|
262
|
-
tx_hash: string;
|
|
271
|
+
notification_type: "on-chain";
|
|
263
272
|
unread: boolean;
|
|
264
273
|
created_at: string;
|
|
265
274
|
type: TRIGGER_TYPES.LIDO_STAKE_COMPLETED;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
275
|
+
payload: {
|
|
276
|
+
address: string;
|
|
277
|
+
chain_id: number;
|
|
278
|
+
block_number: number;
|
|
279
|
+
block_timestamp: string;
|
|
280
|
+
tx_hash: string;
|
|
281
|
+
data: {
|
|
282
|
+
kind: "lido_stake_completed";
|
|
283
|
+
network_fee: {
|
|
284
|
+
gas_price: string;
|
|
285
|
+
native_token_price_in_usd: string;
|
|
286
|
+
};
|
|
287
|
+
stake_in: {
|
|
288
|
+
address: string;
|
|
289
|
+
symbol: string;
|
|
290
|
+
name: string;
|
|
291
|
+
amount: string;
|
|
292
|
+
decimals: string;
|
|
293
|
+
image: string;
|
|
294
|
+
usd: string;
|
|
295
|
+
};
|
|
296
|
+
stake_out: {
|
|
297
|
+
address: string;
|
|
298
|
+
symbol: string;
|
|
299
|
+
name: string;
|
|
300
|
+
amount: string;
|
|
301
|
+
decimals: string;
|
|
302
|
+
image: string;
|
|
303
|
+
usd: string;
|
|
304
|
+
};
|
|
289
305
|
};
|
|
290
306
|
};
|
|
291
307
|
createdAt: string;
|
|
292
308
|
isRead: boolean;
|
|
293
309
|
} | {
|
|
294
310
|
id: string;
|
|
295
|
-
|
|
296
|
-
trigger_id: string;
|
|
297
|
-
chain_id: number;
|
|
298
|
-
block_number: number;
|
|
299
|
-
block_timestamp: string;
|
|
300
|
-
tx_hash: string;
|
|
311
|
+
notification_type: "on-chain";
|
|
301
312
|
unread: boolean;
|
|
302
313
|
created_at: string;
|
|
303
314
|
type: TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
315
|
+
payload: {
|
|
316
|
+
address: string;
|
|
317
|
+
chain_id: number;
|
|
318
|
+
block_number: number;
|
|
319
|
+
block_timestamp: string;
|
|
320
|
+
tx_hash: string;
|
|
321
|
+
data: {
|
|
322
|
+
kind: "lido_withdrawal_requested";
|
|
323
|
+
network_fee: {
|
|
324
|
+
gas_price: string;
|
|
325
|
+
native_token_price_in_usd: string;
|
|
326
|
+
};
|
|
327
|
+
stake_in: {
|
|
328
|
+
address: string;
|
|
329
|
+
symbol: string;
|
|
330
|
+
name: string;
|
|
331
|
+
amount: string;
|
|
332
|
+
decimals: string;
|
|
333
|
+
image: string;
|
|
334
|
+
usd: string;
|
|
335
|
+
};
|
|
336
|
+
stake_out: {
|
|
337
|
+
address: string;
|
|
338
|
+
symbol: string;
|
|
339
|
+
name: string;
|
|
340
|
+
amount: string;
|
|
341
|
+
decimals: string;
|
|
342
|
+
image: string;
|
|
343
|
+
usd: string;
|
|
344
|
+
};
|
|
327
345
|
};
|
|
328
346
|
};
|
|
329
347
|
createdAt: string;
|
|
330
348
|
isRead: boolean;
|
|
331
349
|
} | {
|
|
332
350
|
id: string;
|
|
333
|
-
|
|
334
|
-
trigger_id: string;
|
|
335
|
-
chain_id: number;
|
|
336
|
-
block_number: number;
|
|
337
|
-
block_timestamp: string;
|
|
338
|
-
tx_hash: string;
|
|
351
|
+
notification_type: "on-chain";
|
|
339
352
|
unread: boolean;
|
|
340
353
|
created_at: string;
|
|
341
354
|
type: TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
355
|
+
payload: {
|
|
356
|
+
address: string;
|
|
357
|
+
chain_id: number;
|
|
358
|
+
block_number: number;
|
|
359
|
+
block_timestamp: string;
|
|
360
|
+
tx_hash: string;
|
|
361
|
+
data: {
|
|
362
|
+
kind: "lido_withdrawal_completed";
|
|
363
|
+
network_fee: {
|
|
364
|
+
gas_price: string;
|
|
365
|
+
native_token_price_in_usd: string;
|
|
366
|
+
};
|
|
367
|
+
stake_in: {
|
|
368
|
+
address: string;
|
|
369
|
+
symbol: string;
|
|
370
|
+
name: string;
|
|
371
|
+
amount: string;
|
|
372
|
+
decimals: string;
|
|
373
|
+
image: string;
|
|
374
|
+
usd: string;
|
|
375
|
+
};
|
|
376
|
+
stake_out: {
|
|
377
|
+
address: string;
|
|
378
|
+
symbol: string;
|
|
379
|
+
name: string;
|
|
380
|
+
amount: string;
|
|
381
|
+
decimals: string;
|
|
382
|
+
image: string;
|
|
383
|
+
usd: string;
|
|
384
|
+
};
|
|
365
385
|
};
|
|
366
386
|
};
|
|
367
387
|
createdAt: string;
|
|
368
388
|
isRead: boolean;
|
|
369
389
|
} | {
|
|
370
390
|
id: string;
|
|
371
|
-
|
|
372
|
-
trigger_id: string;
|
|
373
|
-
chain_id: number;
|
|
374
|
-
block_number: number;
|
|
375
|
-
block_timestamp: string;
|
|
376
|
-
tx_hash: string;
|
|
391
|
+
notification_type: "on-chain";
|
|
377
392
|
unread: boolean;
|
|
378
393
|
created_at: string;
|
|
379
394
|
type: TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
395
|
+
payload: {
|
|
396
|
+
address: string;
|
|
397
|
+
chain_id: number;
|
|
398
|
+
block_number: number;
|
|
399
|
+
block_timestamp: string;
|
|
400
|
+
tx_hash: string;
|
|
401
|
+
data: {
|
|
402
|
+
kind: "lido_stake_ready_to_be_withdrawn";
|
|
403
|
+
request_id: string;
|
|
404
|
+
staked_eth: {
|
|
405
|
+
address: string;
|
|
406
|
+
symbol: string;
|
|
407
|
+
name: string;
|
|
408
|
+
amount: string;
|
|
409
|
+
decimals: string;
|
|
410
|
+
image: string;
|
|
411
|
+
usd: string;
|
|
412
|
+
};
|
|
391
413
|
};
|
|
392
414
|
};
|
|
393
415
|
createdAt: string;
|
|
394
416
|
isRead: boolean;
|
|
395
417
|
} | {
|
|
396
418
|
id: string;
|
|
397
|
-
|
|
398
|
-
trigger_id: string;
|
|
399
|
-
chain_id: number;
|
|
400
|
-
block_number: number;
|
|
401
|
-
block_timestamp: string;
|
|
402
|
-
tx_hash: string;
|
|
419
|
+
notification_type: "on-chain";
|
|
403
420
|
unread: boolean;
|
|
404
421
|
created_at: string;
|
|
405
422
|
type: TRIGGER_TYPES.ERC721_SENT;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
423
|
+
payload: {
|
|
424
|
+
address: string;
|
|
425
|
+
chain_id: number;
|
|
426
|
+
block_number: number;
|
|
427
|
+
block_timestamp: string;
|
|
428
|
+
tx_hash: string;
|
|
429
|
+
data: {
|
|
430
|
+
kind: "erc721_sent";
|
|
431
|
+
network_fee: {
|
|
432
|
+
gas_price: string;
|
|
433
|
+
native_token_price_in_usd: string;
|
|
434
|
+
};
|
|
435
|
+
from: string;
|
|
436
|
+
to: string;
|
|
437
|
+
nft: {
|
|
420
438
|
name: string;
|
|
421
|
-
|
|
439
|
+
token_id: string;
|
|
422
440
|
image: string;
|
|
441
|
+
collection: {
|
|
442
|
+
address: string;
|
|
443
|
+
name: string;
|
|
444
|
+
symbol: string;
|
|
445
|
+
image: string;
|
|
446
|
+
};
|
|
423
447
|
};
|
|
424
448
|
};
|
|
425
449
|
};
|
|
@@ -427,32 +451,34 @@ export declare const processAndFilterNotifications: (ns: RawNotificationUnion[],
|
|
|
427
451
|
isRead: boolean;
|
|
428
452
|
} | {
|
|
429
453
|
id: string;
|
|
430
|
-
|
|
431
|
-
trigger_id: string;
|
|
432
|
-
chain_id: number;
|
|
433
|
-
block_number: number;
|
|
434
|
-
block_timestamp: string;
|
|
435
|
-
tx_hash: string;
|
|
454
|
+
notification_type: "on-chain";
|
|
436
455
|
unread: boolean;
|
|
437
456
|
created_at: string;
|
|
438
457
|
type: TRIGGER_TYPES.ERC721_RECEIVED;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
458
|
+
payload: {
|
|
459
|
+
address: string;
|
|
460
|
+
chain_id: number;
|
|
461
|
+
block_number: number;
|
|
462
|
+
block_timestamp: string;
|
|
463
|
+
tx_hash: string;
|
|
464
|
+
data: {
|
|
465
|
+
kind: "erc721_received";
|
|
466
|
+
network_fee: {
|
|
467
|
+
gas_price: string;
|
|
468
|
+
native_token_price_in_usd: string;
|
|
469
|
+
};
|
|
470
|
+
from: string;
|
|
471
|
+
to: string;
|
|
472
|
+
nft: {
|
|
453
473
|
name: string;
|
|
454
|
-
|
|
474
|
+
token_id: string;
|
|
455
475
|
image: string;
|
|
476
|
+
collection: {
|
|
477
|
+
address: string;
|
|
478
|
+
name: string;
|
|
479
|
+
symbol: string;
|
|
480
|
+
image: string;
|
|
481
|
+
};
|
|
456
482
|
};
|
|
457
483
|
};
|
|
458
484
|
};
|
|
@@ -460,175 +486,89 @@ export declare const processAndFilterNotifications: (ns: RawNotificationUnion[],
|
|
|
460
486
|
isRead: boolean;
|
|
461
487
|
} | {
|
|
462
488
|
id: string;
|
|
463
|
-
|
|
464
|
-
trigger_id: string;
|
|
465
|
-
chain_id: number;
|
|
466
|
-
block_number: number;
|
|
467
|
-
block_timestamp: string;
|
|
468
|
-
tx_hash: string;
|
|
489
|
+
notification_type: "on-chain";
|
|
469
490
|
unread: boolean;
|
|
470
491
|
created_at: string;
|
|
471
492
|
type: TRIGGER_TYPES.ERC1155_SENT;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
493
|
+
payload: {
|
|
494
|
+
address: string;
|
|
495
|
+
chain_id: number;
|
|
496
|
+
block_number: number;
|
|
497
|
+
block_timestamp: string;
|
|
498
|
+
tx_hash: string;
|
|
499
|
+
data: {
|
|
500
|
+
kind: "erc1155_sent";
|
|
501
|
+
network_fee: {
|
|
502
|
+
gas_price: string;
|
|
503
|
+
native_token_price_in_usd: string;
|
|
504
|
+
};
|
|
505
|
+
from: string;
|
|
506
|
+
to: string;
|
|
507
|
+
nft?: {
|
|
486
508
|
name: string;
|
|
487
|
-
|
|
509
|
+
token_id: string;
|
|
488
510
|
image: string;
|
|
489
|
-
|
|
490
|
-
|
|
511
|
+
collection: {
|
|
512
|
+
address: string;
|
|
513
|
+
name: string;
|
|
514
|
+
symbol: string;
|
|
515
|
+
image: string;
|
|
516
|
+
};
|
|
517
|
+
} | undefined;
|
|
518
|
+
};
|
|
491
519
|
};
|
|
492
520
|
createdAt: string;
|
|
493
521
|
isRead: boolean;
|
|
494
522
|
} | {
|
|
495
523
|
id: string;
|
|
496
|
-
|
|
497
|
-
trigger_id: string;
|
|
498
|
-
chain_id: number;
|
|
499
|
-
block_number: number;
|
|
500
|
-
block_timestamp: string;
|
|
501
|
-
tx_hash: string;
|
|
524
|
+
notification_type: "on-chain";
|
|
502
525
|
unread: boolean;
|
|
503
526
|
created_at: string;
|
|
504
527
|
type: TRIGGER_TYPES.ERC1155_RECEIVED;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
528
|
+
payload: {
|
|
529
|
+
address: string;
|
|
530
|
+
chain_id: number;
|
|
531
|
+
block_number: number;
|
|
532
|
+
block_timestamp: string;
|
|
533
|
+
tx_hash: string;
|
|
534
|
+
data: {
|
|
535
|
+
kind: "erc1155_received";
|
|
536
|
+
network_fee: {
|
|
537
|
+
gas_price: string;
|
|
538
|
+
native_token_price_in_usd: string;
|
|
539
|
+
};
|
|
540
|
+
from: string;
|
|
541
|
+
to: string;
|
|
542
|
+
nft?: {
|
|
519
543
|
name: string;
|
|
520
|
-
|
|
544
|
+
token_id: string;
|
|
521
545
|
image: string;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
trigger_id: string;
|
|
531
|
-
chain_id: number;
|
|
532
|
-
unread: boolean;
|
|
533
|
-
created_at: string;
|
|
534
|
-
type: TRIGGER_TYPES.AAVE_V3_HEALTH_FACTOR;
|
|
535
|
-
data: {
|
|
536
|
-
kind: "aave_v3_health_factor";
|
|
537
|
-
chainId: number;
|
|
538
|
-
healthFactor: string;
|
|
539
|
-
threshold: string;
|
|
540
|
-
};
|
|
541
|
-
createdAt: string;
|
|
542
|
-
isRead: boolean;
|
|
543
|
-
} | {
|
|
544
|
-
id: string;
|
|
545
|
-
address: string;
|
|
546
|
-
trigger_id: string;
|
|
547
|
-
chain_id: number;
|
|
548
|
-
unread: boolean;
|
|
549
|
-
created_at: string;
|
|
550
|
-
type: TRIGGER_TYPES.ENS_EXPIRATION;
|
|
551
|
-
data: {
|
|
552
|
-
kind: "ens_expiration";
|
|
553
|
-
chainId: number;
|
|
554
|
-
reverseEnsName: string;
|
|
555
|
-
expirationDateIso: string;
|
|
556
|
-
reminderDelayInSeconds: number;
|
|
557
|
-
};
|
|
558
|
-
createdAt: string;
|
|
559
|
-
isRead: boolean;
|
|
560
|
-
} | {
|
|
561
|
-
id: string;
|
|
562
|
-
address: string;
|
|
563
|
-
trigger_id: string;
|
|
564
|
-
chain_id: number;
|
|
565
|
-
unread: boolean;
|
|
566
|
-
created_at: string;
|
|
567
|
-
type: TRIGGER_TYPES.LIDO_STAKING_REWARDS;
|
|
568
|
-
data: {
|
|
569
|
-
kind: "lido_staking_rewards";
|
|
570
|
-
chainId: number;
|
|
571
|
-
currentStethBalance: string;
|
|
572
|
-
currentEthValue: string;
|
|
573
|
-
estimatedTotalRewardInPeriod: string;
|
|
574
|
-
daysSinceLastNotification: number;
|
|
575
|
-
notificationIntervalDays: number;
|
|
576
|
-
};
|
|
577
|
-
createdAt: string;
|
|
578
|
-
isRead: boolean;
|
|
579
|
-
} | {
|
|
580
|
-
id: string;
|
|
581
|
-
address: string;
|
|
582
|
-
trigger_id: string;
|
|
583
|
-
chain_id: number;
|
|
584
|
-
unread: boolean;
|
|
585
|
-
created_at: string;
|
|
586
|
-
type: TRIGGER_TYPES.ROCKETPOOL_STAKING_REWARDS;
|
|
587
|
-
data: {
|
|
588
|
-
kind: "rocketpool_staking_rewards";
|
|
589
|
-
chainId: number;
|
|
590
|
-
currentRethBalance: string;
|
|
591
|
-
currentEthValue: string;
|
|
592
|
-
estimatedTotalRewardInPeriod: string;
|
|
593
|
-
daysSinceLastNotification: number;
|
|
594
|
-
notificationIntervalDays: number;
|
|
546
|
+
collection: {
|
|
547
|
+
address: string;
|
|
548
|
+
name: string;
|
|
549
|
+
symbol: string;
|
|
550
|
+
image: string;
|
|
551
|
+
};
|
|
552
|
+
} | undefined;
|
|
553
|
+
};
|
|
595
554
|
};
|
|
596
555
|
createdAt: string;
|
|
597
556
|
isRead: boolean;
|
|
598
557
|
} | {
|
|
599
558
|
id: string;
|
|
600
|
-
|
|
601
|
-
trigger_id: string;
|
|
602
|
-
chain_id: number;
|
|
559
|
+
notification_type: "platform";
|
|
603
560
|
unread: boolean;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
maturityDateIso: string;
|
|
613
|
-
}[];
|
|
614
|
-
reminderDelayInSeconds: number;
|
|
561
|
+
template: {
|
|
562
|
+
image_url: string;
|
|
563
|
+
cta?: {
|
|
564
|
+
content: string;
|
|
565
|
+
link: string;
|
|
566
|
+
} | undefined;
|
|
567
|
+
title: string;
|
|
568
|
+
body: string;
|
|
615
569
|
};
|
|
616
|
-
createdAt: string;
|
|
617
|
-
isRead: boolean;
|
|
618
|
-
} | {
|
|
619
|
-
id: string;
|
|
620
|
-
address: string;
|
|
621
|
-
trigger_id: string;
|
|
622
|
-
chain_id: number;
|
|
623
|
-
unread: boolean;
|
|
624
570
|
created_at: string;
|
|
625
|
-
type: TRIGGER_TYPES.
|
|
626
|
-
data: {
|
|
627
|
-
kind: "spark_fi_health_factor";
|
|
628
|
-
chainId: number;
|
|
629
|
-
healthFactor: string;
|
|
630
|
-
threshold: string;
|
|
631
|
-
};
|
|
571
|
+
type: TRIGGER_TYPES.PLATFORM;
|
|
632
572
|
createdAt: string;
|
|
633
573
|
isRead: boolean;
|
|
634
574
|
} | {
|