Socket
Socket
Sign inDemoInstall

@metamask/keyring-api

Package Overview
Dependencies
Maintainers
11
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/keyring-api - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

15

CHANGELOG.md

@@ -10,2 +10,14 @@ # Changelog

## [8.0.1]
### Changed
- Migrate to @metamask/superstruct and update required dependencies ([#355](https://github.com/MetaMask/keyring-api/pull/355)).
- Bump @metamask/providers from 17.1.0 to 17.1.1 ([#354](https://github.com/MetaMask/keyring-api/pull/354)).
- Bump @metamask/key-tree from 9.1.1 to 9.1.2 ([#351](https://github.com/MetaMask/keyring-api/pull/351)).
- Bump @metamask/rpc-errors from 6.3.0 to 6.3.1 ([#350](https://github.com/MetaMask/keyring-api/pull/350)).
- Bump @metamask/providers from 17.0.0 to 17.1.0 ([#348](https://github.com/MetaMask/keyring-api/pull/348)).
- Bump @metamask/snaps-sdk from 4.4.2 to 6.0.0 ([#347](https://github.com/MetaMask/keyring-api/pull/347)).
- Bump braces from 3.0.2 to 3.0.3 ([#345](https://github.com/MetaMask/keyring-api/pull/345)).
## [8.0.0]

@@ -365,3 +377,4 @@

[Unreleased]: https://github.com/MetaMask/keyring-api/compare/v8.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/keyring-api/compare/v8.0.1...HEAD
[8.0.1]: https://github.com/MetaMask/keyring-api/compare/v8.0.0...v8.0.1
[8.0.0]: https://github.com/MetaMask/keyring-api/compare/v7.0.0...v8.0.0

@@ -368,0 +381,0 @@ [7.0.0]: https://github.com/MetaMask/keyring-api/compare/v6.4.0...v7.0.0

14

dist/api/account.d.ts

@@ -1,2 +0,2 @@

import type { Infer } from 'superstruct';
import type { Infer } from '@metamask/superstruct';
/**

@@ -26,3 +26,3 @@ * Supported Ethereum account types.

*/
export declare const KeyringAccountStruct: import("superstruct").Struct<{
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -37,7 +37,7 @@ id: string;

*/
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
/**
* Account type.
*/
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -50,11 +50,11 @@ "eip155:erc4337": "eip155:erc4337";

*/
address: import("superstruct").Struct<string, null>;
address: import("@metamask/superstruct").Struct<string, null>;
/**
* Account options.
*/
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
/**
* Account supported methods.
*/
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;

@@ -61,0 +61,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyringAccountStruct = exports.BtcAccountType = exports.EthAccountType = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const superstruct_2 = require("../superstruct");

@@ -7,0 +7,0 @@ const utils_2 = require("../utils");

@@ -1,9 +0,9 @@

import type { Infer } from 'superstruct';
export declare const BalanceStruct: import("superstruct").Struct<{
import type { Infer } from '@metamask/superstruct';
export declare const BalanceStruct: import("@metamask/superstruct").Struct<{
amount: string;
unit: string;
}, {
amount: import("superstruct").Struct<string, null>;
unit: import("superstruct").Struct<string, null>;
amount: import("@metamask/superstruct").Struct<string, null>;
unit: import("@metamask/superstruct").Struct<string, null>;
}>;
export declare type Balance = Infer<typeof BalanceStruct>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BalanceStruct = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const superstruct_2 = require("../superstruct");

@@ -6,0 +6,0 @@ const utils_1 = require("../utils");

@@ -1,6 +0,6 @@

import { type Infer } from 'superstruct';
import { type Infer } from '@metamask/superstruct';
/**
* A CAIP-19 asset type identifier, i.e., a human-readable type of asset identifier.
*/
export declare const CaipAssetTypeStruct: import("superstruct").Struct<string, null>;
export declare const CaipAssetTypeStruct: import("@metamask/superstruct").Struct<string, null>;
export declare type CaipAssetType = Infer<typeof CaipAssetTypeStruct>;

@@ -10,3 +10,3 @@ /**

*/
export declare const CaipAssetIdStruct: import("superstruct").Struct<string, null>;
export declare const CaipAssetIdStruct: import("@metamask/superstruct").Struct<string, null>;
export declare type CaipAssetId = Infer<typeof CaipAssetIdStruct>;

@@ -13,0 +13,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCaipAssetId = exports.isCaipAssetType = exports.CaipAssetIdStruct = exports.CaipAssetTypeStruct = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const superstruct_2 = require("../superstruct");

@@ -6,0 +6,0 @@ const CAIP_ASSET_TYPE_REGEX = /^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u;

@@ -1,3 +0,3 @@

import type { Infer } from 'superstruct';
export declare const KeyringAccountDataStruct: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
import type { Infer } from '@metamask/superstruct';
export declare const KeyringAccountDataStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
/**

@@ -4,0 +4,0 @@ * Response to a call to `exportAccount`.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyringAccountDataStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
exports.KeyringAccountDataStruct = (0, superstruct_1.record)((0, superstruct_1.string)(), utils_1.JsonStruct);
//# sourceMappingURL=export.js.map

@@ -1,3 +0,3 @@

import type { Infer } from 'superstruct';
export declare const KeyringRequestStruct: import("superstruct").Struct<{
import type { Infer } from '@metamask/superstruct';
export declare const KeyringRequestStruct: import("@metamask/superstruct").Struct<{
id: string;

@@ -14,20 +14,20 @@ scope: string;

*/
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
/**
* Request's scope (CAIP-2 chain ID).
*/
scope: import("superstruct").Struct<string, null>;
scope: import("@metamask/superstruct").Struct<string, null>;
/**
* Account ID (UUIDv4).
*/
account: import("superstruct").Struct<string, null>;
account: import("@metamask/superstruct").Struct<string, null>;
/**
* Inner request sent by the client application.
*/
request: import("superstruct").Struct<{
request: import("@metamask/superstruct").Struct<{
method: string;
params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
}, {
method: import("superstruct").Struct<string, null>;
params: import("superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
method: import("@metamask/superstruct").Struct<string, null>;
params: import("@metamask/superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
}>;

@@ -34,0 +34,0 @@ }>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyringRequestStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const superstruct_2 = require("../superstruct");

@@ -7,0 +7,0 @@ const utils_2 = require("../utils");

@@ -1,3 +0,3 @@

import type { Infer } from 'superstruct';
export declare const KeyringResponseStruct: import("superstruct").Struct<{
import type { Infer } from '@metamask/superstruct';
export declare const KeyringResponseStruct: import("@metamask/superstruct").Struct<{
pending: true;

@@ -4,0 +4,0 @@ redirect?: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyringResponseStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const superstruct_2 = require("../superstruct");

@@ -7,0 +7,0 @@ exports.KeyringResponseStruct = (0, superstruct_1.union)([

@@ -1,3 +0,3 @@

import type { Infer } from 'superstruct';
export declare const BtcP2wpkhAddressStruct: import("superstruct").Struct<string, null>;
import type { Infer } from '@metamask/superstruct';
export declare const BtcP2wpkhAddressStruct: import("@metamask/superstruct").Struct<string, null>;
/**

@@ -9,3 +9,3 @@ * Supported Bitcoin methods.

}
export declare const BtcP2wpkhAccountStruct: import("superstruct").Struct<{
export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Struct<{
type: "bip122:p2wpkh";

@@ -20,16 +20,16 @@ id: string;

*/
address: import("superstruct").Struct<string, null>;
address: import("@metamask/superstruct").Struct<string, null>;
/**
* Account type.
*/
type: import("superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
/**
* Account supported methods.
*/
methods: import("superstruct").Struct<"btc_sendmany"[], import("superstruct").Struct<"btc_sendmany", {
methods: import("@metamask/superstruct").Struct<"btc_sendmany"[], import("@metamask/superstruct").Struct<"btc_sendmany", {
btc_sendmany: "btc_sendmany";
}>>;
id: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
id: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
}>;
export declare type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BtcP2wpkhAccountStruct = exports.BtcMethod = exports.BtcP2wpkhAddressStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const bech32_1 = require("bech32");
const superstruct_1 = require("superstruct");
const api_1 = require("../api");

@@ -7,0 +7,0 @@ const superstruct_2 = require("../superstruct");

@@ -1,2 +0,2 @@

import { type Infer } from 'superstruct';
import { type Infer } from '@metamask/superstruct';
/**

@@ -6,3 +6,3 @@ * Struct of a UserOperation as defined by ERC-4337.

*/
export declare const EthUserOperationStruct: import("superstruct").Struct<{
export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
sender: string;

@@ -20,13 +20,13 @@ nonce: string;

}, {
sender: import("superstruct").Struct<string, null>;
nonce: import("superstruct").Struct<string, null>;
initCode: import("superstruct").Struct<string, null>;
callData: import("superstruct").Struct<string, null>;
callGasLimit: import("superstruct").Struct<string, null>;
verificationGasLimit: import("superstruct").Struct<string, null>;
preVerificationGas: import("superstruct").Struct<string, null>;
maxFeePerGas: import("superstruct").Struct<string, null>;
maxPriorityFeePerGas: import("superstruct").Struct<string, null>;
paymasterAndData: import("superstruct").Struct<string, null>;
signature: import("superstruct").Struct<string, null>;
sender: import("@metamask/superstruct").Struct<string, null>;
nonce: import("@metamask/superstruct").Struct<string, null>;
initCode: import("@metamask/superstruct").Struct<string, null>;
callData: import("@metamask/superstruct").Struct<string, null>;
callGasLimit: import("@metamask/superstruct").Struct<string, null>;
verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
maxFeePerGas: import("@metamask/superstruct").Struct<string, null>;
maxPriorityFeePerGas: import("@metamask/superstruct").Struct<string, null>;
paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
signature: import("@metamask/superstruct").Struct<string, null>;
}>;

@@ -38,3 +38,3 @@ export declare type EthUserOperation = Infer<typeof EthUserOperationStruct>;

*/
export declare const EthBaseTransactionStruct: import("superstruct").Struct<{
export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
value: string;

@@ -47,14 +47,14 @@ data: string;

*/
to: import("superstruct").Struct<string, null>;
to: import("@metamask/superstruct").Struct<string, null>;
/**
* Amount of wei to transfer to the recipient.
*/
value: import("superstruct").Struct<string, null>;
value: import("@metamask/superstruct").Struct<string, null>;
/**
* Data to pass to the recipient.
*/
data: import("superstruct").Struct<string, null>;
data: import("@metamask/superstruct").Struct<string, null>;
}>;
export declare type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;
export declare const EthBaseUserOperationStruct: import("superstruct").Struct<{
export declare const EthBaseUserOperationStruct: import("@metamask/superstruct").Struct<{
nonce: string;

@@ -72,6 +72,6 @@ initCode: string;

}, {
nonce: import("superstruct").Struct<string, null>;
initCode: import("superstruct").Struct<string, null>;
callData: import("superstruct").Struct<string, null>;
gasLimits: import("superstruct").Struct<import("../../superstruct").ExactOptionalTag | {
nonce: import("@metamask/superstruct").Struct<string, null>;
initCode: import("@metamask/superstruct").Struct<string, null>;
callData: import("@metamask/superstruct").Struct<string, null>;
gasLimits: import("@metamask/superstruct").Struct<import("../../superstruct").ExactOptionalTag | {
callGasLimit: string;

@@ -81,12 +81,12 @@ verificationGasLimit: string;

}, {
callGasLimit: import("superstruct").Struct<string, null>;
verificationGasLimit: import("superstruct").Struct<string, null>;
preVerificationGas: import("superstruct").Struct<string, null>;
callGasLimit: import("@metamask/superstruct").Struct<string, null>;
verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
}>;
dummyPaymasterAndData: import("superstruct").Struct<string, null>;
dummySignature: import("superstruct").Struct<string, null>;
bundlerUrl: import("superstruct").Struct<string, null>;
dummyPaymasterAndData: import("@metamask/superstruct").Struct<string, null>;
dummySignature: import("@metamask/superstruct").Struct<string, null>;
bundlerUrl: import("@metamask/superstruct").Struct<string, null>;
}>;
export declare type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;
export declare const EthUserOperationPatchStruct: import("superstruct").Struct<{
export declare const EthUserOperationPatchStruct: import("@metamask/superstruct").Struct<{
paymasterAndData: string;

@@ -97,7 +97,7 @@ callGasLimit?: string;

}, {
paymasterAndData: import("superstruct").Struct<string, null>;
callGasLimit: import("superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
verificationGasLimit: import("superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
preVerificationGas: import("superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
callGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
verificationGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
preVerificationGas: import("@metamask/superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
}>;
export declare type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;

@@ -1,5 +0,5 @@

import type { Infer } from 'superstruct';
export declare const EthBytesStruct: import("superstruct").Struct<string, null>;
export declare const EthAddressStruct: import("superstruct").Struct<string, null>;
export declare const EthUint256Struct: import("superstruct").Struct<string, null>;
import type { Infer } from '@metamask/superstruct';
export declare const EthBytesStruct: import("@metamask/superstruct").Struct<string, null>;
export declare const EthAddressStruct: import("@metamask/superstruct").Struct<string, null>;
export declare const EthUint256Struct: import("@metamask/superstruct").Struct<string, null>;
/**

@@ -19,3 +19,3 @@ * Supported Ethereum methods.

}
export declare const EthEoaAccountStruct: import("superstruct").Struct<{
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
type: "eip155:eoa";

@@ -30,11 +30,11 @@ id: string;

*/
address: import("superstruct").Struct<string, null>;
address: import("@metamask/superstruct").Struct<string, null>;
/**
* Account type.
*/
type: import("superstruct").Struct<"eip155:eoa", "eip155:eoa">;
type: import("@metamask/superstruct").Struct<"eip155:eoa", "eip155:eoa">;
/**
* Account supported methods.
*/
methods: import("superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
personal_sign: "personal_sign";

@@ -47,7 +47,7 @@ eth_sign: "eth_sign";

}>>;
id: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
id: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
}>;
export declare type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
export declare const EthErc4337AccountStruct: import("superstruct").Struct<{
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
type: "eip155:erc4337";

@@ -62,11 +62,11 @@ id: string;

*/
address: import("superstruct").Struct<string, null>;
address: import("@metamask/superstruct").Struct<string, null>;
/**
* Account type.
*/
type: import("superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
/**
* Account supported methods.
*/
methods: import("superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
personal_sign: "personal_sign";

@@ -81,5 +81,5 @@ eth_sign: "eth_sign";

}>>;
id: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
id: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
}>;
export declare type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EthErc4337AccountStruct = exports.EthEoaAccountStruct = exports.EthMethod = exports.EthUint256Struct = exports.EthAddressStruct = exports.EthBytesStruct = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const api_1 = require("../api");

@@ -6,0 +6,0 @@ const superstruct_2 = require("../superstruct");

@@ -1,3 +0,3 @@

import type { Infer } from 'superstruct';
export declare const ListAccountsRequestStruct: import("superstruct").Struct<{
import type { Infer } from '@metamask/superstruct';
export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -7,8 +7,8 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
export declare const ListAccountsResponseStruct: import("superstruct").Struct<{
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -19,3 +19,3 @@ id: string;

methods: string[];
}[], import("superstruct").Struct<{
}[], import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -27,4 +27,4 @@ id: string;

}, {
id: import("superstruct").Struct<string, null>;
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
id: import("@metamask/superstruct").Struct<string, null>;
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -34,8 +34,8 @@ "eip155:erc4337": "eip155:erc4337";

}>;
address: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
address: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>>;
export declare type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
export declare const GetAccountRequestStruct: import("superstruct").Struct<{
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -48,13 +48,13 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
params: import("@metamask/superstruct").Struct<{
id: string;
}, {
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
export declare const GetAccountResponseStruct: import("superstruct").Struct<{
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -66,4 +66,4 @@ id: string;

}, {
id: import("superstruct").Struct<string, null>;
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
id: import("@metamask/superstruct").Struct<string, null>;
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -73,8 +73,8 @@ "eip155:erc4337": "eip155:erc4337";

}>;
address: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
address: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;
export declare type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
export declare const CreateAccountRequestStruct: import("superstruct").Struct<{
export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -87,13 +87,13 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
params: import("@metamask/superstruct").Struct<{
options: Record<string, import("@metamask/utils").Json>;
}, {
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
export declare const CreateAccountResponseStruct: import("superstruct").Struct<{
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -105,4 +105,4 @@ id: string;

}, {
id: import("superstruct").Struct<string, null>;
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
id: import("@metamask/superstruct").Struct<string, null>;
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -112,8 +112,8 @@ "eip155:erc4337": "eip155:erc4337";

}>;
address: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
address: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;
export declare type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
export declare const GetAccountBalancesRequestStruct: import("superstruct").Struct<{
export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -127,15 +127,15 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
params: import("@metamask/superstruct").Struct<{
id: string;
assets: string[];
}, {
id: import("superstruct").Struct<string, null>;
assets: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
id: import("@metamask/superstruct").Struct<string, null>;
assets: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type GetAccountBalancesRequest = Infer<typeof GetAccountBalancesRequestStruct>;
export declare const GetAccountBalancesResponseStruct: import("superstruct").Struct<Record<string, {
export declare const GetAccountBalancesResponseStruct: import("@metamask/superstruct").Struct<Record<string, {
amount: string;

@@ -145,3 +145,3 @@ unit: string;

export declare type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
export declare const FilterAccountChainsStruct: import("superstruct").Struct<{
export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -155,17 +155,17 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
params: import("@metamask/superstruct").Struct<{
id: string;
chains: string[];
}, {
id: import("superstruct").Struct<string, null>;
chains: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
id: import("@metamask/superstruct").Struct<string, null>;
chains: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>;
export declare const FilterAccountChainsResponseStruct: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
export declare type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
export declare const UpdateAccountRequestStruct: import("superstruct").Struct<{
export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -184,4 +184,4 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
params: import("@metamask/superstruct").Struct<{
account: {

@@ -195,3 +195,3 @@ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

}, {
account: import("superstruct").Struct<{
account: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -203,4 +203,4 @@ id: string;

}, {
id: import("superstruct").Struct<string, null>;
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
id: import("@metamask/superstruct").Struct<string, null>;
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -210,14 +210,14 @@ "eip155:erc4337": "eip155:erc4337";

}>;
address: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
address: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
export declare const UpdateAccountResponseStruct: import("superstruct").Struct<null, null>;
export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
export declare type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
export declare const DeleteAccountRequestStruct: import("superstruct").Struct<{
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -230,15 +230,15 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
params: import("@metamask/superstruct").Struct<{
id: string;
}, {
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
export declare const DeleteAccountResponseStruct: import("superstruct").Struct<null, null>;
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
export declare type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
export declare const ExportAccountRequestStruct: import("superstruct").Struct<{
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -251,15 +251,15 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
params: import("@metamask/superstruct").Struct<{
id: string;
}, {
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
export declare const ExportAccountResponseStruct: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
export declare type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
export declare const ListRequestsRequestStruct: import("superstruct").Struct<{
export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -269,8 +269,8 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
export declare const ListRequestsResponseStruct: import("superstruct").Struct<{
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
id: string;

@@ -283,3 +283,3 @@ scope: string;

};
}[], import("superstruct").Struct<{
}[], import("@metamask/superstruct").Struct<{
id: string;

@@ -293,15 +293,15 @@ scope: string;

}, {
id: import("superstruct").Struct<string, null>;
scope: import("superstruct").Struct<string, null>;
account: import("superstruct").Struct<string, null>;
request: import("superstruct").Struct<{
id: import("@metamask/superstruct").Struct<string, null>;
scope: import("@metamask/superstruct").Struct<string, null>;
account: import("@metamask/superstruct").Struct<string, null>;
request: import("@metamask/superstruct").Struct<{
method: string;
params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
}, {
method: import("superstruct").Struct<string, null>;
params: import("superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
method: import("@metamask/superstruct").Struct<string, null>;
params: import("@metamask/superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
}>;
}>>;
export declare type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
export declare const GetRequestRequestStruct: import("superstruct").Struct<{
export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -314,13 +314,13 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
params: import("@metamask/superstruct").Struct<{
id: string;
}, {
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
export declare const GetRequestResponseStruct: import("superstruct").Struct<{
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
id: string;

@@ -334,15 +334,15 @@ scope: string;

}, {
id: import("superstruct").Struct<string, null>;
scope: import("superstruct").Struct<string, null>;
account: import("superstruct").Struct<string, null>;
request: import("superstruct").Struct<{
id: import("@metamask/superstruct").Struct<string, null>;
scope: import("@metamask/superstruct").Struct<string, null>;
account: import("@metamask/superstruct").Struct<string, null>;
request: import("@metamask/superstruct").Struct<{
method: string;
params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
}, {
method: import("superstruct").Struct<string, null>;
params: import("superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
method: import("@metamask/superstruct").Struct<string, null>;
params: import("@metamask/superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
}>;
}>;
export declare type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
export declare const SubmitRequestRequestStruct: import("superstruct").Struct<{
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -361,4 +361,4 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
params: import("@metamask/superstruct").Struct<{
id: string;

@@ -372,18 +372,18 @@ scope: string;

}, {
id: import("superstruct").Struct<string, null>;
scope: import("superstruct").Struct<string, null>;
account: import("superstruct").Struct<string, null>;
request: import("superstruct").Struct<{
id: import("@metamask/superstruct").Struct<string, null>;
scope: import("@metamask/superstruct").Struct<string, null>;
account: import("@metamask/superstruct").Struct<string, null>;
request: import("@metamask/superstruct").Struct<{
method: string;
params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
}, {
method: import("superstruct").Struct<string, null>;
params: import("superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
method: import("@metamask/superstruct").Struct<string, null>;
params: import("@metamask/superstruct").Struct<import("../superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
}>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type SubmitRequestRequest = Infer<typeof SubmitRequestRequestStruct>;
export declare const SubmitRequestResponseStruct: import("superstruct").Struct<{
export declare const SubmitRequestResponseStruct: import("@metamask/superstruct").Struct<{
pending: true;

@@ -399,3 +399,3 @@ redirect?: {

export declare type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
export declare const ApproveRequestRequestStruct: import("superstruct").Struct<{
export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -409,17 +409,17 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
params: import("@metamask/superstruct").Struct<{
id: string;
data: Record<string, import("@metamask/utils").Json>;
}, {
id: import("superstruct").Struct<string, null>;
data: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
id: import("@metamask/superstruct").Struct<string, null>;
data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
export declare const ApproveRequestResponseStruct: import("superstruct").Struct<null, null>;
export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
export declare type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
export declare const RejectRequestRequestStruct: import("superstruct").Struct<{
export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -432,13 +432,13 @@ id: string | number | null;

}, {
method: import("superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
params: import("@metamask/superstruct").Struct<{
id: string;
}, {
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
}>;
export declare type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;
export declare const RejectRequestResponseStruct: import("superstruct").Struct<null, null>;
export declare const RejectRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
export declare type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RejectRequestResponseStruct = exports.RejectRequestRequestStruct = exports.ApproveRequestResponseStruct = exports.ApproveRequestRequestStruct = exports.SubmitRequestResponseStruct = exports.SubmitRequestRequestStruct = exports.GetRequestResponseStruct = exports.GetRequestRequestStruct = exports.ListRequestsResponseStruct = exports.ListRequestsRequestStruct = exports.ExportAccountResponseStruct = exports.ExportAccountRequestStruct = exports.DeleteAccountResponseStruct = exports.DeleteAccountRequestStruct = exports.UpdateAccountResponseStruct = exports.UpdateAccountRequestStruct = exports.FilterAccountChainsResponseStruct = exports.FilterAccountChainsStruct = exports.GetAccountBalancesResponseStruct = exports.GetAccountBalancesRequestStruct = exports.CreateAccountResponseStruct = exports.CreateAccountRequestStruct = exports.GetAccountResponseStruct = exports.GetAccountRequestStruct = exports.ListAccountsResponseStruct = exports.ListAccountsRequestStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const api_1 = require("../api");

@@ -7,0 +7,0 @@ const superstruct_2 = require("../superstruct");

@@ -1,2 +0,2 @@

export declare const AccountCreatedEventStruct: import("superstruct").Struct<{
export declare const AccountCreatedEventStruct: import("@metamask/superstruct").Struct<{
method: "notify:accountCreated";

@@ -15,4 +15,4 @@ params: {

}, {
method: import("superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
params: import("@metamask/superstruct").Struct<{
account: {

@@ -31,3 +31,3 @@ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

*/
account: import("superstruct").Struct<{
account: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -39,4 +39,4 @@ id: string;

}, {
id: import("superstruct").Struct<string, null>;
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
id: import("@metamask/superstruct").Struct<string, null>;
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -46,5 +46,5 @@ "eip155:erc4337": "eip155:erc4337";

}>;
address: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
address: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;

@@ -58,3 +58,3 @@ /**

*/
accountNameSuggestion: import("superstruct").Struct<string | import("../superstruct").ExactOptionalTag, null>;
accountNameSuggestion: import("@metamask/superstruct").Struct<string | import("../superstruct").ExactOptionalTag, null>;
/**

@@ -64,6 +64,6 @@ * Instructs MetaMask to display the add account confirmation dialog in the UI.

*/
displayConfirmation: import("superstruct").Struct<boolean | import("../superstruct").ExactOptionalTag, null>;
displayConfirmation: import("@metamask/superstruct").Struct<boolean | import("../superstruct").ExactOptionalTag, null>;
}>;
}>;
export declare const AccountUpdatedEventStruct: import("superstruct").Struct<{
export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").Struct<{
method: "notify:accountUpdated";

@@ -80,4 +80,4 @@ params: {

}, {
method: import("superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
params: import("@metamask/superstruct").Struct<{
account: {

@@ -94,3 +94,3 @@ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

*/
account: import("superstruct").Struct<{
account: import("@metamask/superstruct").Struct<{
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";

@@ -102,4 +102,4 @@ id: string;

}, {
id: import("superstruct").Struct<string, null>;
type: import("superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
id: import("@metamask/superstruct").Struct<string, null>;
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
"eip155:eoa": "eip155:eoa";

@@ -109,9 +109,9 @@ "eip155:erc4337": "eip155:erc4337";

}>;
address: import("superstruct").Struct<string, null>;
options: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
address: import("@metamask/superstruct").Struct<string, null>;
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
}>;
}>;
}>;
export declare const AccountDeletedEventStruct: import("superstruct").Struct<{
export declare const AccountDeletedEventStruct: import("@metamask/superstruct").Struct<{
method: "notify:accountDeleted";

@@ -122,4 +122,4 @@ params: {

}, {
method: import("superstruct").Struct<"notify:accountDeleted", "notify:accountDeleted">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"notify:accountDeleted", "notify:accountDeleted">;
params: import("@metamask/superstruct").Struct<{
id: string;

@@ -130,6 +130,6 @@ }, {

*/
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
}>;
export declare const RequestApprovedEventStruct: import("superstruct").Struct<{
export declare const RequestApprovedEventStruct: import("@metamask/superstruct").Struct<{
method: "notify:requestApproved";

@@ -141,4 +141,4 @@ params: {

}, {
method: import("superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
params: import("@metamask/superstruct").Struct<{
id: string;

@@ -150,10 +150,10 @@ result: import("@metamask/utils").Json;

*/
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
/**
* Request result.
*/
result: import("superstruct").Struct<import("@metamask/utils").Json, unknown>;
result: import("@metamask/superstruct").Struct<import("@metamask/utils").Json, unknown>;
}>;
}>;
export declare const RequestRejectedEventStruct: import("superstruct").Struct<{
export declare const RequestRejectedEventStruct: import("@metamask/superstruct").Struct<{
method: "notify:requestRejected";

@@ -164,4 +164,4 @@ params: {

}, {
method: import("superstruct").Struct<"notify:requestRejected", "notify:requestRejected">;
params: import("superstruct").Struct<{
method: import("@metamask/superstruct").Struct<"notify:requestRejected", "notify:requestRejected">;
params: import("@metamask/superstruct").Struct<{
id: string;

@@ -172,4 +172,4 @@ }, {

*/
id: import("superstruct").Struct<string, null>;
id: import("@metamask/superstruct").Struct<string, null>;
}>;
}>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestRejectedEventStruct = exports.RequestApprovedEventStruct = exports.AccountDeletedEventStruct = exports.AccountUpdatedEventStruct = exports.AccountCreatedEventStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const api_1 = require("../api");

@@ -7,0 +7,0 @@ const events_1 = require("../events");

@@ -1,2 +0,2 @@

import type { Infer, Struct } from 'superstruct';
import type { Infer, Struct } from '@metamask/superstruct';
import { BtcAccountType, EthAccountType } from '../api';

@@ -3,0 +3,0 @@ export declare type InternalAccountType = EthAccountType | BtcAccountType;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InternalAccountStruct = exports.InternalAccountStructs = exports.InternalBtcP2wpkhAccountStruct = exports.InternalEthErc4337AccountStruct = exports.InternalEthEoaAccountStruct = exports.InternalAccountMetadataStruct = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const api_1 = require("../api");

@@ -6,0 +6,0 @@ const types_1 = require("../btc/types");

@@ -1,3 +0,3 @@

import type { Infer } from 'superstruct';
export declare const JsonRpcRequestStruct: import("superstruct").Struct<{
import type { Infer } from '@metamask/superstruct';
export declare const JsonRpcRequestStruct: import("@metamask/superstruct").Struct<{
jsonrpc: "2.0";

@@ -8,6 +8,6 @@ id: string | number | null;

}, {
jsonrpc: import("superstruct").Struct<"2.0", "2.0">;
id: import("superstruct").Struct<string | number | null, null>;
method: import("superstruct").Struct<string, null>;
params: import("superstruct").Struct<import("./superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
id: import("@metamask/superstruct").Struct<string | number | null, null>;
method: import("@metamask/superstruct").Struct<string, null>;
params: import("@metamask/superstruct").Struct<import("./superstruct").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
}>;

@@ -14,0 +14,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonRpcRequestStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const superstruct_2 = require("./superstruct");

@@ -7,0 +7,0 @@ exports.JsonRpcRequestStruct = (0, superstruct_2.object)({

@@ -16,3 +16,3 @@ "use strict";

exports.KeyringClient = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const uuid_1 = require("uuid");

@@ -19,0 +19,0 @@ const api_1 = require("./internal/api");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleKeyringRequest = exports.MethodNotSupportedError = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const api_1 = require("./internal/api");

@@ -6,0 +6,0 @@ const rpc_1 = require("./internal/rpc");

@@ -1,4 +0,3 @@

import type { Infer } from 'superstruct';
import { Struct } from 'superstruct';
import type { ObjectSchema, OmitBy, Optionalize, PickBy, Simplify } from 'superstruct/dist/utils';
import { Struct } from '@metamask/superstruct';
import type { Infer, ObjectSchema, OmitBy, Optionalize, PickBy, Simplify } from '@metamask/superstruct';
declare const ExactOptionalSymbol: unique symbol;

@@ -5,0 +4,0 @@ export declare type ExactOptionalTag = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.strictMask = exports.definePattern = exports.exactOptional = exports.object = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
/**

@@ -6,0 +6,0 @@ * Change the return type of a superstruct object struct to support exact

@@ -1,6 +0,6 @@

import { type Infer } from 'superstruct';
import { type Infer } from '@metamask/superstruct';
/**
* UUIDv4 struct.
*/
export declare const UuidStruct: import("superstruct").Struct<string, null>;
export declare const UuidStruct: import("@metamask/superstruct").Struct<string, null>;
/**

@@ -12,7 +12,7 @@ * Validates if a given value is a valid URL.

*/
export declare const UrlStruct: import("superstruct").Struct<string, null>;
export declare const UrlStruct: import("@metamask/superstruct").Struct<string, null>;
/**
* A string which contains a positive float number.
*/
export declare const StringNumberStruct: import("superstruct").Struct<string, null>;
export declare const StringNumberStruct: import("@metamask/superstruct").Struct<string, null>;
export declare type StringNumber = Infer<typeof StringNumberStruct>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringNumberStruct = exports.UrlStruct = exports.UuidStruct = void 0;
const superstruct_1 = require("superstruct");
const superstruct_1 = require("@metamask/superstruct");
const superstruct_2 = require("../superstruct");

@@ -6,0 +6,0 @@ /**

{
"name": "@metamask/keyring-api",
"version": "8.0.0",
"version": "8.0.1",
"description": "MetaMask Keyring API",

@@ -41,7 +41,7 @@ "keywords": [

"dependencies": {
"@metamask/snaps-sdk": "^4.2.0",
"@metamask/utils": "^8.4.0",
"@metamask/snaps-sdk": "^6.0.0",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^9.1.0",
"@types/uuid": "^9.0.8",
"bech32": "^2.0.0",
"superstruct": "^1.0.3",
"uuid": "^9.0.1"

@@ -57,3 +57,3 @@ },

"@metamask/eslint-config-typescript": "^12.1.0",
"@metamask/providers": "^17.0.0",
"@metamask/providers": "^17.1.1",
"@types/jest": "^29.5.12",

@@ -60,0 +60,0 @@ "@types/node": "^20.12.12",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc