@metamask-previews/notification-services-controller 0.5.0-preview-367cb1da → 0.5.0-preview-cf09c0a

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.
Files changed (714) hide show
  1. package/dist/NotificationServicesController/NotificationServicesController.cjs +803 -0
  2. package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -0
  3. package/dist/{types/NotificationServicesController/NotificationServicesController.d.ts → NotificationServicesController/NotificationServicesController.d.cts} +7 -7
  4. package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -0
  5. package/dist/NotificationServicesController/NotificationServicesController.d.mts +238 -0
  6. package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -0
  7. package/dist/NotificationServicesController/NotificationServicesController.mjs +779 -17
  8. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -1
  9. package/dist/NotificationServicesController/__fixtures__/index.cjs +22 -0
  10. package/dist/NotificationServicesController/__fixtures__/index.cjs.map +1 -0
  11. package/dist/NotificationServicesController/__fixtures__/index.d.cts +6 -0
  12. package/dist/NotificationServicesController/__fixtures__/index.d.cts.map +1 -0
  13. package/dist/NotificationServicesController/__fixtures__/index.d.mts +6 -0
  14. package/dist/NotificationServicesController/__fixtures__/index.d.mts.map +1 -0
  15. package/dist/NotificationServicesController/__fixtures__/index.mjs +6 -0
  16. package/dist/NotificationServicesController/__fixtures__/index.mjs.map +1 -0
  17. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.cjs +210 -0
  18. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.cjs.map +1 -0
  19. package/dist/{types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts → NotificationServicesController/__fixtures__/mock-feature-announcements.d.cts} +3 -3
  20. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.cts.map +1 -0
  21. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.mts +15 -0
  22. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.mts.map +1 -0
  23. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.mjs +205 -0
  24. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.mjs.map +1 -0
  25. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.cjs +22 -0
  26. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.cjs.map +1 -0
  27. package/dist/{types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts → NotificationServicesController/__fixtures__/mock-notification-trigger.d.cts} +2 -2
  28. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.cts.map +1 -0
  29. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.mts +9 -0
  30. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.mts.map +1 -0
  31. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.mjs +18 -0
  32. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.mjs.map +1 -0
  33. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.cjs +82 -0
  34. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.cjs.map +1 -0
  35. package/dist/{types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts → NotificationServicesController/__fixtures__/mock-notification-user-storage.d.cts} +3 -3
  36. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.cts.map +1 -0
  37. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.mts +35 -0
  38. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.mts.map +1 -0
  39. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.mjs +76 -0
  40. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.mjs.map +1 -0
  41. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.cjs +624 -0
  42. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.cjs.map +1 -0
  43. package/dist/{types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts → NotificationServicesController/__fixtures__/mock-raw-notifications.d.cts} +2 -2
  44. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.cts.map +1 -0
  45. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.mts +82 -0
  46. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.mts.map +1 -0
  47. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.mjs +605 -0
  48. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.mjs.map +1 -0
  49. package/dist/NotificationServicesController/__fixtures__/mockResponses.cjs +50 -0
  50. package/dist/NotificationServicesController/__fixtures__/mockResponses.cjs.map +1 -0
  51. package/dist/{types/NotificationServicesController/__fixtures__/mockResponses.d.ts → NotificationServicesController/__fixtures__/mockResponses.d.cts} +5 -5
  52. package/dist/NotificationServicesController/__fixtures__/mockResponses.d.cts.map +1 -0
  53. package/dist/NotificationServicesController/__fixtures__/mockResponses.d.mts +28 -0
  54. package/dist/NotificationServicesController/__fixtures__/mockResponses.d.mts.map +1 -0
  55. package/dist/NotificationServicesController/__fixtures__/mockResponses.mjs +42 -0
  56. package/dist/NotificationServicesController/__fixtures__/mockResponses.mjs.map +1 -0
  57. package/dist/NotificationServicesController/__fixtures__/mockServices.cjs +56 -0
  58. package/dist/NotificationServicesController/__fixtures__/mockServices.cjs.map +1 -0
  59. package/dist/{types/NotificationServicesController/__fixtures__/mockServices.d.ts → NotificationServicesController/__fixtures__/mockServices.d.cts} +2 -2
  60. package/dist/NotificationServicesController/__fixtures__/mockServices.d.cts.map +1 -0
  61. package/dist/NotificationServicesController/__fixtures__/mockServices.d.mts +12 -0
  62. package/dist/NotificationServicesController/__fixtures__/mockServices.d.mts.map +1 -0
  63. package/dist/NotificationServicesController/__fixtures__/mockServices.mjs +52 -0
  64. package/dist/NotificationServicesController/__fixtures__/mockServices.mjs.map +1 -0
  65. package/dist/NotificationServicesController/__fixtures__/test-utils.cjs +31 -0
  66. package/dist/NotificationServicesController/__fixtures__/test-utils.cjs.map +1 -0
  67. package/dist/{types/NotificationServicesController/__fixtures__/test-utils.d.ts → NotificationServicesController/__fixtures__/test-utils.d.cts} +1 -1
  68. package/dist/NotificationServicesController/__fixtures__/test-utils.d.cts.map +1 -0
  69. package/dist/NotificationServicesController/__fixtures__/test-utils.d.mts +14 -0
  70. package/dist/NotificationServicesController/__fixtures__/test-utils.d.mts.map +1 -0
  71. package/dist/NotificationServicesController/__fixtures__/test-utils.mjs +27 -0
  72. package/dist/NotificationServicesController/__fixtures__/test-utils.mjs.map +1 -0
  73. package/dist/NotificationServicesController/constants/constants.cjs +7 -0
  74. package/dist/NotificationServicesController/constants/constants.cjs.map +1 -0
  75. package/dist/{types/NotificationServicesController/constants/constants.d.ts → NotificationServicesController/constants/constants.d.cts} +1 -1
  76. package/dist/NotificationServicesController/constants/constants.d.cts.map +1 -0
  77. package/dist/NotificationServicesController/constants/constants.d.mts +3 -0
  78. package/dist/NotificationServicesController/constants/constants.d.mts.map +1 -0
  79. package/dist/NotificationServicesController/constants/constants.mjs +3 -9
  80. package/dist/NotificationServicesController/constants/constants.mjs.map +1 -1
  81. package/dist/NotificationServicesController/constants/index.cjs +19 -0
  82. package/dist/NotificationServicesController/constants/index.cjs.map +1 -0
  83. package/dist/NotificationServicesController/constants/index.d.cts +3 -0
  84. package/dist/NotificationServicesController/constants/index.d.cts.map +1 -0
  85. package/dist/NotificationServicesController/constants/index.d.mts +3 -0
  86. package/dist/NotificationServicesController/constants/index.d.mts.map +1 -0
  87. package/dist/NotificationServicesController/constants/index.mjs +2 -28
  88. package/dist/NotificationServicesController/constants/index.mjs.map +1 -1
  89. package/dist/NotificationServicesController/constants/notification-schema.cjs +170 -0
  90. package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -0
  91. package/dist/{types/NotificationServicesController/constants/notification-schema.d.ts → NotificationServicesController/constants/notification-schema.d.cts} +2 -2
  92. package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -0
  93. package/dist/NotificationServicesController/constants/notification-schema.d.mts +48 -0
  94. package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -0
  95. package/dist/NotificationServicesController/constants/notification-schema.mjs +165 -20
  96. package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -1
  97. package/dist/NotificationServicesController/index.cjs +46 -0
  98. package/dist/NotificationServicesController/index.cjs.map +1 -0
  99. package/dist/NotificationServicesController/index.d.cts +14 -0
  100. package/dist/NotificationServicesController/index.d.cts.map +1 -0
  101. package/dist/NotificationServicesController/index.d.mts +14 -0
  102. package/dist/NotificationServicesController/index.d.mts.map +1 -0
  103. package/dist/NotificationServicesController/index.mjs +13 -86
  104. package/dist/NotificationServicesController/index.mjs.map +1 -1
  105. package/dist/NotificationServicesController/processors/index.cjs +20 -0
  106. package/dist/NotificationServicesController/processors/index.cjs.map +1 -0
  107. package/dist/NotificationServicesController/processors/index.d.cts +4 -0
  108. package/dist/NotificationServicesController/processors/index.d.cts.map +1 -0
  109. package/dist/NotificationServicesController/processors/index.d.mts +4 -0
  110. package/dist/NotificationServicesController/processors/index.d.mts.map +1 -0
  111. package/dist/NotificationServicesController/processors/index.mjs +3 -21
  112. package/dist/NotificationServicesController/processors/index.mjs.map +1 -1
  113. package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +41 -0
  114. package/dist/{chunk-52CALMRA.js.map → NotificationServicesController/processors/process-feature-announcement.cjs.map} +1 -1
  115. package/dist/{types/NotificationServicesController/processors/process-feature-announcement.d.ts → NotificationServicesController/processors/process-feature-announcement.d.cts} +3 -3
  116. package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +1 -0
  117. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts +19 -0
  118. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +1 -0
  119. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +34 -8
  120. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -1
  121. package/dist/NotificationServicesController/processors/process-notifications.cjs +50 -0
  122. package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -0
  123. package/dist/{types/NotificationServicesController/processors/process-notifications.d.ts → NotificationServicesController/processors/process-notifications.d.cts} +2 -2
  124. package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -0
  125. package/dist/NotificationServicesController/processors/process-notifications.d.mts +19 -0
  126. package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -0
  127. package/dist/NotificationServicesController/processors/process-notifications.mjs +44 -12
  128. package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -1
  129. package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs +19 -0
  130. package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs.map +1 -0
  131. package/dist/{types/NotificationServicesController/processors/process-onchain-notifications.d.ts → NotificationServicesController/processors/process-onchain-notifications.d.cts} +3 -3
  132. package/dist/NotificationServicesController/processors/process-onchain-notifications.d.cts.map +1 -0
  133. package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts +10 -0
  134. package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts.map +1 -0
  135. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +14 -7
  136. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs.map +1 -1
  137. package/dist/NotificationServicesController/services/feature-announcements.cjs +97 -0
  138. package/dist/NotificationServicesController/services/feature-announcements.cjs.map +1 -0
  139. package/dist/{types/NotificationServicesController/services/feature-announcements.d.ts → NotificationServicesController/services/feature-announcements.d.cts} +4 -4
  140. package/dist/NotificationServicesController/services/feature-announcements.d.cts.map +1 -0
  141. package/dist/NotificationServicesController/services/feature-announcements.d.mts +28 -0
  142. package/dist/NotificationServicesController/services/feature-announcements.d.mts.map +1 -0
  143. package/dist/NotificationServicesController/services/feature-announcements.mjs +91 -12
  144. package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -1
  145. package/dist/NotificationServicesController/services/onchain-notifications.cjs +195 -0
  146. package/dist/NotificationServicesController/services/onchain-notifications.cjs.map +1 -0
  147. package/dist/{types/NotificationServicesController/services/onchain-notifications.d.ts → NotificationServicesController/services/onchain-notifications.d.cts} +3 -3
  148. package/dist/NotificationServicesController/services/onchain-notifications.d.cts.map +1 -0
  149. package/dist/NotificationServicesController/services/onchain-notifications.d.mts +62 -0
  150. package/dist/NotificationServicesController/services/onchain-notifications.d.mts.map +1 -0
  151. package/dist/NotificationServicesController/services/onchain-notifications.mjs +190 -29
  152. package/dist/NotificationServicesController/services/onchain-notifications.mjs.map +1 -1
  153. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs +3 -0
  154. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs.map +1 -0
  155. package/dist/{types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts → NotificationServicesController/types/feature-announcement/feature-announcement.d.cts} +3 -3
  156. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.cts.map +1 -0
  157. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts +32 -0
  158. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts.map +1 -0
  159. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +1 -1
  160. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +1 -1
  161. package/dist/NotificationServicesController/types/feature-announcement/index.cjs +20 -0
  162. package/dist/NotificationServicesController/types/feature-announcement/index.cjs.map +1 -0
  163. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts +4 -0
  164. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts.map +1 -0
  165. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts +4 -0
  166. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts.map +1 -0
  167. package/dist/NotificationServicesController/types/feature-announcement/index.mjs +3 -4
  168. package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +1 -1
  169. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs +3 -0
  170. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs.map +1 -0
  171. package/dist/{types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts → NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts} +3 -3
  172. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts.map +1 -0
  173. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts +39 -0
  174. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts.map +1 -0
  175. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +1 -1
  176. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +1 -1
  177. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs +3 -0
  178. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs.map +1 -0
  179. package/dist/{types/NotificationServicesController/types/feature-announcement/type-links.d.ts → NotificationServicesController/types/feature-announcement/type-links.d.cts} +1 -1
  180. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.cts.map +1 -0
  181. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts +29 -0
  182. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts.map +1 -0
  183. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +1 -1
  184. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +1 -1
  185. package/dist/NotificationServicesController/types/index.cjs +21 -0
  186. package/dist/NotificationServicesController/types/index.cjs.map +1 -0
  187. package/dist/NotificationServicesController/types/index.d.cts +5 -0
  188. package/dist/NotificationServicesController/types/index.d.cts.map +1 -0
  189. package/dist/NotificationServicesController/types/index.d.mts +5 -0
  190. package/dist/NotificationServicesController/types/index.d.mts.map +1 -0
  191. package/dist/NotificationServicesController/types/index.mjs +4 -11
  192. package/dist/NotificationServicesController/types/index.mjs.map +1 -1
  193. package/dist/NotificationServicesController/types/notification/index.cjs +18 -0
  194. package/dist/NotificationServicesController/types/notification/index.cjs.map +1 -0
  195. package/dist/NotificationServicesController/types/notification/index.d.cts +2 -0
  196. package/dist/NotificationServicesController/types/notification/index.d.cts.map +1 -0
  197. package/dist/NotificationServicesController/types/notification/index.d.mts +2 -0
  198. package/dist/NotificationServicesController/types/notification/index.d.mts.map +1 -0
  199. package/dist/NotificationServicesController/types/notification/index.mjs +1 -2
  200. package/dist/NotificationServicesController/types/notification/index.mjs.map +1 -1
  201. package/dist/NotificationServicesController/types/notification/notification.cjs +3 -0
  202. package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -0
  203. package/dist/{types/NotificationServicesController/types/notification/notification.d.ts → NotificationServicesController/types/notification/notification.d.cts} +4 -4
  204. package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -0
  205. package/dist/NotificationServicesController/types/notification/notification.d.mts +25 -0
  206. package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -0
  207. package/dist/NotificationServicesController/types/notification/notification.mjs +1 -1
  208. package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -1
  209. package/dist/NotificationServicesController/types/on-chain-notification/index.cjs +18 -0
  210. package/dist/NotificationServicesController/types/on-chain-notification/index.cjs.map +1 -0
  211. package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts +2 -0
  212. package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts.map +1 -0
  213. package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts +2 -0
  214. package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts.map +1 -0
  215. package/dist/NotificationServicesController/types/on-chain-notification/index.mjs +1 -2
  216. package/dist/NotificationServicesController/types/on-chain-notification/index.mjs.map +1 -1
  217. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs +3 -0
  218. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs.map +1 -0
  219. package/dist/{types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts → NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts} +4 -4
  220. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts.map +1 -0
  221. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts +43 -0
  222. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts.map +1 -0
  223. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs +1 -1
  224. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs.map +1 -1
  225. package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs +9 -0
  226. package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs.map +1 -0
  227. package/dist/{types/NotificationServicesController/types/on-chain-notification/schema.d.ts → NotificationServicesController/types/on-chain-notification/schema.d.cts} +1 -1
  228. package/dist/NotificationServicesController/types/on-chain-notification/schema.d.cts.map +1 -0
  229. package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts +283 -0
  230. package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts.map +1 -0
  231. package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs +7 -0
  232. package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs.map +1 -1
  233. package/dist/NotificationServicesController/types/type-utils.cjs +3 -0
  234. package/dist/NotificationServicesController/types/type-utils.cjs.map +1 -0
  235. package/dist/{types/NotificationServicesController/types/type-utils.d.ts → NotificationServicesController/types/type-utils.d.cts} +1 -1
  236. package/dist/NotificationServicesController/types/type-utils.d.cts.map +1 -0
  237. package/dist/NotificationServicesController/types/type-utils.d.mts +7 -0
  238. package/dist/NotificationServicesController/types/type-utils.d.mts.map +1 -0
  239. package/dist/NotificationServicesController/types/type-utils.mjs +1 -0
  240. package/dist/NotificationServicesController/types/type-utils.mjs.map +1 -1
  241. package/dist/NotificationServicesController/types/user-storage/index.cjs +18 -0
  242. package/dist/NotificationServicesController/types/user-storage/index.cjs.map +1 -0
  243. package/dist/NotificationServicesController/types/user-storage/index.d.cts +2 -0
  244. package/dist/NotificationServicesController/types/user-storage/index.d.cts.map +1 -0
  245. package/dist/NotificationServicesController/types/user-storage/index.d.mts +2 -0
  246. package/dist/NotificationServicesController/types/user-storage/index.d.mts.map +1 -0
  247. package/dist/NotificationServicesController/types/user-storage/index.mjs +1 -2
  248. package/dist/NotificationServicesController/types/user-storage/index.mjs.map +1 -1
  249. package/dist/NotificationServicesController/types/user-storage/user-storage.cjs +3 -0
  250. package/dist/NotificationServicesController/types/user-storage/user-storage.cjs.map +1 -0
  251. package/dist/{types/NotificationServicesController/types/user-storage/user-storage.d.ts → NotificationServicesController/types/user-storage/user-storage.d.cts} +3 -3
  252. package/dist/NotificationServicesController/types/user-storage/user-storage.d.cts.map +1 -0
  253. package/dist/NotificationServicesController/types/user-storage/user-storage.d.mts +26 -0
  254. package/dist/NotificationServicesController/types/user-storage/user-storage.d.mts.map +1 -0
  255. package/dist/NotificationServicesController/types/user-storage/user-storage.mjs +1 -1
  256. package/dist/NotificationServicesController/types/user-storage/user-storage.mjs.map +1 -1
  257. package/dist/NotificationServicesController/ui/constants.cjs +62 -0
  258. package/dist/NotificationServicesController/ui/constants.cjs.map +1 -0
  259. package/dist/{types/NotificationServicesController/ui/constants.d.ts → NotificationServicesController/ui/constants.d.cts} +2 -2
  260. package/dist/NotificationServicesController/ui/constants.d.cts.map +1 -0
  261. package/dist/NotificationServicesController/ui/constants.d.mts +54 -0
  262. package/dist/NotificationServicesController/ui/constants.d.mts.map +1 -0
  263. package/dist/NotificationServicesController/ui/constants.mjs +56 -14
  264. package/dist/NotificationServicesController/ui/constants.mjs.map +1 -1
  265. package/dist/NotificationServicesController/ui/index.cjs +18 -0
  266. package/dist/NotificationServicesController/ui/index.cjs.map +1 -0
  267. package/dist/NotificationServicesController/ui/index.d.cts +2 -0
  268. package/dist/NotificationServicesController/ui/index.d.cts.map +1 -0
  269. package/dist/NotificationServicesController/ui/index.d.mts +2 -0
  270. package/dist/NotificationServicesController/ui/index.d.mts.map +1 -0
  271. package/dist/NotificationServicesController/ui/index.mjs +1 -16
  272. package/dist/NotificationServicesController/ui/index.mjs.map +1 -1
  273. package/dist/NotificationServicesController/utils/utils.cjs +348 -0
  274. package/dist/NotificationServicesController/utils/utils.cjs.map +1 -0
  275. package/dist/{types/NotificationServicesController/utils/utils.d.ts → NotificationServicesController/utils/utils.d.cts} +3 -3
  276. package/dist/NotificationServicesController/utils/utils.d.cts.map +1 -0
  277. package/dist/NotificationServicesController/utils/utils.d.mts +142 -0
  278. package/dist/NotificationServicesController/utils/utils.d.mts.map +1 -0
  279. package/dist/NotificationServicesController/utils/utils.mjs +332 -31
  280. package/dist/NotificationServicesController/utils/utils.mjs.map +1 -1
  281. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +215 -0
  282. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -0
  283. package/dist/{types/NotificationServicesPushController/NotificationServicesPushController.d.ts → NotificationServicesPushController/NotificationServicesPushController.d.cts} +6 -6
  284. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -0
  285. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +112 -0
  286. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -0
  287. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +214 -37
  288. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -1
  289. package/dist/NotificationServicesPushController/__fixtures__/index.cjs +18 -0
  290. package/dist/NotificationServicesPushController/__fixtures__/index.cjs.map +1 -0
  291. package/dist/NotificationServicesPushController/__fixtures__/index.d.cts +2 -0
  292. package/dist/NotificationServicesPushController/__fixtures__/index.d.cts.map +1 -0
  293. package/dist/NotificationServicesPushController/__fixtures__/index.d.mts +2 -0
  294. package/dist/NotificationServicesPushController/__fixtures__/index.d.mts.map +1 -0
  295. package/dist/NotificationServicesPushController/__fixtures__/index.mjs +2 -0
  296. package/dist/NotificationServicesPushController/__fixtures__/index.mjs.map +1 -0
  297. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.cjs +57 -0
  298. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.cjs.map +1 -0
  299. package/dist/{types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts → NotificationServicesPushController/__fixtures__/mockResponse.d.cts} +2 -2
  300. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.cts.map +1 -0
  301. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.mts +43 -0
  302. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.mts.map +1 -0
  303. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.mjs +50 -0
  304. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.mjs.map +1 -0
  305. package/dist/NotificationServicesPushController/__fixtures__/mockServices.cjs +31 -0
  306. package/dist/NotificationServicesPushController/__fixtures__/mockServices.cjs.map +1 -0
  307. package/dist/{types/NotificationServicesPushController/__fixtures__/mockServices.d.ts → NotificationServicesPushController/__fixtures__/mockServices.d.cts} +2 -2
  308. package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.cts.map +1 -0
  309. package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.mts +9 -0
  310. package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.mts.map +1 -0
  311. package/dist/NotificationServicesPushController/__fixtures__/mockServices.mjs +30 -0
  312. package/dist/NotificationServicesPushController/__fixtures__/mockServices.mjs.map +1 -0
  313. package/dist/NotificationServicesPushController/constants.cjs +14 -0
  314. package/dist/NotificationServicesPushController/constants.cjs.map +1 -0
  315. package/dist/{types/NotificationServicesPushController/constants.d.ts → NotificationServicesPushController/constants.d.cts} +1 -1
  316. package/dist/NotificationServicesPushController/constants.d.cts.map +1 -0
  317. package/dist/NotificationServicesPushController/constants.d.mts +11 -0
  318. package/dist/NotificationServicesPushController/constants.d.mts.map +1 -0
  319. package/dist/NotificationServicesPushController/constants.mjs +10 -25
  320. package/dist/NotificationServicesPushController/constants.mjs.map +1 -1
  321. package/dist/NotificationServicesPushController/index.cjs +43 -0
  322. package/dist/NotificationServicesPushController/index.cjs.map +1 -0
  323. package/dist/NotificationServicesPushController/index.d.cts +11 -0
  324. package/dist/NotificationServicesPushController/index.d.cts.map +1 -0
  325. package/dist/NotificationServicesPushController/index.d.mts +11 -0
  326. package/dist/NotificationServicesPushController/index.d.mts.map +1 -0
  327. package/dist/NotificationServicesPushController/index.mjs +10 -71
  328. package/dist/NotificationServicesPushController/index.mjs.map +1 -1
  329. package/dist/NotificationServicesPushController/services/endpoints.cjs +6 -0
  330. package/dist/NotificationServicesPushController/services/endpoints.cjs.map +1 -0
  331. package/dist/{types/NotificationServicesPushController/services/endpoints.d.ts → NotificationServicesPushController/services/endpoints.d.cts} +1 -1
  332. package/dist/NotificationServicesPushController/services/endpoints.d.cts.map +1 -0
  333. package/dist/NotificationServicesPushController/services/endpoints.d.mts +2 -0
  334. package/dist/NotificationServicesPushController/services/endpoints.d.mts.map +1 -0
  335. package/dist/NotificationServicesPushController/services/endpoints.mjs +2 -7
  336. package/dist/NotificationServicesPushController/services/endpoints.mjs.map +1 -1
  337. package/dist/NotificationServicesPushController/services/push/index.cjs +3 -0
  338. package/dist/NotificationServicesPushController/services/push/index.cjs.map +1 -0
  339. package/dist/{types/NotificationServicesPushController/services/push/index.d.ts → NotificationServicesPushController/services/push/index.d.cts} +2 -2
  340. package/dist/NotificationServicesPushController/services/push/index.d.cts.map +1 -0
  341. package/dist/NotificationServicesPushController/services/push/index.d.mts +6 -0
  342. package/dist/NotificationServicesPushController/services/push/index.d.mts.map +1 -0
  343. package/dist/NotificationServicesPushController/services/push/index.mjs +1 -0
  344. package/dist/NotificationServicesPushController/services/push/index.mjs.map +1 -1
  345. package/dist/NotificationServicesPushController/services/push/push-web.cjs +121 -0
  346. package/dist/NotificationServicesPushController/services/push/push-web.cjs.map +1 -0
  347. package/dist/{types/NotificationServicesPushController/services/push/push-web.d.ts → NotificationServicesPushController/services/push/push-web.d.cts} +3 -3
  348. package/dist/NotificationServicesPushController/services/push/push-web.d.cts.map +1 -0
  349. package/dist/NotificationServicesPushController/services/push/push-web.d.mts +32 -0
  350. package/dist/NotificationServicesPushController/services/push/push-web.d.mts.map +1 -0
  351. package/dist/NotificationServicesPushController/services/push/push-web.mjs +116 -38
  352. package/dist/NotificationServicesPushController/services/push/push-web.mjs.map +1 -1
  353. package/dist/NotificationServicesPushController/services/services.cjs +197 -0
  354. package/dist/NotificationServicesPushController/services/services.cjs.map +1 -0
  355. package/dist/{types/NotificationServicesPushController/services/services.d.ts → NotificationServicesPushController/services/services.d.cts} +4 -4
  356. package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -0
  357. package/dist/NotificationServicesPushController/services/services.d.mts +95 -0
  358. package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -0
  359. package/dist/NotificationServicesPushController/services/services.mjs +168 -45
  360. package/dist/NotificationServicesPushController/services/services.mjs.map +1 -1
  361. package/dist/NotificationServicesPushController/types/firebase.cjs +3 -0
  362. package/dist/NotificationServicesPushController/types/firebase.cjs.map +1 -0
  363. package/dist/{types/NotificationServicesPushController/types/firebase.d.ts → NotificationServicesPushController/types/firebase.d.cts} +1 -1
  364. package/dist/NotificationServicesPushController/types/firebase.d.cts.map +1 -0
  365. package/dist/NotificationServicesPushController/types/firebase.d.mts +53 -0
  366. package/dist/NotificationServicesPushController/types/firebase.d.mts.map +1 -0
  367. package/dist/NotificationServicesPushController/types/firebase.mjs +1 -1
  368. package/dist/NotificationServicesPushController/types/firebase.mjs.map +1 -1
  369. package/dist/NotificationServicesPushController/types/index.cjs +18 -0
  370. package/dist/NotificationServicesPushController/types/index.cjs.map +1 -0
  371. package/dist/NotificationServicesPushController/types/index.d.cts +2 -0
  372. package/dist/NotificationServicesPushController/types/index.d.cts.map +1 -0
  373. package/dist/NotificationServicesPushController/types/index.d.mts +2 -0
  374. package/dist/NotificationServicesPushController/types/index.d.mts.map +1 -0
  375. package/dist/NotificationServicesPushController/types/index.mjs +1 -2
  376. package/dist/NotificationServicesPushController/types/index.mjs.map +1 -1
  377. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs +84 -0
  378. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +1 -0
  379. package/dist/{types/NotificationServicesPushController/utils/get-notification-data.d.ts → NotificationServicesPushController/utils/get-notification-data.d.cts} +2 -2
  380. package/dist/NotificationServicesPushController/utils/get-notification-data.d.cts.map +1 -0
  381. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts +42 -0
  382. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts.map +1 -0
  383. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +76 -12
  384. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -1
  385. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +190 -0
  386. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -0
  387. package/dist/{types/NotificationServicesPushController/utils/get-notification-message.d.ts → NotificationServicesPushController/utils/get-notification-message.d.cts} +3 -3
  388. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -0
  389. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +67 -0
  390. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -0
  391. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +182 -37
  392. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -1
  393. package/dist/NotificationServicesPushController/utils/index.cjs +19 -0
  394. package/dist/NotificationServicesPushController/utils/index.cjs.map +1 -0
  395. package/dist/NotificationServicesPushController/utils/index.d.cts +3 -0
  396. package/dist/NotificationServicesPushController/utils/index.d.cts.map +1 -0
  397. package/dist/NotificationServicesPushController/utils/index.d.mts +3 -0
  398. package/dist/NotificationServicesPushController/utils/index.d.mts.map +1 -0
  399. package/dist/NotificationServicesPushController/utils/index.mjs +2 -48
  400. package/dist/NotificationServicesPushController/utils/index.mjs.map +1 -1
  401. package/dist/index.cjs +29 -0
  402. package/dist/index.cjs.map +1 -0
  403. package/dist/index.d.cts +3 -0
  404. package/dist/index.d.cts.map +1 -0
  405. package/dist/index.d.mts +3 -0
  406. package/dist/index.d.mts.map +1 -0
  407. package/dist/index.mjs +2 -45
  408. package/dist/index.mjs.map +1 -1
  409. package/dist/shared/to-raw-notification.cjs +19 -0
  410. package/dist/shared/to-raw-notification.cjs.map +1 -0
  411. package/dist/{types/shared/to-raw-notification.d.ts → shared/to-raw-notification.d.cts} +2 -2
  412. package/dist/shared/to-raw-notification.d.cts.map +1 -0
  413. package/dist/shared/to-raw-notification.d.mts +11 -0
  414. package/dist/shared/to-raw-notification.d.mts.map +1 -0
  415. package/dist/shared/to-raw-notification.mjs +14 -7
  416. package/dist/shared/to-raw-notification.mjs.map +1 -1
  417. package/package.json +12 -7
  418. package/dist/NotificationServicesController/NotificationServicesController.js +0 -19
  419. package/dist/NotificationServicesController/NotificationServicesController.js.map +0 -1
  420. package/dist/NotificationServicesController/constants/constants.js +0 -10
  421. package/dist/NotificationServicesController/constants/constants.js.map +0 -1
  422. package/dist/NotificationServicesController/constants/index.js +0 -29
  423. package/dist/NotificationServicesController/constants/index.js.map +0 -1
  424. package/dist/NotificationServicesController/constants/notification-schema.js +0 -22
  425. package/dist/NotificationServicesController/constants/notification-schema.js.map +0 -1
  426. package/dist/NotificationServicesController/index.js +0 -87
  427. package/dist/NotificationServicesController/index.js.map +0 -1
  428. package/dist/NotificationServicesController/processors/index.js +0 -22
  429. package/dist/NotificationServicesController/processors/index.js.map +0 -1
  430. package/dist/NotificationServicesController/processors/process-feature-announcement.js +0 -10
  431. package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +0 -1
  432. package/dist/NotificationServicesController/processors/process-notifications.js +0 -13
  433. package/dist/NotificationServicesController/processors/process-notifications.js.map +0 -1
  434. package/dist/NotificationServicesController/processors/process-onchain-notifications.js +0 -8
  435. package/dist/NotificationServicesController/processors/process-onchain-notifications.js.map +0 -1
  436. package/dist/NotificationServicesController/services/feature-announcements.js +0 -14
  437. package/dist/NotificationServicesController/services/feature-announcements.js.map +0 -1
  438. package/dist/NotificationServicesController/services/onchain-notifications.js +0 -30
  439. package/dist/NotificationServicesController/services/onchain-notifications.js.map +0 -1
  440. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +0 -2
  441. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +0 -1
  442. package/dist/NotificationServicesController/types/feature-announcement/index.js +0 -5
  443. package/dist/NotificationServicesController/types/feature-announcement/index.js.map +0 -1
  444. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +0 -2
  445. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +0 -1
  446. package/dist/NotificationServicesController/types/feature-announcement/type-links.js +0 -2
  447. package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +0 -1
  448. package/dist/NotificationServicesController/types/index.js +0 -12
  449. package/dist/NotificationServicesController/types/index.js.map +0 -1
  450. package/dist/NotificationServicesController/types/notification/index.js +0 -3
  451. package/dist/NotificationServicesController/types/notification/index.js.map +0 -1
  452. package/dist/NotificationServicesController/types/notification/notification.js +0 -2
  453. package/dist/NotificationServicesController/types/notification/notification.js.map +0 -1
  454. package/dist/NotificationServicesController/types/on-chain-notification/index.js +0 -3
  455. package/dist/NotificationServicesController/types/on-chain-notification/index.js.map +0 -1
  456. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js +0 -2
  457. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js.map +0 -1
  458. package/dist/NotificationServicesController/types/on-chain-notification/schema.js +0 -1
  459. package/dist/NotificationServicesController/types/on-chain-notification/schema.js.map +0 -1
  460. package/dist/NotificationServicesController/types/type-utils.js +0 -1
  461. package/dist/NotificationServicesController/types/type-utils.js.map +0 -1
  462. package/dist/NotificationServicesController/types/user-storage/index.js +0 -3
  463. package/dist/NotificationServicesController/types/user-storage/index.js.map +0 -1
  464. package/dist/NotificationServicesController/types/user-storage/user-storage.js +0 -2
  465. package/dist/NotificationServicesController/types/user-storage/user-storage.js.map +0 -1
  466. package/dist/NotificationServicesController/ui/constants.js +0 -16
  467. package/dist/NotificationServicesController/ui/constants.js.map +0 -1
  468. package/dist/NotificationServicesController/ui/index.js +0 -17
  469. package/dist/NotificationServicesController/ui/index.js.map +0 -1
  470. package/dist/NotificationServicesController/utils/utils.js +0 -32
  471. package/dist/NotificationServicesController/utils/utils.js.map +0 -1
  472. package/dist/NotificationServicesPushController/NotificationServicesPushController.js +0 -39
  473. package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +0 -1
  474. package/dist/NotificationServicesPushController/constants.js +0 -26
  475. package/dist/NotificationServicesPushController/constants.js.map +0 -1
  476. package/dist/NotificationServicesPushController/index.js +0 -72
  477. package/dist/NotificationServicesPushController/index.js.map +0 -1
  478. package/dist/NotificationServicesPushController/services/endpoints.js +0 -8
  479. package/dist/NotificationServicesPushController/services/endpoints.js.map +0 -1
  480. package/dist/NotificationServicesPushController/services/push/index.js +0 -1
  481. package/dist/NotificationServicesPushController/services/push/index.js.map +0 -1
  482. package/dist/NotificationServicesPushController/services/push/push-web.js +0 -40
  483. package/dist/NotificationServicesPushController/services/push/push-web.js.map +0 -1
  484. package/dist/NotificationServicesPushController/services/services.js +0 -46
  485. package/dist/NotificationServicesPushController/services/services.js.map +0 -1
  486. package/dist/NotificationServicesPushController/types/firebase.js +0 -2
  487. package/dist/NotificationServicesPushController/types/firebase.js.map +0 -1
  488. package/dist/NotificationServicesPushController/types/index.js +0 -3
  489. package/dist/NotificationServicesPushController/types/index.js.map +0 -1
  490. package/dist/NotificationServicesPushController/utils/get-notification-data.js +0 -14
  491. package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +0 -1
  492. package/dist/NotificationServicesPushController/utils/get-notification-message.js +0 -39
  493. package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +0 -1
  494. package/dist/NotificationServicesPushController/utils/index.js +0 -49
  495. package/dist/NotificationServicesPushController/utils/index.js.map +0 -1
  496. package/dist/chunk-232HZSEV.js +0 -7
  497. package/dist/chunk-232HZSEV.js.map +0 -1
  498. package/dist/chunk-2P5WP5NT.mjs +0 -37
  499. package/dist/chunk-2P5WP5NT.mjs.map +0 -1
  500. package/dist/chunk-3ZS2HAEG.js +0 -1
  501. package/dist/chunk-3ZS2HAEG.js.map +0 -1
  502. package/dist/chunk-4BTNTREI.mjs +0 -1
  503. package/dist/chunk-4BTNTREI.mjs.map +0 -1
  504. package/dist/chunk-4QXAPVW3.mjs +0 -1
  505. package/dist/chunk-4QXAPVW3.mjs.map +0 -1
  506. package/dist/chunk-52CALMRA.js +0 -28
  507. package/dist/chunk-53F3SYYM.mjs +0 -178
  508. package/dist/chunk-53F3SYYM.mjs.map +0 -1
  509. package/dist/chunk-5FAAZCBK.mjs +0 -29
  510. package/dist/chunk-5FAAZCBK.mjs.map +0 -1
  511. package/dist/chunk-6FLC6CJD.js +0 -149
  512. package/dist/chunk-6FLC6CJD.js.map +0 -1
  513. package/dist/chunk-6ZDVTRRT.mjs +0 -9
  514. package/dist/chunk-6ZDVTRRT.mjs.map +0 -1
  515. package/dist/chunk-77QIITUL.mjs +0 -67
  516. package/dist/chunk-77QIITUL.mjs.map +0 -1
  517. package/dist/chunk-7LWR54U7.js +0 -7
  518. package/dist/chunk-7LWR54U7.js.map +0 -1
  519. package/dist/chunk-7PWKQSM2.mjs +0 -972
  520. package/dist/chunk-7PWKQSM2.mjs.map +0 -1
  521. package/dist/chunk-7RM3YNTD.mjs +0 -1
  522. package/dist/chunk-7RM3YNTD.mjs.map +0 -1
  523. package/dist/chunk-A2RPVX47.mjs +0 -1
  524. package/dist/chunk-A2RPVX47.mjs.map +0 -1
  525. package/dist/chunk-B25TJ7KS.js +0 -8
  526. package/dist/chunk-B25TJ7KS.js.map +0 -1
  527. package/dist/chunk-B4ECJJ5C.mjs +0 -7
  528. package/dist/chunk-B4ECJJ5C.mjs.map +0 -1
  529. package/dist/chunk-BONB66A2.mjs +0 -14
  530. package/dist/chunk-BONB66A2.mjs.map +0 -1
  531. package/dist/chunk-C62SK2KY.mjs +0 -92
  532. package/dist/chunk-C62SK2KY.mjs.map +0 -1
  533. package/dist/chunk-CGPMMFUQ.mjs +0 -96
  534. package/dist/chunk-CGPMMFUQ.mjs.map +0 -1
  535. package/dist/chunk-CWZQMK63.mjs +0 -118
  536. package/dist/chunk-CWZQMK63.mjs.map +0 -1
  537. package/dist/chunk-D42BBXBM.mjs +0 -28
  538. package/dist/chunk-D42BBXBM.mjs.map +0 -1
  539. package/dist/chunk-DINCLRZT.mjs +0 -12
  540. package/dist/chunk-DINCLRZT.mjs.map +0 -1
  541. package/dist/chunk-DMH4NSLF.js +0 -1
  542. package/dist/chunk-DMH4NSLF.js.map +0 -1
  543. package/dist/chunk-DT6SLUWJ.js +0 -12
  544. package/dist/chunk-DT6SLUWJ.js.map +0 -1
  545. package/dist/chunk-EJ52BDLB.js +0 -55
  546. package/dist/chunk-EJ52BDLB.js.map +0 -1
  547. package/dist/chunk-ER475D6V.mjs +0 -231
  548. package/dist/chunk-ER475D6V.mjs.map +0 -1
  549. package/dist/chunk-G52DNXFH.mjs +0 -1
  550. package/dist/chunk-G52DNXFH.mjs.map +0 -1
  551. package/dist/chunk-GETQWOTI.js +0 -1
  552. package/dist/chunk-GETQWOTI.js.map +0 -1
  553. package/dist/chunk-HCDICNYK.js +0 -207
  554. package/dist/chunk-HCDICNYK.js.map +0 -1
  555. package/dist/chunk-HE3P5RM7.js +0 -178
  556. package/dist/chunk-HE3P5RM7.js.map +0 -1
  557. package/dist/chunk-HPUQYDVC.js +0 -1
  558. package/dist/chunk-HPUQYDVC.js.map +0 -1
  559. package/dist/chunk-HT6T5R4U.js +0 -96
  560. package/dist/chunk-HT6T5R4U.js.map +0 -1
  561. package/dist/chunk-IDO4JFV5.mjs +0 -1
  562. package/dist/chunk-IDO4JFV5.mjs.map +0 -1
  563. package/dist/chunk-IGY2S5BC.js +0 -36
  564. package/dist/chunk-IGY2S5BC.js.map +0 -1
  565. package/dist/chunk-IKWNHNJQ.mjs +0 -8
  566. package/dist/chunk-IKWNHNJQ.mjs.map +0 -1
  567. package/dist/chunk-IOMDG67D.mjs +0 -7
  568. package/dist/chunk-IOMDG67D.mjs.map +0 -1
  569. package/dist/chunk-IPI7BAW3.js +0 -1
  570. package/dist/chunk-IPI7BAW3.js.map +0 -1
  571. package/dist/chunk-JIJXHO5V.js +0 -885
  572. package/dist/chunk-JIJXHO5V.js.map +0 -1
  573. package/dist/chunk-JQ7WKFCI.mjs +0 -1
  574. package/dist/chunk-JQ7WKFCI.mjs.map +0 -1
  575. package/dist/chunk-JW3TK3NU.js +0 -221
  576. package/dist/chunk-JW3TK3NU.js.map +0 -1
  577. package/dist/chunk-KGLHGLER.js +0 -231
  578. package/dist/chunk-KGLHGLER.js.map +0 -1
  579. package/dist/chunk-LGXHJ24K.js +0 -92
  580. package/dist/chunk-LGXHJ24K.js.map +0 -1
  581. package/dist/chunk-LYEXYTOI.js +0 -14
  582. package/dist/chunk-LYEXYTOI.js.map +0 -1
  583. package/dist/chunk-LZMC2QML.mjs +0 -25
  584. package/dist/chunk-LZMC2QML.mjs.map +0 -1
  585. package/dist/chunk-MG5QDUDI.mjs +0 -48
  586. package/dist/chunk-MG5QDUDI.mjs.map +0 -1
  587. package/dist/chunk-MNBV5FJI.mjs +0 -31
  588. package/dist/chunk-MNBV5FJI.mjs.map +0 -1
  589. package/dist/chunk-NIPCK74T.js +0 -185
  590. package/dist/chunk-NIPCK74T.js.map +0 -1
  591. package/dist/chunk-O45HYLIV.js +0 -67
  592. package/dist/chunk-O45HYLIV.js.map +0 -1
  593. package/dist/chunk-ODI2BTKS.mjs +0 -55
  594. package/dist/chunk-ODI2BTKS.mjs.map +0 -1
  595. package/dist/chunk-OHFX4S6R.mjs +0 -185
  596. package/dist/chunk-OHFX4S6R.mjs.map +0 -1
  597. package/dist/chunk-OMBFVTP2.js +0 -37
  598. package/dist/chunk-OMBFVTP2.js.map +0 -1
  599. package/dist/chunk-PJMQ2XEG.js +0 -29
  600. package/dist/chunk-PJMQ2XEG.js.map +0 -1
  601. package/dist/chunk-PNCS6GEX.mjs +0 -1
  602. package/dist/chunk-PNCS6GEX.mjs.map +0 -1
  603. package/dist/chunk-PROWNV4M.js +0 -1
  604. package/dist/chunk-PROWNV4M.js.map +0 -1
  605. package/dist/chunk-QAOZN4AX.js +0 -25
  606. package/dist/chunk-QAOZN4AX.js.map +0 -1
  607. package/dist/chunk-QB5IFRLA.mjs +0 -1
  608. package/dist/chunk-QB5IFRLA.mjs.map +0 -1
  609. package/dist/chunk-RAUV5UV4.mjs +0 -1
  610. package/dist/chunk-RAUV5UV4.mjs.map +0 -1
  611. package/dist/chunk-SGLVWM4N.js +0 -48
  612. package/dist/chunk-SGLVWM4N.js.map +0 -1
  613. package/dist/chunk-TLX5QQK5.js +0 -9
  614. package/dist/chunk-TLX5QQK5.js.map +0 -1
  615. package/dist/chunk-U5UIDVOO.mjs +0 -36
  616. package/dist/chunk-U5UIDVOO.mjs.map +0 -1
  617. package/dist/chunk-U74Q3BRP.mjs +0 -1
  618. package/dist/chunk-U74Q3BRP.mjs.map +0 -1
  619. package/dist/chunk-UQ6MTYIR.js +0 -972
  620. package/dist/chunk-UQ6MTYIR.js.map +0 -1
  621. package/dist/chunk-UZHUVXRM.js +0 -31
  622. package/dist/chunk-UZHUVXRM.js.map +0 -1
  623. package/dist/chunk-V5HMYDWE.js +0 -1
  624. package/dist/chunk-V5HMYDWE.js.map +0 -1
  625. package/dist/chunk-VZMQIJMK.mjs +0 -149
  626. package/dist/chunk-VZMQIJMK.mjs.map +0 -1
  627. package/dist/chunk-W7IP4LDB.js +0 -118
  628. package/dist/chunk-W7IP4LDB.js.map +0 -1
  629. package/dist/chunk-WE4RFGT7.mjs +0 -885
  630. package/dist/chunk-WE4RFGT7.mjs.map +0 -1
  631. package/dist/chunk-WGBEAP2F.mjs +0 -207
  632. package/dist/chunk-WGBEAP2F.mjs.map +0 -1
  633. package/dist/chunk-WRYFIWNK.js +0 -1
  634. package/dist/chunk-WRYFIWNK.js.map +0 -1
  635. package/dist/chunk-XZEVRYUE.js +0 -1
  636. package/dist/chunk-XZEVRYUE.js.map +0 -1
  637. package/dist/chunk-YUMIJSUD.mjs +0 -221
  638. package/dist/chunk-YUMIJSUD.mjs.map +0 -1
  639. package/dist/chunk-ZBNBZN5H.js +0 -1
  640. package/dist/chunk-ZBNBZN5H.js.map +0 -1
  641. package/dist/chunk-ZV3DFBO4.js +0 -1
  642. package/dist/chunk-ZV3DFBO4.js.map +0 -1
  643. package/dist/index.js +0 -46
  644. package/dist/index.js.map +0 -1
  645. package/dist/shared/to-raw-notification.js +0 -8
  646. package/dist/shared/to-raw-notification.js.map +0 -1
  647. package/dist/tsconfig.build.tsbuildinfo +0 -1
  648. package/dist/types/NotificationServicesController/NotificationServicesController.d.ts.map +0 -1
  649. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts +0 -6
  650. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts.map +0 -1
  651. package/dist/types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts.map +0 -1
  652. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts.map +0 -1
  653. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts.map +0 -1
  654. package/dist/types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts.map +0 -1
  655. package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts.map +0 -1
  656. package/dist/types/NotificationServicesController/__fixtures__/mockServices.d.ts.map +0 -1
  657. package/dist/types/NotificationServicesController/__fixtures__/test-utils.d.ts.map +0 -1
  658. package/dist/types/NotificationServicesController/constants/constants.d.ts.map +0 -1
  659. package/dist/types/NotificationServicesController/constants/index.d.ts +0 -3
  660. package/dist/types/NotificationServicesController/constants/index.d.ts.map +0 -1
  661. package/dist/types/NotificationServicesController/constants/notification-schema.d.ts.map +0 -1
  662. package/dist/types/NotificationServicesController/index.d.ts +0 -14
  663. package/dist/types/NotificationServicesController/index.d.ts.map +0 -1
  664. package/dist/types/NotificationServicesController/processors/index.d.ts +0 -4
  665. package/dist/types/NotificationServicesController/processors/index.d.ts.map +0 -1
  666. package/dist/types/NotificationServicesController/processors/process-feature-announcement.d.ts.map +0 -1
  667. package/dist/types/NotificationServicesController/processors/process-notifications.d.ts.map +0 -1
  668. package/dist/types/NotificationServicesController/processors/process-onchain-notifications.d.ts.map +0 -1
  669. package/dist/types/NotificationServicesController/services/feature-announcements.d.ts.map +0 -1
  670. package/dist/types/NotificationServicesController/services/onchain-notifications.d.ts.map +0 -1
  671. package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +0 -1
  672. package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts +0 -4
  673. package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts.map +0 -1
  674. package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +0 -1
  675. package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +0 -1
  676. package/dist/types/NotificationServicesController/types/index.d.ts +0 -5
  677. package/dist/types/NotificationServicesController/types/index.d.ts.map +0 -1
  678. package/dist/types/NotificationServicesController/types/notification/index.d.ts +0 -2
  679. package/dist/types/NotificationServicesController/types/notification/index.d.ts.map +0 -1
  680. package/dist/types/NotificationServicesController/types/notification/notification.d.ts.map +0 -1
  681. package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts +0 -2
  682. package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts.map +0 -1
  683. package/dist/types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts.map +0 -1
  684. package/dist/types/NotificationServicesController/types/on-chain-notification/schema.d.ts.map +0 -1
  685. package/dist/types/NotificationServicesController/types/type-utils.d.ts.map +0 -1
  686. package/dist/types/NotificationServicesController/types/user-storage/index.d.ts +0 -2
  687. package/dist/types/NotificationServicesController/types/user-storage/index.d.ts.map +0 -1
  688. package/dist/types/NotificationServicesController/types/user-storage/user-storage.d.ts.map +0 -1
  689. package/dist/types/NotificationServicesController/ui/constants.d.ts.map +0 -1
  690. package/dist/types/NotificationServicesController/ui/index.d.ts +0 -2
  691. package/dist/types/NotificationServicesController/ui/index.d.ts.map +0 -1
  692. package/dist/types/NotificationServicesController/utils/utils.d.ts.map +0 -1
  693. package/dist/types/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +0 -1
  694. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts +0 -2
  695. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts.map +0 -1
  696. package/dist/types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts.map +0 -1
  697. package/dist/types/NotificationServicesPushController/__fixtures__/mockServices.d.ts.map +0 -1
  698. package/dist/types/NotificationServicesPushController/constants.d.ts.map +0 -1
  699. package/dist/types/NotificationServicesPushController/index.d.ts +0 -11
  700. package/dist/types/NotificationServicesPushController/index.d.ts.map +0 -1
  701. package/dist/types/NotificationServicesPushController/services/endpoints.d.ts.map +0 -1
  702. package/dist/types/NotificationServicesPushController/services/push/index.d.ts.map +0 -1
  703. package/dist/types/NotificationServicesPushController/services/push/push-web.d.ts.map +0 -1
  704. package/dist/types/NotificationServicesPushController/services/services.d.ts.map +0 -1
  705. package/dist/types/NotificationServicesPushController/types/firebase.d.ts.map +0 -1
  706. package/dist/types/NotificationServicesPushController/types/index.d.ts +0 -2
  707. package/dist/types/NotificationServicesPushController/types/index.d.ts.map +0 -1
  708. package/dist/types/NotificationServicesPushController/utils/get-notification-data.d.ts.map +0 -1
  709. package/dist/types/NotificationServicesPushController/utils/get-notification-message.d.ts.map +0 -1
  710. package/dist/types/NotificationServicesPushController/utils/index.d.ts +0 -3
  711. package/dist/types/NotificationServicesPushController/utils/index.d.ts.map +0 -1
  712. package/dist/types/index.d.ts +0 -3
  713. package/dist/types/index.d.ts.map +0 -1
  714. package/dist/types/shared/to-raw-notification.d.ts.map +0 -1
@@ -1,972 +0,0 @@
1
- import {
2
- types_exports
3
- } from "./chunk-B4ECJJ5C.mjs";
4
- import {
5
- ui_exports
6
- } from "./chunk-LZMC2QML.mjs";
7
- import {
8
- constants_exports
9
- } from "./chunk-2P5WP5NT.mjs";
10
- import {
11
- processors_exports
12
- } from "./chunk-5FAAZCBK.mjs";
13
- import {
14
- NotificationServicesController,
15
- defaultState
16
- } from "./chunk-WE4RFGT7.mjs";
17
- import {
18
- processNotification,
19
- safeProcessNotification
20
- } from "./chunk-MG5QDUDI.mjs";
21
- import {
22
- processOnChainNotification
23
- } from "./chunk-BONB66A2.mjs";
24
- import {
25
- FEATURE_ANNOUNCEMENT_API
26
- } from "./chunk-C62SK2KY.mjs";
27
- import {
28
- isFeatureAnnouncementRead,
29
- processFeatureAnnouncement
30
- } from "./chunk-D42BBXBM.mjs";
31
- import {
32
- NOTIFICATION_API_LIST_ENDPOINT,
33
- NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT,
34
- TRIGGER_API_BATCH_ENDPOINT
35
- } from "./chunk-OHFX4S6R.mjs";
36
- import {
37
- initializeUserStorage
38
- } from "./chunk-YUMIJSUD.mjs";
39
- import {
40
- CHAIN_SYMBOLS,
41
- NOTIFICATION_CHAINS,
42
- NOTIFICATION_CHAINS_ID,
43
- SUPPORTED_CHAINS,
44
- TRIGGERS,
45
- TRIGGER_TYPES,
46
- TRIGGER_TYPES_GROUPS,
47
- TRIGGER_TYPES_WALLET_SET
48
- } from "./chunk-53F3SYYM.mjs";
49
- import {
50
- USER_STORAGE_VERSION,
51
- USER_STORAGE_VERSION_KEY
52
- } from "./chunk-6ZDVTRRT.mjs";
53
- import {
54
- __export
55
- } from "./chunk-U5UIDVOO.mjs";
56
-
57
- // src/NotificationServicesController/index.ts
58
- var NotificationServicesController_exports = {};
59
- __export(NotificationServicesController_exports, {
60
- CHAIN_SYMBOLS: () => CHAIN_SYMBOLS,
61
- Constants: () => constants_exports,
62
- Controller: () => NotificationServicesController,
63
- Mocks: () => fixtures_exports,
64
- NOTIFICATION_CHAINS: () => NOTIFICATION_CHAINS,
65
- NOTIFICATION_CHAINS_ID: () => NOTIFICATION_CHAINS_ID,
66
- Processors: () => processors_exports,
67
- SUPPORTED_CHAINS: () => SUPPORTED_CHAINS,
68
- TRIGGERS: () => TRIGGERS,
69
- TRIGGER_TYPES: () => TRIGGER_TYPES,
70
- TRIGGER_TYPES_GROUPS: () => TRIGGER_TYPES_GROUPS,
71
- TRIGGER_TYPES_WALLET_SET: () => TRIGGER_TYPES_WALLET_SET,
72
- Types: () => types_exports,
73
- UI: () => ui_exports,
74
- USER_STORAGE_VERSION: () => USER_STORAGE_VERSION,
75
- USER_STORAGE_VERSION_KEY: () => USER_STORAGE_VERSION_KEY,
76
- default: () => NotificationServicesController_default,
77
- defaultState: () => defaultState,
78
- isFeatureAnnouncementRead: () => isFeatureAnnouncementRead,
79
- processFeatureAnnouncement: () => processFeatureAnnouncement,
80
- processNotification: () => processNotification,
81
- processOnChainNotification: () => processOnChainNotification,
82
- safeProcessNotification: () => safeProcessNotification
83
- });
84
-
85
- // src/NotificationServicesController/__fixtures__/index.ts
86
- var fixtures_exports = {};
87
- __export(fixtures_exports, {
88
- CONTENTFUL_RESPONSE: () => CONTENTFUL_RESPONSE,
89
- MOCK_RAW_ON_CHAIN_NOTIFICATIONS: () => MOCK_RAW_ON_CHAIN_NOTIFICATIONS,
90
- MOCK_USER_STORAGE_ACCOUNT: () => MOCK_USER_STORAGE_ACCOUNT,
91
- MOCK_USER_STORAGE_CHAIN: () => MOCK_USER_STORAGE_CHAIN,
92
- createMockFeatureAnnouncementAPIResult: () => createMockFeatureAnnouncementAPIResult,
93
- createMockFeatureAnnouncementRaw: () => createMockFeatureAnnouncementRaw,
94
- createMockFullUserStorage: () => createMockFullUserStorage,
95
- createMockNotificationERC1155Received: () => createMockNotificationERC1155Received,
96
- createMockNotificationERC1155Sent: () => createMockNotificationERC1155Sent,
97
- createMockNotificationERC20Received: () => createMockNotificationERC20Received,
98
- createMockNotificationERC20Sent: () => createMockNotificationERC20Sent,
99
- createMockNotificationERC721Received: () => createMockNotificationERC721Received,
100
- createMockNotificationERC721Sent: () => createMockNotificationERC721Sent,
101
- createMockNotificationEthReceived: () => createMockNotificationEthReceived,
102
- createMockNotificationEthSent: () => createMockNotificationEthSent,
103
- createMockNotificationLidoReadyToBeWithdrawn: () => createMockNotificationLidoReadyToBeWithdrawn,
104
- createMockNotificationLidoStakeCompleted: () => createMockNotificationLidoStakeCompleted,
105
- createMockNotificationLidoWithdrawalCompleted: () => createMockNotificationLidoWithdrawalCompleted,
106
- createMockNotificationLidoWithdrawalRequested: () => createMockNotificationLidoWithdrawalRequested,
107
- createMockNotificationMetaMaskSwapsCompleted: () => createMockNotificationMetaMaskSwapsCompleted,
108
- createMockNotificationRocketPoolStakeCompleted: () => createMockNotificationRocketPoolStakeCompleted,
109
- createMockNotificationRocketPoolUnStakeCompleted: () => createMockNotificationRocketPoolUnStakeCompleted,
110
- createMockNotificationTrigger: () => createMockNotificationTrigger,
111
- createMockRawOnChainNotifications: () => createMockRawOnChainNotifications,
112
- createMockUserStorage: () => createMockUserStorage,
113
- createMockUserStorageWithTriggers: () => createMockUserStorageWithTriggers,
114
- getMockBatchCreateTriggersResponse: () => getMockBatchCreateTriggersResponse,
115
- getMockBatchDeleteTriggersResponse: () => getMockBatchDeleteTriggersResponse,
116
- getMockFeatureAnnouncementResponse: () => getMockFeatureAnnouncementResponse,
117
- getMockListNotificationsResponse: () => getMockListNotificationsResponse,
118
- getMockMarkNotificationsAsReadResponse: () => getMockMarkNotificationsAsReadResponse
119
- });
120
-
121
- // src/NotificationServicesController/__fixtures__/mock-feature-announcements.ts
122
- function createMockFeatureAnnouncementAPIResult() {
123
- return {
124
- sys: {
125
- type: "Array"
126
- },
127
- total: 17,
128
- skip: 0,
129
- limit: 1,
130
- items: [
131
- {
132
- metadata: {
133
- tags: []
134
- },
135
- sys: {
136
- space: {
137
- sys: {
138
- type: "Link",
139
- linkType: "Space",
140
- id: "jdkgyfmyd9sw"
141
- }
142
- },
143
- id: "1ABRmHaNCgmxROKXXLXsMu",
144
- type: "Entry",
145
- createdAt: "2024-04-09T13:24:01.872Z",
146
- updatedAt: "2024-04-09T13:24:01.872Z",
147
- environment: {
148
- sys: {
149
- id: "master",
150
- type: "Link",
151
- linkType: "Environment"
152
- }
153
- },
154
- revision: 1,
155
- contentType: {
156
- sys: {
157
- type: "Link",
158
- linkType: "ContentType",
159
- id: "productAnnouncement"
160
- }
161
- },
162
- locale: "en-US"
163
- },
164
- fields: {
165
- title: "Don\u2019t miss out on airdrops and new NFT mints!",
166
- id: "dont-miss-out-on-airdrops-and-new-nft-mints",
167
- category: "ANNOUNCEMENT",
168
- shortDescription: "Check your airdrop eligibility and see trending NFT drops. Head over to the Explore tab to get started. ",
169
- image: {
170
- sys: {
171
- type: "Link",
172
- linkType: "Asset",
173
- id: "5jqq8sFeLc6XEoeWlpI3aB"
174
- }
175
- },
176
- longDescription: {
177
- data: {},
178
- content: [
179
- {
180
- data: {},
181
- content: [
182
- {
183
- data: {},
184
- marks: [],
185
- value: "You can now verify if any of your connected addresses are eligible for airdrops and other ERC-20 claims in a secure and convenient way. We\u2019ve also added trending NFT mints based on creators you\u2019ve minted from before or other tokens you hold. Head over to the Explore tab to get started. \n",
186
- nodeType: "text"
187
- }
188
- ],
189
- nodeType: "paragraph"
190
- }
191
- ],
192
- nodeType: "document"
193
- },
194
- link: {
195
- sys: {
196
- type: "Link",
197
- linkType: "Entry",
198
- id: "62xKYM2ydo4F1mS5q97K5q"
199
- }
200
- }
201
- }
202
- }
203
- ],
204
- includes: {
205
- Entry: [
206
- {
207
- metadata: {
208
- tags: []
209
- },
210
- sys: {
211
- space: {
212
- sys: {
213
- type: "Link",
214
- linkType: "Space",
215
- id: "jdkgyfmyd9sw"
216
- }
217
- },
218
- id: "62xKYM2ydo4F1mS5q97K5q",
219
- type: "Entry",
220
- createdAt: "2024-04-09T13:23:03.636Z",
221
- updatedAt: "2024-04-09T13:23:03.636Z",
222
- environment: {
223
- sys: {
224
- id: "master",
225
- type: "Link",
226
- linkType: "Environment"
227
- }
228
- },
229
- revision: 1,
230
- contentType: {
231
- sys: {
232
- type: "Link",
233
- linkType: "ContentType",
234
- id: "link"
235
- }
236
- },
237
- locale: "en-US"
238
- },
239
- fields: {
240
- extensionLinkText: "Try now",
241
- extensionLinkRoute: "home.html"
242
- }
243
- }
244
- ],
245
- Asset: [
246
- {
247
- metadata: {
248
- tags: []
249
- },
250
- sys: {
251
- space: {
252
- sys: {
253
- type: "Link",
254
- linkType: "Space",
255
- id: "jdkgyfmyd9sw"
256
- }
257
- },
258
- id: "5jqq8sFeLc6XEoeWlpI3aB",
259
- type: "Asset",
260
- createdAt: "2024-04-09T13:23:13.327Z",
261
- updatedAt: "2024-04-09T13:23:13.327Z",
262
- environment: {
263
- sys: {
264
- id: "master",
265
- type: "Link",
266
- linkType: "Environment"
267
- }
268
- },
269
- revision: 1,
270
- locale: "en-US"
271
- },
272
- fields: {
273
- title: "PDAPP notification image Airdrops & NFT mints",
274
- description: "",
275
- file: {
276
- url: "//images.ctfassets.net/jdkgyfmyd9sw/5jqq8sFeLc6XEoeWlpI3aB/73ee0f1afa9916c3a7538b0bbee09c26/PDAPP_notification_image_Airdrops___NFT_mints.png",
277
- details: {
278
- size: 797731,
279
- image: {
280
- width: 2880,
281
- height: 1921
282
- }
283
- },
284
- fileName: "PDAPP notification image_Airdrops & NFT mints.png",
285
- contentType: "image/png"
286
- }
287
- }
288
- }
289
- ]
290
- }
291
- };
292
- }
293
- function createMockFeatureAnnouncementRaw() {
294
- return {
295
- type: "features_announcement" /* FEATURES_ANNOUNCEMENT */,
296
- createdAt: "2999-04-09T13:24:01.872Z",
297
- data: {
298
- id: "dont-miss-out-on-airdrops-and-new-nft-mints",
299
- category: "ANNOUNCEMENT",
300
- title: "Don\u2019t miss out on airdrops and new NFT mints!",
301
- longDescription: `<p>You can now verify if any of your connected addresses are eligible for airdrops and other ERC-20 claims in a secure and convenient way. We\u2019ve also added trending NFT mints based on creators you\u2019ve minted from before or other tokens you hold. Head over to the Explore tab to get started.</p>`,
302
- shortDescription: "Check your airdrop eligibility and see trending NFT drops. Head over to the Explore tab to get started.",
303
- image: {
304
- title: "PDAPP notification image Airdrops & NFT mints",
305
- description: "",
306
- url: "//images.ctfassets.net/jdkgyfmyd9sw/5jqq8sFeLc6XEoeWlpI3aB/73ee0f1afa9916c3a7538b0bbee09c26/PDAPP_notification_image_Airdrops___NFT_mints.png"
307
- },
308
- extensionLink: {
309
- extensionLinkText: "Try now",
310
- extensionLinkRoute: "home.html"
311
- }
312
- }
313
- };
314
- }
315
-
316
- // src/NotificationServicesController/__fixtures__/mock-notification-trigger.ts
317
- import { v4 as uuidv4 } from "uuid";
318
- function createMockNotificationTrigger(override) {
319
- return {
320
- id: uuidv4(),
321
- address: "0xFAKE_ADDRESS",
322
- chainId: "1",
323
- kind: "eth_sent",
324
- enabled: true,
325
- ...override
326
- };
327
- }
328
-
329
- // src/NotificationServicesController/__fixtures__/mock-notification-user-storage.ts
330
- var MOCK_USER_STORAGE_ACCOUNT = "0x0000000000000000000000000000000000000000";
331
- var MOCK_USER_STORAGE_CHAIN = "1";
332
- function createMockUserStorage(override) {
333
- return {
334
- [USER_STORAGE_VERSION_KEY]: "1",
335
- [MOCK_USER_STORAGE_ACCOUNT]: {
336
- [MOCK_USER_STORAGE_CHAIN]: {
337
- "111-111-111-111": {
338
- k: "erc20_received" /* ERC20_RECEIVED */,
339
- e: true
340
- },
341
- "222-222-222-222": {
342
- k: "erc20_sent" /* ERC20_SENT */,
343
- e: true
344
- }
345
- }
346
- },
347
- ...override
348
- };
349
- }
350
- function createMockUserStorageWithTriggers(triggers) {
351
- const userStorage = {
352
- [USER_STORAGE_VERSION_KEY]: "1",
353
- [MOCK_USER_STORAGE_ACCOUNT]: {
354
- [MOCK_USER_STORAGE_CHAIN]: {}
355
- }
356
- };
357
- triggers.forEach((t) => {
358
- let tId;
359
- let e;
360
- let k;
361
- if (typeof t === "string") {
362
- tId = t;
363
- e = true;
364
- k = "erc20_received" /* ERC20_RECEIVED */;
365
- } else {
366
- tId = t.id;
367
- e = t.e;
368
- k = t.k ?? "erc20_received" /* ERC20_RECEIVED */;
369
- }
370
- userStorage[MOCK_USER_STORAGE_ACCOUNT][MOCK_USER_STORAGE_CHAIN][tId] = {
371
- k,
372
- e
373
- };
374
- });
375
- return userStorage;
376
- }
377
- function createMockFullUserStorage(props = {}) {
378
- return initializeUserStorage(
379
- [{ address: props.address ?? MOCK_USER_STORAGE_ACCOUNT }],
380
- props.triggersEnabled ?? true
381
- );
382
- }
383
-
384
- // src/NotificationServicesController/__fixtures__/mock-raw-notifications.ts
385
- function createMockNotificationEthSent() {
386
- const mockNotification = {
387
- type: "eth_sent" /* ETH_SENT */,
388
- id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
389
- trigger_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
390
- chain_id: 1,
391
- block_number: 17485840,
392
- block_timestamp: "2022-03-01T00:00:00Z",
393
- tx_hash: "0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6",
394
- unread: true,
395
- created_at: "2022-03-01T00:00:00Z",
396
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
397
- data: {
398
- kind: "eth_sent",
399
- network_fee: {
400
- gas_price: "207806259583",
401
- native_token_price_in_usd: "0.83"
402
- },
403
- from: "0x881D40237659C251811CEC9c364ef91dC08D300C",
404
- to: "0x881D40237659C251811CEC9c364ef91dC08D300D",
405
- amount: {
406
- usd: "670.64",
407
- eth: "0.005"
408
- }
409
- }
410
- };
411
- return mockNotification;
412
- }
413
- function createMockNotificationEthReceived() {
414
- const mockNotification = {
415
- type: "eth_received" /* ETH_RECEIVED */,
416
- id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
417
- trigger_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
418
- chain_id: 1,
419
- block_number: 17485840,
420
- block_timestamp: "2022-03-01T00:00:00Z",
421
- tx_hash: "0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6",
422
- unread: true,
423
- created_at: "2022-03-01T00:00:00Z",
424
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
425
- data: {
426
- kind: "eth_received",
427
- network_fee: {
428
- gas_price: "207806259583",
429
- native_token_price_in_usd: "0.83"
430
- },
431
- from: "0x881D40237659C251811CEC9c364ef91dC08D300C",
432
- to: "0x881D40237659C251811CEC9c364ef91dC08D300D",
433
- amount: {
434
- usd: "670.64",
435
- eth: "808.000000000000000000"
436
- }
437
- }
438
- };
439
- return mockNotification;
440
- }
441
- function createMockNotificationERC20Sent() {
442
- const mockNotification = {
443
- type: "erc20_sent" /* ERC20_SENT */,
444
- id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
445
- trigger_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
446
- chain_id: 1,
447
- block_number: 17485840,
448
- block_timestamp: "2022-03-01T00:00:00Z",
449
- tx_hash: "0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6",
450
- unread: true,
451
- created_at: "2022-03-01T00:00:00Z",
452
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
453
- data: {
454
- kind: "erc20_sent",
455
- network_fee: {
456
- gas_price: "207806259583",
457
- native_token_price_in_usd: "0.83"
458
- },
459
- to: "0xecc19e177d24551aa7ed6bc6fe566eca726cc8a9",
460
- from: "0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae",
461
- token: {
462
- usd: "1.00",
463
- name: "USDC",
464
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdc.svg",
465
- amount: "4956250000",
466
- symbol: "USDC",
467
- address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
468
- decimals: "6"
469
- }
470
- }
471
- };
472
- return mockNotification;
473
- }
474
- function createMockNotificationERC20Received() {
475
- const mockNotification = {
476
- type: "erc20_received" /* ERC20_RECEIVED */,
477
- id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
478
- trigger_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
479
- chain_id: 1,
480
- block_number: 17485840,
481
- block_timestamp: "2022-03-01T00:00:00Z",
482
- tx_hash: "0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6",
483
- unread: true,
484
- created_at: "2022-03-01T00:00:00Z",
485
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
486
- data: {
487
- kind: "erc20_received",
488
- network_fee: {
489
- gas_price: "207806259583",
490
- native_token_price_in_usd: "0.83"
491
- },
492
- to: "0xeae7380dd4cef6fbd1144f49e4d1e6964258a4f4",
493
- from: "0x51c72848c68a965f66fa7a88855f9f7784502a7f",
494
- token: {
495
- usd: "0.00",
496
- name: "SHIBA INU",
497
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/shib.svg",
498
- amount: "8382798736999999457296646144",
499
- symbol: "SHIB",
500
- address: "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",
501
- decimals: "18"
502
- }
503
- }
504
- };
505
- return mockNotification;
506
- }
507
- function createMockNotificationERC721Sent() {
508
- const mockNotification = {
509
- type: "erc721_sent" /* ERC721_SENT */,
510
- block_number: 18576643,
511
- block_timestamp: "1700043467",
512
- chain_id: 1,
513
- created_at: "2023-11-15T11:08:17.895407Z",
514
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
515
- data: {
516
- to: "0xf47f628fe3bd2595e9ab384bfffc3859b448e451",
517
- nft: {
518
- name: "Captainz #8680",
519
- image: "https://i.seadn.io/s/raw/files/ae0fc06714ff7fb40217340d8a242c0e.gif?w=500&auto=format",
520
- token_id: "8680",
521
- collection: {
522
- name: "The Captainz",
523
- image: "https://i.seadn.io/gcs/files/6df4d75778066bce740050615bc84e21.png?w=500&auto=format",
524
- symbol: "Captainz",
525
- address: "0x769272677fab02575e84945f03eca517acc544cc"
526
- }
527
- },
528
- from: "0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f",
529
- kind: "erc721_sent",
530
- network_fee: {
531
- gas_price: "24550653274",
532
- native_token_price_in_usd: "1986.61"
533
- }
534
- },
535
- id: "a4193058-9814-537e-9df4-79dcac727fb6",
536
- trigger_id: "028485be-b994-422b-a93b-03fcc01ab715",
537
- tx_hash: "0x0833c69fb41cf972a0f031fceca242939bc3fcf82b964b74606649abcad371bd",
538
- unread: true
539
- };
540
- return mockNotification;
541
- }
542
- function createMockNotificationERC721Received() {
543
- const mockNotification = {
544
- type: "erc721_received" /* ERC721_RECEIVED */,
545
- block_number: 18571446,
546
- block_timestamp: "1699980623",
547
- chain_id: 1,
548
- created_at: "2023-11-14T17:40:52.319281Z",
549
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
550
- data: {
551
- to: "0xba7f3daa8adfdad686574406ab9bd5d2f0a49d2e",
552
- nft: {
553
- name: "The Plague #2722",
554
- image: "https://i.seadn.io/s/raw/files/a96f90ec8ebf55a2300c66a0c46d6a16.png?w=500&auto=format",
555
- token_id: "2722",
556
- collection: {
557
- name: "The Plague NFT",
558
- image: "https://i.seadn.io/gcs/files/4577987a5ca45ca5118b2e31559ee4d1.jpg?w=500&auto=format",
559
- symbol: "FROG",
560
- address: "0xc379e535caff250a01caa6c3724ed1359fe5c29b"
561
- }
562
- },
563
- from: "0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f",
564
- kind: "erc721_received",
565
- network_fee: {
566
- gas_price: "53701898538",
567
- native_token_price_in_usd: "2047.01"
568
- }
569
- },
570
- id: "00a79d24-befa-57ed-a55a-9eb8696e1654",
571
- trigger_id: "d24ac26a-8579-49ec-9947-d04d63592ebd",
572
- tx_hash: "0xe554c9e29e6eeca8ba94da4d047334ba08b8eb9ca3b801dd69cec08dfdd4ae43",
573
- unread: true
574
- };
575
- return mockNotification;
576
- }
577
- function createMockNotificationERC1155Sent() {
578
- const mockNotification = {
579
- type: "erc1155_sent" /* ERC1155_SENT */,
580
- block_number: 18615206,
581
- block_timestamp: "1700510003",
582
- chain_id: 1,
583
- created_at: "2023-11-20T20:44:10.110706Z",
584
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
585
- data: {
586
- to: "0x15bd77ccacf2da39b84f0c31fee2e451225bb190",
587
- nft: {
588
- name: "IlluminatiNFT DAO",
589
- image: "https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format",
590
- token_id: "1",
591
- collection: {
592
- name: "IlluminatiNFT DAO",
593
- image: "https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format",
594
- symbol: "TRUTH",
595
- address: "0xe25f0fe686477f9df3c2876c4902d3b85f75f33a"
596
- }
597
- },
598
- from: "0x0000000000000000000000000000000000000000",
599
- kind: "erc1155_sent",
600
- network_fee: {
601
- gas_price: "33571446596",
602
- native_token_price_in_usd: "2038.88"
603
- }
604
- },
605
- id: "a09ff9d1-623a-52ab-a3d4-c7c8c9a58362",
606
- trigger_id: "e2130f7d-78b8-4c34-999a-3f3d3bb5b03c",
607
- tx_hash: "0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f",
608
- unread: true
609
- };
610
- return mockNotification;
611
- }
612
- function createMockNotificationERC1155Received() {
613
- const mockNotification = {
614
- type: "erc1155_received" /* ERC1155_RECEIVED */,
615
- block_number: 18615206,
616
- block_timestamp: "1700510003",
617
- chain_id: 1,
618
- created_at: "2023-11-20T20:44:10.110706Z",
619
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
620
- data: {
621
- to: "0x15bd77ccacf2da39b84f0c31fee2e451225bb190",
622
- nft: {
623
- name: "IlluminatiNFT DAO",
624
- image: "https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format",
625
- token_id: "1",
626
- collection: {
627
- name: "IlluminatiNFT DAO",
628
- image: "https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format",
629
- symbol: "TRUTH",
630
- address: "0xe25f0fe686477f9df3c2876c4902d3b85f75f33a"
631
- }
632
- },
633
- from: "0x0000000000000000000000000000000000000000",
634
- kind: "erc1155_received",
635
- network_fee: {
636
- gas_price: "33571446596",
637
- native_token_price_in_usd: "2038.88"
638
- }
639
- },
640
- id: "b6b93c84-e8dc-54ed-9396-7ea50474843a",
641
- trigger_id: "710c8abb-43a9-42a5-9d86-9dd258726c82",
642
- tx_hash: "0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f",
643
- unread: true
644
- };
645
- return mockNotification;
646
- }
647
- function createMockNotificationMetaMaskSwapsCompleted() {
648
- const mockNotification = {
649
- type: "metamask_swap_completed" /* METAMASK_SWAP_COMPLETED */,
650
- block_number: 18377666,
651
- block_timestamp: "1697637275",
652
- chain_id: 1,
653
- created_at: "2023-10-18T13:58:49.854596Z",
654
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
655
- data: {
656
- kind: "metamask_swap_completed",
657
- rate: "1558.27",
658
- token_in: {
659
- usd: "1576.73",
660
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
661
- amount: "9000000000000000",
662
- symbol: "ETH",
663
- address: "0x0000000000000000000000000000000000000000",
664
- decimals: "18",
665
- name: "Ethereum"
666
- },
667
- token_out: {
668
- usd: "1.00",
669
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdt.svg",
670
- amount: "14024419",
671
- symbol: "USDT",
672
- address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
673
- decimals: "6",
674
- name: "USDT"
675
- },
676
- network_fee: {
677
- gas_price: "15406129273",
678
- native_token_price_in_usd: "1576.73"
679
- }
680
- },
681
- id: "7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b",
682
- trigger_id: "d2eaa2eb-2e6e-4fd5-8763-b70ea571b46c",
683
- tx_hash: "0xf69074290f3aa11bce567aabc9ca0df7a12559dfae1b80ba1a124e9dfe19ecc5",
684
- unread: true
685
- };
686
- return mockNotification;
687
- }
688
- function createMockNotificationRocketPoolStakeCompleted() {
689
- const mockNotification = {
690
- type: "rocketpool_stake_completed" /* ROCKETPOOL_STAKE_COMPLETED */,
691
- block_number: 18585057,
692
- block_timestamp: "1700145059",
693
- chain_id: 1,
694
- created_at: "2023-11-20T12:02:48.796824Z",
695
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
696
- data: {
697
- kind: "rocketpool_stake_completed",
698
- stake_in: {
699
- usd: "2031.86",
700
- name: "Ethereum",
701
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
702
- amount: "190690478063438272",
703
- symbol: "ETH",
704
- address: "0x0000000000000000000000000000000000000000",
705
- decimals: "18"
706
- },
707
- stake_out: {
708
- usd: "2226.49",
709
- name: "Rocket Pool ETH",
710
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg",
711
- amount: "175024360778165879",
712
- symbol: "RETH",
713
- address: "0xae78736Cd615f374D3085123A210448E74Fc6393",
714
- decimals: "18"
715
- },
716
- network_fee: {
717
- gas_price: "36000000000",
718
- native_token_price_in_usd: "2031.86"
719
- }
720
- },
721
- id: "c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9",
722
- trigger_id: "5110ff97-acff-40c0-83b4-11d487b8c7b0",
723
- tx_hash: "0xcfc0693bf47995907b0f46ef0644cf16dd9a0de797099b2e00fd481e1b2117d3",
724
- unread: true
725
- };
726
- return mockNotification;
727
- }
728
- function createMockNotificationRocketPoolUnStakeCompleted() {
729
- const mockNotification = {
730
- type: "rocketpool_unstake_completed" /* ROCKETPOOL_UNSTAKE_COMPLETED */,
731
- block_number: 18384336,
732
- block_timestamp: "1697718011",
733
- chain_id: 1,
734
- created_at: "2023-10-19T13:11:10.623042Z",
735
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
736
- data: {
737
- kind: "rocketpool_unstake_completed",
738
- stake_in: {
739
- usd: "1686.34",
740
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg",
741
- amount: "66608041413696770",
742
- symbol: "RETH",
743
- address: "0xae78736Cd615f374D3085123A210448E74Fc6393",
744
- decimals: "18",
745
- name: "Rocketpool Eth"
746
- },
747
- stake_out: {
748
- usd: "1553.75",
749
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
750
- amount: "72387843427700824",
751
- symbol: "ETH",
752
- address: "0x0000000000000000000000000000000000000000",
753
- decimals: "18",
754
- name: "Ethereum"
755
- },
756
- network_fee: {
757
- gas_price: "5656322987",
758
- native_token_price_in_usd: "1553.75"
759
- }
760
- },
761
- id: "d8c246e7-a0a4-5f1d-b079-2b1707665fbc",
762
- trigger_id: "291ec897-f569-4837-b6c0-21001b198dff",
763
- tx_hash: "0xc7972a7e409abfc62590ec90e633acd70b9b74e76ad02305be8bf133a0e22d5f",
764
- unread: true
765
- };
766
- return mockNotification;
767
- }
768
- function createMockNotificationLidoStakeCompleted() {
769
- const mockNotification = {
770
- type: "lido_stake_completed" /* LIDO_STAKE_COMPLETED */,
771
- block_number: 18487118,
772
- block_timestamp: "1698961091",
773
- chain_id: 1,
774
- created_at: "2023-11-02T22:28:49.970865Z",
775
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
776
- data: {
777
- kind: "lido_stake_completed",
778
- stake_in: {
779
- usd: "1806.33",
780
- name: "Ethereum",
781
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
782
- amount: "330303634023928032",
783
- symbol: "ETH",
784
- address: "0x0000000000000000000000000000000000000000",
785
- decimals: "18"
786
- },
787
- stake_out: {
788
- usd: "1801.30",
789
- name: "Liquid staked Ether 2.0",
790
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg",
791
- amount: "330303634023928032",
792
- symbol: "STETH",
793
- address: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
794
- decimals: "18"
795
- },
796
- network_fee: {
797
- gas_price: "26536359866",
798
- native_token_price_in_usd: "1806.33"
799
- }
800
- },
801
- id: "9d9b1467-b3ee-5492-8ca2-22382657b690",
802
- trigger_id: "ec10d66a-f78f-461f-83c9-609aada8cc50",
803
- tx_hash: "0x8cc0fa805f7c3b1743b14f3b91c6b824113b094f26d4ccaf6a71ad8547ce6a0f",
804
- unread: true
805
- };
806
- return mockNotification;
807
- }
808
- function createMockNotificationLidoWithdrawalRequested() {
809
- const mockNotification = {
810
- type: "lido_withdrawal_requested" /* LIDO_WITHDRAWAL_REQUESTED */,
811
- block_number: 18377760,
812
- block_timestamp: "1697638415",
813
- chain_id: 1,
814
- created_at: "2023-10-18T15:04:02.482526Z",
815
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
816
- data: {
817
- kind: "lido_withdrawal_requested",
818
- stake_in: {
819
- usd: "1568.54",
820
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg",
821
- amount: "97180668792218669859",
822
- symbol: "STETH",
823
- address: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
824
- decimals: "18",
825
- name: "Staked Eth"
826
- },
827
- stake_out: {
828
- usd: "1576.73",
829
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
830
- amount: "97180668792218669859",
831
- symbol: "ETH",
832
- address: "0x0000000000000000000000000000000000000000",
833
- decimals: "18",
834
- name: "Ethereum"
835
- },
836
- network_fee: {
837
- gas_price: "11658906980",
838
- native_token_price_in_usd: "1576.73"
839
- }
840
- },
841
- id: "29ddc718-78c6-5f91-936f-2bef13a605f0",
842
- trigger_id: "ef003925-3379-4ba7-9e2d-8218690cadc8",
843
- tx_hash: "0x58b5f82e084cb750ea174e02b20fbdfd2ba8d78053deac787f34fc38e5d427aa",
844
- unread: true
845
- };
846
- return mockNotification;
847
- }
848
- function createMockNotificationLidoWithdrawalCompleted() {
849
- const mockNotification = {
850
- type: "lido_withdrawal_completed" /* LIDO_WITHDRAWAL_COMPLETED */,
851
- block_number: 18378208,
852
- block_timestamp: "1697643851",
853
- chain_id: 1,
854
- created_at: "2023-10-18T16:35:03.147606Z",
855
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
856
- data: {
857
- kind: "lido_withdrawal_completed",
858
- stake_in: {
859
- usd: "1570.23",
860
- image: "https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg",
861
- amount: "35081997661451346",
862
- symbol: "STETH",
863
- address: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
864
- decimals: "18",
865
- name: "Staked Eth"
866
- },
867
- stake_out: {
868
- usd: "1571.74",
869
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
870
- amount: "35081997661451346",
871
- symbol: "ETH",
872
- address: "0x0000000000000000000000000000000000000000",
873
- decimals: "18",
874
- name: "Ethereum"
875
- },
876
- network_fee: {
877
- gas_price: "12699495150",
878
- native_token_price_in_usd: "1571.74"
879
- }
880
- },
881
- id: "f4ef0b7f-5612-537f-9144-0b5c63ae5391",
882
- trigger_id: "d73df14d-ce73-4f38-bad3-ab028154042c",
883
- tx_hash: "0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657",
884
- unread: true
885
- };
886
- return mockNotification;
887
- }
888
- function createMockNotificationLidoReadyToBeWithdrawn() {
889
- const mockNotification = {
890
- type: "lido_stake_ready_to_be_withdrawn" /* LIDO_STAKE_READY_TO_BE_WITHDRAWN */,
891
- block_number: 18378208,
892
- block_timestamp: "1697643851",
893
- chain_id: 1,
894
- created_at: "2023-10-18T16:35:03.147606Z",
895
- address: "0x881D40237659C251811CEC9c364ef91dC08D300C",
896
- data: {
897
- kind: "lido_stake_ready_to_be_withdrawn",
898
- request_id: "123456789",
899
- staked_eth: {
900
- address: "0x881D40237659C251811CEC9c364ef91dC08D300F",
901
- symbol: "ETH",
902
- name: "Ethereum",
903
- amount: "2.5",
904
- decimals: "18",
905
- image: "https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg",
906
- usd: "10000.00"
907
- }
908
- },
909
- id: "f4ef0b7f-5612-537f-9144-0b5c63ae5391",
910
- trigger_id: "d73df14d-ce73-4f38-bad3-ab028154042c",
911
- tx_hash: "0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657",
912
- unread: true
913
- };
914
- return mockNotification;
915
- }
916
- function createMockRawOnChainNotifications() {
917
- return [1, 2, 3].map((id) => {
918
- const notification = createMockNotificationEthSent();
919
- notification.id += `-${id}`;
920
- return notification;
921
- });
922
- }
923
-
924
- // src/NotificationServicesController/__fixtures__/mockResponses.ts
925
- var CONTENTFUL_RESPONSE = createMockFeatureAnnouncementAPIResult();
926
- var getMockFeatureAnnouncementResponse = () => {
927
- return {
928
- url: FEATURE_ANNOUNCEMENT_API,
929
- requestMethod: "GET",
930
- response: CONTENTFUL_RESPONSE
931
- };
932
- };
933
- var getMockBatchCreateTriggersResponse = () => {
934
- return {
935
- url: TRIGGER_API_BATCH_ENDPOINT,
936
- requestMethod: "POST",
937
- response: null
938
- };
939
- };
940
- var getMockBatchDeleteTriggersResponse = () => {
941
- return {
942
- url: TRIGGER_API_BATCH_ENDPOINT,
943
- requestMethod: "DELETE",
944
- response: null
945
- };
946
- };
947
- var MOCK_RAW_ON_CHAIN_NOTIFICATIONS = createMockRawOnChainNotifications();
948
- var getMockListNotificationsResponse = () => {
949
- return {
950
- url: NOTIFICATION_API_LIST_ENDPOINT,
951
- requestMethod: "POST",
952
- response: MOCK_RAW_ON_CHAIN_NOTIFICATIONS
953
- };
954
- };
955
- var getMockMarkNotificationsAsReadResponse = () => {
956
- return {
957
- url: NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT,
958
- requestMethod: "POST",
959
- response: null
960
- };
961
- };
962
-
963
- // src/NotificationServicesController/index.ts
964
- var NotificationServicesController2 = NotificationServicesController;
965
- var NotificationServicesController_default = NotificationServicesController2;
966
-
967
- export {
968
- fixtures_exports,
969
- NotificationServicesController_default,
970
- NotificationServicesController_exports
971
- };
972
- //# sourceMappingURL=chunk-7PWKQSM2.mjs.map