@metamask/snaps-sdk 6.14.0 → 6.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/dist/error-wrappers.d.cts +192 -192
  3. package/dist/error-wrappers.d.mts +192 -192
  4. package/dist/internals/error-wrappers.d.cts +12 -12
  5. package/dist/internals/error-wrappers.d.mts +12 -12
  6. package/dist/jsx/components/Banner.cjs.map +1 -1
  7. package/dist/jsx/components/Banner.d.cts +2 -1
  8. package/dist/jsx/components/Banner.d.cts.map +1 -1
  9. package/dist/jsx/components/Banner.d.mts +2 -1
  10. package/dist/jsx/components/Banner.d.mts.map +1 -1
  11. package/dist/jsx/components/Banner.mjs.map +1 -1
  12. package/dist/jsx/components/Container.cjs +2 -1
  13. package/dist/jsx/components/Container.cjs.map +1 -1
  14. package/dist/jsx/components/Container.d.cts +7 -1
  15. package/dist/jsx/components/Container.d.cts.map +1 -1
  16. package/dist/jsx/components/Container.d.mts +7 -1
  17. package/dist/jsx/components/Container.d.mts.map +1 -1
  18. package/dist/jsx/components/Container.mjs +2 -1
  19. package/dist/jsx/components/Container.mjs.map +1 -1
  20. package/dist/jsx/components/Image.cjs +1 -0
  21. package/dist/jsx/components/Image.cjs.map +1 -1
  22. package/dist/jsx/components/Image.d.cts +3 -0
  23. package/dist/jsx/components/Image.d.cts.map +1 -1
  24. package/dist/jsx/components/Image.d.mts +3 -0
  25. package/dist/jsx/components/Image.d.mts.map +1 -1
  26. package/dist/jsx/components/Image.mjs +1 -0
  27. package/dist/jsx/components/Image.mjs.map +1 -1
  28. package/dist/jsx/components/Row.cjs.map +1 -1
  29. package/dist/jsx/components/Row.d.cts +2 -1
  30. package/dist/jsx/components/Row.d.cts.map +1 -1
  31. package/dist/jsx/components/Row.d.mts +2 -1
  32. package/dist/jsx/components/Row.d.mts.map +1 -1
  33. package/dist/jsx/components/Row.mjs.map +1 -1
  34. package/dist/jsx/components/Skeleton.cjs +17 -0
  35. package/dist/jsx/components/Skeleton.cjs.map +1 -0
  36. package/dist/jsx/components/Skeleton.d.cts +31 -0
  37. package/dist/jsx/components/Skeleton.d.cts.map +1 -0
  38. package/dist/jsx/components/Skeleton.d.mts +31 -0
  39. package/dist/jsx/components/Skeleton.d.mts.map +1 -0
  40. package/dist/jsx/components/Skeleton.mjs +14 -0
  41. package/dist/jsx/components/Skeleton.mjs.map +1 -0
  42. package/dist/jsx/components/Text.cjs.map +1 -1
  43. package/dist/jsx/components/Text.d.cts +2 -1
  44. package/dist/jsx/components/Text.d.cts.map +1 -1
  45. package/dist/jsx/components/Text.d.mts +2 -1
  46. package/dist/jsx/components/Text.d.mts.map +1 -1
  47. package/dist/jsx/components/Text.mjs.map +1 -1
  48. package/dist/jsx/components/Value.cjs +2 -0
  49. package/dist/jsx/components/Value.cjs.map +1 -1
  50. package/dist/jsx/components/Value.d.cts +5 -2
  51. package/dist/jsx/components/Value.d.cts.map +1 -1
  52. package/dist/jsx/components/Value.d.mts +5 -2
  53. package/dist/jsx/components/Value.d.mts.map +1 -1
  54. package/dist/jsx/components/Value.mjs +2 -0
  55. package/dist/jsx/components/Value.mjs.map +1 -1
  56. package/dist/jsx/components/index.cjs +2 -0
  57. package/dist/jsx/components/index.cjs.map +1 -1
  58. package/dist/jsx/components/index.d.cts +4 -1
  59. package/dist/jsx/components/index.d.cts.map +1 -1
  60. package/dist/jsx/components/index.d.mts +4 -1
  61. package/dist/jsx/components/index.d.mts.map +1 -1
  62. package/dist/jsx/components/index.mjs +2 -0
  63. package/dist/jsx/components/index.mjs.map +1 -1
  64. package/dist/jsx/components/utils.cjs +3 -0
  65. package/dist/jsx/components/utils.cjs.map +1 -0
  66. package/dist/jsx/components/utils.d.cts +5 -0
  67. package/dist/jsx/components/utils.d.cts.map +1 -0
  68. package/dist/jsx/components/utils.d.mts +5 -0
  69. package/dist/jsx/components/utils.d.mts.map +1 -0
  70. package/dist/jsx/components/utils.mjs +2 -0
  71. package/dist/jsx/components/utils.mjs.map +1 -0
  72. package/dist/jsx/validation.cjs +48 -10
  73. package/dist/jsx/validation.cjs.map +1 -1
  74. package/dist/jsx/validation.d.cts +23 -10
  75. package/dist/jsx/validation.d.cts.map +1 -1
  76. package/dist/jsx/validation.d.mts +23 -10
  77. package/dist/jsx/validation.d.mts.map +1 -1
  78. package/dist/jsx/validation.mjs +46 -8
  79. package/dist/jsx/validation.mjs.map +1 -1
  80. package/dist/types/handlers/assets-conversion.cjs +14 -0
  81. package/dist/types/handlers/assets-conversion.cjs.map +1 -0
  82. package/dist/types/handlers/assets-conversion.d.cts +47 -0
  83. package/dist/types/handlers/assets-conversion.d.cts.map +1 -0
  84. package/dist/types/handlers/assets-conversion.d.mts +47 -0
  85. package/dist/types/handlers/assets-conversion.d.mts.map +1 -0
  86. package/dist/types/handlers/assets-conversion.mjs +11 -0
  87. package/dist/types/handlers/assets-conversion.mjs.map +1 -0
  88. package/dist/types/handlers/assets-lookup.cjs +33 -0
  89. package/dist/types/handlers/assets-lookup.cjs.map +1 -0
  90. package/dist/types/handlers/assets-lookup.d.cts +87 -0
  91. package/dist/types/handlers/assets-lookup.d.cts.map +1 -0
  92. package/dist/types/handlers/assets-lookup.d.mts +87 -0
  93. package/dist/types/handlers/assets-lookup.d.mts.map +1 -0
  94. package/dist/types/handlers/assets-lookup.mjs +30 -0
  95. package/dist/types/handlers/assets-lookup.mjs.map +1 -0
  96. package/dist/types/handlers/index.cjs +2 -0
  97. package/dist/types/handlers/index.cjs.map +1 -1
  98. package/dist/types/handlers/index.d.cts +2 -0
  99. package/dist/types/handlers/index.d.cts.map +1 -1
  100. package/dist/types/handlers/index.d.mts +2 -0
  101. package/dist/types/handlers/index.d.mts.map +1 -1
  102. package/dist/types/handlers/index.mjs +2 -0
  103. package/dist/types/handlers/index.mjs.map +1 -1
  104. package/dist/types/interface.d.cts +3 -2
  105. package/dist/types/interface.d.cts.map +1 -1
  106. package/dist/types/interface.d.mts +3 -2
  107. package/dist/types/interface.d.mts.map +1 -1
  108. package/dist/types/methods/cancel-background-event.cjs +3 -0
  109. package/dist/types/methods/cancel-background-event.cjs.map +1 -0
  110. package/dist/types/methods/cancel-background-event.d.cts +15 -0
  111. package/dist/types/methods/cancel-background-event.d.cts.map +1 -0
  112. package/dist/types/methods/cancel-background-event.d.mts +15 -0
  113. package/dist/types/methods/cancel-background-event.d.mts.map +1 -0
  114. package/dist/types/methods/cancel-background-event.mjs +2 -0
  115. package/dist/types/methods/cancel-background-event.mjs.map +1 -0
  116. package/dist/types/methods/clear-state.cjs +3 -0
  117. package/dist/types/methods/clear-state.cjs.map +1 -0
  118. package/dist/types/methods/clear-state.d.cts +16 -0
  119. package/dist/types/methods/clear-state.d.cts.map +1 -0
  120. package/dist/types/methods/clear-state.d.mts +16 -0
  121. package/dist/types/methods/clear-state.d.mts.map +1 -0
  122. package/dist/types/methods/clear-state.mjs +2 -0
  123. package/dist/types/methods/clear-state.mjs.map +1 -0
  124. package/dist/types/methods/get-background-events.cjs +3 -0
  125. package/dist/types/methods/get-background-events.cjs.map +1 -0
  126. package/dist/types/methods/get-background-events.d.cts +38 -0
  127. package/dist/types/methods/get-background-events.d.cts.map +1 -0
  128. package/dist/types/methods/get-background-events.d.mts +38 -0
  129. package/dist/types/methods/get-background-events.d.mts.map +1 -0
  130. package/dist/types/methods/get-background-events.mjs +2 -0
  131. package/dist/types/methods/get-background-events.mjs.map +1 -0
  132. package/dist/types/methods/get-preferences.cjs.map +1 -1
  133. package/dist/types/methods/get-preferences.d.cts +6 -1
  134. package/dist/types/methods/get-preferences.d.cts.map +1 -1
  135. package/dist/types/methods/get-preferences.d.mts +6 -1
  136. package/dist/types/methods/get-preferences.d.mts.map +1 -1
  137. package/dist/types/methods/get-preferences.mjs.map +1 -1
  138. package/dist/types/methods/get-state.cjs +3 -0
  139. package/dist/types/methods/get-state.cjs.map +1 -0
  140. package/dist/types/methods/get-state.d.cts +21 -0
  141. package/dist/types/methods/get-state.d.cts.map +1 -0
  142. package/dist/types/methods/get-state.d.mts +21 -0
  143. package/dist/types/methods/get-state.d.mts.map +1 -0
  144. package/dist/types/methods/get-state.mjs +2 -0
  145. package/dist/types/methods/get-state.mjs.map +1 -0
  146. package/dist/types/methods/index.cjs +8 -2
  147. package/dist/types/methods/index.cjs.map +1 -1
  148. package/dist/types/methods/index.d.cts +8 -2
  149. package/dist/types/methods/index.d.cts.map +1 -1
  150. package/dist/types/methods/index.d.mts +8 -2
  151. package/dist/types/methods/index.d.mts.map +1 -1
  152. package/dist/types/methods/index.mjs +8 -2
  153. package/dist/types/methods/index.mjs.map +1 -1
  154. package/dist/types/methods/methods.cjs.map +1 -1
  155. package/dist/types/methods/methods.d.cts +21 -0
  156. package/dist/types/methods/methods.d.cts.map +1 -1
  157. package/dist/types/methods/methods.d.mts +21 -0
  158. package/dist/types/methods/methods.d.mts.map +1 -1
  159. package/dist/types/methods/methods.mjs.map +1 -1
  160. package/dist/types/methods/schedule-background-event.cjs +3 -0
  161. package/dist/types/methods/schedule-background-event.cjs.map +1 -0
  162. package/dist/types/methods/schedule-background-event.d.cts +22 -0
  163. package/dist/types/methods/schedule-background-event.d.cts.map +1 -0
  164. package/dist/types/methods/schedule-background-event.d.mts +22 -0
  165. package/dist/types/methods/schedule-background-event.d.mts.map +1 -0
  166. package/dist/types/methods/schedule-background-event.mjs +2 -0
  167. package/dist/types/methods/schedule-background-event.mjs.map +1 -0
  168. package/dist/types/methods/set-state.cjs +3 -0
  169. package/dist/types/methods/set-state.cjs.map +1 -0
  170. package/dist/types/methods/set-state.d.cts +23 -0
  171. package/dist/types/methods/set-state.d.cts.map +1 -0
  172. package/dist/types/methods/set-state.d.mts +23 -0
  173. package/dist/types/methods/set-state.d.mts.map +1 -0
  174. package/dist/types/methods/set-state.mjs +2 -0
  175. package/dist/types/methods/set-state.mjs.map +1 -0
  176. package/dist/types/permissions.cjs.map +1 -1
  177. package/dist/types/permissions.d.cts +1 -1
  178. package/dist/types/permissions.d.cts.map +1 -1
  179. package/dist/types/permissions.d.mts +1 -1
  180. package/dist/types/permissions.d.mts.map +1 -1
  181. package/dist/types/permissions.mjs.map +1 -1
  182. package/package.json +5 -5
@@ -0,0 +1,87 @@
1
+ import type { Infer } from "@metamask/superstruct";
2
+ import { type CaipAssetType } from "@metamask/utils";
3
+ export declare const FungibleAssetUnitStruct: import("@metamask/superstruct").Struct<{
4
+ symbol: string;
5
+ name: string;
6
+ decimals: number;
7
+ }, {
8
+ name: import("@metamask/superstruct").Struct<string, null>;
9
+ symbol: import("@metamask/superstruct").Struct<string, null>;
10
+ decimals: import("@metamask/superstruct").Struct<number, null>;
11
+ }>;
12
+ export type FungibleAssetUnit = Infer<typeof FungibleAssetUnitStruct>;
13
+ export declare const AssetIconUrlStruct: import("@metamask/superstruct").Struct<string, null>;
14
+ export declare const FungibleAssetMetadataStruct: import("@metamask/superstruct").Struct<{
15
+ symbol: string;
16
+ name: string;
17
+ fungible: true;
18
+ iconUrl: string;
19
+ units: {
20
+ symbol: string;
21
+ name: string;
22
+ decimals: number;
23
+ }[];
24
+ }, {
25
+ name: import("@metamask/superstruct").Struct<string, null>;
26
+ symbol: import("@metamask/superstruct").Struct<string, null>;
27
+ fungible: import("@metamask/superstruct").Struct<true, true>;
28
+ iconUrl: import("@metamask/superstruct").Struct<string, null>;
29
+ units: import("@metamask/superstruct").Struct<{
30
+ symbol: string;
31
+ name: string;
32
+ decimals: number;
33
+ }[], import("@metamask/superstruct").Struct<{
34
+ symbol: string;
35
+ name: string;
36
+ decimals: number;
37
+ }, {
38
+ name: import("@metamask/superstruct").Struct<string, null>;
39
+ symbol: import("@metamask/superstruct").Struct<string, null>;
40
+ decimals: import("@metamask/superstruct").Struct<number, null>;
41
+ }>>;
42
+ }>;
43
+ export declare const OnAssetsLookupResponseStruct: import("@metamask/superstruct").Struct<{
44
+ assets: Record<`${string}:${string}/${string}:${string}`, {
45
+ symbol: string;
46
+ name: string;
47
+ fungible: true;
48
+ iconUrl: string;
49
+ units: {
50
+ symbol: string;
51
+ name: string;
52
+ decimals: number;
53
+ }[];
54
+ }>;
55
+ }, {
56
+ assets: import("@metamask/superstruct").Struct<Record<`${string}:${string}/${string}:${string}`, {
57
+ symbol: string;
58
+ name: string;
59
+ fungible: true;
60
+ iconUrl: string;
61
+ units: {
62
+ symbol: string;
63
+ name: string;
64
+ decimals: number;
65
+ }[];
66
+ }>, null>;
67
+ }>;
68
+ export type FungibleAssetMetadata = Infer<typeof FungibleAssetMetadataStruct>;
69
+ export type OnAssetsLookupArguments = {
70
+ assets: CaipAssetType[];
71
+ };
72
+ /**
73
+ * The `onAssetsLookup` handler. This is called by MetaMask when querying about specific assets on specific chains.
74
+ *
75
+ * @returns The metadata about each asset. See
76
+ * {@link OnAssetsLookupResponse}.
77
+ */
78
+ export type OnAssetsLookupHandler = (args: OnAssetsLookupArguments) => Promise<OnAssetsLookupResponse>;
79
+ /**
80
+ * The response from the query, containing metadata about each requested asset.
81
+ *
82
+ * @property assets - An object containing a mapping between the CAIP-19 key and a metadata object.
83
+ */
84
+ export type OnAssetsLookupResponse = {
85
+ assets: Record<CaipAssetType, FungibleAssetMetadata>;
86
+ };
87
+ //# sourceMappingURL=assets-lookup.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-lookup.d.mts","sourceRoot":"","sources":["../../../src/types/handlers/assets-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,EAGL,KAAK,aAAa,EACnB,wBAAwB;AAEzB,eAAO,MAAM,uBAAuB;;;;;;;;EAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB,sDAY7B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EAEvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,IAAI,EAAE,uBAAuB,KAC1B,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;CACtD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { array, size, literal, number, object, refine, string, record } from "@metamask/superstruct";
2
+ import { assert, CaipAssetTypeStruct } from "@metamask/utils";
3
+ export const FungibleAssetUnitStruct = object({
4
+ name: string(),
5
+ symbol: string(),
6
+ decimals: number(),
7
+ });
8
+ export const AssetIconUrlStruct = refine(string(), 'Asset URL', (value) => {
9
+ try {
10
+ const url = new URL(value);
11
+ // For now, we require asset URLs to either be base64 SVGs or remote HTTPS URLs
12
+ assert(url.protocol === 'https:' ||
13
+ value.startsWith('data:image/svg+xml;base64,'));
14
+ return true;
15
+ }
16
+ catch {
17
+ return 'Invalid URL';
18
+ }
19
+ });
20
+ export const FungibleAssetMetadataStruct = object({
21
+ name: string(),
22
+ symbol: string(),
23
+ fungible: literal(true),
24
+ iconUrl: AssetIconUrlStruct,
25
+ units: size(array(FungibleAssetUnitStruct), 1, Infinity),
26
+ });
27
+ export const OnAssetsLookupResponseStruct = object({
28
+ assets: record(CaipAssetTypeStruct, FungibleAssetMetadataStruct),
29
+ });
30
+ //# sourceMappingURL=assets-lookup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-lookup.mjs","sourceRoot":"","sources":["../../../src/types/handlers/assets-lookup.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,MAAM,EACN,MAAM,EACP,8BAA8B;AAC/B,OAAO,EACL,MAAM,EACN,mBAAmB,EAEpB,wBAAwB;AAEzB,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC;IAC5C,IAAI,EAAE,MAAM,EAAE;IACd,MAAM,EAAE,MAAM,EAAE;IAChB,QAAQ,EAAE,MAAM,EAAE;CACnB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;IACxE,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3B,+EAA+E;QAC/E,MAAM,CACJ,GAAG,CAAC,QAAQ,KAAK,QAAQ;YACvB,KAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC,CACjD,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,aAAa,CAAC;IACvB,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;IAChD,IAAI,EAAE,MAAM,EAAE;IACd,MAAM,EAAE,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC;IACvB,OAAO,EAAE,kBAAkB;IAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC;CACzD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD,MAAM,EAAE,MAAM,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;CACjE,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n size,\n literal,\n number,\n object,\n refine,\n string,\n record,\n} from '@metamask/superstruct';\nimport {\n assert,\n CaipAssetTypeStruct,\n type CaipAssetType,\n} from '@metamask/utils';\n\nexport const FungibleAssetUnitStruct = object({\n name: string(),\n symbol: string(),\n decimals: number(),\n});\n\nexport type FungibleAssetUnit = Infer<typeof FungibleAssetUnitStruct>;\n\nexport const AssetIconUrlStruct = refine(string(), 'Asset URL', (value) => {\n try {\n const url = new URL(value);\n // For now, we require asset URLs to either be base64 SVGs or remote HTTPS URLs\n assert(\n url.protocol === 'https:' ||\n value.startsWith('data:image/svg+xml;base64,'),\n );\n return true;\n } catch {\n return 'Invalid URL';\n }\n});\n\nexport const FungibleAssetMetadataStruct = object({\n name: string(),\n symbol: string(),\n fungible: literal(true),\n iconUrl: AssetIconUrlStruct,\n units: size(array(FungibleAssetUnitStruct), 1, Infinity),\n});\n\nexport const OnAssetsLookupResponseStruct = object({\n assets: record(CaipAssetTypeStruct, FungibleAssetMetadataStruct),\n});\n\nexport type FungibleAssetMetadata = Infer<typeof FungibleAssetMetadataStruct>;\n\nexport type OnAssetsLookupArguments = {\n assets: CaipAssetType[];\n};\n\n/**\n * The `onAssetsLookup` handler. This is called by MetaMask when querying about specific assets on specific chains.\n *\n * @returns The metadata about each asset. See\n * {@link OnAssetsLookupResponse}.\n */\nexport type OnAssetsLookupHandler = (\n args: OnAssetsLookupArguments,\n) => Promise<OnAssetsLookupResponse>;\n\n/**\n * The response from the query, containing metadata about each requested asset.\n *\n * @property assets - An object containing a mapping between the CAIP-19 key and a metadata object.\n */\nexport type OnAssetsLookupResponse = {\n assets: Record<CaipAssetType, FungibleAssetMetadata>;\n};\n"]}
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assets-conversion.cjs"), exports);
18
+ __exportStar(require("./assets-lookup.cjs"), exports);
17
19
  __exportStar(require("./cronjob.cjs"), exports);
18
20
  __exportStar(require("./home-page.cjs"), exports);
19
21
  __exportStar(require("./keyring.cjs"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,kDAA4B;AAC5B,gDAA0B;AAC1B,kDAA4B;AAC5B,oDAA8B;AAC9B,oDAA8B;AAC9B,oDAA8B;AAC9B,kDAA4B;AAC5B,mDAA6B;AAC7B,sDAAgC","sourcesContent":["export * from './cronjob';\nexport * from './home-page';\nexport * from './keyring';\nexport * from './lifecycle';\nexport * from './name-lookup';\nexport * from './rpc-request';\nexport * from './transaction';\nexport * from './signature';\nexport * from './user-input';\nexport * from './settings-page';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAoC;AACpC,sDAAgC;AAChC,gDAA0B;AAC1B,kDAA4B;AAC5B,gDAA0B;AAC1B,kDAA4B;AAC5B,oDAA8B;AAC9B,oDAA8B;AAC9B,oDAA8B;AAC9B,kDAA4B;AAC5B,mDAA6B;AAC7B,sDAAgC","sourcesContent":["export * from './assets-conversion';\nexport * from './assets-lookup';\nexport * from './cronjob';\nexport * from './home-page';\nexport * from './keyring';\nexport * from './lifecycle';\nexport * from './name-lookup';\nexport * from './rpc-request';\nexport * from './transaction';\nexport * from './signature';\nexport * from './user-input';\nexport * from './settings-page';\n"]}
@@ -1,3 +1,5 @@
1
+ export * from "./assets-conversion.cjs";
2
+ export * from "./assets-lookup.cjs";
1
3
  export * from "./cronjob.cjs";
2
4
  export * from "./home-page.cjs";
3
5
  export * from "./keyring.cjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,wCAAoC;AACpC,oCAAgC;AAChC,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC"}
@@ -1,3 +1,5 @@
1
+ export * from "./assets-conversion.mjs";
2
+ export * from "./assets-lookup.mjs";
1
3
  export * from "./cronjob.mjs";
2
4
  export * from "./home-page.mjs";
3
5
  export * from "./keyring.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,wCAAoC;AACpC,oCAAgC;AAChC,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC"}
@@ -1,3 +1,5 @@
1
+ export * from "./assets-conversion.mjs";
2
+ export * from "./assets-lookup.mjs";
1
3
  export * from "./cronjob.mjs";
2
4
  export * from "./home-page.mjs";
3
5
  export * from "./keyring.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC","sourcesContent":["export * from './cronjob';\nexport * from './home-page';\nexport * from './keyring';\nexport * from './lifecycle';\nexport * from './name-lookup';\nexport * from './rpc-request';\nexport * from './transaction';\nexport * from './signature';\nexport * from './user-input';\nexport * from './settings-page';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,wCAAoC;AACpC,oCAAgC;AAChC,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC","sourcesContent":["export * from './assets-conversion';\nexport * from './assets-lookup';\nexport * from './cronjob';\nexport * from './home-page';\nexport * from './keyring';\nexport * from './lifecycle';\nexport * from './name-lookup';\nexport * from './rpc-request';\nexport * from './transaction';\nexport * from './signature';\nexport * from './user-input';\nexport * from './settings-page';\n"]}
@@ -105,6 +105,7 @@ export declare const ComponentOrElementStruct: import("@metamask/superstruct").S
105
105
  } | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").IconProps, "Icon"> | import("../jsx/index.cjs").SnapElement<{
106
106
  src: string;
107
107
  alt?: string | undefined;
108
+ borderRadius?: import("../jsx/index.cjs").BorderRadius;
108
109
  }, "Image"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ButtonProps, "Button"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CheckboxProps, "Checkbox"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FormProps, "Form"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").InputProps, "Input"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").DropdownProps, "Dropdown"> | import("../jsx/index.cjs").SnapElement<{
109
110
  name: string;
110
111
  value?: string | undefined;
@@ -112,10 +113,10 @@ export declare const ComponentOrElementStruct: import("@metamask/superstruct").S
112
113
  value: string;
113
114
  children: string;
114
115
  }, "Radio">>;
115
- }, "RadioGroup"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FileInputProps, "FileInput"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AddressProps, "Address"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CardProps, "Card"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SelectorProps, "Selector"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FieldProps, "Field"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoldProps, "Bold"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ItalicProps, "Italic"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AvatarProps, "Avatar"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoxProps, "Box"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ContainerProps, "Container"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CopyableProps, "Copyable"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.cjs").SnapElement<{
116
+ }, "RadioGroup"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FileInputProps, "FileInput"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AddressProps, "Address"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CardProps, "Card"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SelectorProps, "Selector"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FieldProps, "Field"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoldProps, "Bold"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ItalicProps, "Italic"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AvatarProps, "Avatar"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoxProps, "Box"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ContainerProps, "Container"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CopyableProps, "Copyable"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").LinkProps, "Link"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SkeletonProps, "Skeleton"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").TextProps, "Text"> | import("../jsx/index.cjs").SnapElement<{
116
117
  children: import("../jsx/index.cjs").StringElement;
117
118
  size?: "md" | "sm" | "lg" | undefined;
118
- }, "Heading"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").LinkProps, "Link"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").TextProps, "Text"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").RowProps, "Row"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SectionProps, "Section"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Spinner"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").TooltipProps, "Tooltip"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BannerProps, "Banner">, null>;
119
+ }, "Heading"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").RowProps, "Row"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SectionProps, "Section"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Spinner"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").TooltipProps, "Tooltip"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BannerProps, "Banner">, null>;
119
120
  export declare const InterfaceContextStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
120
121
  export type InterfaceContext = Infer<typeof InterfaceContextStruct>;
121
122
  export declare enum ContentType {
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.cts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qfAKnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,8FAA+B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB"}
1
+ {"version":3,"file":"interface.d.cts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+WAKnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,8FAA+B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB"}
@@ -105,6 +105,7 @@ export declare const ComponentOrElementStruct: import("@metamask/superstruct").S
105
105
  } | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").IconProps, "Icon"> | import("../jsx/index.mjs").SnapElement<{
106
106
  src: string;
107
107
  alt?: string | undefined;
108
+ borderRadius?: import("../jsx/index.mjs").BorderRadius;
108
109
  }, "Image"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ButtonProps, "Button"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CheckboxProps, "Checkbox"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FormProps, "Form"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").InputProps, "Input"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").DropdownProps, "Dropdown"> | import("../jsx/index.mjs").SnapElement<{
109
110
  name: string;
110
111
  value?: string | undefined;
@@ -112,10 +113,10 @@ export declare const ComponentOrElementStruct: import("@metamask/superstruct").S
112
113
  value: string;
113
114
  children: string;
114
115
  }, "Radio">>;
115
- }, "RadioGroup"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FileInputProps, "FileInput"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AddressProps, "Address"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CardProps, "Card"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SelectorProps, "Selector"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FieldProps, "Field"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoldProps, "Bold"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ItalicProps, "Italic"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AvatarProps, "Avatar"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoxProps, "Box"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ContainerProps, "Container"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CopyableProps, "Copyable"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.mjs").SnapElement<{
116
+ }, "RadioGroup"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FileInputProps, "FileInput"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AddressProps, "Address"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CardProps, "Card"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SelectorProps, "Selector"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FieldProps, "Field"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoldProps, "Bold"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ItalicProps, "Italic"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AvatarProps, "Avatar"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoxProps, "Box"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ContainerProps, "Container"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CopyableProps, "Copyable"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").LinkProps, "Link"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SkeletonProps, "Skeleton"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").TextProps, "Text"> | import("../jsx/index.mjs").SnapElement<{
116
117
  children: import("../jsx/index.mjs").StringElement;
117
118
  size?: "md" | "sm" | "lg" | undefined;
118
- }, "Heading"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").LinkProps, "Link"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").TextProps, "Text"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").RowProps, "Row"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SectionProps, "Section"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Spinner"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").TooltipProps, "Tooltip"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BannerProps, "Banner">, null>;
119
+ }, "Heading"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").RowProps, "Row"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SectionProps, "Section"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Spinner"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").TooltipProps, "Tooltip"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BannerProps, "Banner">, null>;
119
120
  export declare const InterfaceContextStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
120
121
  export type InterfaceContext = Infer<typeof InterfaceContextStruct>;
121
122
  export declare enum ContentType {
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.mts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qfAKnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,8FAA+B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB"}
1
+ {"version":3,"file":"interface.d.mts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+WAKnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,8FAA+B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=cancel-background-event.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-background-event.cjs","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_cancelBackgroundEvent` method.\n *\n * @property id - The id of the background event to cancel.\n */\nexport type CancelBackgroundEventParams = {\n id: string;\n};\n\n/**\n * The result returned for the `snap_cancelBackgroundEvent` method.\n *\n * This method does not return anything.\n */\nexport type CancelBackgroundEventResult = null;\n"]}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The request parameters for the `snap_cancelBackgroundEvent` method.
3
+ *
4
+ * @property id - The id of the background event to cancel.
5
+ */
6
+ export type CancelBackgroundEventParams = {
7
+ id: string;
8
+ };
9
+ /**
10
+ * The result returned for the `snap_cancelBackgroundEvent` method.
11
+ *
12
+ * This method does not return anything.
13
+ */
14
+ export type CancelBackgroundEventResult = null;
15
+ //# sourceMappingURL=cancel-background-event.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-background-event.d.cts","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The request parameters for the `snap_cancelBackgroundEvent` method.
3
+ *
4
+ * @property id - The id of the background event to cancel.
5
+ */
6
+ export type CancelBackgroundEventParams = {
7
+ id: string;
8
+ };
9
+ /**
10
+ * The result returned for the `snap_cancelBackgroundEvent` method.
11
+ *
12
+ * This method does not return anything.
13
+ */
14
+ export type CancelBackgroundEventResult = null;
15
+ //# sourceMappingURL=cancel-background-event.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-background-event.d.mts","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cancel-background-event.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-background-event.mjs","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_cancelBackgroundEvent` method.\n *\n * @property id - The id of the background event to cancel.\n */\nexport type CancelBackgroundEventParams = {\n id: string;\n};\n\n/**\n * The result returned for the `snap_cancelBackgroundEvent` method.\n *\n * This method does not return anything.\n */\nexport type CancelBackgroundEventResult = null;\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=clear-state.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-state.cjs","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_clearState` method.\n *\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the extension is unlocked, while unencrypted state can be used\n * whether the extension is locked or unlocked.\n */\nexport type ClearStateParams = {\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_clearState` method.\n */\nexport type ClearStateResult = null;\n"]}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The request parameters for the `snap_clearState` method.
3
+ *
4
+ * @property encrypted - Whether to use the separate encrypted state, or the
5
+ * unencrypted state. Defaults to the encrypted state. Encrypted state can only
6
+ * be used if the extension is unlocked, while unencrypted state can be used
7
+ * whether the extension is locked or unlocked.
8
+ */
9
+ export type ClearStateParams = {
10
+ encrypted?: boolean;
11
+ };
12
+ /**
13
+ * The result returned by the `snap_clearState` method.
14
+ */
15
+ export type ClearStateResult = null;
16
+ //# sourceMappingURL=clear-state.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-state.d.cts","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The request parameters for the `snap_clearState` method.
3
+ *
4
+ * @property encrypted - Whether to use the separate encrypted state, or the
5
+ * unencrypted state. Defaults to the encrypted state. Encrypted state can only
6
+ * be used if the extension is unlocked, while unencrypted state can be used
7
+ * whether the extension is locked or unlocked.
8
+ */
9
+ export type ClearStateParams = {
10
+ encrypted?: boolean;
11
+ };
12
+ /**
13
+ * The result returned by the `snap_clearState` method.
14
+ */
15
+ export type ClearStateResult = null;
16
+ //# sourceMappingURL=clear-state.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clear-state.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_clearState` method.\n *\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the extension is unlocked, while unencrypted state can be used\n * whether the extension is locked or unlocked.\n */\nexport type ClearStateParams = {\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_clearState` method.\n */\nexport type ClearStateResult = null;\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-background-events.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-background-events.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\nimport type { SnapId } from '../snap';\n\n/**\n * Background event type\n *\n * Note: The date generated when scheduling an event with a duration will be represented in UTC.\n *\n * @property id - The unique id representing the event.\n * @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.\n * @property snapId - The id of the snap that scheduled the event.\n * @property date - The ISO 8601 date of when the event is scheduled for.\n * @property request - The request that is supplied to the `onCronjob` handler when the event is fired.\n */\nexport type BackgroundEvent = {\n id: string;\n scheduledAt: string;\n snapId: SnapId;\n date: string;\n request: {\n method: string;\n jsonrpc?: '2.0' | undefined;\n id?: string | number | null | undefined;\n params?: Json[] | Record<string, Json> | undefined;\n };\n};\n\n/**\n * The result returned by the `snap_getBackgroundEvents` method.\n *\n * It consists of an array background events (if any) for a snap.\n */\nexport type GetBackgroundEventsResult = BackgroundEvent[];\n\n/**\n * The request parameters for the `snap_getBackgroundEvents` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetBackgroundEventsParams = never;\n"]}
@@ -0,0 +1,38 @@
1
+ import type { Json } from "@metamask/utils";
2
+ import type { SnapId } from "../snap.cjs";
3
+ /**
4
+ * Background event type
5
+ *
6
+ * Note: The date generated when scheduling an event with a duration will be represented in UTC.
7
+ *
8
+ * @property id - The unique id representing the event.
9
+ * @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.
10
+ * @property snapId - The id of the snap that scheduled the event.
11
+ * @property date - The ISO 8601 date of when the event is scheduled for.
12
+ * @property request - The request that is supplied to the `onCronjob` handler when the event is fired.
13
+ */
14
+ export type BackgroundEvent = {
15
+ id: string;
16
+ scheduledAt: string;
17
+ snapId: SnapId;
18
+ date: string;
19
+ request: {
20
+ method: string;
21
+ jsonrpc?: '2.0' | undefined;
22
+ id?: string | number | null | undefined;
23
+ params?: Json[] | Record<string, Json> | undefined;
24
+ };
25
+ };
26
+ /**
27
+ * The result returned by the `snap_getBackgroundEvents` method.
28
+ *
29
+ * It consists of an array background events (if any) for a snap.
30
+ */
31
+ export type GetBackgroundEventsResult = BackgroundEvent[];
32
+ /**
33
+ * The request parameters for the `snap_getBackgroundEvents` method.
34
+ *
35
+ * This method does not accept any parameters.
36
+ */
37
+ export type GetBackgroundEventsParams = never;
38
+ //# sourceMappingURL=get-background-events.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-background-events.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACxC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,EAAE,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { Json } from "@metamask/utils";
2
+ import type { SnapId } from "../snap.mjs";
3
+ /**
4
+ * Background event type
5
+ *
6
+ * Note: The date generated when scheduling an event with a duration will be represented in UTC.
7
+ *
8
+ * @property id - The unique id representing the event.
9
+ * @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.
10
+ * @property snapId - The id of the snap that scheduled the event.
11
+ * @property date - The ISO 8601 date of when the event is scheduled for.
12
+ * @property request - The request that is supplied to the `onCronjob` handler when the event is fired.
13
+ */
14
+ export type BackgroundEvent = {
15
+ id: string;
16
+ scheduledAt: string;
17
+ snapId: SnapId;
18
+ date: string;
19
+ request: {
20
+ method: string;
21
+ jsonrpc?: '2.0' | undefined;
22
+ id?: string | number | null | undefined;
23
+ params?: Json[] | Record<string, Json> | undefined;
24
+ };
25
+ };
26
+ /**
27
+ * The result returned by the `snap_getBackgroundEvents` method.
28
+ *
29
+ * It consists of an array background events (if any) for a snap.
30
+ */
31
+ export type GetBackgroundEventsResult = BackgroundEvent[];
32
+ /**
33
+ * The request parameters for the `snap_getBackgroundEvents` method.
34
+ *
35
+ * This method does not accept any parameters.
36
+ */
37
+ export type GetBackgroundEventsParams = never;
38
+ //# sourceMappingURL=get-background-events.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-background-events.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACxC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,EAAE,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-background-events.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-background-events.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\nimport type { SnapId } from '../snap';\n\n/**\n * Background event type\n *\n * Note: The date generated when scheduling an event with a duration will be represented in UTC.\n *\n * @property id - The unique id representing the event.\n * @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.\n * @property snapId - The id of the snap that scheduled the event.\n * @property date - The ISO 8601 date of when the event is scheduled for.\n * @property request - The request that is supplied to the `onCronjob` handler when the event is fired.\n */\nexport type BackgroundEvent = {\n id: string;\n scheduledAt: string;\n snapId: SnapId;\n date: string;\n request: {\n method: string;\n jsonrpc?: '2.0' | undefined;\n id?: string | number | null | undefined;\n params?: Json[] | Record<string, Json> | undefined;\n };\n};\n\n/**\n * The result returned by the `snap_getBackgroundEvents` method.\n *\n * It consists of an array background events (if any) for a snap.\n */\nexport type GetBackgroundEventsResult = BackgroundEvent[];\n\n/**\n * The request parameters for the `snap_getBackgroundEvents` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetBackgroundEventsParams = never;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"get-preferences.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask extension.\n */\nexport type GetPreferencesResult = { locale: string; currency: string };\n"]}
1
+ {"version":3,"file":"get-preferences.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask client.\n *\n * @property locale - The user's selected locale.\n * @property currency - The user's selected currency.\n * @property hideBalances - Whether the user has chosen to hide balances.\n */\nexport type GetPreferencesResult = {\n locale: string;\n currency: string;\n hideBalances: boolean;\n};\n"]}
@@ -7,10 +7,15 @@ export type GetPreferencesParams = never;
7
7
  /**
8
8
  * The result returned by the `snap_getPreferences` method.
9
9
  *
10
- * It is the user selected preferences from the MetaMask extension.
10
+ * It is the user selected preferences from the MetaMask client.
11
+ *
12
+ * @property locale - The user's selected locale.
13
+ * @property currency - The user's selected currency.
14
+ * @property hideBalances - Whether the user has chosen to hide balances.
11
15
  */
12
16
  export type GetPreferencesResult = {
13
17
  locale: string;
14
18
  currency: string;
19
+ hideBalances: boolean;
15
20
  };
16
21
  //# sourceMappingURL=get-preferences.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-preferences.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"get-preferences.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC"}
@@ -7,10 +7,15 @@ export type GetPreferencesParams = never;
7
7
  /**
8
8
  * The result returned by the `snap_getPreferences` method.
9
9
  *
10
- * It is the user selected preferences from the MetaMask extension.
10
+ * It is the user selected preferences from the MetaMask client.
11
+ *
12
+ * @property locale - The user's selected locale.
13
+ * @property currency - The user's selected currency.
14
+ * @property hideBalances - Whether the user has chosen to hide balances.
11
15
  */
12
16
  export type GetPreferencesResult = {
13
17
  locale: string;
14
18
  currency: string;
19
+ hideBalances: boolean;
15
20
  };
16
21
  //# sourceMappingURL=get-preferences.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-preferences.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"get-preferences.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-preferences.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask extension.\n */\nexport type GetPreferencesResult = { locale: string; currency: string };\n"]}
1
+ {"version":3,"file":"get-preferences.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask client.\n *\n * @property locale - The user's selected locale.\n * @property currency - The user's selected currency.\n * @property hideBalances - Whether the user has chosen to hide balances.\n */\nexport type GetPreferencesResult = {\n locale: string;\n currency: string;\n hideBalances: boolean;\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-state.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-state.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getState` method.\n *\n * @property key - The key of the state to retrieve. If not provided, the entire\n * state is retrieved. This may contain Lodash-style path syntax, e.g.,\n * `a.b.c`, with the exception of array syntax.\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the client is unlocked, while unencrypted state can be used\n * whether the client is locked or unlocked.\n */\nexport type GetStateParams = {\n key?: string;\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_getState` method.\n */\nexport type GetStateResult = Json;\n"]}
@@ -0,0 +1,21 @@
1
+ import type { Json } from "@metamask/utils";
2
+ /**
3
+ * The request parameters for the `snap_getState` method.
4
+ *
5
+ * @property key - The key of the state to retrieve. If not provided, the entire
6
+ * state is retrieved. This may contain Lodash-style path syntax, e.g.,
7
+ * `a.b.c`, with the exception of array syntax.
8
+ * @property encrypted - Whether to use the separate encrypted state, or the
9
+ * unencrypted state. Defaults to the encrypted state. Encrypted state can only
10
+ * be used if the client is unlocked, while unencrypted state can be used
11
+ * whether the client is locked or unlocked.
12
+ */
13
+ export type GetStateParams = {
14
+ key?: string;
15
+ encrypted?: boolean;
16
+ };
17
+ /**
18
+ * The result returned by the `snap_getState` method.
19
+ */
20
+ export type GetStateResult = Json;
21
+ //# sourceMappingURL=get-state.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-state.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}