UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

1 lines 720 B
{"version":3,"file":"request-snaps.mjs","sourceRoot":"","sources":["../../../src/types/methods/request-snaps.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonRpcError } from '@metamask/utils';\n\nimport type { Snap } from '../snap';\n\n/**\n * The request parameters for the `wallet_requestSnaps` method.\n *\n * It consists of a map of Snap IDs to optional version strings to request.\n */\nexport type RequestSnapsParams = Record<string, { version?: string }>;\n\n/**\n * The result returned by the `wallet_requestSnaps` method.\n *\n * It consists of a map of Snap IDs to either the Snap object or an error.\n */\nexport type RequestSnapsResult = Record<string, { error: JsonRpcError } | Snap>;\n"]}