@metamask/snaps-sdk
Advanced tools
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| //# sourceMappingURL=assets-market-data.cjs.map |
| {"version":3,"file":"assets-market-data.cjs","sourceRoot":"","sources":["../../../src/types/handlers/assets-market-data.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipAssetType } from '@metamask/utils';\n\n/**\n * The market data for a fungible asset.\n *\n * @property fungible - Indicates that this is a fungible asset.\n * This is always `true` for fungible assets.\n * @property marketCap - The market capitalization of the asset.\n * @property totalVolume - The total volume of the asset.\n * @property circulatingSupply - The circulating supply of the asset.\n * @property allTimeHigh - The all-time high price of the asset.\n * @property allTimeLow - The all-time low price of the asset.\n * @property pricePercentChange - The percentage change in price over different intervals.\n * @property pricePercentChange.interval - The time interval for the price change as a ISO 8601 duration\n * or the string \"all\" to represent the all-time change.\n */\nexport type FungibleAssetMarketData = {\n fungible: true;\n marketCap?: string;\n totalVolume?: string;\n circulatingSupply?: string;\n allTimeHigh?: string;\n allTimeLow?: string;\n pricePercentChange?: {\n [interval: string]: number;\n };\n};\n\n/**\n * The arguments for the `onAssetsMarketData` handler.\n *\n * @property assets - An array of objects containing the asset and unit types.\n * @property assets.asset - The CAIP-19 asset type of the asset.\n * @property assets.unit - The CAIP-19 asset type of the unit to use.\n */\nexport type OnAssetsMarketDataArguments = {\n assets: {\n asset: CaipAssetType;\n unit: CaipAssetType;\n }[];\n};\n\n/**\n * The `onAssetsMarketData` handler. This is called by MetaMask when querying about market data for a specific asset.\n *\n * @param args - The arguments for the handler.\n * see {@link OnAssetsMarketDataArguments}.\n * @returns The market data for the asset. See {@link OnAssetsMarketDataResponse}.\n */\nexport type OnAssetsMarketDataHandler = (\n args: OnAssetsMarketDataArguments,\n) => Promise<OnAssetsMarketDataResponse>;\n\n/**\n * The response from the market data query, containing market data for the requested assets.\n *\n * @property marketData - A nested object with two CAIP-19 keys that contains a {@link FungibleAssetMarketData} object or null between the two keys.\n */\nexport type OnAssetsMarketDataResponse = {\n marketData: Record<\n CaipAssetType,\n Record<CaipAssetType, FungibleAssetMarketData | null>\n >;\n};\n"]} |
| import type { CaipAssetType } from "@metamask/utils"; | ||
| /** | ||
| * The market data for a fungible asset. | ||
| * | ||
| * @property fungible - Indicates that this is a fungible asset. | ||
| * This is always `true` for fungible assets. | ||
| * @property marketCap - The market capitalization of the asset. | ||
| * @property totalVolume - The total volume of the asset. | ||
| * @property circulatingSupply - The circulating supply of the asset. | ||
| * @property allTimeHigh - The all-time high price of the asset. | ||
| * @property allTimeLow - The all-time low price of the asset. | ||
| * @property pricePercentChange - The percentage change in price over different intervals. | ||
| * @property pricePercentChange.interval - The time interval for the price change as a ISO 8601 duration | ||
| * or the string "all" to represent the all-time change. | ||
| */ | ||
| export type FungibleAssetMarketData = { | ||
| fungible: true; | ||
| marketCap?: string; | ||
| totalVolume?: string; | ||
| circulatingSupply?: string; | ||
| allTimeHigh?: string; | ||
| allTimeLow?: string; | ||
| pricePercentChange?: { | ||
| [interval: string]: number; | ||
| }; | ||
| }; | ||
| /** | ||
| * The arguments for the `onAssetsMarketData` handler. | ||
| * | ||
| * @property assets - An array of objects containing the asset and unit types. | ||
| * @property assets.asset - The CAIP-19 asset type of the asset. | ||
| * @property assets.unit - The CAIP-19 asset type of the unit to use. | ||
| */ | ||
| export type OnAssetsMarketDataArguments = { | ||
| assets: { | ||
| asset: CaipAssetType; | ||
| unit: CaipAssetType; | ||
| }[]; | ||
| }; | ||
| /** | ||
| * The `onAssetsMarketData` handler. This is called by MetaMask when querying about market data for a specific asset. | ||
| * | ||
| * @param args - The arguments for the handler. | ||
| * see {@link OnAssetsMarketDataArguments}. | ||
| * @returns The market data for the asset. See {@link OnAssetsMarketDataResponse}. | ||
| */ | ||
| export type OnAssetsMarketDataHandler = (args: OnAssetsMarketDataArguments) => Promise<OnAssetsMarketDataResponse>; | ||
| /** | ||
| * The response from the market data query, containing market data for the requested assets. | ||
| * | ||
| * @property marketData - A nested object with two CAIP-19 keys that contains a {@link FungibleAssetMarketData} object or null between the two keys. | ||
| */ | ||
| export type OnAssetsMarketDataResponse = { | ||
| marketData: Record<CaipAssetType, Record<CaipAssetType, FungibleAssetMarketData | null>>; | ||
| }; | ||
| //# sourceMappingURL=assets-market-data.d.cts.map |
| {"version":3,"file":"assets-market-data.d.cts","sourceRoot":"","sources":["../../../src/types/handlers/assets-market-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE;QACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE;QACN,KAAK,EAAE,aAAa,CAAC;QACrB,IAAI,EAAE,aAAa,CAAC;KACrB,EAAE,CAAC;CACL,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,IAAI,EAAE,2BAA2B,KAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAChB,aAAa,EACb,MAAM,CAAC,aAAa,EAAE,uBAAuB,GAAG,IAAI,CAAC,CACtD,CAAC;CACH,CAAC"} |
| import type { CaipAssetType } from "@metamask/utils"; | ||
| /** | ||
| * The market data for a fungible asset. | ||
| * | ||
| * @property fungible - Indicates that this is a fungible asset. | ||
| * This is always `true` for fungible assets. | ||
| * @property marketCap - The market capitalization of the asset. | ||
| * @property totalVolume - The total volume of the asset. | ||
| * @property circulatingSupply - The circulating supply of the asset. | ||
| * @property allTimeHigh - The all-time high price of the asset. | ||
| * @property allTimeLow - The all-time low price of the asset. | ||
| * @property pricePercentChange - The percentage change in price over different intervals. | ||
| * @property pricePercentChange.interval - The time interval for the price change as a ISO 8601 duration | ||
| * or the string "all" to represent the all-time change. | ||
| */ | ||
| export type FungibleAssetMarketData = { | ||
| fungible: true; | ||
| marketCap?: string; | ||
| totalVolume?: string; | ||
| circulatingSupply?: string; | ||
| allTimeHigh?: string; | ||
| allTimeLow?: string; | ||
| pricePercentChange?: { | ||
| [interval: string]: number; | ||
| }; | ||
| }; | ||
| /** | ||
| * The arguments for the `onAssetsMarketData` handler. | ||
| * | ||
| * @property assets - An array of objects containing the asset and unit types. | ||
| * @property assets.asset - The CAIP-19 asset type of the asset. | ||
| * @property assets.unit - The CAIP-19 asset type of the unit to use. | ||
| */ | ||
| export type OnAssetsMarketDataArguments = { | ||
| assets: { | ||
| asset: CaipAssetType; | ||
| unit: CaipAssetType; | ||
| }[]; | ||
| }; | ||
| /** | ||
| * The `onAssetsMarketData` handler. This is called by MetaMask when querying about market data for a specific asset. | ||
| * | ||
| * @param args - The arguments for the handler. | ||
| * see {@link OnAssetsMarketDataArguments}. | ||
| * @returns The market data for the asset. See {@link OnAssetsMarketDataResponse}. | ||
| */ | ||
| export type OnAssetsMarketDataHandler = (args: OnAssetsMarketDataArguments) => Promise<OnAssetsMarketDataResponse>; | ||
| /** | ||
| * The response from the market data query, containing market data for the requested assets. | ||
| * | ||
| * @property marketData - A nested object with two CAIP-19 keys that contains a {@link FungibleAssetMarketData} object or null between the two keys. | ||
| */ | ||
| export type OnAssetsMarketDataResponse = { | ||
| marketData: Record<CaipAssetType, Record<CaipAssetType, FungibleAssetMarketData | null>>; | ||
| }; | ||
| //# sourceMappingURL=assets-market-data.d.mts.map |
| {"version":3,"file":"assets-market-data.d.mts","sourceRoot":"","sources":["../../../src/types/handlers/assets-market-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE;QACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE;QACN,KAAK,EAAE,aAAa,CAAC;QACrB,IAAI,EAAE,aAAa,CAAC;KACrB,EAAE,CAAC;CACL,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,IAAI,EAAE,2BAA2B,KAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAChB,aAAa,EACb,MAAM,CAAC,aAAa,EAAE,uBAAuB,GAAG,IAAI,CAAC,CACtD,CAAC;CACH,CAAC"} |
| export {}; | ||
| //# sourceMappingURL=assets-market-data.mjs.map |
| {"version":3,"file":"assets-market-data.mjs","sourceRoot":"","sources":["../../../src/types/handlers/assets-market-data.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipAssetType } from '@metamask/utils';\n\n/**\n * The market data for a fungible asset.\n *\n * @property fungible - Indicates that this is a fungible asset.\n * This is always `true` for fungible assets.\n * @property marketCap - The market capitalization of the asset.\n * @property totalVolume - The total volume of the asset.\n * @property circulatingSupply - The circulating supply of the asset.\n * @property allTimeHigh - The all-time high price of the asset.\n * @property allTimeLow - The all-time low price of the asset.\n * @property pricePercentChange - The percentage change in price over different intervals.\n * @property pricePercentChange.interval - The time interval for the price change as a ISO 8601 duration\n * or the string \"all\" to represent the all-time change.\n */\nexport type FungibleAssetMarketData = {\n fungible: true;\n marketCap?: string;\n totalVolume?: string;\n circulatingSupply?: string;\n allTimeHigh?: string;\n allTimeLow?: string;\n pricePercentChange?: {\n [interval: string]: number;\n };\n};\n\n/**\n * The arguments for the `onAssetsMarketData` handler.\n *\n * @property assets - An array of objects containing the asset and unit types.\n * @property assets.asset - The CAIP-19 asset type of the asset.\n * @property assets.unit - The CAIP-19 asset type of the unit to use.\n */\nexport type OnAssetsMarketDataArguments = {\n assets: {\n asset: CaipAssetType;\n unit: CaipAssetType;\n }[];\n};\n\n/**\n * The `onAssetsMarketData` handler. This is called by MetaMask when querying about market data for a specific asset.\n *\n * @param args - The arguments for the handler.\n * see {@link OnAssetsMarketDataArguments}.\n * @returns The market data for the asset. See {@link OnAssetsMarketDataResponse}.\n */\nexport type OnAssetsMarketDataHandler = (\n args: OnAssetsMarketDataArguments,\n) => Promise<OnAssetsMarketDataResponse>;\n\n/**\n * The response from the market data query, containing market data for the requested assets.\n *\n * @property marketData - A nested object with two CAIP-19 keys that contains a {@link FungibleAssetMarketData} object or null between the two keys.\n */\nexport type OnAssetsMarketDataResponse = {\n marketData: Record<\n CaipAssetType,\n Record<CaipAssetType, FungibleAssetMarketData | null>\n >;\n};\n"]} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| //# sourceMappingURL=track-error.cjs.map |
| {"version":3,"file":"track-error.cjs","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An error that can be tracked by the `snap_trackError` method.\n */\nexport type TrackableError = {\n /**\n * The name of the error. This is typically the constructor name of the\n * error, such as `TypeError`, `ReferenceError`, or a custom error name.\n */\n name: string;\n\n /**\n * The error message.\n */\n message: string;\n\n /**\n * The error stack, if available. If the error does not have a stack, this\n * will be `null`.\n */\n stack: string | null;\n\n /**\n * The cause of the error, if available. This can be another error object or\n * `null` if there is no cause.\n */\n cause: TrackableError | null;\n};\n\n/**\n * The parameters for the `snap_trackError` method.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type TrackErrorParams = {\n /**\n * The error object to track.\n */\n error: TrackableError;\n};\n\n/**\n * The result returned by the `snap_trackEvent` method. This is the ID of the\n * tracked error, as returned by the Sentry instance in the client.\n */\nexport type TrackErrorResult = string;\n"]} |
| /** | ||
| * An error that can be tracked by the `snap_trackError` method. | ||
| */ | ||
| export type TrackableError = { | ||
| /** | ||
| * The name of the error. This is typically the constructor name of the | ||
| * error, such as `TypeError`, `ReferenceError`, or a custom error name. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * The error message. | ||
| */ | ||
| message: string; | ||
| /** | ||
| * The error stack, if available. If the error does not have a stack, this | ||
| * will be `null`. | ||
| */ | ||
| stack: string | null; | ||
| /** | ||
| * The cause of the error, if available. This can be another error object or | ||
| * `null` if there is no cause. | ||
| */ | ||
| cause: TrackableError | null; | ||
| }; | ||
| /** | ||
| * The parameters for the `snap_trackError` method. | ||
| * | ||
| * Note that this method is only available to preinstalled Snaps. | ||
| */ | ||
| export type TrackErrorParams = { | ||
| /** | ||
| * The error object to track. | ||
| */ | ||
| error: TrackableError; | ||
| }; | ||
| /** | ||
| * The result returned by the `snap_trackEvent` method. This is the ID of the | ||
| * tracked error, as returned by the Sentry instance in the client. | ||
| */ | ||
| export type TrackErrorResult = string; | ||
| //# sourceMappingURL=track-error.d.cts.map |
| {"version":3,"file":"track-error.d.cts","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC"} |
| /** | ||
| * An error that can be tracked by the `snap_trackError` method. | ||
| */ | ||
| export type TrackableError = { | ||
| /** | ||
| * The name of the error. This is typically the constructor name of the | ||
| * error, such as `TypeError`, `ReferenceError`, or a custom error name. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * The error message. | ||
| */ | ||
| message: string; | ||
| /** | ||
| * The error stack, if available. If the error does not have a stack, this | ||
| * will be `null`. | ||
| */ | ||
| stack: string | null; | ||
| /** | ||
| * The cause of the error, if available. This can be another error object or | ||
| * `null` if there is no cause. | ||
| */ | ||
| cause: TrackableError | null; | ||
| }; | ||
| /** | ||
| * The parameters for the `snap_trackError` method. | ||
| * | ||
| * Note that this method is only available to preinstalled Snaps. | ||
| */ | ||
| export type TrackErrorParams = { | ||
| /** | ||
| * The error object to track. | ||
| */ | ||
| error: TrackableError; | ||
| }; | ||
| /** | ||
| * The result returned by the `snap_trackEvent` method. This is the ID of the | ||
| * tracked error, as returned by the Sentry instance in the client. | ||
| */ | ||
| export type TrackErrorResult = string; | ||
| //# sourceMappingURL=track-error.d.mts.map |
| {"version":3,"file":"track-error.d.mts","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC"} |
| export {}; | ||
| //# sourceMappingURL=track-error.mjs.map |
| {"version":3,"file":"track-error.mjs","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An error that can be tracked by the `snap_trackError` method.\n */\nexport type TrackableError = {\n /**\n * The name of the error. This is typically the constructor name of the\n * error, such as `TypeError`, `ReferenceError`, or a custom error name.\n */\n name: string;\n\n /**\n * The error message.\n */\n message: string;\n\n /**\n * The error stack, if available. If the error does not have a stack, this\n * will be `null`.\n */\n stack: string | null;\n\n /**\n * The cause of the error, if available. This can be another error object or\n * `null` if there is no cause.\n */\n cause: TrackableError | null;\n};\n\n/**\n * The parameters for the `snap_trackError` method.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type TrackErrorParams = {\n /**\n * The error object to track.\n */\n error: TrackableError;\n};\n\n/**\n * The result returned by the `snap_trackEvent` method. This is the ID of the\n * tracked error, as returned by the Sentry instance in the client.\n */\nexport type TrackErrorResult = string;\n"]} |
+16
-3
@@ -10,2 +10,14 @@ # Changelog | ||
| ## [9.0.0] | ||
| ### Added | ||
| - **BREAKING:** Market data is now fetched through `onAssetsMarketData` instead | ||
| of `onAssetConversion` ([#3496](https://github.com/MetaMask/snaps/pull/3496)) | ||
| - Previously, `onAssetConversion` could return a `marketData` property, which | ||
| contained market data for the asset being converted. This property | ||
| has been removed, and `onAssetsMarketData` should be used instead. | ||
| - The `MarketData` type has been replaced with `FungibleAssetMarketData`. | ||
| - Add `snap_trackError` method for error tracking through Sentry ([#3498](https://github.com/MetaMask/snaps/pull/3498)) | ||
| ## [8.1.0] | ||
@@ -16,3 +28,3 @@ | ||
| - Add WebSockets support ([#3450](https://github.com/MetaMask/snaps/pull/3450), [#3459](https://github.com/MetaMask/snaps/pull/3459)) | ||
| - This introduces types for the `onWebSocketEvent` handler which receives | ||
| - This introduces types for the `onWebSocketEvent` handler which receives | ||
| events from `WebSocketService`. | ||
@@ -546,3 +558,3 @@ - Add types for `onStart` handler ([#3455](https://github.com/MetaMask/snaps/pull/3455)) | ||
| ```ts | ||
| throw new MethodNotFoundError({ method: "some method name" }); | ||
| throw new MethodNotFoundError({ method: 'some method name' }); | ||
| ``` | ||
@@ -619,3 +631,4 @@ - Strip empty `data` from Snap errors ([#2179](https://github.com/MetaMask/snaps/pull/2179)) | ||
| [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@8.1.0...HEAD | ||
| [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@9.0.0...HEAD | ||
| [9.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@8.1.0...@metamask/snaps-sdk@9.0.0 | ||
| [8.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@8.0.0...@metamask/snaps-sdk@8.1.0 | ||
@@ -622,0 +635,0 @@ [8.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@7.1.0...@metamask/snaps-sdk@8.0.0 |
+192
-192
@@ -12,6 +12,6 @@ /// <reference types="node" /> | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -27,6 +27,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -42,6 +42,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -70,6 +70,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -85,6 +85,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -100,6 +100,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -128,6 +128,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -143,6 +143,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -158,6 +158,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -186,6 +186,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -201,6 +201,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -216,6 +216,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -244,6 +244,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -259,6 +259,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -274,6 +274,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -302,6 +302,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -317,6 +317,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -332,6 +332,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -358,6 +358,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -373,6 +373,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -388,6 +388,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -416,6 +416,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -431,6 +431,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -446,6 +446,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -474,6 +474,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -489,6 +489,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -504,6 +504,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -532,6 +532,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -547,6 +547,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -562,6 +562,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -590,6 +590,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -605,6 +605,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -620,6 +620,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -648,6 +648,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -663,6 +663,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -678,6 +678,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -706,6 +706,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -721,6 +721,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -736,6 +736,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -762,6 +762,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -777,6 +777,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -792,6 +792,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -820,6 +820,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -835,6 +835,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -850,6 +850,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -878,6 +878,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -893,6 +893,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -908,6 +908,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -914,0 +914,0 @@ readonly code: number; |
+192
-192
@@ -12,6 +12,6 @@ /// <reference types="node" /> | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -27,6 +27,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -42,6 +42,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -70,6 +70,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -85,6 +85,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -100,6 +100,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -128,6 +128,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -143,6 +143,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -158,6 +158,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -186,6 +186,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -201,6 +201,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -216,6 +216,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -244,6 +244,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -259,6 +259,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -274,6 +274,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -302,6 +302,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -317,6 +317,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -332,6 +332,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -358,6 +358,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -373,6 +373,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -388,6 +388,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -416,6 +416,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -431,6 +431,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -446,6 +446,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -474,6 +474,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -489,6 +489,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -504,6 +504,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -532,6 +532,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -547,6 +547,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -562,6 +562,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -590,6 +590,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -605,6 +605,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -620,6 +620,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -648,6 +648,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -663,6 +663,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -678,6 +678,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -706,6 +706,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -721,6 +721,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -736,6 +736,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -762,6 +762,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -777,6 +777,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -792,6 +792,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -820,6 +820,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -835,6 +835,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -850,6 +850,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -878,6 +878,6 @@ readonly code: number; | ||
| new (message?: string | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -893,6 +893,6 @@ readonly code: number; | ||
| new (data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -908,6 +908,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, import("@metamask/utils").Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -914,0 +914,0 @@ readonly code: number; |
+53
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.SnapError = void 0; | ||
| exports.getJsonError = exports.SnapError = void 0; | ||
| const utils_1 = require("@metamask/utils"); | ||
| const internals_1 = require("./internals/index.cjs"); | ||
@@ -111,2 +112,53 @@ /** | ||
| exports.SnapError = SnapError; | ||
| /** | ||
| * Get a serialised JSON error from a given error. This is intended to be used | ||
| * with `snap_trackError` to convert an error to a JSON object that can be | ||
| * tracked by the Sentry instance in the client. | ||
| * | ||
| * @param error - The error to convert to a JSON error. This can be a string, an | ||
| * `Error`, a `JsonRpcError`, or any other type. If it is not a string or an | ||
| * `Error`, it will be converted to a string using its `toString()` method. | ||
| * @returns A JSON object containing the error message and stack trace, if | ||
| * available. | ||
| * @example | ||
| * try { | ||
| * // Some code that may throw an error | ||
| * } catch (error) { | ||
| * await snap.request({ | ||
| * method: 'snap_trackError', | ||
| * params: { | ||
| * error: getJsonError(error), | ||
| * }, | ||
| * }); | ||
| * } | ||
| */ | ||
| function getJsonError( | ||
| // TypeScript will narrow this to `unknown`, but we specify all the types for | ||
| // clarity. | ||
| error) { | ||
| if (typeof error === 'string') { | ||
| return { | ||
| name: 'Error', | ||
| message: error, | ||
| stack: null, | ||
| cause: null, | ||
| }; | ||
| } | ||
| if ((0, utils_1.isJsonRpcError)(error)) { | ||
| return { | ||
| name: 'JsonRpcError', | ||
| message: (0, internals_1.getErrorMessage)(error), | ||
| stack: (0, internals_1.getErrorStack)(error) ?? (0, internals_1.getErrorStack)(error.data) ?? null, | ||
| cause: null, | ||
| }; | ||
| } | ||
| const cause = (0, internals_1.getErrorCause)(error); | ||
| return { | ||
| name: (0, internals_1.getErrorName)(error), | ||
| message: (0, internals_1.getErrorMessage)(error), | ||
| stack: (0, internals_1.getErrorStack)(error) ?? null, | ||
| cause: cause === null ? null : getJsonError(cause), | ||
| }; | ||
| } | ||
| exports.getJsonError = getJsonError; | ||
| //# sourceMappingURL=errors.cjs.map |
+24
-0
| import type { Json, JsonRpcError } from "@metamask/utils"; | ||
| import { SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE } from "./internals/index.cjs"; | ||
| import type { TrackableError } from "./types/index.cjs"; | ||
| /** | ||
@@ -87,2 +88,25 @@ * A generic error which can be thrown by a Snap, without it causing the Snap to | ||
| }; | ||
| /** | ||
| * Get a serialised JSON error from a given error. This is intended to be used | ||
| * with `snap_trackError` to convert an error to a JSON object that can be | ||
| * tracked by the Sentry instance in the client. | ||
| * | ||
| * @param error - The error to convert to a JSON error. This can be a string, an | ||
| * `Error`, a `JsonRpcError`, or any other type. If it is not a string or an | ||
| * `Error`, it will be converted to a string using its `toString()` method. | ||
| * @returns A JSON object containing the error message and stack trace, if | ||
| * available. | ||
| * @example | ||
| * try { | ||
| * // Some code that may throw an error | ||
| * } catch (error) { | ||
| * await snap.request({ | ||
| * method: 'snap_trackError', | ||
| * params: { | ||
| * error: getJsonError(error), | ||
| * }, | ||
| * }); | ||
| * } | ||
| */ | ||
| export declare function getJsonError(error: string | Error | JsonRpcError | unknown): TrackableError; | ||
| //# sourceMappingURL=errors.d.cts.map |
+24
-0
| import type { Json, JsonRpcError } from "@metamask/utils"; | ||
| import { SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE } from "./internals/index.mjs"; | ||
| import type { TrackableError } from "./types/index.mjs"; | ||
| /** | ||
@@ -87,2 +88,25 @@ * A generic error which can be thrown by a Snap, without it causing the Snap to | ||
| }; | ||
| /** | ||
| * Get a serialised JSON error from a given error. This is intended to be used | ||
| * with `snap_trackError` to convert an error to a JSON object that can be | ||
| * tracked by the Sentry instance in the client. | ||
| * | ||
| * @param error - The error to convert to a JSON error. This can be a string, an | ||
| * `Error`, a `JsonRpcError`, or any other type. If it is not a string or an | ||
| * `Error`, it will be converted to a string using its `toString()` method. | ||
| * @returns A JSON object containing the error message and stack trace, if | ||
| * available. | ||
| * @example | ||
| * try { | ||
| * // Some code that may throw an error | ||
| * } catch (error) { | ||
| * await snap.request({ | ||
| * method: 'snap_trackError', | ||
| * params: { | ||
| * error: getJsonError(error), | ||
| * }, | ||
| * }); | ||
| * } | ||
| */ | ||
| export declare function getJsonError(error: string | Error | JsonRpcError | unknown): TrackableError; | ||
| //# sourceMappingURL=errors.d.mts.map |
+52
-1
@@ -1,2 +0,3 @@ | ||
| import { getErrorCode, getErrorData, getErrorMessage, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE } from "./internals/index.mjs"; | ||
| import { isJsonRpcError } from "@metamask/utils"; | ||
| import { getErrorCause, getErrorCode, getErrorData, getErrorMessage, getErrorName, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE } from "./internals/index.mjs"; | ||
| /** | ||
@@ -107,2 +108,52 @@ * A generic error which can be thrown by a Snap, without it causing the Snap to | ||
| } | ||
| /** | ||
| * Get a serialised JSON error from a given error. This is intended to be used | ||
| * with `snap_trackError` to convert an error to a JSON object that can be | ||
| * tracked by the Sentry instance in the client. | ||
| * | ||
| * @param error - The error to convert to a JSON error. This can be a string, an | ||
| * `Error`, a `JsonRpcError`, or any other type. If it is not a string or an | ||
| * `Error`, it will be converted to a string using its `toString()` method. | ||
| * @returns A JSON object containing the error message and stack trace, if | ||
| * available. | ||
| * @example | ||
| * try { | ||
| * // Some code that may throw an error | ||
| * } catch (error) { | ||
| * await snap.request({ | ||
| * method: 'snap_trackError', | ||
| * params: { | ||
| * error: getJsonError(error), | ||
| * }, | ||
| * }); | ||
| * } | ||
| */ | ||
| export function getJsonError( | ||
| // TypeScript will narrow this to `unknown`, but we specify all the types for | ||
| // clarity. | ||
| error) { | ||
| if (typeof error === 'string') { | ||
| return { | ||
| name: 'Error', | ||
| message: error, | ||
| stack: null, | ||
| cause: null, | ||
| }; | ||
| } | ||
| if (isJsonRpcError(error)) { | ||
| return { | ||
| name: 'JsonRpcError', | ||
| message: getErrorMessage(error), | ||
| stack: getErrorStack(error) ?? getErrorStack(error.data) ?? null, | ||
| cause: null, | ||
| }; | ||
| } | ||
| const cause = getErrorCause(error); | ||
| return { | ||
| name: getErrorName(error), | ||
| message: getErrorMessage(error), | ||
| stack: getErrorStack(error) ?? null, | ||
| cause: cause === null ? null : getJsonError(cause), | ||
| }; | ||
| } | ||
| //# sourceMappingURL=errors.mjs.map |
@@ -18,6 +18,6 @@ /// <reference types="node" /> | ||
| new (message?: string): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -33,6 +33,6 @@ readonly code: number; | ||
| new (data?: Record<string, Json>): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -48,6 +48,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, Json>, data?: Record<string, Json>): { | ||
| readonly "__#15783@#code": number; | ||
| readonly "__#15783@#message": string; | ||
| readonly "__#15783@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#15783@#stack"?: string | undefined; | ||
| readonly "__#15925@#code": number; | ||
| readonly "__#15925@#message": string; | ||
| readonly "__#15925@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#15925@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -54,0 +54,0 @@ readonly code: number; |
@@ -18,6 +18,6 @@ /// <reference types="node" /> | ||
| new (message?: string): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -33,6 +33,6 @@ readonly code: number; | ||
| new (data?: Record<string, Json>): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -48,6 +48,6 @@ readonly code: number; | ||
| new (message?: string | Record<string, Json>, data?: Record<string, Json>): { | ||
| readonly "__#7893@#code": number; | ||
| readonly "__#7893@#message": string; | ||
| readonly "__#7893@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#7893@#stack"?: string | undefined; | ||
| readonly "__#7967@#code": number; | ||
| readonly "__#7967@#message": string; | ||
| readonly "__#7967@#data"?: Record<string, Json> | undefined; | ||
| readonly "__#7967@#stack"?: string | undefined; | ||
| readonly name: string; | ||
@@ -54,0 +54,0 @@ readonly code: number; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getErrorData = exports.getErrorCode = exports.getErrorStack = exports.getErrorMessage = exports.SNAP_ERROR_MESSAGE = exports.SNAP_ERROR_CODE = void 0; | ||
| exports.getErrorData = exports.getErrorCause = exports.getErrorCode = exports.getErrorName = exports.getErrorStack = exports.getErrorMessage = exports.SNAP_ERROR_MESSAGE = exports.SNAP_ERROR_CODE = void 0; | ||
| const utils_1 = require("@metamask/utils"); | ||
@@ -8,2 +8,37 @@ exports.SNAP_ERROR_CODE = -31002; | ||
| /** | ||
| * Get a property from an object, or return a fallback value if the property | ||
| * does not exist. | ||
| * | ||
| * @param object - The object to get the property from. | ||
| * @param property - The property to get from the object. | ||
| * @param fallback - The fallback value to return if the property does not | ||
| * exist. | ||
| * @returns The value of the property if it exists, or the fallback value if | ||
| * the property does not exist. | ||
| */ | ||
| function getObjectProperty(object, property, fallback = null) { | ||
| if ((0, utils_1.isObject)(object) && (0, utils_1.hasProperty)(object, property)) { | ||
| return object[property]; | ||
| } | ||
| return fallback; | ||
| } | ||
| /** | ||
| * Get a string property from an object, or convert the object to a string | ||
| * if the property does not exist or is not a string. | ||
| * | ||
| * @param object - The object to get the property from. | ||
| * @param property - The property to get from the object. | ||
| * @param fallback - The fallback value to return if the property does not exist | ||
| * or is not a string. Defaults to the string representation of the object. | ||
| * @returns The value of the property if it exists and is a string, or the | ||
| * fallback value if it does not exist or is not a string. | ||
| */ | ||
| function getObjectStringProperty(object, property, fallback = String(object)) { | ||
| const value = getObjectProperty(object, property); | ||
| if (typeof value === 'string') { | ||
| return value; | ||
| } | ||
| return fallback; | ||
| } | ||
| /** | ||
| * Get the error message from an unknown error type. | ||
@@ -19,8 +54,3 @@ * | ||
| function getErrorMessage(error) { | ||
| if ((0, utils_1.isObject)(error) && | ||
| (0, utils_1.hasProperty)(error, 'message') && | ||
| typeof error.message === 'string') { | ||
| return error.message; | ||
| } | ||
| return String(error); | ||
| return getObjectStringProperty(error, 'message'); | ||
| } | ||
@@ -37,11 +67,18 @@ exports.getErrorMessage = getErrorMessage; | ||
| function getErrorStack(error) { | ||
| if ((0, utils_1.isObject)(error) && | ||
| (0, utils_1.hasProperty)(error, 'stack') && | ||
| typeof error.stack === 'string') { | ||
| return error.stack; | ||
| } | ||
| return undefined; | ||
| return getObjectStringProperty(error, 'stack', null); | ||
| } | ||
| exports.getErrorStack = getErrorStack; | ||
| /** | ||
| * Get the error name from an unknown error type. | ||
| * | ||
| * @param error - The error to get the name from. | ||
| * @returns The error name, or `'Error'` if the error does not have a valid | ||
| * name. | ||
| */ | ||
| function getErrorName(error) { | ||
| const fallbackName = error instanceof Error ? error.name : 'Error'; | ||
| return getObjectStringProperty(error, 'name', fallbackName); | ||
| } | ||
| exports.getErrorName = getErrorName; | ||
| /** | ||
| * Get the error code from an unknown error type. | ||
@@ -54,7 +91,5 @@ * | ||
| function getErrorCode(error) { | ||
| if ((0, utils_1.isObject)(error) && | ||
| (0, utils_1.hasProperty)(error, 'code') && | ||
| typeof error.code === 'number' && | ||
| Number.isInteger(error.code)) { | ||
| return error.code; | ||
| const value = getObjectProperty(error, 'code'); | ||
| if (typeof value === 'number' && Number.isInteger(value)) { | ||
| return value; | ||
| } | ||
@@ -65,2 +100,13 @@ return -32603; | ||
| /** | ||
| * Get the error cause from an unknown error type. | ||
| * | ||
| * @param error - The error to get the cause from. | ||
| * @returns The error cause, or `null` if the error does not have a valid | ||
| * cause. | ||
| */ | ||
| function getErrorCause(error) { | ||
| return getObjectProperty(error, 'cause'); | ||
| } | ||
| exports.getErrorCause = getErrorCause; | ||
| /** | ||
| * Get the error data from an unknown error type. | ||
@@ -74,9 +120,5 @@ * | ||
| function getErrorData(error) { | ||
| if ((0, utils_1.isObject)(error) && | ||
| (0, utils_1.hasProperty)(error, 'data') && | ||
| typeof error.data === 'object' && | ||
| error.data !== null && | ||
| (0, utils_1.isValidJson)(error.data) && | ||
| !Array.isArray(error.data)) { | ||
| return error.data; | ||
| const value = getObjectProperty(error, 'data'); | ||
| if (value !== null && (0, utils_1.isValidJson)(value) && !Array.isArray(value)) { | ||
| return value; | ||
| } | ||
@@ -83,0 +125,0 @@ return {}; |
@@ -0,1 +1,2 @@ | ||
| import type { Json } from "@metamask/utils"; | ||
| export declare const SNAP_ERROR_CODE = -31002; | ||
@@ -22,4 +23,12 @@ export declare const SNAP_ERROR_MESSAGE = "Snap Error"; | ||
| */ | ||
| export declare function getErrorStack(error: unknown): string | undefined; | ||
| export declare function getErrorStack(error: unknown): string | null; | ||
| /** | ||
| * Get the error name from an unknown error type. | ||
| * | ||
| * @param error - The error to get the name from. | ||
| * @returns The error name, or `'Error'` if the error does not have a valid | ||
| * name. | ||
| */ | ||
| export declare function getErrorName(error: unknown): string; | ||
| /** | ||
| * Get the error code from an unknown error type. | ||
@@ -33,2 +42,10 @@ * | ||
| /** | ||
| * Get the error cause from an unknown error type. | ||
| * | ||
| * @param error - The error to get the cause from. | ||
| * @returns The error cause, or `null` if the error does not have a valid | ||
| * cause. | ||
| */ | ||
| export declare function getErrorCause(error: unknown): unknown; | ||
| /** | ||
| * Get the error data from an unknown error type. | ||
@@ -41,5 +58,3 @@ * | ||
| */ | ||
| export declare function getErrorData(error: unknown): { | ||
| [prop: string]: import("@metamask/utils").Json; | ||
| }; | ||
| export declare function getErrorData(error: unknown): Record<string, Json>; | ||
| //# sourceMappingURL=errors.d.cts.map |
@@ -0,1 +1,2 @@ | ||
| import type { Json } from "@metamask/utils"; | ||
| export declare const SNAP_ERROR_CODE = -31002; | ||
@@ -22,4 +23,12 @@ export declare const SNAP_ERROR_MESSAGE = "Snap Error"; | ||
| */ | ||
| export declare function getErrorStack(error: unknown): string | undefined; | ||
| export declare function getErrorStack(error: unknown): string | null; | ||
| /** | ||
| * Get the error name from an unknown error type. | ||
| * | ||
| * @param error - The error to get the name from. | ||
| * @returns The error name, or `'Error'` if the error does not have a valid | ||
| * name. | ||
| */ | ||
| export declare function getErrorName(error: unknown): string; | ||
| /** | ||
| * Get the error code from an unknown error type. | ||
@@ -33,2 +42,10 @@ * | ||
| /** | ||
| * Get the error cause from an unknown error type. | ||
| * | ||
| * @param error - The error to get the cause from. | ||
| * @returns The error cause, or `null` if the error does not have a valid | ||
| * cause. | ||
| */ | ||
| export declare function getErrorCause(error: unknown): unknown; | ||
| /** | ||
| * Get the error data from an unknown error type. | ||
@@ -41,5 +58,3 @@ * | ||
| */ | ||
| export declare function getErrorData(error: unknown): { | ||
| [prop: string]: import("@metamask/utils").Json; | ||
| }; | ||
| export declare function getErrorData(error: unknown): Record<string, Json>; | ||
| //# sourceMappingURL=errors.d.mts.map |
@@ -5,2 +5,37 @@ import { hasProperty, isObject, isValidJson } from "@metamask/utils"; | ||
| /** | ||
| * Get a property from an object, or return a fallback value if the property | ||
| * does not exist. | ||
| * | ||
| * @param object - The object to get the property from. | ||
| * @param property - The property to get from the object. | ||
| * @param fallback - The fallback value to return if the property does not | ||
| * exist. | ||
| * @returns The value of the property if it exists, or the fallback value if | ||
| * the property does not exist. | ||
| */ | ||
| function getObjectProperty(object, property, fallback = null) { | ||
| if (isObject(object) && hasProperty(object, property)) { | ||
| return object[property]; | ||
| } | ||
| return fallback; | ||
| } | ||
| /** | ||
| * Get a string property from an object, or convert the object to a string | ||
| * if the property does not exist or is not a string. | ||
| * | ||
| * @param object - The object to get the property from. | ||
| * @param property - The property to get from the object. | ||
| * @param fallback - The fallback value to return if the property does not exist | ||
| * or is not a string. Defaults to the string representation of the object. | ||
| * @returns The value of the property if it exists and is a string, or the | ||
| * fallback value if it does not exist or is not a string. | ||
| */ | ||
| function getObjectStringProperty(object, property, fallback = String(object)) { | ||
| const value = getObjectProperty(object, property); | ||
| if (typeof value === 'string') { | ||
| return value; | ||
| } | ||
| return fallback; | ||
| } | ||
| /** | ||
| * Get the error message from an unknown error type. | ||
@@ -16,8 +51,3 @@ * | ||
| export function getErrorMessage(error) { | ||
| if (isObject(error) && | ||
| hasProperty(error, 'message') && | ||
| typeof error.message === 'string') { | ||
| return error.message; | ||
| } | ||
| return String(error); | ||
| return getObjectStringProperty(error, 'message'); | ||
| } | ||
@@ -33,10 +63,16 @@ /** | ||
| export function getErrorStack(error) { | ||
| if (isObject(error) && | ||
| hasProperty(error, 'stack') && | ||
| typeof error.stack === 'string') { | ||
| return error.stack; | ||
| } | ||
| return undefined; | ||
| return getObjectStringProperty(error, 'stack', null); | ||
| } | ||
| /** | ||
| * Get the error name from an unknown error type. | ||
| * | ||
| * @param error - The error to get the name from. | ||
| * @returns The error name, or `'Error'` if the error does not have a valid | ||
| * name. | ||
| */ | ||
| export function getErrorName(error) { | ||
| const fallbackName = error instanceof Error ? error.name : 'Error'; | ||
| return getObjectStringProperty(error, 'name', fallbackName); | ||
| } | ||
| /** | ||
| * Get the error code from an unknown error type. | ||
@@ -49,7 +85,5 @@ * | ||
| export function getErrorCode(error) { | ||
| if (isObject(error) && | ||
| hasProperty(error, 'code') && | ||
| typeof error.code === 'number' && | ||
| Number.isInteger(error.code)) { | ||
| return error.code; | ||
| const value = getObjectProperty(error, 'code'); | ||
| if (typeof value === 'number' && Number.isInteger(value)) { | ||
| return value; | ||
| } | ||
@@ -59,2 +93,12 @@ return -32603; | ||
| /** | ||
| * Get the error cause from an unknown error type. | ||
| * | ||
| * @param error - The error to get the cause from. | ||
| * @returns The error cause, or `null` if the error does not have a valid | ||
| * cause. | ||
| */ | ||
| export function getErrorCause(error) { | ||
| return getObjectProperty(error, 'cause'); | ||
| } | ||
| /** | ||
| * Get the error data from an unknown error type. | ||
@@ -68,9 +112,5 @@ * | ||
| export function getErrorData(error) { | ||
| if (isObject(error) && | ||
| hasProperty(error, 'data') && | ||
| typeof error.data === 'object' && | ||
| error.data !== null && | ||
| isValidJson(error.data) && | ||
| !Array.isArray(error.data)) { | ||
| return error.data; | ||
| const value = getObjectProperty(error, 'data'); | ||
| if (value !== null && isValidJson(value) && !Array.isArray(value)) { | ||
| return value; | ||
| } | ||
@@ -77,0 +117,0 @@ return {}; |
@@ -55,4 +55,4 @@ import type { Struct } from "@metamask/superstruct"; | ||
| export declare const TextInputPropsStruct: Struct<{ | ||
| type: "text"; | ||
| name: string; | ||
| type: "text"; | ||
| value?: string | undefined; | ||
@@ -72,4 +72,4 @@ placeholder?: string | undefined; | ||
| export declare const PasswordInputPropsStruct: Struct<{ | ||
| type: "password"; | ||
| name: string; | ||
| type: "password"; | ||
| value?: string | undefined; | ||
@@ -89,4 +89,4 @@ placeholder?: string | undefined; | ||
| export declare const NumberInputPropsStruct: Struct<{ | ||
| type: "number"; | ||
| name: string; | ||
| type: "number"; | ||
| value?: string | undefined; | ||
@@ -93,0 +93,0 @@ placeholder?: string | undefined; |
@@ -55,4 +55,4 @@ import type { Struct } from "@metamask/superstruct"; | ||
| export declare const TextInputPropsStruct: Struct<{ | ||
| type: "text"; | ||
| name: string; | ||
| type: "text"; | ||
| value?: string | undefined; | ||
@@ -72,4 +72,4 @@ placeholder?: string | undefined; | ||
| export declare const PasswordInputPropsStruct: Struct<{ | ||
| type: "password"; | ||
| name: string; | ||
| type: "password"; | ||
| value?: string | undefined; | ||
@@ -89,4 +89,4 @@ placeholder?: string | undefined; | ||
| export declare const NumberInputPropsStruct: Struct<{ | ||
| type: "number"; | ||
| name: string; | ||
| type: "number"; | ||
| value?: string | undefined; | ||
@@ -93,0 +93,0 @@ placeholder?: string | undefined; |
| import { type CaipAssetType } from "@metamask/utils"; | ||
| /** | ||
| * The market data for an asset. | ||
| * | ||
| * @property marketCap - The market capitalization of the asset. | ||
| * @property totalVolume - The total volume of the asset. | ||
| * @property circulatingSupply - The circulating supply of the asset. | ||
| * @property allTimeHigh - The all-time high price of the asset. | ||
| * @property allTimeLow - The all-time low price of the asset. | ||
| * @property pricePercentChange - The percentage change in price over different intervals. | ||
| * @property pricePercentChange.interval - The time interval for the price change as a ISO 8601 duration | ||
| * or the string "all" to represent the all-time change. | ||
| */ | ||
| export type MarketData = { | ||
| marketCap: string; | ||
| totalVolume: string; | ||
| circulatingSupply: string; | ||
| allTimeHigh: string; | ||
| allTimeLow: string; | ||
| pricePercentChange: { | ||
| [interval: string]: number; | ||
| }; | ||
| }; | ||
| /** | ||
| * The conversion rate between two assets. | ||
| * | ||
| * @property rate - The conversion rate between the two assets. | ||
| * @property marketData - The market data for the asset, if requested. | ||
| * @property conversionTime - The time at which the conversion rate was calculated. | ||
@@ -34,3 +11,2 @@ * @property expirationTime - The time at which the conversion rate expires. | ||
| rate: string; | ||
| marketData?: MarketData; | ||
| conversionTime: number; | ||
@@ -50,3 +26,2 @@ expirationTime?: number; | ||
| }[]; | ||
| includeMarketData?: boolean; | ||
| }; | ||
@@ -53,0 +28,0 @@ /** |
| import { type CaipAssetType } from "@metamask/utils"; | ||
| /** | ||
| * The market data for an asset. | ||
| * | ||
| * @property marketCap - The market capitalization of the asset. | ||
| * @property totalVolume - The total volume of the asset. | ||
| * @property circulatingSupply - The circulating supply of the asset. | ||
| * @property allTimeHigh - The all-time high price of the asset. | ||
| * @property allTimeLow - The all-time low price of the asset. | ||
| * @property pricePercentChange - The percentage change in price over different intervals. | ||
| * @property pricePercentChange.interval - The time interval for the price change as a ISO 8601 duration | ||
| * or the string "all" to represent the all-time change. | ||
| */ | ||
| export type MarketData = { | ||
| marketCap: string; | ||
| totalVolume: string; | ||
| circulatingSupply: string; | ||
| allTimeHigh: string; | ||
| allTimeLow: string; | ||
| pricePercentChange: { | ||
| [interval: string]: number; | ||
| }; | ||
| }; | ||
| /** | ||
| * The conversion rate between two assets. | ||
| * | ||
| * @property rate - The conversion rate between the two assets. | ||
| * @property marketData - The market data for the asset, if requested. | ||
| * @property conversionTime - The time at which the conversion rate was calculated. | ||
@@ -34,3 +11,2 @@ * @property expirationTime - The time at which the conversion rate expires. | ||
| rate: string; | ||
| marketData?: MarketData; | ||
| conversionTime: number; | ||
@@ -50,3 +26,2 @@ expirationTime?: number; | ||
| }[]; | ||
| includeMarketData?: boolean; | ||
| }; | ||
@@ -53,0 +28,0 @@ /** |
| export type * from "./asset-historical-price.cjs"; | ||
| export type * from "./assets-conversion.cjs"; | ||
| export type * from "./assets-market-data.cjs"; | ||
| export * from "./assets-lookup.cjs"; | ||
@@ -4,0 +5,0 @@ export type * from "./client-request.cjs"; |
| export type * from "./asset-historical-price.mjs"; | ||
| export type * from "./assets-conversion.mjs"; | ||
| export type * from "./assets-market-data.mjs"; | ||
| export * from "./assets-lookup.mjs"; | ||
@@ -4,0 +5,0 @@ export type * from "./client-request.mjs"; |
@@ -107,4 +107,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| } | null>; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| name: string; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| }, { | ||
@@ -150,4 +150,4 @@ type: import("@metamask/superstruct").Struct<UserInputEventType.FormSubmitEvent, null>; | ||
| }; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| name: string; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| }, { | ||
@@ -175,4 +175,4 @@ type: import("@metamask/superstruct").Struct<UserInputEventType.InputChangeEvent, null>; | ||
| export declare const FileUploadEventStruct: import("@metamask/superstruct").Struct<{ | ||
| type: UserInputEventType.FileUploadEvent; | ||
| name: string; | ||
| type: UserInputEventType.FileUploadEvent; | ||
| file: { | ||
@@ -227,4 +227,4 @@ name: string; | ||
| } | null>; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| name: string; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| } | { | ||
@@ -239,7 +239,7 @@ value: string | boolean | { | ||
| }; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| name: string; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| } | { | ||
| type: UserInputEventType.FileUploadEvent; | ||
| name: string; | ||
| type: UserInputEventType.FileUploadEvent; | ||
| file: { | ||
@@ -246,0 +246,0 @@ name: string; |
@@ -107,4 +107,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| } | null>; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| name: string; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| }, { | ||
@@ -150,4 +150,4 @@ type: import("@metamask/superstruct").Struct<UserInputEventType.FormSubmitEvent, null>; | ||
| }; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| name: string; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| }, { | ||
@@ -175,4 +175,4 @@ type: import("@metamask/superstruct").Struct<UserInputEventType.InputChangeEvent, null>; | ||
| export declare const FileUploadEventStruct: import("@metamask/superstruct").Struct<{ | ||
| type: UserInputEventType.FileUploadEvent; | ||
| name: string; | ||
| type: UserInputEventType.FileUploadEvent; | ||
| file: { | ||
@@ -227,4 +227,4 @@ name: string; | ||
| } | null>; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| name: string; | ||
| type: UserInputEventType.FormSubmitEvent; | ||
| } | { | ||
@@ -239,7 +239,7 @@ value: string | boolean | { | ||
| }; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| name: string; | ||
| type: UserInputEventType.InputChangeEvent; | ||
| } | { | ||
| type: UserInputEventType.FileUploadEvent; | ||
| name: string; | ||
| type: UserInputEventType.FileUploadEvent; | ||
| file: { | ||
@@ -246,0 +246,0 @@ name: string; |
@@ -102,4 +102,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| } | { | ||
| type: import("../ui/index.cjs").NodeType.Input; | ||
| name: string; | ||
| type: import("../ui/index.cjs").NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -113,11 +113,11 @@ label?: string | undefined; | ||
| type: import("../ui/index.cjs").NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: import("../ui/index.cjs").NodeType.Form; | ||
| name: string; | ||
| type: import("../ui/index.cjs").NodeType.Form; | ||
| children: ({ | ||
| type: import("../ui/index.cjs").NodeType.Input; | ||
| name: string; | ||
| type: import("../ui/index.cjs").NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -131,4 +131,4 @@ label?: string | undefined; | ||
| type: import("../ui/index.cjs").NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -135,0 +135,0 @@ })[]; |
@@ -102,4 +102,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| } | { | ||
| type: import("../ui/index.mjs").NodeType.Input; | ||
| name: string; | ||
| type: import("../ui/index.mjs").NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -113,11 +113,11 @@ label?: string | undefined; | ||
| type: import("../ui/index.mjs").NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: import("../ui/index.mjs").NodeType.Form; | ||
| name: string; | ||
| type: import("../ui/index.mjs").NodeType.Form; | ||
| children: ({ | ||
| type: import("../ui/index.mjs").NodeType.Input; | ||
| name: string; | ||
| type: import("../ui/index.mjs").NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -131,4 +131,4 @@ label?: string | undefined; | ||
| type: import("../ui/index.mjs").NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -135,0 +135,0 @@ })[]; |
@@ -32,2 +32,3 @@ export type * from "./clear-state.cjs"; | ||
| export type * from "./set-state.cjs"; | ||
| export type * from "./track-error.cjs"; | ||
| export type * from "./track-event.cjs"; | ||
@@ -34,0 +35,0 @@ export type * from "./open-web-socket.cjs"; |
@@ -32,2 +32,3 @@ export type * from "./clear-state.mjs"; | ||
| export type * from "./set-state.mjs"; | ||
| export type * from "./track-error.mjs"; | ||
| export type * from "./track-event.mjs"; | ||
@@ -34,0 +35,0 @@ export type * from "./open-web-socket.mjs"; |
@@ -33,2 +33,3 @@ import type { CancelBackgroundEventParams, CancelBackgroundEventResult } from "./cancel-background-event.cjs"; | ||
| import type { SetStateParams, SetStateResult } from "./set-state.cjs"; | ||
| import type { TrackErrorParams, TrackErrorResult } from "./track-error.cjs"; | ||
| import type { TrackEventParams, TrackEventResult } from "./track-event.cjs"; | ||
@@ -80,2 +81,3 @@ import type { UpdateInterfaceParams, UpdateInterfaceResult } from "./update-interface.cjs"; | ||
| snap_trackEvent: [TrackEventParams, TrackEventResult]; | ||
| snap_trackError: [TrackErrorParams, TrackErrorResult]; | ||
| snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult]; | ||
@@ -82,0 +84,0 @@ snap_closeWebSocket: [CloseWebSocketParams, CloseWebSocketResult]; |
@@ -33,2 +33,3 @@ import type { CancelBackgroundEventParams, CancelBackgroundEventResult } from "./cancel-background-event.mjs"; | ||
| import type { SetStateParams, SetStateResult } from "./set-state.mjs"; | ||
| import type { TrackErrorParams, TrackErrorResult } from "./track-error.mjs"; | ||
| import type { TrackEventParams, TrackEventResult } from "./track-event.mjs"; | ||
@@ -80,2 +81,3 @@ import type { UpdateInterfaceParams, UpdateInterfaceResult } from "./update-interface.mjs"; | ||
| snap_trackEvent: [TrackEventParams, TrackEventResult]; | ||
| snap_trackError: [TrackErrorParams, TrackErrorResult]; | ||
| snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult]; | ||
@@ -82,0 +84,0 @@ snap_closeWebSocket: [CloseWebSocketParams, CloseWebSocketResult]; |
@@ -14,4 +14,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -56,4 +56,4 @@ }, { | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -63,6 +63,6 @@ }, "type">] | (string | undefined)[]) => { | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| }; | ||
| //# sourceMappingURL=button.d.cts.map |
@@ -14,4 +14,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -56,4 +56,4 @@ }, { | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -63,6 +63,6 @@ }, "type">] | (string | undefined)[]) => { | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| }; | ||
| //# sourceMappingURL=button.d.mts.map |
| import type { Infer } from "@metamask/superstruct"; | ||
| import { NodeType } from "../nodes.cjs"; | ||
| export declare const FormComponentStruct: import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -14,4 +14,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -24,7 +24,7 @@ }, null>; | ||
| export declare const FormStruct: import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -38,4 +38,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -46,4 +46,4 @@ })[]; | ||
| children: import("@metamask/superstruct").Struct<({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -57,8 +57,8 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| })[], import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -72,4 +72,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -110,7 +110,7 @@ }, null>>; | ||
| export declare const form: (...args: [Omit<{ | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -124,9 +124,9 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| })[]; | ||
| }, "type">] | (string | ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -140,11 +140,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| })[])[]) => { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -158,4 +158,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -162,0 +162,0 @@ })[]; |
| import type { Infer } from "@metamask/superstruct"; | ||
| import { NodeType } from "../nodes.mjs"; | ||
| export declare const FormComponentStruct: import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -14,4 +14,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -24,7 +24,7 @@ }, null>; | ||
| export declare const FormStruct: import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -38,4 +38,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -46,4 +46,4 @@ })[]; | ||
| children: import("@metamask/superstruct").Struct<({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -57,8 +57,8 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| })[], import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -72,4 +72,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -110,7 +110,7 @@ }, null>>; | ||
| export declare const form: (...args: [Omit<{ | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -124,9 +124,9 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| })[]; | ||
| }, "type">] | (string | ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -140,11 +140,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| })[])[]) => { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -158,4 +158,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -162,0 +162,0 @@ })[]; |
@@ -13,4 +13,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| export declare const InputStruct: import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -63,4 +63,4 @@ label?: string | undefined; | ||
| export declare const input: (...args: (string | undefined)[] | [Omit<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -72,4 +72,4 @@ label?: string | undefined; | ||
| }, "type">]) => { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -76,0 +76,0 @@ label?: string | undefined; |
@@ -13,4 +13,4 @@ import type { Infer } from "@metamask/superstruct"; | ||
| export declare const InputStruct: import("@metamask/superstruct").Struct<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -63,4 +63,4 @@ label?: string | undefined; | ||
| export declare const input: (...args: (string | undefined)[] | [Omit<{ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -72,4 +72,4 @@ label?: string | undefined; | ||
| }, "type">]) => { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -76,0 +76,0 @@ label?: string | undefined; |
@@ -45,4 +45,4 @@ import type { Infer, Struct } from "@metamask/superstruct"; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -56,11 +56,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -74,4 +74,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -118,4 +118,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -129,11 +129,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -147,4 +147,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -189,4 +189,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -200,11 +200,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -218,4 +218,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -310,4 +310,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -321,11 +321,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -339,4 +339,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -382,4 +382,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -393,11 +393,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -411,4 +411,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -415,0 +415,0 @@ })[]; |
@@ -45,4 +45,4 @@ import type { Infer, Struct } from "@metamask/superstruct"; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -56,11 +56,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -74,4 +74,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -118,4 +118,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -129,11 +129,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -147,4 +147,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -189,4 +189,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -200,11 +200,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -218,4 +218,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -310,4 +310,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -321,11 +321,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -339,4 +339,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -382,4 +382,4 @@ })[]; | ||
| } | { | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -393,11 +393,11 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
| } | { | ||
| type: NodeType.Form; | ||
| name: string; | ||
| type: NodeType.Form; | ||
| children: ({ | ||
| type: NodeType.Input; | ||
| name: string; | ||
| type: NodeType.Input; | ||
| value?: string | undefined; | ||
@@ -411,4 +411,4 @@ label?: string | undefined; | ||
| type: NodeType.Button; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| name?: string | undefined; | ||
| variant?: "primary" | "secondary" | undefined; | ||
| buttonType?: "button" | "submit" | undefined; | ||
@@ -415,0 +415,0 @@ })[]; |
+2
-2
| { | ||
| "name": "@metamask/snaps-sdk", | ||
| "version": "8.1.0", | ||
| "version": "9.0.0", | ||
| "description": "A library containing the core functionality for building MetaMask Snaps", | ||
@@ -101,3 +101,3 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@lavamoat/allow-scripts": "^3.3.3", | ||
| "@lavamoat/allow-scripts": "^3.3.4", | ||
| "@metamask/auto-changelog": "^5.0.2", | ||
@@ -104,0 +104,0 @@ "@ts-bridge/cli": "^0.6.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1705899
2.09%1114
1.46%7311
2.68%5
66.67%