@metamask/snaps-sdk 6.18.0 → 6.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/internals/index.cjs +0 -1
- package/dist/internals/index.cjs.map +1 -1
- package/dist/internals/index.d.cts +1 -1
- package/dist/internals/index.d.cts.map +1 -1
- package/dist/internals/index.d.mts +1 -1
- package/dist/internals/index.d.mts.map +1 -1
- package/dist/internals/index.mjs +0 -1
- package/dist/internals/index.mjs.map +1 -1
- package/dist/internals/jsx.cjs.map +1 -1
- package/dist/internals/jsx.d.cts.map +1 -1
- package/dist/internals/jsx.d.mts.map +1 -1
- package/dist/internals/jsx.mjs.map +1 -1
- package/dist/jsx/components/Banner.cjs.map +1 -1
- package/dist/jsx/components/Banner.d.cts +1 -1
- package/dist/jsx/components/Banner.d.cts.map +1 -1
- package/dist/jsx/components/Banner.d.mts +1 -1
- package/dist/jsx/components/Banner.d.mts.map +1 -1
- package/dist/jsx/components/Banner.mjs.map +1 -1
- package/dist/jsx/components/Box.cjs +4 -0
- package/dist/jsx/components/Box.cjs.map +1 -1
- package/dist/jsx/components/Box.d.cts +5 -1
- package/dist/jsx/components/Box.d.cts.map +1 -1
- package/dist/jsx/components/Box.d.mts +5 -1
- package/dist/jsx/components/Box.d.mts.map +1 -1
- package/dist/jsx/components/Box.mjs +4 -0
- package/dist/jsx/components/Box.mjs.map +1 -1
- package/dist/jsx/components/Card.cjs.map +1 -1
- package/dist/jsx/components/Card.d.cts.map +1 -1
- package/dist/jsx/components/Card.d.mts.map +1 -1
- package/dist/jsx/components/Card.mjs.map +1 -1
- package/dist/jsx/components/Container.cjs.map +1 -1
- package/dist/jsx/components/Container.d.cts +1 -1
- package/dist/jsx/components/Container.d.cts.map +1 -1
- package/dist/jsx/components/Container.d.mts +1 -1
- package/dist/jsx/components/Container.d.mts.map +1 -1
- package/dist/jsx/components/Container.mjs.map +1 -1
- package/dist/jsx/components/Footer.cjs.map +1 -1
- package/dist/jsx/components/Footer.d.cts.map +1 -1
- package/dist/jsx/components/Footer.d.mts.map +1 -1
- package/dist/jsx/components/Footer.mjs.map +1 -1
- package/dist/jsx/components/Image.cjs.map +1 -1
- package/dist/jsx/components/Image.d.cts.map +1 -1
- package/dist/jsx/components/Image.d.mts.map +1 -1
- package/dist/jsx/components/Image.mjs.map +1 -1
- package/dist/jsx/components/Link.cjs.map +1 -1
- package/dist/jsx/components/Link.d.cts +1 -1
- package/dist/jsx/components/Link.d.cts.map +1 -1
- package/dist/jsx/components/Link.d.mts +1 -1
- package/dist/jsx/components/Link.d.mts.map +1 -1
- package/dist/jsx/components/Link.mjs.map +1 -1
- package/dist/jsx/components/Row.cjs.map +1 -1
- package/dist/jsx/components/Row.d.cts.map +1 -1
- package/dist/jsx/components/Row.d.mts.map +1 -1
- package/dist/jsx/components/Row.mjs.map +1 -1
- package/dist/jsx/components/Skeleton.cjs.map +1 -1
- package/dist/jsx/components/Skeleton.d.cts.map +1 -1
- package/dist/jsx/components/Skeleton.d.mts.map +1 -1
- package/dist/jsx/components/Skeleton.mjs.map +1 -1
- package/dist/jsx/components/Text.cjs.map +1 -1
- package/dist/jsx/components/Text.d.cts +1 -1
- package/dist/jsx/components/Text.d.cts.map +1 -1
- package/dist/jsx/components/Text.d.mts +1 -1
- package/dist/jsx/components/Text.d.mts.map +1 -1
- package/dist/jsx/components/Text.mjs.map +1 -1
- package/dist/jsx/components/Tooltip.cjs.map +1 -1
- package/dist/jsx/components/Tooltip.d.cts.map +1 -1
- package/dist/jsx/components/Tooltip.d.mts.map +1 -1
- package/dist/jsx/components/Tooltip.mjs.map +1 -1
- package/dist/jsx/components/Value.cjs.map +1 -1
- package/dist/jsx/components/Value.d.cts.map +1 -1
- package/dist/jsx/components/Value.d.mts.map +1 -1
- package/dist/jsx/components/Value.mjs.map +1 -1
- package/dist/jsx/components/form/Dropdown.cjs.map +1 -1
- package/dist/jsx/components/form/Dropdown.d.cts +1 -1
- package/dist/jsx/components/form/Dropdown.d.cts.map +1 -1
- package/dist/jsx/components/form/Dropdown.d.mts +1 -1
- package/dist/jsx/components/form/Dropdown.d.mts.map +1 -1
- package/dist/jsx/components/form/Dropdown.mjs.map +1 -1
- package/dist/jsx/components/form/Field.cjs.map +1 -1
- package/dist/jsx/components/form/Field.d.cts +1 -1
- package/dist/jsx/components/form/Field.d.cts.map +1 -1
- package/dist/jsx/components/form/Field.d.mts +1 -1
- package/dist/jsx/components/form/Field.d.mts.map +1 -1
- package/dist/jsx/components/form/Field.mjs.map +1 -1
- package/dist/jsx/components/form/Option.cjs +0 -2
- package/dist/jsx/components/form/Option.cjs.map +1 -1
- package/dist/jsx/components/form/Option.d.cts.map +1 -1
- package/dist/jsx/components/form/Option.d.mts.map +1 -1
- package/dist/jsx/components/form/Option.mjs +0 -2
- package/dist/jsx/components/form/Option.mjs.map +1 -1
- package/dist/jsx/components/form/RadioGroup.cjs.map +1 -1
- package/dist/jsx/components/form/RadioGroup.d.cts +1 -1
- package/dist/jsx/components/form/RadioGroup.d.cts.map +1 -1
- package/dist/jsx/components/form/RadioGroup.d.mts +1 -1
- package/dist/jsx/components/form/RadioGroup.d.mts.map +1 -1
- package/dist/jsx/components/form/RadioGroup.mjs.map +1 -1
- package/dist/jsx/components/form/Selector.cjs.map +1 -1
- package/dist/jsx/components/form/Selector.d.cts +1 -1
- package/dist/jsx/components/form/Selector.d.cts.map +1 -1
- package/dist/jsx/components/form/Selector.d.mts +1 -1
- package/dist/jsx/components/form/Selector.d.mts.map +1 -1
- package/dist/jsx/components/form/Selector.mjs.map +1 -1
- package/dist/jsx/components/index.cjs +0 -1
- package/dist/jsx/components/index.cjs.map +1 -1
- package/dist/jsx/components/index.d.cts +1 -1
- package/dist/jsx/components/index.d.cts.map +1 -1
- package/dist/jsx/components/index.d.mts +1 -1
- package/dist/jsx/components/index.d.mts.map +1 -1
- package/dist/jsx/components/index.mjs +0 -1
- package/dist/jsx/components/index.mjs.map +1 -1
- package/dist/jsx/validation.cjs +1 -2
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts +2 -3
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts +2 -3
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +1 -2
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/handlers/index.cjs +0 -9
- package/dist/types/handlers/index.cjs.map +1 -1
- package/dist/types/handlers/index.d.cts +9 -9
- package/dist/types/handlers/index.d.cts.map +1 -1
- package/dist/types/handlers/index.d.mts +9 -9
- package/dist/types/handlers/index.d.mts.map +1 -1
- package/dist/types/handlers/index.mjs +0 -9
- package/dist/types/handlers/index.mjs.map +1 -1
- package/dist/types/handlers/signature.cjs.map +1 -1
- package/dist/types/handlers/signature.d.cts +1 -1
- package/dist/types/handlers/signature.d.cts.map +1 -1
- package/dist/types/handlers/signature.d.mts +1 -1
- package/dist/types/handlers/signature.d.mts.map +1 -1
- package/dist/types/handlers/signature.mjs.map +1 -1
- package/dist/types/images.cjs.map +1 -1
- package/dist/types/images.mjs.map +1 -1
- package/dist/types/index.cjs +1 -6
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +1 -6
- package/dist/types/index.mjs.map +1 -1
- package/dist/types/interface.cjs +1 -1
- package/dist/types/interface.cjs.map +1 -1
- package/dist/types/interface.d.cts.map +1 -1
- package/dist/types/interface.d.mts.map +1 -1
- package/dist/types/interface.mjs +1 -1
- package/dist/types/interface.mjs.map +1 -1
- package/dist/types/methods/get-bip32-entropy.cjs.map +1 -1
- package/dist/types/methods/get-bip32-entropy.d.cts +8 -4
- package/dist/types/methods/get-bip32-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-bip32-entropy.d.mts +8 -4
- package/dist/types/methods/get-bip32-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-bip32-entropy.mjs.map +1 -1
- package/dist/types/methods/get-bip32-public-key.cjs.map +1 -1
- package/dist/types/methods/get-bip32-public-key.d.cts +9 -5
- package/dist/types/methods/get-bip32-public-key.d.cts.map +1 -1
- package/dist/types/methods/get-bip32-public-key.d.mts +9 -5
- package/dist/types/methods/get-bip32-public-key.d.mts.map +1 -1
- package/dist/types/methods/get-bip32-public-key.mjs.map +1 -1
- package/dist/types/methods/get-bip44-entropy.cjs.map +1 -1
- package/dist/types/methods/get-bip44-entropy.d.cts +8 -3
- package/dist/types/methods/get-bip44-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-bip44-entropy.d.mts +8 -3
- package/dist/types/methods/get-bip44-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-bip44-entropy.mjs.map +1 -1
- package/dist/types/methods/get-entropy.cjs.map +1 -1
- package/dist/types/methods/get-entropy.d.cts +14 -5
- package/dist/types/methods/get-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-entropy.d.mts +14 -5
- package/dist/types/methods/get-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-entropy.mjs.map +1 -1
- package/dist/types/methods/index.cjs +0 -26
- package/dist/types/methods/index.cjs.map +1 -1
- package/dist/types/methods/index.d.cts +27 -26
- package/dist/types/methods/index.d.cts.map +1 -1
- package/dist/types/methods/index.d.mts +27 -26
- package/dist/types/methods/index.d.mts.map +1 -1
- package/dist/types/methods/index.mjs +0 -26
- package/dist/types/methods/index.mjs.map +1 -1
- package/dist/types/methods/list-entropy-sources.cjs +3 -0
- package/dist/types/methods/list-entropy-sources.cjs.map +1 -0
- package/dist/types/methods/list-entropy-sources.d.cts +31 -0
- package/dist/types/methods/list-entropy-sources.d.cts.map +1 -0
- package/dist/types/methods/list-entropy-sources.d.mts +31 -0
- package/dist/types/methods/list-entropy-sources.d.mts.map +1 -0
- package/dist/types/methods/list-entropy-sources.mjs +2 -0
- package/dist/types/methods/list-entropy-sources.mjs.map +1 -0
- package/dist/types/methods/methods.cjs.map +1 -1
- package/dist/types/methods/methods.d.cts +3 -1
- package/dist/types/methods/methods.d.cts.map +1 -1
- package/dist/types/methods/methods.d.mts +3 -1
- package/dist/types/methods/methods.d.mts.map +1 -1
- package/dist/types/methods/methods.mjs.map +1 -1
- package/dist/types/snap.cjs.map +1 -1
- package/dist/types/snap.d.cts.map +1 -1
- package/dist/types/snap.d.mts.map +1 -1
- package/dist/types/snap.mjs.map +1 -1
- package/dist/ui/builder.cjs.map +1 -1
- package/dist/ui/builder.d.cts.map +1 -1
- package/dist/ui/builder.d.mts.map +1 -1
- package/dist/ui/builder.mjs.map +1 -1
- package/dist/ui/components/form.cjs +2 -2
- package/dist/ui/components/form.cjs.map +1 -1
- package/dist/ui/components/form.d.cts.map +1 -1
- package/dist/ui/components/form.d.mts.map +1 -1
- package/dist/ui/components/form.mjs +2 -2
- package/dist/ui/components/form.mjs.map +1 -1
- package/dist/ui/components/input.cjs +0 -2
- package/dist/ui/components/input.cjs.map +1 -1
- package/dist/ui/components/input.d.cts.map +1 -1
- package/dist/ui/components/input.d.mts.map +1 -1
- package/dist/ui/components/input.mjs +0 -2
- package/dist/ui/components/input.mjs.map +1 -1
- package/dist/ui/components/panel.cjs +3 -3
- package/dist/ui/components/panel.cjs.map +1 -1
- package/dist/ui/components/panel.d.cts.map +1 -1
- package/dist/ui/components/panel.d.mts.map +1 -1
- package/dist/ui/components/panel.mjs +3 -3
- package/dist/ui/components/panel.mjs.map +1 -1
- package/dist/ui/components/row.cjs +3 -3
- package/dist/ui/components/row.cjs.map +1 -1
- package/dist/ui/components/row.d.cts.map +1 -1
- package/dist/ui/components/row.d.mts.map +1 -1
- package/dist/ui/components/row.mjs +3 -3
- package/dist/ui/components/row.mjs.map +1 -1
- package/dist/ui/nodes.cjs +0 -1
- package/dist/ui/nodes.cjs.map +1 -1
- package/dist/ui/nodes.d.cts.map +1 -1
- package/dist/ui/nodes.d.mts.map +1 -1
- package/dist/ui/nodes.mjs +0 -1
- package/dist/ui/nodes.mjs.map +1 -1
- package/jsx-dev-runtime.d.ts +0 -2
- package/jsx-dev-runtime.js +0 -2
- package/jsx-runtime.d.ts +0 -2
- package/jsx-runtime.js +0 -2
- package/jsx.d.ts +1 -1
- package/jsx.js +0 -2
- package/package.json +6 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.mjs","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,EACN,8BAA8B;AAC/B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,wBAAwB;AAEpE,OAAO,EAAE,cAAc,EAAE,+BAAqB;AAE9C,OAAO,EAAE,oBAAoB,EAAE,yBAAe;AAE9C,OAAO,EAAE,eAAe,EAAE,wBAAc;
|
|
1
|
+
{"version":3,"file":"interface.mjs","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,EACN,8BAA8B;AAC/B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,wBAAwB;AAEpE,OAAO,EAAE,UAAU,EAAE,6BAAmB;AACxC,OAAO,EAAE,cAAc,EAAE,+BAAqB;AAE9C,OAAO,EAAE,oBAAoB,EAAE,yBAAe;AAE9C,OAAO,EAAE,eAAe,EAAE,wBAAc;AAExC;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CACxC,MAAM,EAAE,EACR,KAAK,CAAC,CAAC,eAAe,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAChD,CAAC;AAOF,MAAM,CAAC,MAAM,wBAAwB,GAAG,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE;IAC/D,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,eAAe,CAAC;IACzB,CAAC;IACD,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,UAAU,CAAC,CAAC;AAGnE,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,4CAA6B,CAAA;IAC7B,oCAAqB,CAAA;AACvB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n boolean,\n nullable,\n record,\n string,\n union,\n} from '@metamask/superstruct';\nimport { JsonStruct, hasProperty, isObject } from '@metamask/utils';\n\nimport { FileStruct } from './handlers';\nimport { selectiveUnion } from '../internals';\nimport type { JSXElement } from '../jsx';\nimport { RootJSXElementStruct } from '../jsx';\nimport type { Component } from '../ui';\nimport { ComponentStruct } from '../ui';\n\n/**\n * To avoid typing problems with the interface state when manipulating it we\n * have to differentiate the state of a form (that will be contained inside the\n * root state) and the root state since a key in the root stat can contain\n * either the value of an input or a sub-state of a form.\n */\n\nexport const StateStruct = union([FileStruct, string(), boolean()]);\n\nexport const FormStateStruct = record(string(), nullable(StateStruct));\n\nexport const InterfaceStateStruct = record(\n string(),\n union([FormStateStruct, nullable(StateStruct)]),\n);\n\nexport type State = Infer<typeof StateStruct>;\nexport type FormState = Infer<typeof FormStateStruct>;\nexport type InterfaceState = Infer<typeof InterfaceStateStruct>;\n\nexport type ComponentOrElement = Component | JSXElement;\nexport const ComponentOrElementStruct = selectiveUnion((value) => {\n if (isObject(value) && !hasProperty(value, 'props')) {\n return ComponentStruct;\n }\n return RootJSXElementStruct;\n});\n\nexport const InterfaceContextStruct = record(string(), JsonStruct);\nexport type InterfaceContext = Infer<typeof InterfaceContextStruct>;\n\nexport enum ContentType {\n Insight = 'Insight',\n Dialog = 'Dialog',\n Notification = 'Notification',\n HomePage = 'HomePage',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32Entropy` method.\n
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32Entropy` method.\n */\nexport type GetBip32EntropyParams = Bip32Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getBip32Entropy` method.\n *\n * @see https://github.com/MetaMask/key-tree#usage\n */\nexport type GetBip32EntropyResult = JsonSLIP10Node;\n"]}
|
|
@@ -2,11 +2,15 @@ import type { JsonSLIP10Node } from "@metamask/key-tree";
|
|
|
2
2
|
import type { Bip32Entropy } from "../permissions.cjs";
|
|
3
3
|
/**
|
|
4
4
|
* The request parameters for the `snap_getBip32Entropy` method.
|
|
5
|
-
*
|
|
6
|
-
* @property path - The BIP-32 path to derive the entropy from.
|
|
7
|
-
* @property curve - The curve to use when deriving the entropy.
|
|
8
5
|
*/
|
|
9
|
-
export type GetBip32EntropyParams = Bip32Entropy
|
|
6
|
+
export type GetBip32EntropyParams = Bip32Entropy & {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
9
|
+
* source will be used. For a list of available entropy sources, see the
|
|
10
|
+
* `snap_listEntropySources` method.
|
|
11
|
+
*/
|
|
12
|
+
source?: string | undefined;
|
|
13
|
+
};
|
|
10
14
|
/**
|
|
11
15
|
* The result returned by the `snap_getBip32Entropy` method.
|
|
12
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC"}
|
|
@@ -2,11 +2,15 @@ import type { JsonSLIP10Node } from "@metamask/key-tree";
|
|
|
2
2
|
import type { Bip32Entropy } from "../permissions.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* The request parameters for the `snap_getBip32Entropy` method.
|
|
5
|
-
*
|
|
6
|
-
* @property path - The BIP-32 path to derive the entropy from.
|
|
7
|
-
* @property curve - The curve to use when deriving the entropy.
|
|
8
5
|
*/
|
|
9
|
-
export type GetBip32EntropyParams = Bip32Entropy
|
|
6
|
+
export type GetBip32EntropyParams = Bip32Entropy & {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
9
|
+
* source will be used. For a list of available entropy sources, see the
|
|
10
|
+
* `snap_listEntropySources` method.
|
|
11
|
+
*/
|
|
12
|
+
source?: string | undefined;
|
|
13
|
+
};
|
|
10
14
|
/**
|
|
11
15
|
* The result returned by the `snap_getBip32Entropy` method.
|
|
12
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32Entropy` method.\n
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32Entropy` method.\n */\nexport type GetBip32EntropyParams = Bip32Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getBip32Entropy` method.\n *\n * @see https://github.com/MetaMask/key-tree#usage\n */\nexport type GetBip32EntropyResult = JsonSLIP10Node;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32PublicKey` method.\n
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32PublicKey` method.\n */\nexport type GetBip32PublicKeyParams = Bip32Entropy & {\n /**\n * Whether to return the compressed public key. Defaults to `false`.\n */\n compressed?: boolean;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getBip32PublicKey` method.\n *\n * It is the public key in hexadecimal format, in either compressed or\n * uncompressed format, depending on the `compressed` parameter.\n */\nexport type GetBip32PublicKeyResult = string;\n"]}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { Bip32Entropy } from "../permissions.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The request parameters for the `snap_getBip32PublicKey` method.
|
|
4
|
-
*
|
|
5
|
-
* @property path - The BIP-32 path to derive the public key from.
|
|
6
|
-
* @property curve - The curve to use when deriving the public key.
|
|
7
|
-
* @property compressed - Whether to return the compressed public key. Defaults
|
|
8
|
-
* to `false`.
|
|
9
4
|
*/
|
|
10
5
|
export type GetBip32PublicKeyParams = Bip32Entropy & {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to return the compressed public key. Defaults to `false`.
|
|
8
|
+
*/
|
|
11
9
|
compressed?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
12
|
+
* source will be used. For a list of available entropy sources, see the
|
|
13
|
+
* `snap_listEntropySources` method.
|
|
14
|
+
*/
|
|
15
|
+
source?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
14
18
|
* The result returned by the `snap_getBip32PublicKey` method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { Bip32Entropy } from "../permissions.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* The request parameters for the `snap_getBip32PublicKey` method.
|
|
4
|
-
*
|
|
5
|
-
* @property path - The BIP-32 path to derive the public key from.
|
|
6
|
-
* @property curve - The curve to use when deriving the public key.
|
|
7
|
-
* @property compressed - Whether to return the compressed public key. Defaults
|
|
8
|
-
* to `false`.
|
|
9
4
|
*/
|
|
10
5
|
export type GetBip32PublicKeyParams = Bip32Entropy & {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to return the compressed public key. Defaults to `false`.
|
|
8
|
+
*/
|
|
11
9
|
compressed?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
12
|
+
* source will be used. For a list of available entropy sources, see the
|
|
13
|
+
* `snap_listEntropySources` method.
|
|
14
|
+
*/
|
|
15
|
+
source?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
14
18
|
* The result returned by the `snap_getBip32PublicKey` method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32PublicKey` method.\n
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip32PublicKey` method.\n */\nexport type GetBip32PublicKeyParams = Bip32Entropy & {\n /**\n * Whether to return the compressed public key. Defaults to `false`.\n */\n compressed?: boolean;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getBip32PublicKey` method.\n *\n * It is the public key in hexadecimal format, in either compressed or\n * uncompressed format, depending on the `compressed` parameter.\n */\nexport type GetBip32PublicKeyResult = string;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip44Entropy` method.\n
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip44Entropy` method.\n */\nexport type GetBip44EntropyParams = Bip44Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getBip44Entropy` method.\n *\n * @see https://github.com/MetaMask/key-tree#usage\n */\nexport type GetBip44EntropyResult = JsonBIP44CoinTypeNode;\n"]}
|
|
@@ -2,10 +2,15 @@ import type { JsonBIP44CoinTypeNode } from "@metamask/key-tree";
|
|
|
2
2
|
import type { Bip44Entropy } from "../permissions.cjs";
|
|
3
3
|
/**
|
|
4
4
|
* The request parameters for the `snap_getBip44Entropy` method.
|
|
5
|
-
*
|
|
6
|
-
* @property coinType - The BIP-44 coin type to derive the entropy from.
|
|
7
5
|
*/
|
|
8
|
-
export type GetBip44EntropyParams = Bip44Entropy
|
|
6
|
+
export type GetBip44EntropyParams = Bip44Entropy & {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
9
|
+
* source will be used. For a list of available entropy sources, see the
|
|
10
|
+
* `snap_listEntropySources` method.
|
|
11
|
+
*/
|
|
12
|
+
source?: string | undefined;
|
|
13
|
+
};
|
|
9
14
|
/**
|
|
10
15
|
* The result returned by the `snap_getBip44Entropy` method.
|
|
11
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -2,10 +2,15 @@ import type { JsonBIP44CoinTypeNode } from "@metamask/key-tree";
|
|
|
2
2
|
import type { Bip44Entropy } from "../permissions.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* The request parameters for the `snap_getBip44Entropy` method.
|
|
5
|
-
*
|
|
6
|
-
* @property coinType - The BIP-44 coin type to derive the entropy from.
|
|
7
5
|
*/
|
|
8
|
-
export type GetBip44EntropyParams = Bip44Entropy
|
|
6
|
+
export type GetBip44EntropyParams = Bip44Entropy & {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
9
|
+
* source will be used. For a list of available entropy sources, see the
|
|
10
|
+
* `snap_listEntropySources` method.
|
|
11
|
+
*/
|
|
12
|
+
source?: string | undefined;
|
|
13
|
+
};
|
|
9
14
|
/**
|
|
10
15
|
* The result returned by the `snap_getBip44Entropy` method.
|
|
11
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip44Entropy` method.\n
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n * The request parameters for the `snap_getBip44Entropy` method.\n */\nexport type GetBip44EntropyParams = Bip44Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getBip44Entropy` method.\n *\n * @see https://github.com/MetaMask/key-tree#usage\n */\nexport type GetBip44EntropyResult = JsonBIP44CoinTypeNode;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getEntropy` method.\n
|
|
1
|
+
{"version":3,"file":"get-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getEntropy` method.\n */\nexport type GetEntropyParams = {\n /**\n * The version of the entropy to retrieve. This is used for backwards\n * compatibility. As of now, only version 1 is supported.\n */\n version: 1;\n\n /**\n * The optional salt to use when deriving the entropy.\n */\n salt?: string | undefined;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getEntropy` method.\n */\nexport type GetEntropyResult = Hex;\n"]}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import type { Hex } from "@metamask/utils";
|
|
2
2
|
/**
|
|
3
3
|
* The request parameters for the `snap_getEntropy` method.
|
|
4
|
-
*
|
|
5
|
-
* @property version - The version of the entropy to retrieve. This is used for
|
|
6
|
-
* backwards compatibility. As of now, only version 1 is supported.
|
|
7
|
-
* @property salt - The optional salt to use when deriving the entropy.
|
|
8
4
|
*/
|
|
9
5
|
export type GetEntropyParams = {
|
|
6
|
+
/**
|
|
7
|
+
* The version of the entropy to retrieve. This is used for backwards
|
|
8
|
+
* compatibility. As of now, only version 1 is supported.
|
|
9
|
+
*/
|
|
10
10
|
version: 1;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The optional salt to use when deriving the entropy.
|
|
13
|
+
*/
|
|
14
|
+
salt?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
17
|
+
* source will be used. For a list of available entropy sources, see the
|
|
18
|
+
* `snap_listEntropySources` method.
|
|
19
|
+
*/
|
|
20
|
+
source?: string | undefined;
|
|
12
21
|
};
|
|
13
22
|
/**
|
|
14
23
|
* The result returned by the `snap_getEntropy` method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C
|
|
1
|
+
{"version":3,"file":"get-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import type { Hex } from "@metamask/utils";
|
|
2
2
|
/**
|
|
3
3
|
* The request parameters for the `snap_getEntropy` method.
|
|
4
|
-
*
|
|
5
|
-
* @property version - The version of the entropy to retrieve. This is used for
|
|
6
|
-
* backwards compatibility. As of now, only version 1 is supported.
|
|
7
|
-
* @property salt - The optional salt to use when deriving the entropy.
|
|
8
4
|
*/
|
|
9
5
|
export type GetEntropyParams = {
|
|
6
|
+
/**
|
|
7
|
+
* The version of the entropy to retrieve. This is used for backwards
|
|
8
|
+
* compatibility. As of now, only version 1 is supported.
|
|
9
|
+
*/
|
|
10
10
|
version: 1;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The optional salt to use when deriving the entropy.
|
|
13
|
+
*/
|
|
14
|
+
salt?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the entropy source to use. If not specified, the primary entropy
|
|
17
|
+
* source will be used. For a list of available entropy sources, see the
|
|
18
|
+
* `snap_listEntropySources` method.
|
|
19
|
+
*/
|
|
20
|
+
source?: string | undefined;
|
|
12
21
|
};
|
|
13
22
|
/**
|
|
14
23
|
* The result returned by the `snap_getEntropy` method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C
|
|
1
|
+
{"version":3,"file":"get-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getEntropy` method.\n
|
|
1
|
+
{"version":3,"file":"get-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getEntropy` method.\n */\nexport type GetEntropyParams = {\n /**\n * The version of the entropy to retrieve. This is used for backwards\n * compatibility. As of now, only version 1 is supported.\n */\n version: 1;\n\n /**\n * The optional salt to use when deriving the entropy.\n */\n salt?: string | undefined;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getEntropy` method.\n */\nexport type GetEntropyResult = Hex;\n"]}
|
|
@@ -14,34 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./clear-state.cjs"), exports);
|
|
18
|
-
__exportStar(require("./create-interface.cjs"), exports);
|
|
19
17
|
__exportStar(require("./dialog.cjs"), exports);
|
|
20
|
-
__exportStar(require("./get-bip32-entropy.cjs"), exports);
|
|
21
|
-
__exportStar(require("./get-bip32-public-key.cjs"), exports);
|
|
22
|
-
__exportStar(require("./get-bip44-entropy.cjs"), exports);
|
|
23
|
-
__exportStar(require("./get-client-status.cjs"), exports);
|
|
24
|
-
__exportStar(require("./get-currency-rate.cjs"), exports);
|
|
25
|
-
__exportStar(require("./get-entropy.cjs"), exports);
|
|
26
18
|
__exportStar(require("./get-file.cjs"), exports);
|
|
27
|
-
__exportStar(require("./get-interface-context.cjs"), exports);
|
|
28
|
-
__exportStar(require("./get-interface-state.cjs"), exports);
|
|
29
|
-
__exportStar(require("./get-locale.cjs"), exports);
|
|
30
|
-
__exportStar(require("./get-preferences.cjs"), exports);
|
|
31
|
-
__exportStar(require("./get-snaps.cjs"), exports);
|
|
32
|
-
__exportStar(require("./get-state.cjs"), exports);
|
|
33
|
-
__exportStar(require("./invoke-keyring.cjs"), exports);
|
|
34
|
-
__exportStar(require("./invoke-snap.cjs"), exports);
|
|
35
|
-
__exportStar(require("./manage-accounts.cjs"), exports);
|
|
36
19
|
__exportStar(require("./manage-state.cjs"), exports);
|
|
37
|
-
__exportStar(require("./methods.cjs"), exports);
|
|
38
20
|
__exportStar(require("./notify.cjs"), exports);
|
|
39
|
-
__exportStar(require("./provider-request.cjs"), exports);
|
|
40
|
-
__exportStar(require("./request-snaps.cjs"), exports);
|
|
41
|
-
__exportStar(require("./update-interface.cjs"), exports);
|
|
42
|
-
__exportStar(require("./resolve-interface.cjs"), exports);
|
|
43
|
-
__exportStar(require("./schedule-background-event.cjs"), exports);
|
|
44
|
-
__exportStar(require("./cancel-background-event.cjs"), exports);
|
|
45
|
-
__exportStar(require("./get-background-events.cjs"), exports);
|
|
46
|
-
__exportStar(require("./set-state.cjs"), exports);
|
|
47
21
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,+CAAyB;AAOzB,iDAA2B;AAW3B,qDAA+B;AAE/B,+CAAyB","sourcesContent":["export type * from './clear-state';\nexport type * from './create-interface';\nexport * from './dialog';\nexport type * from './get-bip32-entropy';\nexport type * from './get-bip32-public-key';\nexport type * from './get-bip44-entropy';\nexport type * from './get-client-status';\nexport type * from './get-currency-rate';\nexport type * from './get-entropy';\nexport * from './get-file';\nexport type * from './get-interface-context';\nexport type * from './get-interface-state';\nexport type * from './get-locale';\nexport type * from './get-preferences';\nexport type * from './get-snaps';\nexport type * from './get-state';\nexport type * from './invoke-keyring';\nexport type * from './invoke-snap';\nexport type * from './list-entropy-sources';\nexport type * from './manage-accounts';\nexport * from './manage-state';\nexport type * from './methods';\nexport * from './notify';\nexport type * from './provider-request';\nexport type * from './request-snaps';\nexport type * from './update-interface';\nexport type * from './resolve-interface';\nexport type * from './schedule-background-event';\nexport type * from './cancel-background-event';\nexport type * from './get-background-events';\nexport type * from './set-state';\n"]}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
export * from "./clear-state.cjs";
|
|
2
|
-
export * from "./create-interface.cjs";
|
|
1
|
+
export type * from "./clear-state.cjs";
|
|
2
|
+
export type * from "./create-interface.cjs";
|
|
3
3
|
export * from "./dialog.cjs";
|
|
4
|
-
export * from "./get-bip32-entropy.cjs";
|
|
5
|
-
export * from "./get-bip32-public-key.cjs";
|
|
6
|
-
export * from "./get-bip44-entropy.cjs";
|
|
7
|
-
export * from "./get-client-status.cjs";
|
|
8
|
-
export * from "./get-currency-rate.cjs";
|
|
9
|
-
export * from "./get-entropy.cjs";
|
|
4
|
+
export type * from "./get-bip32-entropy.cjs";
|
|
5
|
+
export type * from "./get-bip32-public-key.cjs";
|
|
6
|
+
export type * from "./get-bip44-entropy.cjs";
|
|
7
|
+
export type * from "./get-client-status.cjs";
|
|
8
|
+
export type * from "./get-currency-rate.cjs";
|
|
9
|
+
export type * from "./get-entropy.cjs";
|
|
10
10
|
export * from "./get-file.cjs";
|
|
11
|
-
export * from "./get-interface-context.cjs";
|
|
12
|
-
export * from "./get-interface-state.cjs";
|
|
13
|
-
export * from "./get-locale.cjs";
|
|
14
|
-
export * from "./get-preferences.cjs";
|
|
15
|
-
export * from "./get-snaps.cjs";
|
|
16
|
-
export * from "./get-state.cjs";
|
|
17
|
-
export * from "./invoke-keyring.cjs";
|
|
18
|
-
export * from "./invoke-snap.cjs";
|
|
19
|
-
export * from "./
|
|
11
|
+
export type * from "./get-interface-context.cjs";
|
|
12
|
+
export type * from "./get-interface-state.cjs";
|
|
13
|
+
export type * from "./get-locale.cjs";
|
|
14
|
+
export type * from "./get-preferences.cjs";
|
|
15
|
+
export type * from "./get-snaps.cjs";
|
|
16
|
+
export type * from "./get-state.cjs";
|
|
17
|
+
export type * from "./invoke-keyring.cjs";
|
|
18
|
+
export type * from "./invoke-snap.cjs";
|
|
19
|
+
export type * from "./list-entropy-sources.cjs";
|
|
20
|
+
export type * from "./manage-accounts.cjs";
|
|
20
21
|
export * from "./manage-state.cjs";
|
|
21
|
-
export * from "./methods.cjs";
|
|
22
|
+
export type * from "./methods.cjs";
|
|
22
23
|
export * from "./notify.cjs";
|
|
23
|
-
export * from "./provider-request.cjs";
|
|
24
|
-
export * from "./request-snaps.cjs";
|
|
25
|
-
export * from "./update-interface.cjs";
|
|
26
|
-
export * from "./resolve-interface.cjs";
|
|
27
|
-
export * from "./schedule-background-event.cjs";
|
|
28
|
-
export * from "./cancel-background-event.cjs";
|
|
29
|
-
export * from "./get-background-events.cjs";
|
|
30
|
-
export * from "./set-state.cjs";
|
|
24
|
+
export type * from "./provider-request.cjs";
|
|
25
|
+
export type * from "./request-snaps.cjs";
|
|
26
|
+
export type * from "./update-interface.cjs";
|
|
27
|
+
export type * from "./resolve-interface.cjs";
|
|
28
|
+
export type * from "./schedule-background-event.cjs";
|
|
29
|
+
export type * from "./cancel-background-event.cjs";
|
|
30
|
+
export type * from "./get-background-events.cjs";
|
|
31
|
+
export type * from "./set-state.cjs";
|
|
31
32
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,uCAAmC;AACnC,4CAAwC;AACxC,6BAAyB;AACzB,6CAAyC;AACzC,gDAA4C;AAC5C,6CAAyC;AACzC,6CAAyC;AACzC,6CAAyC;AACzC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA6C;AAC7C,+CAA2C;AAC3C,sCAAkC;AAClC,2CAAuC;AACvC,qCAAiC;AACjC,qCAAiC;AACjC,0CAAsC;AACtC,uCAAmC;AACnC,gDAA4C;AAC5C,2CAAuC;AACvC,mCAA+B;AAC/B,mCAA+B;AAC/B,6BAAyB;AACzB,4CAAwC;AACxC,yCAAqC;AACrC,4CAAwC;AACxC,6CAAyC;AACzC,qDAAiD;AACjD,mDAA+C;AAC/C,iDAA6C;AAC7C,qCAAiC"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
export * from "./clear-state.mjs";
|
|
2
|
-
export * from "./create-interface.mjs";
|
|
1
|
+
export type * from "./clear-state.mjs";
|
|
2
|
+
export type * from "./create-interface.mjs";
|
|
3
3
|
export * from "./dialog.mjs";
|
|
4
|
-
export * from "./get-bip32-entropy.mjs";
|
|
5
|
-
export * from "./get-bip32-public-key.mjs";
|
|
6
|
-
export * from "./get-bip44-entropy.mjs";
|
|
7
|
-
export * from "./get-client-status.mjs";
|
|
8
|
-
export * from "./get-currency-rate.mjs";
|
|
9
|
-
export * from "./get-entropy.mjs";
|
|
4
|
+
export type * from "./get-bip32-entropy.mjs";
|
|
5
|
+
export type * from "./get-bip32-public-key.mjs";
|
|
6
|
+
export type * from "./get-bip44-entropy.mjs";
|
|
7
|
+
export type * from "./get-client-status.mjs";
|
|
8
|
+
export type * from "./get-currency-rate.mjs";
|
|
9
|
+
export type * from "./get-entropy.mjs";
|
|
10
10
|
export * from "./get-file.mjs";
|
|
11
|
-
export * from "./get-interface-context.mjs";
|
|
12
|
-
export * from "./get-interface-state.mjs";
|
|
13
|
-
export * from "./get-locale.mjs";
|
|
14
|
-
export * from "./get-preferences.mjs";
|
|
15
|
-
export * from "./get-snaps.mjs";
|
|
16
|
-
export * from "./get-state.mjs";
|
|
17
|
-
export * from "./invoke-keyring.mjs";
|
|
18
|
-
export * from "./invoke-snap.mjs";
|
|
19
|
-
export * from "./
|
|
11
|
+
export type * from "./get-interface-context.mjs";
|
|
12
|
+
export type * from "./get-interface-state.mjs";
|
|
13
|
+
export type * from "./get-locale.mjs";
|
|
14
|
+
export type * from "./get-preferences.mjs";
|
|
15
|
+
export type * from "./get-snaps.mjs";
|
|
16
|
+
export type * from "./get-state.mjs";
|
|
17
|
+
export type * from "./invoke-keyring.mjs";
|
|
18
|
+
export type * from "./invoke-snap.mjs";
|
|
19
|
+
export type * from "./list-entropy-sources.mjs";
|
|
20
|
+
export type * from "./manage-accounts.mjs";
|
|
20
21
|
export * from "./manage-state.mjs";
|
|
21
|
-
export * from "./methods.mjs";
|
|
22
|
+
export type * from "./methods.mjs";
|
|
22
23
|
export * from "./notify.mjs";
|
|
23
|
-
export * from "./provider-request.mjs";
|
|
24
|
-
export * from "./request-snaps.mjs";
|
|
25
|
-
export * from "./update-interface.mjs";
|
|
26
|
-
export * from "./resolve-interface.mjs";
|
|
27
|
-
export * from "./schedule-background-event.mjs";
|
|
28
|
-
export * from "./cancel-background-event.mjs";
|
|
29
|
-
export * from "./get-background-events.mjs";
|
|
30
|
-
export * from "./set-state.mjs";
|
|
24
|
+
export type * from "./provider-request.mjs";
|
|
25
|
+
export type * from "./request-snaps.mjs";
|
|
26
|
+
export type * from "./update-interface.mjs";
|
|
27
|
+
export type * from "./resolve-interface.mjs";
|
|
28
|
+
export type * from "./schedule-background-event.mjs";
|
|
29
|
+
export type * from "./cancel-background-event.mjs";
|
|
30
|
+
export type * from "./get-background-events.mjs";
|
|
31
|
+
export type * from "./set-state.mjs";
|
|
31
32
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,uCAAmC;AACnC,4CAAwC;AACxC,6BAAyB;AACzB,6CAAyC;AACzC,gDAA4C;AAC5C,6CAAyC;AACzC,6CAAyC;AACzC,6CAAyC;AACzC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA6C;AAC7C,+CAA2C;AAC3C,sCAAkC;AAClC,2CAAuC;AACvC,qCAAiC;AACjC,qCAAiC;AACjC,0CAAsC;AACtC,uCAAmC;AACnC,gDAA4C;AAC5C,2CAAuC;AACvC,mCAA+B;AAC/B,mCAA+B;AAC/B,6BAAyB;AACzB,4CAAwC;AACxC,yCAAqC;AACrC,4CAAwC;AACxC,6CAAyC;AACzC,qDAAiD;AACjD,mDAA+C;AAC/C,iDAA6C;AAC7C,qCAAiC"}
|
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
export * from "./clear-state.mjs";
|
|
2
|
-
export * from "./create-interface.mjs";
|
|
3
1
|
export * from "./dialog.mjs";
|
|
4
|
-
export * from "./get-bip32-entropy.mjs";
|
|
5
|
-
export * from "./get-bip32-public-key.mjs";
|
|
6
|
-
export * from "./get-bip44-entropy.mjs";
|
|
7
|
-
export * from "./get-client-status.mjs";
|
|
8
|
-
export * from "./get-currency-rate.mjs";
|
|
9
|
-
export * from "./get-entropy.mjs";
|
|
10
2
|
export * from "./get-file.mjs";
|
|
11
|
-
export * from "./get-interface-context.mjs";
|
|
12
|
-
export * from "./get-interface-state.mjs";
|
|
13
|
-
export * from "./get-locale.mjs";
|
|
14
|
-
export * from "./get-preferences.mjs";
|
|
15
|
-
export * from "./get-snaps.mjs";
|
|
16
|
-
export * from "./get-state.mjs";
|
|
17
|
-
export * from "./invoke-keyring.mjs";
|
|
18
|
-
export * from "./invoke-snap.mjs";
|
|
19
|
-
export * from "./manage-accounts.mjs";
|
|
20
3
|
export * from "./manage-state.mjs";
|
|
21
|
-
export * from "./methods.mjs";
|
|
22
4
|
export * from "./notify.mjs";
|
|
23
|
-
export * from "./provider-request.mjs";
|
|
24
|
-
export * from "./request-snaps.mjs";
|
|
25
|
-
export * from "./update-interface.mjs";
|
|
26
|
-
export * from "./resolve-interface.mjs";
|
|
27
|
-
export * from "./schedule-background-event.mjs";
|
|
28
|
-
export * from "./cancel-background-event.mjs";
|
|
29
|
-
export * from "./get-background-events.mjs";
|
|
30
|
-
export * from "./set-state.mjs";
|
|
31
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AAOzB,+BAA2B;AAW3B,mCAA+B;AAE/B,6BAAyB","sourcesContent":["export type * from './clear-state';\nexport type * from './create-interface';\nexport * from './dialog';\nexport type * from './get-bip32-entropy';\nexport type * from './get-bip32-public-key';\nexport type * from './get-bip44-entropy';\nexport type * from './get-client-status';\nexport type * from './get-currency-rate';\nexport type * from './get-entropy';\nexport * from './get-file';\nexport type * from './get-interface-context';\nexport type * from './get-interface-state';\nexport type * from './get-locale';\nexport type * from './get-preferences';\nexport type * from './get-snaps';\nexport type * from './get-state';\nexport type * from './invoke-keyring';\nexport type * from './invoke-snap';\nexport type * from './list-entropy-sources';\nexport type * from './manage-accounts';\nexport * from './manage-state';\nexport type * from './methods';\nexport * from './notify';\nexport type * from './provider-request';\nexport type * from './request-snaps';\nexport type * from './update-interface';\nexport type * from './resolve-interface';\nexport type * from './schedule-background-event';\nexport type * from './cancel-background-event';\nexport type * from './get-background-events';\nexport type * from './set-state';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-entropy-sources.cjs","sourceRoot":"","sources":["../../../src/types/methods/list-entropy-sources.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An entropy source that can be used to retrieve entropy using the\n * `snap_get*Entropy` methods.\n */\nexport type EntropySource = {\n /**\n * The name of the entropy source.\n */\n name: string;\n\n /**\n * The ID of the entropy source\n */\n id: string;\n\n /**\n * The type of the entropy source. Currently, only `mnemonic` is supported.\n */\n type: 'mnemonic';\n\n /**\n * Whether the entropy source is the primary source.\n */\n primary: boolean;\n};\n\n/**\n * The request parameters for the `snap_listEntropySources` method.\n */\nexport type ListEntropySourcesParams = never;\n\n/**\n * The result returned by the `snap_listEntropySources` method.\n */\nexport type ListEntropySourcesResult = EntropySource[];\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An entropy source that can be used to retrieve entropy using the
|
|
3
|
+
* `snap_get*Entropy` methods.
|
|
4
|
+
*/
|
|
5
|
+
export type EntropySource = {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the entropy source.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the entropy source
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The type of the entropy source. Currently, only `mnemonic` is supported.
|
|
16
|
+
*/
|
|
17
|
+
type: 'mnemonic';
|
|
18
|
+
/**
|
|
19
|
+
* Whether the entropy source is the primary source.
|
|
20
|
+
*/
|
|
21
|
+
primary: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The request parameters for the `snap_listEntropySources` method.
|
|
25
|
+
*/
|
|
26
|
+
export type ListEntropySourcesParams = never;
|
|
27
|
+
/**
|
|
28
|
+
* The result returned by the `snap_listEntropySources` method.
|
|
29
|
+
*/
|
|
30
|
+
export type ListEntropySourcesResult = EntropySource[];
|
|
31
|
+
//# sourceMappingURL=list-entropy-sources.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-entropy-sources.d.cts","sourceRoot":"","sources":["../../../src/types/methods/list-entropy-sources.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,aAAa,EAAE,CAAC"}
|