@metamask/snaps-sdk 6.2.1 → 6.4.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 +30 -1
- package/dist/error-wrappers.cjs +146 -0
- package/dist/error-wrappers.cjs.map +1 -0
- package/dist/error-wrappers.d.cts +830 -0
- package/dist/error-wrappers.d.cts.map +1 -0
- package/dist/{types/error-wrappers.d.ts → error-wrappers.d.mts} +193 -192
- package/dist/error-wrappers.d.mts.map +1 -0
- package/dist/error-wrappers.mjs +143 -0
- package/dist/error-wrappers.mjs.map +1 -0
- package/dist/errors.cjs +124 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/{types/errors.d.ts → errors.d.cts} +3 -2
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.mts +87 -0
- package/dist/errors.d.mts.map +1 -0
- package/dist/errors.mjs +120 -0
- package/dist/errors.mjs.map +1 -0
- package/dist/images.cjs +91 -0
- package/dist/images.cjs.map +1 -0
- package/dist/{types/images.d.ts → images.d.cts} +2 -1
- package/dist/images.d.cts.map +1 -0
- package/dist/images.d.mts +70 -0
- package/dist/images.d.mts.map +1 -0
- package/dist/images.mjs +86 -0
- package/dist/images.mjs.map +1 -0
- package/dist/index.cjs +36 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +7 -1201
- package/dist/index.mjs.map +1 -1
- package/dist/internals/error-wrappers.cjs +44 -0
- package/dist/internals/error-wrappers.cjs.map +1 -0
- package/dist/internals/error-wrappers.d.cts +60 -0
- package/dist/internals/error-wrappers.d.cts.map +1 -0
- package/dist/{types/internals/error-wrappers.d.ts → internals/error-wrappers.d.mts} +15 -14
- package/dist/internals/error-wrappers.d.mts.map +1 -0
- package/dist/internals/error-wrappers.mjs +40 -0
- package/dist/internals/error-wrappers.mjs.map +1 -0
- package/dist/internals/errors.cjs +80 -0
- package/dist/internals/errors.cjs.map +1 -0
- package/dist/{types/internals/errors.d.ts → internals/errors.d.cts} +1 -0
- package/dist/internals/errors.d.cts.map +1 -0
- package/dist/internals/errors.d.mts +42 -0
- package/dist/internals/errors.d.mts.map +1 -0
- package/dist/internals/errors.mjs +73 -0
- package/dist/internals/errors.mjs.map +1 -0
- package/dist/internals/helpers.cjs +3 -0
- package/dist/internals/helpers.cjs.map +1 -0
- package/dist/{types/internals/helpers.d.ts → internals/helpers.d.cts} +2 -1
- package/dist/internals/helpers.d.cts.map +1 -0
- package/dist/internals/helpers.d.mts +37 -0
- package/dist/internals/helpers.d.mts.map +1 -0
- package/dist/internals/helpers.mjs +2 -0
- package/dist/internals/helpers.mjs.map +1 -0
- package/dist/internals/index.cjs +23 -0
- package/dist/internals/index.cjs.map +1 -0
- package/dist/internals/index.d.cts +7 -0
- package/dist/internals/index.d.cts.map +1 -0
- package/dist/internals/index.d.mts +7 -0
- package/dist/internals/index.d.mts.map +1 -0
- package/dist/internals/index.mjs +7 -0
- package/dist/internals/index.mjs.map +1 -0
- package/dist/internals/jsx.cjs +17 -0
- package/dist/internals/jsx.cjs.map +1 -0
- package/dist/{types/internals/jsx.d.ts → internals/jsx.d.cts} +3 -2
- package/dist/internals/jsx.d.cts.map +1 -0
- package/dist/internals/jsx.d.mts +31 -0
- package/dist/internals/jsx.d.mts.map +1 -0
- package/dist/internals/jsx.mjs +13 -0
- package/dist/internals/jsx.mjs.map +1 -0
- package/dist/internals/structs.cjs +161 -0
- package/dist/internals/structs.cjs.map +1 -0
- package/dist/{types/internals/structs.d.ts → internals/structs.d.cts} +13 -3
- package/dist/internals/structs.d.cts.map +1 -0
- package/dist/internals/structs.d.mts +69 -0
- package/dist/internals/structs.d.mts.map +1 -0
- package/dist/internals/structs.mjs +153 -0
- package/dist/internals/structs.mjs.map +1 -0
- package/dist/internals/svg.cjs +23 -0
- package/dist/internals/svg.cjs.map +1 -0
- package/dist/{types/internals/svg.d.ts → internals/svg.d.cts} +1 -0
- package/dist/internals/svg.d.cts.map +1 -0
- package/dist/internals/svg.d.mts +8 -0
- package/dist/internals/svg.d.mts.map +1 -0
- package/dist/internals/svg.mjs +19 -0
- package/dist/internals/svg.mjs.map +1 -0
- package/dist/jsx/component.cjs +32 -0
- package/dist/jsx/component.cjs.map +1 -0
- package/dist/{types/jsx/component.d.ts → jsx/component.d.cts} +2 -1
- package/dist/jsx/component.d.cts.map +1 -0
- package/dist/jsx/component.d.mts +74 -0
- package/dist/jsx/component.d.mts.map +1 -0
- package/dist/jsx/component.mjs +28 -0
- package/dist/jsx/component.mjs.map +1 -0
- package/dist/jsx/components/Address.cjs +23 -0
- package/dist/jsx/components/Address.cjs.map +1 -0
- package/dist/jsx/components/Address.d.cts +34 -0
- package/dist/jsx/components/Address.d.cts.map +1 -0
- package/dist/jsx/components/Address.d.mts +34 -0
- package/dist/jsx/components/Address.d.mts.map +1 -0
- package/dist/jsx/components/Address.mjs +20 -0
- package/dist/jsx/components/Address.mjs.map +1 -0
- package/dist/jsx/components/Box.cjs +18 -0
- package/dist/jsx/components/Box.cjs.map +1 -0
- package/dist/{types/jsx/components/Box.d.ts → jsx/components/Box.d.cts} +2 -1
- package/dist/jsx/components/Box.d.cts.map +1 -0
- package/dist/jsx/components/Box.d.mts +32 -0
- package/dist/jsx/components/Box.d.mts.map +1 -0
- package/dist/jsx/components/Box.mjs +15 -0
- package/dist/jsx/components/Box.mjs.map +1 -0
- package/dist/jsx/components/Card.cjs +20 -0
- package/dist/jsx/components/Card.cjs.map +1 -0
- package/dist/{types/jsx/components/Card.d.ts → jsx/components/Card.d.cts} +1 -0
- package/dist/jsx/components/Card.d.cts.map +1 -0
- package/dist/jsx/components/Card.d.mts +37 -0
- package/dist/jsx/components/Card.d.mts.map +1 -0
- package/dist/jsx/components/Card.mjs +17 -0
- package/dist/jsx/components/Card.mjs.map +1 -0
- package/dist/jsx/components/Container.cjs +24 -0
- package/dist/jsx/components/Container.cjs.map +1 -0
- package/dist/{types/jsx/components/Container.d.ts → jsx/components/Container.d.cts} +4 -3
- package/dist/jsx/components/Container.d.cts.map +1 -0
- package/dist/jsx/components/Container.d.mts +35 -0
- package/dist/jsx/components/Container.d.mts.map +1 -0
- package/dist/jsx/components/Container.mjs +21 -0
- package/dist/jsx/components/Container.mjs.map +1 -0
- package/dist/jsx/components/Copyable.cjs +20 -0
- package/dist/jsx/components/Copyable.cjs.map +1 -0
- package/dist/{types/jsx/components/Copyable.d.ts → jsx/components/Copyable.d.cts} +1 -0
- package/dist/jsx/components/Copyable.d.cts.map +1 -0
- package/dist/jsx/components/Copyable.d.mts +33 -0
- package/dist/jsx/components/Copyable.d.mts.map +1 -0
- package/dist/jsx/components/Copyable.mjs +17 -0
- package/dist/jsx/components/Copyable.mjs.map +1 -0
- package/dist/jsx/components/Divider.cjs +17 -0
- package/dist/jsx/components/Divider.cjs.map +1 -0
- package/dist/{types/jsx/components/Divider.d.ts → jsx/components/Divider.d.cts} +1 -0
- package/dist/jsx/components/Divider.d.cts.map +1 -0
- package/dist/jsx/components/Divider.d.mts +18 -0
- package/dist/jsx/components/Divider.d.mts.map +1 -0
- package/dist/jsx/components/Divider.mjs +14 -0
- package/dist/jsx/components/Divider.mjs.map +1 -0
- package/dist/jsx/components/Footer.cjs +19 -0
- package/dist/jsx/components/Footer.cjs.map +1 -0
- package/dist/{types/jsx/components/Footer.d.ts → jsx/components/Footer.d.cts} +2 -1
- package/dist/jsx/components/Footer.d.cts.map +1 -0
- package/dist/jsx/components/Footer.d.mts +29 -0
- package/dist/jsx/components/Footer.d.mts.map +1 -0
- package/dist/jsx/components/Footer.mjs +16 -0
- package/dist/jsx/components/Footer.mjs.map +1 -0
- package/dist/jsx/components/Heading.cjs +16 -0
- package/dist/jsx/components/Heading.cjs.map +1 -0
- package/dist/{types/jsx/components/Heading.d.ts → jsx/components/Heading.d.cts} +2 -1
- package/dist/jsx/components/Heading.d.cts.map +1 -0
- package/dist/jsx/components/Heading.d.mts +27 -0
- package/dist/jsx/components/Heading.d.mts.map +1 -0
- package/dist/jsx/components/Heading.mjs +13 -0
- package/dist/jsx/components/Heading.mjs.map +1 -0
- package/dist/jsx/components/Icon.cjs +180 -0
- package/dist/jsx/components/Icon.cjs.map +1 -0
- package/dist/jsx/components/Icon.d.cts +190 -0
- package/dist/jsx/components/Icon.d.cts.map +1 -0
- package/dist/jsx/components/Icon.d.mts +190 -0
- package/dist/jsx/components/Icon.d.mts.map +1 -0
- package/dist/jsx/components/Icon.mjs +177 -0
- package/dist/jsx/components/Icon.mjs.map +1 -0
- package/dist/jsx/components/Image.cjs +22 -0
- package/dist/jsx/components/Image.cjs.map +1 -0
- package/dist/{types/jsx/components/Image.d.ts → jsx/components/Image.d.cts} +1 -0
- package/dist/jsx/components/Image.d.cts.map +1 -0
- package/dist/jsx/components/Image.d.mts +37 -0
- package/dist/jsx/components/Image.d.mts.map +1 -0
- package/dist/jsx/components/Image.mjs +19 -0
- package/dist/jsx/components/Image.mjs.map +1 -0
- package/dist/jsx/components/Link.cjs +18 -0
- package/dist/jsx/components/Link.cjs.map +1 -0
- package/dist/{types/jsx/components/Link.d.ts → jsx/components/Link.d.cts} +3 -2
- package/dist/jsx/components/Link.d.cts.map +1 -0
- package/dist/jsx/components/Link.d.mts +36 -0
- package/dist/jsx/components/Link.d.mts.map +1 -0
- package/dist/jsx/components/Link.mjs +15 -0
- package/dist/jsx/components/Link.mjs.map +1 -0
- package/dist/jsx/components/Row.cjs +22 -0
- package/dist/jsx/components/Row.cjs.map +1 -0
- package/dist/{types/jsx/components/Row.d.ts → jsx/components/Row.d.cts} +5 -4
- package/dist/jsx/components/Row.d.cts.map +1 -0
- package/dist/jsx/components/Row.d.mts +46 -0
- package/dist/jsx/components/Row.d.mts.map +1 -0
- package/dist/jsx/components/Row.mjs +19 -0
- package/dist/jsx/components/Row.mjs.map +1 -0
- package/dist/jsx/components/Section.cjs +26 -0
- package/dist/jsx/components/Section.cjs.map +1 -0
- package/dist/jsx/components/Section.d.cts +38 -0
- package/dist/jsx/components/Section.d.cts.map +1 -0
- package/dist/jsx/components/Section.d.mts +38 -0
- package/dist/jsx/components/Section.d.mts.map +1 -0
- package/dist/jsx/components/Section.mjs +23 -0
- package/dist/jsx/components/Section.mjs.map +1 -0
- package/dist/jsx/components/Spinner.cjs +17 -0
- package/dist/jsx/components/Spinner.cjs.map +1 -0
- package/dist/{types/jsx/components/Spinner.d.ts → jsx/components/Spinner.d.cts} +1 -0
- package/dist/jsx/components/Spinner.d.cts.map +1 -0
- package/dist/jsx/components/Spinner.d.mts +18 -0
- package/dist/jsx/components/Spinner.d.mts.map +1 -0
- package/dist/jsx/components/Spinner.mjs +14 -0
- package/dist/jsx/components/Spinner.mjs.map +1 -0
- package/dist/jsx/components/Text.cjs +22 -0
- package/dist/jsx/components/Text.cjs.map +1 -0
- package/dist/{types/jsx/components/Text.d.ts → jsx/components/Text.d.cts} +11 -4
- package/dist/jsx/components/Text.d.cts.map +1 -0
- package/dist/jsx/components/Text.d.mts +45 -0
- package/dist/jsx/components/Text.d.mts.map +1 -0
- package/dist/jsx/components/Text.mjs +19 -0
- package/dist/jsx/components/Text.mjs.map +1 -0
- package/dist/jsx/components/Tooltip.cjs +23 -0
- package/dist/jsx/components/Tooltip.cjs.map +1 -0
- package/dist/{types/jsx/components/Tooltip.d.ts → jsx/components/Tooltip.d.cts} +8 -6
- package/dist/jsx/components/Tooltip.d.cts.map +1 -0
- package/dist/jsx/components/Tooltip.d.mts +40 -0
- package/dist/jsx/components/Tooltip.d.mts.map +1 -0
- package/dist/jsx/components/Tooltip.mjs +20 -0
- package/dist/jsx/components/Tooltip.mjs.map +1 -0
- package/dist/jsx/components/Value.cjs +21 -0
- package/dist/jsx/components/Value.cjs.map +1 -0
- package/dist/{types/jsx/components/Value.d.ts → jsx/components/Value.d.cts} +1 -0
- package/dist/jsx/components/Value.d.cts.map +1 -0
- package/dist/jsx/components/Value.d.mts +32 -0
- package/dist/jsx/components/Value.d.mts.map +1 -0
- package/dist/jsx/components/Value.mjs +18 -0
- package/dist/jsx/components/Value.mjs.map +1 -0
- package/dist/jsx/components/form/Button.cjs +17 -0
- package/dist/jsx/components/form/Button.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Button.d.ts → jsx/components/form/Button.d.cts} +5 -2
- package/dist/jsx/components/form/Button.d.cts.map +1 -0
- package/dist/jsx/components/form/Button.d.mts +40 -0
- package/dist/jsx/components/form/Button.d.mts.map +1 -0
- package/dist/jsx/components/form/Button.mjs +14 -0
- package/dist/jsx/components/form/Button.mjs.map +1 -0
- package/dist/jsx/components/form/Checkbox.cjs +20 -0
- package/dist/jsx/components/form/Checkbox.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Checkbox.d.ts → jsx/components/form/Checkbox.d.cts} +1 -0
- package/dist/jsx/components/form/Checkbox.d.cts.map +1 -0
- package/dist/jsx/components/form/Checkbox.d.mts +36 -0
- package/dist/jsx/components/form/Checkbox.d.mts.map +1 -0
- package/dist/jsx/components/form/Checkbox.mjs +17 -0
- package/dist/jsx/components/form/Checkbox.mjs.map +1 -0
- package/dist/jsx/components/form/Dropdown.cjs +23 -0
- package/dist/jsx/components/form/Dropdown.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Dropdown.d.ts → jsx/components/form/Dropdown.d.cts} +3 -2
- package/dist/jsx/components/form/Dropdown.d.cts.map +1 -0
- package/dist/jsx/components/form/Dropdown.d.mts +39 -0
- package/dist/jsx/components/form/Dropdown.d.mts.map +1 -0
- package/dist/jsx/components/form/Dropdown.mjs +20 -0
- package/dist/jsx/components/form/Dropdown.mjs.map +1 -0
- package/dist/jsx/components/form/Field.cjs +26 -0
- package/dist/jsx/components/form/Field.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Field.d.ts → jsx/components/form/Field.d.cts} +9 -7
- package/dist/jsx/components/form/Field.d.cts.map +1 -0
- package/dist/jsx/components/form/Field.d.mts +46 -0
- package/dist/jsx/components/form/Field.d.mts.map +1 -0
- package/dist/jsx/components/form/Field.mjs +23 -0
- package/dist/jsx/components/form/Field.mjs.map +1 -0
- package/dist/jsx/components/form/FileInput.cjs +31 -0
- package/dist/jsx/components/form/FileInput.cjs.map +1 -0
- package/dist/{types/jsx/components/form/FileInput.d.ts → jsx/components/form/FileInput.d.cts} +1 -0
- package/dist/jsx/components/form/FileInput.d.cts.map +1 -0
- package/dist/jsx/components/form/FileInput.d.mts +48 -0
- package/dist/jsx/components/form/FileInput.d.mts.map +1 -0
- package/dist/jsx/components/form/FileInput.mjs +28 -0
- package/dist/jsx/components/form/FileInput.mjs.map +1 -0
- package/dist/jsx/components/form/Form.cjs +24 -0
- package/dist/jsx/components/form/Form.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Form.d.ts → jsx/components/form/Form.d.cts} +2 -1
- package/dist/jsx/components/form/Form.d.cts.map +1 -0
- package/dist/jsx/components/form/Form.d.mts +37 -0
- package/dist/jsx/components/form/Form.d.mts.map +1 -0
- package/dist/jsx/components/form/Form.mjs +21 -0
- package/dist/jsx/components/form/Form.mjs.map +1 -0
- package/dist/jsx/components/form/Input.cjs +20 -0
- package/dist/jsx/components/form/Input.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Input.d.ts → jsx/components/form/Input.d.cts} +1 -0
- package/dist/jsx/components/form/Input.d.cts.map +1 -0
- package/dist/jsx/components/form/Input.d.mts +36 -0
- package/dist/jsx/components/form/Input.d.mts.map +1 -0
- package/dist/jsx/components/form/Input.mjs +17 -0
- package/dist/jsx/components/form/Input.mjs.map +1 -0
- package/dist/jsx/components/form/Option.cjs +25 -0
- package/dist/jsx/components/form/Option.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Option.d.ts → jsx/components/form/Option.d.cts} +1 -0
- package/dist/jsx/components/form/Option.d.cts.map +1 -0
- package/dist/jsx/components/form/Option.d.mts +36 -0
- package/dist/jsx/components/form/Option.d.mts.map +1 -0
- package/dist/jsx/components/form/Option.mjs +22 -0
- package/dist/jsx/components/form/Option.mjs.map +1 -0
- package/dist/jsx/components/form/Radio.cjs +23 -0
- package/dist/jsx/components/form/Radio.cjs.map +1 -0
- package/dist/{types/jsx/components/form/Radio.d.ts → jsx/components/form/Radio.d.cts} +1 -0
- package/dist/jsx/components/form/Radio.d.cts.map +1 -0
- package/dist/jsx/components/form/Radio.d.mts +36 -0
- package/dist/jsx/components/form/Radio.d.mts.map +1 -0
- package/dist/jsx/components/form/Radio.mjs +20 -0
- package/dist/jsx/components/form/Radio.mjs.map +1 -0
- package/dist/jsx/components/form/RadioGroup.cjs +14 -0
- package/dist/jsx/components/form/RadioGroup.cjs.map +1 -0
- package/dist/{types/jsx/components/form/RadioGroup.d.ts → jsx/components/form/RadioGroup.d.cts} +3 -2
- package/dist/jsx/components/form/RadioGroup.d.cts.map +1 -0
- package/dist/jsx/components/form/RadioGroup.d.mts +30 -0
- package/dist/jsx/components/form/RadioGroup.d.mts.map +1 -0
- package/dist/jsx/components/form/RadioGroup.mjs +11 -0
- package/dist/jsx/components/form/RadioGroup.mjs.map +1 -0
- package/dist/jsx/components/form/Selector.cjs +24 -0
- package/dist/jsx/components/form/Selector.cjs.map +1 -0
- package/dist/jsx/components/form/Selector.d.cts +42 -0
- package/dist/jsx/components/form/Selector.d.cts.map +1 -0
- package/dist/jsx/components/form/Selector.d.mts +42 -0
- package/dist/jsx/components/form/Selector.d.mts.map +1 -0
- package/dist/jsx/components/form/Selector.mjs +21 -0
- package/dist/jsx/components/form/Selector.mjs.map +1 -0
- package/dist/jsx/components/form/SelectorOption.cjs +23 -0
- package/dist/jsx/components/form/SelectorOption.cjs.map +1 -0
- package/dist/jsx/components/form/SelectorOption.d.cts +36 -0
- package/dist/jsx/components/form/SelectorOption.d.cts.map +1 -0
- package/dist/jsx/components/form/SelectorOption.d.mts +36 -0
- package/dist/jsx/components/form/SelectorOption.d.mts.map +1 -0
- package/dist/jsx/components/form/SelectorOption.mjs +20 -0
- package/dist/jsx/components/form/SelectorOption.mjs.map +1 -0
- package/dist/jsx/components/form/index.cjs +29 -0
- package/dist/jsx/components/form/index.cjs.map +1 -0
- package/dist/jsx/components/form/index.d.cts +26 -0
- package/dist/jsx/components/form/index.d.cts.map +1 -0
- package/dist/jsx/components/form/index.d.mts +26 -0
- package/dist/jsx/components/form/index.d.mts.map +1 -0
- package/dist/jsx/components/form/index.mjs +13 -0
- package/dist/jsx/components/form/index.mjs.map +1 -0
- package/dist/jsx/components/formatting/Bold.cjs +21 -0
- package/dist/jsx/components/formatting/Bold.cjs.map +1 -0
- package/dist/{types/jsx/components/formatting/Bold.d.ts → jsx/components/formatting/Bold.d.cts} +2 -1
- package/dist/jsx/components/formatting/Bold.d.cts.map +1 -0
- package/dist/jsx/components/formatting/Bold.d.mts +33 -0
- package/dist/jsx/components/formatting/Bold.d.mts.map +1 -0
- package/dist/jsx/components/formatting/Bold.mjs +18 -0
- package/dist/jsx/components/formatting/Bold.mjs.map +1 -0
- package/dist/jsx/components/formatting/Italic.cjs +20 -0
- package/dist/jsx/components/formatting/Italic.cjs.map +1 -0
- package/dist/{types/jsx/components/formatting/Italic.d.ts → jsx/components/formatting/Italic.d.cts} +2 -1
- package/dist/jsx/components/formatting/Italic.d.cts.map +1 -0
- package/dist/jsx/components/formatting/Italic.d.mts +35 -0
- package/dist/jsx/components/formatting/Italic.d.mts.map +1 -0
- package/dist/jsx/components/formatting/Italic.mjs +17 -0
- package/dist/jsx/components/formatting/Italic.mjs.map +1 -0
- package/dist/jsx/components/formatting/index.cjs +19 -0
- package/dist/jsx/components/formatting/index.cjs.map +1 -0
- package/dist/jsx/components/formatting/index.d.cts +6 -0
- package/dist/jsx/components/formatting/index.d.cts.map +1 -0
- package/dist/jsx/components/formatting/index.d.mts +6 -0
- package/dist/jsx/components/formatting/index.d.mts.map +1 -0
- package/dist/jsx/components/formatting/index.mjs +3 -0
- package/dist/jsx/components/formatting/index.mjs.map +1 -0
- package/dist/jsx/components/index.cjs +36 -0
- package/dist/jsx/components/index.cjs.map +1 -0
- package/dist/jsx/components/index.d.cts +43 -0
- package/dist/jsx/components/index.d.cts.map +1 -0
- package/dist/jsx/components/index.d.mts +43 -0
- package/dist/jsx/components/index.d.mts.map +1 -0
- package/dist/jsx/components/index.mjs +20 -0
- package/dist/jsx/components/index.mjs.map +1 -0
- package/dist/jsx/index.cjs +31 -0
- package/dist/jsx/index.cjs.map +1 -0
- package/dist/jsx/index.d.cts +6 -0
- package/dist/jsx/index.d.cts.map +1 -0
- package/dist/jsx/index.d.mts +6 -0
- package/dist/jsx/index.d.mts.map +1 -0
- package/dist/jsx/index.mjs +5 -586
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/jsx-dev-runtime.cjs +27 -0
- package/dist/jsx/jsx-dev-runtime.cjs.map +1 -0
- package/dist/{types/jsx/jsx-dev-runtime.d.ts → jsx/jsx-dev-runtime.d.cts} +2 -1
- package/dist/jsx/jsx-dev-runtime.d.cts.map +1 -0
- package/dist/jsx/jsx-dev-runtime.d.mts +18 -0
- package/dist/jsx/jsx-dev-runtime.d.mts.map +1 -0
- package/dist/jsx/jsx-dev-runtime.mjs +21 -414
- package/dist/jsx/jsx-dev-runtime.mjs.map +1 -1
- package/dist/jsx/jsx-runtime.cjs +54 -0
- package/dist/jsx/jsx-runtime.cjs.map +1 -0
- package/dist/{types/jsx/jsx-runtime.d.ts → jsx/jsx-runtime.d.cts} +2 -1
- package/dist/jsx/jsx-runtime.d.cts.map +1 -0
- package/dist/jsx/jsx-runtime.d.mts +36 -0
- package/dist/jsx/jsx-runtime.d.mts.map +1 -0
- package/dist/jsx/jsx-runtime.mjs +46 -21
- package/dist/jsx/jsx-runtime.mjs.map +1 -1
- package/dist/jsx/validation.cjs +577 -0
- package/dist/jsx/validation.cjs.map +1 -0
- package/dist/{types/jsx/validation.d.ts → jsx/validation.d.cts} +55 -38
- package/dist/jsx/validation.d.cts.map +1 -0
- package/dist/jsx/validation.d.mts +247 -0
- package/dist/jsx/validation.d.mts.map +1 -0
- package/dist/jsx/validation.mjs +571 -0
- package/dist/jsx/validation.mjs.map +1 -0
- package/dist/types/caip.cjs +3 -0
- package/dist/types/caip.cjs.map +1 -0
- package/dist/types/{types/caip.d.ts → caip.d.cts} +1 -0
- package/dist/types/caip.d.cts.map +1 -0
- package/dist/types/caip.d.mts +13 -0
- package/dist/types/caip.d.mts.map +1 -0
- package/dist/types/caip.mjs +2 -0
- package/dist/types/caip.mjs.map +1 -0
- package/dist/types/global.cjs +3 -0
- package/dist/types/global.cjs.map +1 -0
- package/dist/types/{types/global.d.ts → global.d.cts} +2 -1
- package/dist/types/global.d.cts.map +1 -0
- package/dist/types/global.d.mts +9 -0
- package/dist/types/global.d.mts.map +1 -0
- package/dist/types/global.mjs +2 -0
- package/dist/types/global.mjs.map +1 -0
- package/dist/types/handlers/cronjob.cjs +3 -0
- package/dist/types/handlers/cronjob.cjs.map +1 -0
- package/dist/types/{types/handlers/cronjob.d.ts → handlers/cronjob.d.cts} +2 -1
- package/dist/types/handlers/cronjob.d.cts.map +1 -0
- package/dist/types/handlers/cronjob.d.mts +15 -0
- package/dist/types/handlers/cronjob.d.mts.map +1 -0
- package/dist/types/handlers/cronjob.mjs +2 -0
- package/dist/types/handlers/cronjob.mjs.map +1 -0
- package/dist/types/handlers/home-page.cjs +3 -0
- package/dist/types/handlers/home-page.cjs.map +1 -0
- package/dist/types/{types/handlers/home-page.d.ts → handlers/home-page.d.cts} +2 -1
- package/dist/types/handlers/home-page.d.cts.map +1 -0
- package/dist/types/handlers/home-page.d.mts +23 -0
- package/dist/types/handlers/home-page.d.mts.map +1 -0
- package/dist/types/handlers/home-page.mjs +2 -0
- package/dist/types/handlers/home-page.mjs.map +1 -0
- package/dist/types/handlers/index.cjs +26 -0
- package/dist/types/handlers/index.cjs.map +1 -0
- package/dist/types/handlers/index.d.cts +10 -0
- package/dist/types/handlers/index.d.cts.map +1 -0
- package/dist/types/handlers/index.d.mts +10 -0
- package/dist/types/handlers/index.d.mts.map +1 -0
- package/dist/types/handlers/index.mjs +10 -0
- package/dist/types/handlers/index.mjs.map +1 -0
- package/dist/types/handlers/keyring.cjs +3 -0
- package/dist/types/handlers/keyring.cjs.map +1 -0
- package/dist/types/{types/handlers/keyring.d.ts → handlers/keyring.d.cts} +2 -1
- package/dist/types/handlers/keyring.d.cts.map +1 -0
- package/dist/types/handlers/keyring.d.mts +21 -0
- package/dist/types/handlers/keyring.d.mts.map +1 -0
- package/dist/types/handlers/keyring.mjs +2 -0
- package/dist/types/handlers/keyring.mjs.map +1 -0
- package/dist/types/handlers/lifecycle.cjs +3 -0
- package/dist/types/handlers/lifecycle.cjs.map +1 -0
- package/dist/types/{types/handlers/lifecycle.d.ts → handlers/lifecycle.d.cts} +1 -0
- package/dist/types/handlers/lifecycle.d.cts.map +1 -0
- package/dist/types/handlers/lifecycle.d.mts +38 -0
- package/dist/types/handlers/lifecycle.d.mts.map +1 -0
- package/dist/types/handlers/lifecycle.mjs +2 -0
- package/dist/types/handlers/lifecycle.mjs.map +1 -0
- package/dist/types/handlers/name-lookup.cjs +3 -0
- package/dist/types/handlers/name-lookup.cjs.map +1 -0
- package/dist/types/{types/handlers/name-lookup.d.ts → handlers/name-lookup.d.cts} +3 -2
- package/dist/types/handlers/name-lookup.d.cts.map +1 -0
- package/dist/types/handlers/name-lookup.d.mts +82 -0
- package/dist/types/handlers/name-lookup.d.mts.map +1 -0
- package/dist/types/handlers/name-lookup.mjs +2 -0
- package/dist/types/handlers/name-lookup.mjs.map +1 -0
- package/dist/types/handlers/rpc-request.cjs +3 -0
- package/dist/types/handlers/rpc-request.cjs.map +1 -0
- package/dist/types/{types/handlers/rpc-request.d.ts → handlers/rpc-request.d.cts} +2 -1
- package/dist/types/handlers/rpc-request.d.cts.map +1 -0
- package/dist/types/handlers/rpc-request.d.mts +22 -0
- package/dist/types/handlers/rpc-request.d.mts.map +1 -0
- package/dist/types/handlers/rpc-request.mjs +2 -0
- package/dist/types/handlers/rpc-request.mjs.map +1 -0
- package/dist/types/handlers/signature.cjs +3 -0
- package/dist/types/handlers/signature.cjs.map +1 -0
- package/dist/types/{types/handlers/signature.d.ts → handlers/signature.d.cts} +4 -3
- package/dist/types/handlers/signature.d.cts.map +1 -0
- package/dist/types/handlers/signature.d.mts +112 -0
- package/dist/types/handlers/signature.d.mts.map +1 -0
- package/dist/types/handlers/signature.mjs +2 -0
- package/dist/types/handlers/signature.mjs.map +1 -0
- package/dist/types/handlers/transaction.cjs +15 -0
- package/dist/types/handlers/transaction.cjs.map +1 -0
- package/dist/types/{types/handlers/transaction.d.ts → handlers/transaction.d.cts} +4 -3
- package/dist/types/handlers/transaction.d.cts.map +1 -0
- package/dist/types/handlers/transaction.d.mts +115 -0
- package/dist/types/handlers/transaction.d.mts.map +1 -0
- package/dist/types/handlers/transaction.mjs +12 -0
- package/dist/types/handlers/transaction.mjs.map +1 -0
- package/dist/types/handlers/user-input.cjs +56 -0
- package/dist/types/handlers/user-input.cjs.map +1 -0
- package/dist/types/{types/handlers/user-input.d.ts → handlers/user-input.d.cts} +11 -10
- package/dist/types/handlers/user-input.d.cts.map +1 -0
- package/dist/types/handlers/user-input.d.mts +196 -0
- package/dist/types/handlers/user-input.d.mts.map +1 -0
- package/dist/types/handlers/user-input.mjs +53 -0
- package/dist/types/handlers/user-input.mjs.map +1 -0
- package/dist/types/images.cjs +2 -0
- package/dist/types/images.cjs.map +1 -0
- package/dist/types/{types/images.d.ts → images.d.cts} +1 -0
- package/dist/types/images.d.cts.map +1 -0
- package/dist/types/images.d.mts +13 -0
- package/dist/types/images.d.mts.map +1 -0
- package/dist/types/images.mjs +2 -0
- package/dist/types/images.mjs.map +1 -0
- package/dist/types/index.cjs +29 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +10 -0
- package/dist/types/index.d.cts.map +1 -0
- package/dist/types/index.d.mts +10 -0
- package/dist/types/index.d.mts.map +1 -0
- package/dist/types/index.mjs +13 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/interface.cjs +26 -0
- package/dist/types/interface.cjs.map +1 -0
- package/dist/types/{types/interface.d.ts → interface.d.cts} +27 -26
- package/dist/types/interface.d.cts.map +1 -0
- package/dist/types/interface.d.mts +120 -0
- package/dist/types/interface.d.mts.map +1 -0
- package/dist/types/interface.mjs +23 -0
- package/dist/types/interface.mjs.map +1 -0
- package/dist/types/methods/create-interface.cjs +3 -0
- package/dist/types/methods/create-interface.cjs.map +1 -0
- package/dist/types/{types/methods/create-interface.d.ts → methods/create-interface.d.cts} +2 -1
- package/dist/types/methods/create-interface.d.cts.map +1 -0
- package/dist/types/methods/create-interface.d.mts +15 -0
- package/dist/types/methods/create-interface.d.mts.map +1 -0
- package/dist/types/methods/create-interface.mjs +2 -0
- package/dist/types/methods/create-interface.mjs.map +1 -0
- package/dist/types/methods/dialog.cjs +18 -0
- package/dist/types/methods/dialog.cjs.map +1 -0
- package/dist/types/{types/methods/dialog.d.ts → methods/dialog.d.cts} +4 -3
- package/dist/types/methods/dialog.d.cts.map +1 -0
- package/dist/types/methods/dialog.d.mts +88 -0
- package/dist/types/methods/dialog.d.mts.map +1 -0
- package/dist/types/methods/dialog.mjs +15 -0
- package/dist/types/methods/dialog.mjs.map +1 -0
- package/dist/types/methods/get-bip32-entropy.cjs +3 -0
- package/dist/types/methods/get-bip32-entropy.cjs.map +1 -0
- package/dist/types/{types/methods/get-bip32-entropy.d.ts → methods/get-bip32-entropy.d.cts} +3 -2
- package/dist/types/methods/get-bip32-entropy.d.cts.map +1 -0
- package/dist/types/methods/get-bip32-entropy.d.mts +16 -0
- package/dist/types/methods/get-bip32-entropy.d.mts.map +1 -0
- package/dist/types/methods/get-bip32-entropy.mjs +2 -0
- package/dist/types/methods/get-bip32-entropy.mjs.map +1 -0
- package/dist/types/methods/get-bip32-public-key.cjs +3 -0
- package/dist/types/methods/get-bip32-public-key.cjs.map +1 -0
- package/dist/types/{types/methods/get-bip32-public-key.d.ts → methods/get-bip32-public-key.d.cts} +2 -1
- package/dist/types/methods/get-bip32-public-key.d.cts.map +1 -0
- package/dist/types/methods/get-bip32-public-key.d.mts +20 -0
- package/dist/types/methods/get-bip32-public-key.d.mts.map +1 -0
- package/dist/types/methods/get-bip32-public-key.mjs +2 -0
- package/dist/types/methods/get-bip32-public-key.mjs.map +1 -0
- package/dist/types/methods/get-bip44-entropy.cjs +3 -0
- package/dist/types/methods/get-bip44-entropy.cjs.map +1 -0
- package/dist/types/{types/methods/get-bip44-entropy.d.ts → methods/get-bip44-entropy.d.cts} +3 -2
- package/dist/types/methods/get-bip44-entropy.d.cts.map +1 -0
- package/dist/types/methods/get-bip44-entropy.d.mts +15 -0
- package/dist/types/methods/get-bip44-entropy.d.mts.map +1 -0
- package/dist/types/methods/get-bip44-entropy.mjs +2 -0
- package/dist/types/methods/get-bip44-entropy.mjs.map +1 -0
- package/dist/types/methods/get-client-status.cjs +3 -0
- package/dist/types/methods/get-client-status.cjs.map +1 -0
- package/dist/types/{types/methods/get-client-status.d.ts → methods/get-client-status.d.cts} +1 -0
- package/dist/types/methods/get-client-status.d.cts.map +1 -0
- package/dist/types/methods/get-client-status.d.mts +15 -0
- package/dist/types/methods/get-client-status.d.mts.map +1 -0
- package/dist/types/methods/get-client-status.mjs +2 -0
- package/dist/types/methods/get-client-status.mjs.map +1 -0
- package/dist/types/methods/get-entropy.cjs +3 -0
- package/dist/types/methods/get-entropy.cjs.map +1 -0
- package/dist/types/{types/methods/get-entropy.d.ts → methods/get-entropy.d.cts} +2 -1
- package/dist/types/methods/get-entropy.d.cts.map +1 -0
- package/dist/types/methods/get-entropy.d.mts +17 -0
- package/dist/types/methods/get-entropy.d.mts.map +1 -0
- package/dist/types/methods/get-entropy.mjs +2 -0
- package/dist/types/methods/get-entropy.mjs.map +1 -0
- package/dist/types/methods/get-file.cjs +13 -0
- package/dist/types/methods/get-file.cjs.map +1 -0
- package/dist/types/{types/methods/get-file.d.ts → methods/get-file.d.cts} +2 -1
- package/dist/types/methods/get-file.d.cts.map +1 -0
- package/dist/types/methods/get-file.d.mts +24 -0
- package/dist/types/methods/get-file.d.mts.map +1 -0
- package/dist/types/methods/get-file.mjs +10 -0
- package/dist/types/methods/get-file.mjs.map +1 -0
- package/dist/types/methods/get-interface-state.cjs +3 -0
- package/dist/types/methods/get-interface-state.cjs.map +1 -0
- package/dist/types/{types/methods/get-interface-state.d.ts → methods/get-interface-state.d.cts} +2 -1
- package/dist/types/methods/get-interface-state.d.cts.map +1 -0
- package/dist/types/methods/get-interface-state.d.mts +14 -0
- package/dist/types/methods/get-interface-state.d.mts.map +1 -0
- package/dist/types/methods/get-interface-state.mjs +2 -0
- package/dist/types/methods/get-interface-state.mjs.map +1 -0
- package/dist/types/methods/get-locale.cjs +3 -0
- package/dist/types/methods/get-locale.cjs.map +1 -0
- package/dist/types/{types/methods/get-locale.d.ts → methods/get-locale.d.cts} +1 -0
- package/dist/types/methods/get-locale.d.cts.map +1 -0
- package/dist/types/methods/get-locale.d.mts +13 -0
- package/dist/types/methods/get-locale.d.mts.map +1 -0
- package/dist/types/methods/get-locale.mjs +2 -0
- package/dist/types/methods/get-locale.mjs.map +1 -0
- package/dist/types/methods/get-preferences.cjs +3 -0
- package/dist/types/methods/get-preferences.cjs.map +1 -0
- package/dist/types/{types/methods/get-preferences.d.ts → methods/get-preferences.d.cts} +1 -0
- package/dist/types/methods/get-preferences.d.cts.map +1 -0
- package/dist/types/methods/get-preferences.d.mts +16 -0
- package/dist/types/methods/get-preferences.d.mts.map +1 -0
- package/dist/types/methods/get-preferences.mjs +2 -0
- package/dist/types/methods/get-preferences.mjs.map +1 -0
- package/dist/types/methods/get-snaps.cjs +3 -0
- package/dist/types/methods/get-snaps.cjs.map +1 -0
- package/dist/types/{types/methods/get-snaps.d.ts → methods/get-snaps.d.cts} +3 -2
- package/dist/types/methods/get-snaps.d.cts.map +1 -0
- package/dist/types/methods/get-snaps.d.mts +17 -0
- package/dist/types/methods/get-snaps.d.mts.map +1 -0
- package/dist/types/methods/get-snaps.mjs +2 -0
- package/dist/types/methods/get-snaps.mjs.map +1 -0
- package/dist/types/methods/index.cjs +38 -0
- package/dist/types/methods/index.cjs.map +1 -0
- package/dist/types/methods/index.d.cts +22 -0
- package/dist/types/methods/index.d.cts.map +1 -0
- package/dist/types/methods/index.d.mts +22 -0
- package/dist/types/methods/index.d.mts.map +1 -0
- package/dist/types/methods/index.mjs +22 -0
- package/dist/types/methods/index.mjs.map +1 -0
- package/dist/types/methods/invoke-keyring.cjs +3 -0
- package/dist/types/methods/invoke-keyring.cjs.map +1 -0
- package/dist/types/{types/methods/invoke-keyring.d.ts → methods/invoke-keyring.d.cts} +3 -2
- package/dist/types/methods/invoke-keyring.d.cts.map +1 -0
- package/dist/types/methods/invoke-keyring.d.mts +15 -0
- package/dist/types/methods/invoke-keyring.d.mts.map +1 -0
- package/dist/types/methods/invoke-keyring.mjs +2 -0
- package/dist/types/methods/invoke-keyring.mjs.map +1 -0
- package/dist/types/methods/invoke-snap.cjs +3 -0
- package/dist/types/methods/invoke-snap.cjs.map +1 -0
- package/dist/types/{types/methods/invoke-snap.d.ts → methods/invoke-snap.d.cts} +2 -1
- package/dist/types/methods/invoke-snap.d.cts.map +1 -0
- package/dist/types/methods/invoke-snap.d.mts +17 -0
- package/dist/types/methods/invoke-snap.d.mts.map +1 -0
- package/dist/types/methods/invoke-snap.mjs +2 -0
- package/dist/types/methods/invoke-snap.mjs.map +1 -0
- package/dist/types/methods/manage-accounts.cjs +3 -0
- package/dist/types/methods/manage-accounts.cjs.map +1 -0
- package/dist/types/{types/methods/manage-accounts.d.ts → methods/manage-accounts.d.cts} +2 -1
- package/dist/types/methods/manage-accounts.d.cts.map +1 -0
- package/dist/types/methods/manage-accounts.d.mts +19 -0
- package/dist/types/methods/manage-accounts.d.mts.map +1 -0
- package/dist/types/methods/manage-accounts.mjs +2 -0
- package/dist/types/methods/manage-accounts.mjs.map +1 -0
- package/dist/types/methods/manage-state.cjs +13 -0
- package/dist/types/methods/manage-state.cjs.map +1 -0
- package/dist/types/{types/methods/manage-state.d.ts → methods/manage-state.d.cts} +3 -2
- package/dist/types/methods/manage-state.d.cts.map +1 -0
- package/dist/types/methods/manage-state.d.mts +70 -0
- package/dist/types/methods/manage-state.d.mts.map +1 -0
- package/dist/types/methods/manage-state.mjs +10 -0
- package/dist/types/methods/manage-state.mjs.map +1 -0
- package/dist/types/methods/methods.cjs +3 -0
- package/dist/types/methods/methods.cjs.map +1 -0
- package/dist/types/{types/methods/methods.d.ts → methods/methods.d.cts} +22 -21
- package/dist/types/methods/methods.d.cts.map +1 -0
- package/dist/types/methods/methods.d.mts +75 -0
- package/dist/types/methods/methods.d.mts.map +1 -0
- package/dist/types/methods/methods.mjs +2 -0
- package/dist/types/methods/methods.mjs.map +1 -0
- package/dist/types/methods/notify.cjs +15 -0
- package/dist/types/methods/notify.cjs.map +1 -0
- package/dist/types/{types/methods/notify.d.ts → methods/notify.d.cts} +2 -1
- package/dist/types/methods/notify.d.cts.map +1 -0
- package/dist/types/methods/notify.d.mts +28 -0
- package/dist/types/methods/notify.d.mts.map +1 -0
- package/dist/types/methods/notify.mjs +12 -0
- package/dist/types/methods/notify.mjs.map +1 -0
- package/dist/types/methods/request-snaps.cjs +3 -0
- package/dist/types/methods/request-snaps.cjs.map +1 -0
- package/dist/types/{types/methods/request-snaps.d.ts → methods/request-snaps.d.cts} +3 -2
- package/dist/types/methods/request-snaps.d.cts.map +1 -0
- package/dist/types/methods/request-snaps.d.mts +19 -0
- package/dist/types/methods/request-snaps.d.mts.map +1 -0
- package/dist/types/methods/request-snaps.mjs +2 -0
- package/dist/types/methods/request-snaps.mjs.map +1 -0
- package/dist/types/methods/resolve-interface.cjs +3 -0
- package/dist/types/methods/resolve-interface.cjs.map +1 -0
- package/dist/types/{types/methods/resolve-interface.d.ts → methods/resolve-interface.d.cts} +2 -1
- package/dist/types/methods/resolve-interface.d.cts.map +1 -0
- package/dist/types/methods/resolve-interface.d.mts +16 -0
- package/dist/types/methods/resolve-interface.d.mts.map +1 -0
- package/dist/types/methods/resolve-interface.mjs +2 -0
- package/dist/types/methods/resolve-interface.mjs.map +1 -0
- package/dist/types/methods/update-interface.cjs +3 -0
- package/dist/types/methods/update-interface.cjs.map +1 -0
- package/dist/types/{types/methods/update-interface.d.ts → methods/update-interface.d.cts} +2 -1
- package/dist/types/methods/update-interface.d.cts.map +1 -0
- package/dist/types/methods/update-interface.d.mts +16 -0
- package/dist/types/methods/update-interface.d.mts.map +1 -0
- package/dist/types/methods/update-interface.mjs +2 -0
- package/dist/types/methods/update-interface.mjs.map +1 -0
- package/dist/types/permissions.cjs +3 -0
- package/dist/types/permissions.cjs.map +1 -0
- package/dist/types/{types/permissions.d.ts → permissions.d.cts} +4 -3
- package/dist/types/permissions.d.cts.map +1 -0
- package/dist/types/permissions.d.mts +75 -0
- package/dist/types/permissions.d.mts.map +1 -0
- package/dist/types/permissions.mjs +2 -0
- package/dist/types/permissions.mjs.map +1 -0
- package/dist/types/provider.cjs +3 -0
- package/dist/types/provider.cjs.map +1 -0
- package/dist/types/{types/provider.d.ts → provider.d.cts} +3 -2
- package/dist/types/provider.d.cts.map +1 -0
- package/dist/types/provider.d.mts +15 -0
- package/dist/types/provider.d.mts.map +1 -0
- package/dist/types/provider.mjs +2 -0
- package/dist/types/provider.mjs.map +1 -0
- package/dist/types/snap.cjs +3 -0
- package/dist/types/snap.cjs.map +1 -0
- package/dist/types/{types/snap.d.ts → snap.d.cts} +3 -2
- package/dist/types/snap.d.cts.map +1 -0
- package/dist/types/snap.d.mts +13 -0
- package/dist/types/snap.d.mts.map +1 -0
- package/dist/types/snap.mjs +2 -0
- package/dist/types/snap.mjs.map +1 -0
- package/dist/ui/builder.cjs +49 -0
- package/dist/ui/builder.cjs.map +1 -0
- package/dist/{types/ui/builder.d.ts → ui/builder.d.cts} +4 -3
- package/dist/ui/builder.d.cts.map +1 -0
- package/dist/ui/builder.d.mts +43 -0
- package/dist/ui/builder.d.mts.map +1 -0
- package/dist/ui/builder.mjs +45 -0
- package/dist/ui/builder.mjs.map +1 -0
- package/dist/ui/component.cjs +29 -0
- package/dist/ui/component.cjs.map +1 -0
- package/dist/{types/ui/component.d.ts → ui/component.d.cts} +2 -1
- package/dist/ui/component.d.cts.map +1 -0
- package/dist/ui/component.d.mts +18 -0
- package/dist/ui/component.d.mts.map +1 -0
- package/dist/ui/component.mjs +24 -0
- package/dist/ui/component.mjs.map +1 -0
- package/dist/ui/components/address.cjs +28 -0
- package/dist/ui/components/address.cjs.map +1 -0
- package/dist/{types/ui/components/address.d.ts → ui/components/address.d.cts} +6 -5
- package/dist/ui/components/address.d.cts.map +1 -0
- package/dist/ui/components/address.d.mts +37 -0
- package/dist/ui/components/address.d.mts.map +1 -0
- package/dist/ui/components/address.mjs +25 -0
- package/dist/ui/components/address.mjs.map +1 -0
- package/dist/ui/components/button.cjs +52 -0
- package/dist/ui/components/button.cjs.map +1 -0
- package/dist/{types/ui/components/button.d.ts → ui/components/button.d.cts} +9 -8
- package/dist/ui/components/button.d.cts.map +1 -0
- package/dist/ui/components/button.d.mts +65 -0
- package/dist/ui/components/button.d.mts.map +1 -0
- package/dist/ui/components/button.mjs +49 -0
- package/dist/ui/components/button.mjs.map +1 -0
- package/dist/ui/components/copyable.cjs +32 -0
- package/dist/ui/components/copyable.cjs.map +1 -0
- package/dist/{types/ui/components/copyable.d.ts → ui/components/copyable.d.cts} +6 -5
- package/dist/ui/components/copyable.d.cts.map +1 -0
- package/dist/ui/components/copyable.d.mts +49 -0
- package/dist/ui/components/copyable.d.mts.map +1 -0
- package/dist/ui/components/copyable.mjs +29 -0
- package/dist/ui/components/copyable.mjs.map +1 -0
- package/dist/ui/components/divider.cjs +20 -0
- package/dist/ui/components/divider.cjs.map +1 -0
- package/dist/{types/ui/components/divider.d.ts → ui/components/divider.d.cts} +3 -2
- package/dist/ui/components/divider.d.cts.map +1 -0
- package/dist/ui/components/divider.d.mts +24 -0
- package/dist/ui/components/divider.d.mts.map +1 -0
- package/dist/ui/components/divider.mjs +17 -0
- package/dist/ui/components/divider.mjs.map +1 -0
- package/dist/ui/components/form.cjs +41 -0
- package/dist/ui/components/form.cjs.map +1 -0
- package/dist/{types/ui/components/form.d.ts → ui/components/form.d.cts} +31 -30
- package/dist/ui/components/form.d.cts.map +1 -0
- package/dist/ui/components/form.d.mts +154 -0
- package/dist/ui/components/form.d.mts.map +1 -0
- package/dist/ui/components/form.mjs +38 -0
- package/dist/ui/components/form.mjs.map +1 -0
- package/dist/ui/components/heading.cjs +27 -0
- package/dist/ui/components/heading.cjs.map +1 -0
- package/dist/{types/ui/components/heading.d.ts → ui/components/heading.d.cts} +6 -5
- package/dist/ui/components/heading.d.cts.map +1 -0
- package/dist/ui/components/heading.d.mts +39 -0
- package/dist/ui/components/heading.d.mts.map +1 -0
- package/dist/ui/components/heading.mjs +24 -0
- package/dist/ui/components/heading.mjs.map +1 -0
- package/dist/ui/components/image.cjs +27 -0
- package/dist/ui/components/image.cjs.map +1 -0
- package/dist/{types/ui/components/image.d.ts → ui/components/image.d.cts} +6 -5
- package/dist/ui/components/image.d.cts.map +1 -0
- package/dist/ui/components/image.d.mts +38 -0
- package/dist/ui/components/image.d.mts.map +1 -0
- package/dist/ui/components/image.mjs +24 -0
- package/dist/ui/components/image.mjs.map +1 -0
- package/dist/ui/components/index.cjs +35 -0
- package/dist/ui/components/index.cjs.map +1 -0
- package/dist/ui/components/index.d.cts +15 -0
- package/dist/ui/components/index.d.cts.map +1 -0
- package/dist/ui/components/index.d.mts +15 -0
- package/dist/ui/components/index.d.mts.map +1 -0
- package/dist/ui/components/index.mjs +13 -0
- package/dist/ui/components/index.mjs.map +1 -0
- package/dist/ui/components/input.cjs +60 -0
- package/dist/ui/components/input.cjs.map +1 -0
- package/dist/{types/ui/components/input.d.ts → ui/components/input.d.cts} +9 -8
- package/dist/ui/components/input.d.cts.map +1 -0
- package/dist/ui/components/input.d.mts +78 -0
- package/dist/ui/components/input.d.mts.map +1 -0
- package/dist/ui/components/input.mjs +57 -0
- package/dist/ui/components/input.mjs.map +1 -0
- package/dist/ui/components/panel.cjs +72 -0
- package/dist/ui/components/panel.cjs.map +1 -0
- package/dist/{types/ui/components/panel.d.ts → ui/components/panel.d.cts} +88 -87
- package/dist/ui/components/panel.d.cts.map +1 -0
- package/dist/ui/components/panel.d.mts +406 -0
- package/dist/ui/components/panel.d.mts.map +1 -0
- package/dist/ui/components/panel.mjs +69 -0
- package/dist/ui/components/panel.mjs.map +1 -0
- package/dist/ui/components/row.cjs +51 -0
- package/dist/ui/components/row.cjs.map +1 -0
- package/dist/{types/ui/components/row.d.ts → ui/components/row.d.cts} +21 -20
- package/dist/ui/components/row.d.cts.map +1 -0
- package/dist/ui/components/row.d.mts +107 -0
- package/dist/ui/components/row.d.mts.map +1 -0
- package/dist/ui/components/row.mjs +48 -0
- package/dist/ui/components/row.mjs.map +1 -0
- package/dist/ui/components/spinner.cjs +20 -0
- package/dist/ui/components/spinner.cjs.map +1 -0
- package/dist/{types/ui/components/spinner.d.ts → ui/components/spinner.d.cts} +3 -2
- package/dist/ui/components/spinner.d.cts.map +1 -0
- package/dist/ui/components/spinner.d.mts +25 -0
- package/dist/ui/components/spinner.d.mts.map +1 -0
- package/dist/ui/components/spinner.mjs +17 -0
- package/dist/ui/components/spinner.mjs.map +1 -0
- package/dist/ui/components/text.cjs +34 -0
- package/dist/ui/components/text.cjs.map +1 -0
- package/dist/{types/ui/components/text.d.ts → ui/components/text.d.cts} +6 -5
- package/dist/ui/components/text.d.cts.map +1 -0
- package/dist/ui/components/text.d.mts +49 -0
- package/dist/ui/components/text.d.mts.map +1 -0
- package/dist/ui/components/text.mjs +31 -0
- package/dist/ui/components/text.mjs.map +1 -0
- package/dist/ui/index.cjs +22 -0
- package/dist/ui/index.cjs.map +1 -0
- package/dist/ui/index.d.cts +4 -0
- package/dist/ui/index.d.cts.map +1 -0
- package/dist/ui/index.d.mts +4 -0
- package/dist/ui/index.d.mts.map +1 -0
- package/dist/ui/index.mjs +4 -0
- package/dist/ui/index.mjs.map +1 -0
- package/dist/ui/nodes.cjs +38 -0
- package/dist/ui/nodes.cjs.map +1 -0
- package/dist/{types/ui/nodes.d.ts → ui/nodes.d.cts} +3 -2
- package/dist/ui/nodes.d.cts.map +1 -0
- package/dist/ui/nodes.d.mts +57 -0
- package/dist/ui/nodes.d.mts.map +1 -0
- package/dist/ui/nodes.mjs +35 -0
- package/dist/ui/nodes.mjs.map +1 -0
- package/jsx-dev-runtime.d.ts +3 -1
- package/jsx-dev-runtime.js +1 -1
- package/jsx-runtime.d.ts +3 -1
- package/jsx-runtime.js +1 -1
- package/jsx.d.ts +3 -1
- package/jsx.js +1 -1
- package/package.json +42 -27
- package/dist/index.js +0 -1142
- package/dist/index.js.map +0 -1
- package/dist/jsx/index.js +0 -587
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/jsx-dev-runtime.js +0 -416
- package/dist/jsx/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx/jsx-runtime.js +0 -45
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/types/index.d.ts +0 -9
- package/dist/types/internals/index.d.ts +0 -6
- package/dist/types/jsx/components/Address.d.ts +0 -28
- package/dist/types/jsx/components/form/index.d.ts +0 -21
- package/dist/types/jsx/components/formatting/index.d.ts +0 -5
- package/dist/types/jsx/components/index.d.ts +0 -38
- package/dist/types/jsx/index.d.ts +0 -5
- package/dist/types/types/handlers/index.d.ts +0 -9
- package/dist/types/types/index.d.ts +0 -9
- package/dist/types/types/methods/index.d.ts +0 -21
- package/dist/types/ui/components/index.d.ts +0 -14
- package/dist/types/ui/index.d.ts +0 -3
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* A JSON-RPC 2.0 Internal (-32603) error.
|
|
4
|
+
*
|
|
5
|
+
* This can be thrown by a Snap to indicate that an internal error occurred,
|
|
6
|
+
* without crashing the Snap.
|
|
7
|
+
*
|
|
8
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
9
|
+
*/
|
|
10
|
+
export declare const InternalError: {
|
|
11
|
+
new (message?: string | undefined): {
|
|
12
|
+
readonly "__#181027@#code": number;
|
|
13
|
+
readonly "__#181027@#message": string;
|
|
14
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
15
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly code: number;
|
|
18
|
+
readonly message: string;
|
|
19
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
20
|
+
readonly stack: string | undefined;
|
|
21
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
22
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
23
|
+
};
|
|
24
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
25
|
+
readonly "__#181027@#code": number;
|
|
26
|
+
readonly "__#181027@#message": string;
|
|
27
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
28
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly code: number;
|
|
31
|
+
readonly message: string;
|
|
32
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
33
|
+
readonly stack: string | undefined;
|
|
34
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
35
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
36
|
+
};
|
|
37
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
38
|
+
readonly "__#181027@#code": number;
|
|
39
|
+
readonly "__#181027@#message": string;
|
|
40
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
41
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly code: number;
|
|
44
|
+
readonly message: string;
|
|
45
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
46
|
+
readonly stack: string | undefined;
|
|
47
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
48
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
49
|
+
};
|
|
50
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
51
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
52
|
+
stackTraceLimit: number;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* An Ethereum JSON-RPC Invalid Input (-32000) error.
|
|
56
|
+
*
|
|
57
|
+
* This can be thrown by a Snap to indicate that the input to a method is
|
|
58
|
+
* invalid, without crashing the Snap.
|
|
59
|
+
*
|
|
60
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
61
|
+
*/
|
|
62
|
+
export declare const InvalidInputError: {
|
|
63
|
+
new (message?: string | undefined): {
|
|
64
|
+
readonly "__#181027@#code": number;
|
|
65
|
+
readonly "__#181027@#message": string;
|
|
66
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
67
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
68
|
+
readonly name: string;
|
|
69
|
+
readonly code: number;
|
|
70
|
+
readonly message: string;
|
|
71
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
72
|
+
readonly stack: string | undefined;
|
|
73
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
74
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
75
|
+
};
|
|
76
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
77
|
+
readonly "__#181027@#code": number;
|
|
78
|
+
readonly "__#181027@#message": string;
|
|
79
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
80
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly code: number;
|
|
83
|
+
readonly message: string;
|
|
84
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
85
|
+
readonly stack: string | undefined;
|
|
86
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
87
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
88
|
+
};
|
|
89
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
90
|
+
readonly "__#181027@#code": number;
|
|
91
|
+
readonly "__#181027@#message": string;
|
|
92
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
93
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly code: number;
|
|
96
|
+
readonly message: string;
|
|
97
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
98
|
+
readonly stack: string | undefined;
|
|
99
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
100
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
101
|
+
};
|
|
102
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
103
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
104
|
+
stackTraceLimit: number;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* A JSON-RPC 2.0 Invalid Params (-32602) error.
|
|
108
|
+
*
|
|
109
|
+
* This can be thrown by a Snap to indicate that the parameters to a method are
|
|
110
|
+
* invalid, without crashing the Snap.
|
|
111
|
+
*
|
|
112
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
113
|
+
*/
|
|
114
|
+
export declare const InvalidParamsError: {
|
|
115
|
+
new (message?: string | undefined): {
|
|
116
|
+
readonly "__#181027@#code": number;
|
|
117
|
+
readonly "__#181027@#message": string;
|
|
118
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
119
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
120
|
+
readonly name: string;
|
|
121
|
+
readonly code: number;
|
|
122
|
+
readonly message: string;
|
|
123
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
124
|
+
readonly stack: string | undefined;
|
|
125
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
126
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
127
|
+
};
|
|
128
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
129
|
+
readonly "__#181027@#code": number;
|
|
130
|
+
readonly "__#181027@#message": string;
|
|
131
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
132
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
133
|
+
readonly name: string;
|
|
134
|
+
readonly code: number;
|
|
135
|
+
readonly message: string;
|
|
136
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
137
|
+
readonly stack: string | undefined;
|
|
138
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
139
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
140
|
+
};
|
|
141
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
142
|
+
readonly "__#181027@#code": number;
|
|
143
|
+
readonly "__#181027@#message": string;
|
|
144
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
145
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
146
|
+
readonly name: string;
|
|
147
|
+
readonly code: number;
|
|
148
|
+
readonly message: string;
|
|
149
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
150
|
+
readonly stack: string | undefined;
|
|
151
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
152
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
153
|
+
};
|
|
154
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
155
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
156
|
+
stackTraceLimit: number;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* A JSON-RPC 2.0 Invalid Request (-32600) error.
|
|
160
|
+
*
|
|
161
|
+
* This can be thrown by a Snap to indicate that the request is invalid, without
|
|
162
|
+
* crashing the Snap.
|
|
163
|
+
*
|
|
164
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
165
|
+
*/
|
|
166
|
+
export declare const InvalidRequestError: {
|
|
167
|
+
new (message?: string | undefined): {
|
|
168
|
+
readonly "__#181027@#code": number;
|
|
169
|
+
readonly "__#181027@#message": string;
|
|
170
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
171
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
172
|
+
readonly name: string;
|
|
173
|
+
readonly code: number;
|
|
174
|
+
readonly message: string;
|
|
175
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
176
|
+
readonly stack: string | undefined;
|
|
177
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
178
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
179
|
+
};
|
|
180
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
181
|
+
readonly "__#181027@#code": number;
|
|
182
|
+
readonly "__#181027@#message": string;
|
|
183
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
184
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
185
|
+
readonly name: string;
|
|
186
|
+
readonly code: number;
|
|
187
|
+
readonly message: string;
|
|
188
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
189
|
+
readonly stack: string | undefined;
|
|
190
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
191
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
192
|
+
};
|
|
193
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
194
|
+
readonly "__#181027@#code": number;
|
|
195
|
+
readonly "__#181027@#message": string;
|
|
196
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
197
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
198
|
+
readonly name: string;
|
|
199
|
+
readonly code: number;
|
|
200
|
+
readonly message: string;
|
|
201
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
202
|
+
readonly stack: string | undefined;
|
|
203
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
204
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
205
|
+
};
|
|
206
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
207
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
208
|
+
stackTraceLimit: number;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* An Ethereum JSON-RPC Limit Exceeded (-32005) error.
|
|
212
|
+
*
|
|
213
|
+
* This can be thrown by a Snap to indicate that a limit has been exceeded,
|
|
214
|
+
* without crashing the Snap.
|
|
215
|
+
*
|
|
216
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
217
|
+
*/
|
|
218
|
+
export declare const LimitExceededError: {
|
|
219
|
+
new (message?: string | undefined): {
|
|
220
|
+
readonly "__#181027@#code": number;
|
|
221
|
+
readonly "__#181027@#message": string;
|
|
222
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
223
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
224
|
+
readonly name: string;
|
|
225
|
+
readonly code: number;
|
|
226
|
+
readonly message: string;
|
|
227
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
228
|
+
readonly stack: string | undefined;
|
|
229
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
230
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
231
|
+
};
|
|
232
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
233
|
+
readonly "__#181027@#code": number;
|
|
234
|
+
readonly "__#181027@#message": string;
|
|
235
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
236
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
237
|
+
readonly name: string;
|
|
238
|
+
readonly code: number;
|
|
239
|
+
readonly message: string;
|
|
240
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
241
|
+
readonly stack: string | undefined;
|
|
242
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
243
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
244
|
+
};
|
|
245
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
246
|
+
readonly "__#181027@#code": number;
|
|
247
|
+
readonly "__#181027@#message": string;
|
|
248
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
249
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
250
|
+
readonly name: string;
|
|
251
|
+
readonly code: number;
|
|
252
|
+
readonly message: string;
|
|
253
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
254
|
+
readonly stack: string | undefined;
|
|
255
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
256
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
257
|
+
};
|
|
258
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
259
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
260
|
+
stackTraceLimit: number;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* An Ethereum JSON-RPC Method Not Found (-32601) error.
|
|
264
|
+
*
|
|
265
|
+
* This can be thrown by a Snap to indicate that a method does not exist,
|
|
266
|
+
* without crashing the Snap.
|
|
267
|
+
*
|
|
268
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
269
|
+
*/
|
|
270
|
+
export declare const MethodNotFoundError: {
|
|
271
|
+
new (message?: string | undefined): {
|
|
272
|
+
readonly "__#181027@#code": number;
|
|
273
|
+
readonly "__#181027@#message": string;
|
|
274
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
275
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
276
|
+
readonly name: string;
|
|
277
|
+
readonly code: number;
|
|
278
|
+
readonly message: string;
|
|
279
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
280
|
+
readonly stack: string | undefined;
|
|
281
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
282
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
283
|
+
};
|
|
284
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
285
|
+
readonly "__#181027@#code": number;
|
|
286
|
+
readonly "__#181027@#message": string;
|
|
287
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
288
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
289
|
+
readonly name: string;
|
|
290
|
+
readonly code: number;
|
|
291
|
+
readonly message: string;
|
|
292
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
293
|
+
readonly stack: string | undefined;
|
|
294
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
295
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
296
|
+
};
|
|
297
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
298
|
+
readonly "__#181027@#code": number;
|
|
299
|
+
readonly "__#181027@#message": string;
|
|
300
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
301
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
302
|
+
readonly name: string;
|
|
303
|
+
readonly code: number;
|
|
304
|
+
readonly message: string;
|
|
305
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
306
|
+
readonly stack: string | undefined;
|
|
307
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
308
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
309
|
+
};
|
|
310
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
311
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
312
|
+
stackTraceLimit: number;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* An Ethereum JSON-RPC Method Not Supported (-32004) error.
|
|
316
|
+
*
|
|
317
|
+
* This can be thrown by a Snap to indicate that a method is not supported,
|
|
318
|
+
* without crashing the Snap.
|
|
319
|
+
*/
|
|
320
|
+
export declare const MethodNotSupportedError: {
|
|
321
|
+
new (message?: string | undefined): {
|
|
322
|
+
readonly "__#181027@#code": number;
|
|
323
|
+
readonly "__#181027@#message": string;
|
|
324
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
325
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
326
|
+
readonly name: string;
|
|
327
|
+
readonly code: number;
|
|
328
|
+
readonly message: string;
|
|
329
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
330
|
+
readonly stack: string | undefined;
|
|
331
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
332
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
333
|
+
};
|
|
334
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
335
|
+
readonly "__#181027@#code": number;
|
|
336
|
+
readonly "__#181027@#message": string;
|
|
337
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
338
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
339
|
+
readonly name: string;
|
|
340
|
+
readonly code: number;
|
|
341
|
+
readonly message: string;
|
|
342
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
343
|
+
readonly stack: string | undefined;
|
|
344
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
345
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
346
|
+
};
|
|
347
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
348
|
+
readonly "__#181027@#code": number;
|
|
349
|
+
readonly "__#181027@#message": string;
|
|
350
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
351
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
352
|
+
readonly name: string;
|
|
353
|
+
readonly code: number;
|
|
354
|
+
readonly message: string;
|
|
355
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
356
|
+
readonly stack: string | undefined;
|
|
357
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
358
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
359
|
+
};
|
|
360
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
361
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
362
|
+
stackTraceLimit: number;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* A JSON-RPC 2.0 Parse (-32700) error.
|
|
366
|
+
*
|
|
367
|
+
* This can be thrown by a Snap to indicate that a request is not valid JSON,
|
|
368
|
+
* without crashing the Snap.
|
|
369
|
+
*
|
|
370
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
371
|
+
*/
|
|
372
|
+
export declare const ParseError: {
|
|
373
|
+
new (message?: string | undefined): {
|
|
374
|
+
readonly "__#181027@#code": number;
|
|
375
|
+
readonly "__#181027@#message": string;
|
|
376
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
377
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
378
|
+
readonly name: string;
|
|
379
|
+
readonly code: number;
|
|
380
|
+
readonly message: string;
|
|
381
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
382
|
+
readonly stack: string | undefined;
|
|
383
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
384
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
385
|
+
};
|
|
386
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
387
|
+
readonly "__#181027@#code": number;
|
|
388
|
+
readonly "__#181027@#message": string;
|
|
389
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
390
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
391
|
+
readonly name: string;
|
|
392
|
+
readonly code: number;
|
|
393
|
+
readonly message: string;
|
|
394
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
395
|
+
readonly stack: string | undefined;
|
|
396
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
397
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
398
|
+
};
|
|
399
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
400
|
+
readonly "__#181027@#code": number;
|
|
401
|
+
readonly "__#181027@#message": string;
|
|
402
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
403
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
404
|
+
readonly name: string;
|
|
405
|
+
readonly code: number;
|
|
406
|
+
readonly message: string;
|
|
407
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
408
|
+
readonly stack: string | undefined;
|
|
409
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
410
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
411
|
+
};
|
|
412
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
413
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
414
|
+
stackTraceLimit: number;
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* An Ethereum JSON-RPC Resource Not Found (-32001) error.
|
|
418
|
+
*
|
|
419
|
+
* This can be thrown by a Snap to indicate that a resource does not exist,
|
|
420
|
+
* without crashing the Snap.
|
|
421
|
+
*
|
|
422
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
423
|
+
*/
|
|
424
|
+
export declare const ResourceNotFoundError: {
|
|
425
|
+
new (message?: string | undefined): {
|
|
426
|
+
readonly "__#181027@#code": number;
|
|
427
|
+
readonly "__#181027@#message": string;
|
|
428
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
429
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
430
|
+
readonly name: string;
|
|
431
|
+
readonly code: number;
|
|
432
|
+
readonly message: string;
|
|
433
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
434
|
+
readonly stack: string | undefined;
|
|
435
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
436
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
437
|
+
};
|
|
438
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
439
|
+
readonly "__#181027@#code": number;
|
|
440
|
+
readonly "__#181027@#message": string;
|
|
441
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
442
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
443
|
+
readonly name: string;
|
|
444
|
+
readonly code: number;
|
|
445
|
+
readonly message: string;
|
|
446
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
447
|
+
readonly stack: string | undefined;
|
|
448
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
449
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
450
|
+
};
|
|
451
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
452
|
+
readonly "__#181027@#code": number;
|
|
453
|
+
readonly "__#181027@#message": string;
|
|
454
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
455
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
456
|
+
readonly name: string;
|
|
457
|
+
readonly code: number;
|
|
458
|
+
readonly message: string;
|
|
459
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
460
|
+
readonly stack: string | undefined;
|
|
461
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
462
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
463
|
+
};
|
|
464
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
465
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
466
|
+
stackTraceLimit: number;
|
|
467
|
+
};
|
|
468
|
+
/**
|
|
469
|
+
* An Ethereum JSON-RPC Resource Unavailable (-32002) error.
|
|
470
|
+
*
|
|
471
|
+
* This can be thrown by a Snap to indicate that a resource is unavailable,
|
|
472
|
+
* without crashing the Snap.
|
|
473
|
+
*
|
|
474
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
475
|
+
*/
|
|
476
|
+
export declare const ResourceUnavailableError: {
|
|
477
|
+
new (message?: string | undefined): {
|
|
478
|
+
readonly "__#181027@#code": number;
|
|
479
|
+
readonly "__#181027@#message": string;
|
|
480
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
481
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
482
|
+
readonly name: string;
|
|
483
|
+
readonly code: number;
|
|
484
|
+
readonly message: string;
|
|
485
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
486
|
+
readonly stack: string | undefined;
|
|
487
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
488
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
489
|
+
};
|
|
490
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
491
|
+
readonly "__#181027@#code": number;
|
|
492
|
+
readonly "__#181027@#message": string;
|
|
493
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
494
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
495
|
+
readonly name: string;
|
|
496
|
+
readonly code: number;
|
|
497
|
+
readonly message: string;
|
|
498
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
499
|
+
readonly stack: string | undefined;
|
|
500
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
501
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
502
|
+
};
|
|
503
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
504
|
+
readonly "__#181027@#code": number;
|
|
505
|
+
readonly "__#181027@#message": string;
|
|
506
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
507
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
508
|
+
readonly name: string;
|
|
509
|
+
readonly code: number;
|
|
510
|
+
readonly message: string;
|
|
511
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
512
|
+
readonly stack: string | undefined;
|
|
513
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
514
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
515
|
+
};
|
|
516
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
517
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
518
|
+
stackTraceLimit: number;
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* An Ethereum JSON-RPC Transaction Rejected (-32003) error.
|
|
522
|
+
*
|
|
523
|
+
* This can be thrown by a Snap to indicate that a transaction was rejected,
|
|
524
|
+
* without crashing the Snap.
|
|
525
|
+
*
|
|
526
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
527
|
+
*/
|
|
528
|
+
export declare const TransactionRejected: {
|
|
529
|
+
new (message?: string | undefined): {
|
|
530
|
+
readonly "__#181027@#code": number;
|
|
531
|
+
readonly "__#181027@#message": string;
|
|
532
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
533
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
534
|
+
readonly name: string;
|
|
535
|
+
readonly code: number;
|
|
536
|
+
readonly message: string;
|
|
537
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
538
|
+
readonly stack: string | undefined;
|
|
539
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
540
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
541
|
+
};
|
|
542
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
543
|
+
readonly "__#181027@#code": number;
|
|
544
|
+
readonly "__#181027@#message": string;
|
|
545
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
546
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
547
|
+
readonly name: string;
|
|
548
|
+
readonly code: number;
|
|
549
|
+
readonly message: string;
|
|
550
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
551
|
+
readonly stack: string | undefined;
|
|
552
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
553
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
554
|
+
};
|
|
555
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
556
|
+
readonly "__#181027@#code": number;
|
|
557
|
+
readonly "__#181027@#message": string;
|
|
558
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
559
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
560
|
+
readonly name: string;
|
|
561
|
+
readonly code: number;
|
|
562
|
+
readonly message: string;
|
|
563
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
564
|
+
readonly stack: string | undefined;
|
|
565
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
566
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
567
|
+
};
|
|
568
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
569
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
570
|
+
stackTraceLimit: number;
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* An Ethereum Provider Chain Disconnected (4901) error.
|
|
574
|
+
*
|
|
575
|
+
* This can be thrown by a Snap to indicate that the provider is disconnected
|
|
576
|
+
* from the requested chain, without crashing the Snap.
|
|
577
|
+
*
|
|
578
|
+
* @see https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
579
|
+
*/
|
|
580
|
+
export declare const ChainDisconnectedError: {
|
|
581
|
+
new (message?: string | undefined): {
|
|
582
|
+
readonly "__#181027@#code": number;
|
|
583
|
+
readonly "__#181027@#message": string;
|
|
584
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
585
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
586
|
+
readonly name: string;
|
|
587
|
+
readonly code: number;
|
|
588
|
+
readonly message: string;
|
|
589
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
590
|
+
readonly stack: string | undefined;
|
|
591
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
592
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
593
|
+
};
|
|
594
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
595
|
+
readonly "__#181027@#code": number;
|
|
596
|
+
readonly "__#181027@#message": string;
|
|
597
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
598
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
599
|
+
readonly name: string;
|
|
600
|
+
readonly code: number;
|
|
601
|
+
readonly message: string;
|
|
602
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
603
|
+
readonly stack: string | undefined;
|
|
604
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
605
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
606
|
+
};
|
|
607
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
608
|
+
readonly "__#181027@#code": number;
|
|
609
|
+
readonly "__#181027@#message": string;
|
|
610
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
611
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
612
|
+
readonly name: string;
|
|
613
|
+
readonly code: number;
|
|
614
|
+
readonly message: string;
|
|
615
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
616
|
+
readonly stack: string | undefined;
|
|
617
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
618
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
619
|
+
};
|
|
620
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
621
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
622
|
+
stackTraceLimit: number;
|
|
623
|
+
};
|
|
624
|
+
/**
|
|
625
|
+
* An Ethereum Provider Disconnected (4900) error.
|
|
626
|
+
*
|
|
627
|
+
* This can be thrown by a Snap to indicate that the provider is disconnected,
|
|
628
|
+
* without crashing the Snap.
|
|
629
|
+
*
|
|
630
|
+
* @see https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
631
|
+
*/
|
|
632
|
+
export declare const DisconnectedError: {
|
|
633
|
+
new (message?: string | undefined): {
|
|
634
|
+
readonly "__#181027@#code": number;
|
|
635
|
+
readonly "__#181027@#message": string;
|
|
636
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
637
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
638
|
+
readonly name: string;
|
|
639
|
+
readonly code: number;
|
|
640
|
+
readonly message: string;
|
|
641
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
642
|
+
readonly stack: string | undefined;
|
|
643
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
644
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
645
|
+
};
|
|
646
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
647
|
+
readonly "__#181027@#code": number;
|
|
648
|
+
readonly "__#181027@#message": string;
|
|
649
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
650
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
651
|
+
readonly name: string;
|
|
652
|
+
readonly code: number;
|
|
653
|
+
readonly message: string;
|
|
654
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
655
|
+
readonly stack: string | undefined;
|
|
656
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
657
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
658
|
+
};
|
|
659
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
660
|
+
readonly "__#181027@#code": number;
|
|
661
|
+
readonly "__#181027@#message": string;
|
|
662
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
663
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
664
|
+
readonly name: string;
|
|
665
|
+
readonly code: number;
|
|
666
|
+
readonly message: string;
|
|
667
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
668
|
+
readonly stack: string | undefined;
|
|
669
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
670
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
671
|
+
};
|
|
672
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
673
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
674
|
+
stackTraceLimit: number;
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* An Ethereum Provider Unauthorized (4100) error.
|
|
678
|
+
*
|
|
679
|
+
* This can be thrown by a Snap to indicate that the requested method / account
|
|
680
|
+
* is not authorized by the user, without crashing the Snap.
|
|
681
|
+
*/
|
|
682
|
+
export declare const UnauthorizedError: {
|
|
683
|
+
new (message?: string | undefined): {
|
|
684
|
+
readonly "__#181027@#code": number;
|
|
685
|
+
readonly "__#181027@#message": string;
|
|
686
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
687
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
688
|
+
readonly name: string;
|
|
689
|
+
readonly code: number;
|
|
690
|
+
readonly message: string;
|
|
691
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
692
|
+
readonly stack: string | undefined;
|
|
693
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
694
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
695
|
+
};
|
|
696
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
697
|
+
readonly "__#181027@#code": number;
|
|
698
|
+
readonly "__#181027@#message": string;
|
|
699
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
700
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
701
|
+
readonly name: string;
|
|
702
|
+
readonly code: number;
|
|
703
|
+
readonly message: string;
|
|
704
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
705
|
+
readonly stack: string | undefined;
|
|
706
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
707
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
708
|
+
};
|
|
709
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
710
|
+
readonly "__#181027@#code": number;
|
|
711
|
+
readonly "__#181027@#message": string;
|
|
712
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
713
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
714
|
+
readonly name: string;
|
|
715
|
+
readonly code: number;
|
|
716
|
+
readonly message: string;
|
|
717
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
718
|
+
readonly stack: string | undefined;
|
|
719
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
720
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
721
|
+
};
|
|
722
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
723
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
724
|
+
stackTraceLimit: number;
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* An Ethereum Provider Unsupported Method (4200) error.
|
|
728
|
+
*
|
|
729
|
+
* This can be thrown by a Snap to indicate that the requested method is not
|
|
730
|
+
* supported by the provider, without crashing the Snap.
|
|
731
|
+
*
|
|
732
|
+
* @see https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
733
|
+
*/
|
|
734
|
+
export declare const UnsupportedMethodError: {
|
|
735
|
+
new (message?: string | undefined): {
|
|
736
|
+
readonly "__#181027@#code": number;
|
|
737
|
+
readonly "__#181027@#message": string;
|
|
738
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
739
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
740
|
+
readonly name: string;
|
|
741
|
+
readonly code: number;
|
|
742
|
+
readonly message: string;
|
|
743
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
744
|
+
readonly stack: string | undefined;
|
|
745
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
746
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
747
|
+
};
|
|
748
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
749
|
+
readonly "__#181027@#code": number;
|
|
750
|
+
readonly "__#181027@#message": string;
|
|
751
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
752
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
753
|
+
readonly name: string;
|
|
754
|
+
readonly code: number;
|
|
755
|
+
readonly message: string;
|
|
756
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
757
|
+
readonly stack: string | undefined;
|
|
758
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
759
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
760
|
+
};
|
|
761
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
762
|
+
readonly "__#181027@#code": number;
|
|
763
|
+
readonly "__#181027@#message": string;
|
|
764
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
765
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
766
|
+
readonly name: string;
|
|
767
|
+
readonly code: number;
|
|
768
|
+
readonly message: string;
|
|
769
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
770
|
+
readonly stack: string | undefined;
|
|
771
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
772
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
773
|
+
};
|
|
774
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
775
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
776
|
+
stackTraceLimit: number;
|
|
777
|
+
};
|
|
778
|
+
/**
|
|
779
|
+
* An Ethereum Provider User Rejected Request (4001) error.
|
|
780
|
+
*
|
|
781
|
+
* This can be thrown by a Snap to indicate that the user rejected the request,
|
|
782
|
+
* without crashing the Snap.
|
|
783
|
+
*
|
|
784
|
+
* @see https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
785
|
+
*/
|
|
786
|
+
export declare const UserRejectedRequestError: {
|
|
787
|
+
new (message?: string | undefined): {
|
|
788
|
+
readonly "__#181027@#code": number;
|
|
789
|
+
readonly "__#181027@#message": string;
|
|
790
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
791
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
792
|
+
readonly name: string;
|
|
793
|
+
readonly code: number;
|
|
794
|
+
readonly message: string;
|
|
795
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
796
|
+
readonly stack: string | undefined;
|
|
797
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
798
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
799
|
+
};
|
|
800
|
+
new (data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
801
|
+
readonly "__#181027@#code": number;
|
|
802
|
+
readonly "__#181027@#message": string;
|
|
803
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
804
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
805
|
+
readonly name: string;
|
|
806
|
+
readonly code: number;
|
|
807
|
+
readonly message: string;
|
|
808
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
809
|
+
readonly stack: string | undefined;
|
|
810
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
811
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
812
|
+
};
|
|
813
|
+
new (message?: string | Record<string, import("@metamask/utils").Json> | undefined, data?: Record<string, import("@metamask/utils").Json> | undefined): {
|
|
814
|
+
readonly "__#181027@#code": number;
|
|
815
|
+
readonly "__#181027@#message": string;
|
|
816
|
+
readonly "__#181027@#data"?: Record<string, import("@metamask/utils").Json> | undefined;
|
|
817
|
+
readonly "__#181027@#stack"?: string | undefined;
|
|
818
|
+
readonly name: string;
|
|
819
|
+
readonly code: number;
|
|
820
|
+
readonly message: string;
|
|
821
|
+
readonly data: Record<string, import("@metamask/utils").Json> | undefined;
|
|
822
|
+
readonly stack: string | undefined;
|
|
823
|
+
toJSON(): import("./errors").SerializedSnapError;
|
|
824
|
+
serialize(): import("./errors").SerializedSnapError;
|
|
825
|
+
};
|
|
826
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
827
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
828
|
+
stackTraceLimit: number;
|
|
829
|
+
};
|
|
830
|
+
//# sourceMappingURL=error-wrappers.d.cts.map
|