@metamask-previews/keyring-internal-api 0.0.1-672cc7b → 0.0.1-b85bfaa
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/dist/{internal/api.js → api.cjs} +2 -2
- package/dist/api.cjs.map +1 -0
- package/dist/{internal/api.d.ts → api.d.cts} +46 -41
- package/dist/api.d.cts.map +1 -0
- package/dist/api.d.mts +420 -0
- package/dist/api.d.mts.map +1 -0
- package/dist/api.mjs +135 -0
- package/dist/api.mjs.map +1 -0
- package/dist/btc/{index.js → index.cjs} +2 -2
- package/dist/btc/index.cjs.map +1 -0
- package/dist/btc/index.d.cts +2 -0
- package/dist/btc/index.d.cts.map +1 -0
- package/dist/btc/index.d.mts +2 -0
- package/dist/btc/index.d.mts.map +1 -0
- package/dist/btc/index.mjs +2 -0
- package/dist/btc/index.mjs.map +1 -0
- package/dist/btc/{types.js → types.cjs} +4 -4
- package/dist/btc/types.cjs.map +1 -0
- package/dist/btc/{types.d.ts → types.d.cts} +8 -7
- package/dist/btc/types.d.cts.map +1 -0
- package/dist/btc/types.d.mts +34 -0
- package/dist/btc/types.d.mts.map +1 -0
- package/dist/btc/types.mjs +37 -0
- package/dist/btc/types.mjs.map +1 -0
- package/dist/{internal/eth/EthKeyring.js → eth/EthKeyring.cjs} +1 -1
- package/dist/eth/EthKeyring.cjs.map +1 -0
- package/dist/{internal/eth/EthKeyring.d.ts → eth/EthKeyring.d.cts} +5 -4
- package/dist/eth/EthKeyring.d.cts.map +1 -0
- package/dist/eth/EthKeyring.d.mts +34 -0
- package/dist/eth/EthKeyring.d.mts.map +1 -0
- package/dist/eth/EthKeyring.mjs +2 -0
- package/dist/eth/EthKeyring.mjs.map +1 -0
- package/dist/eth/erc4337/{index.js → index.cjs} +2 -2
- package/dist/eth/erc4337/index.cjs.map +1 -0
- package/dist/eth/erc4337/index.d.cts +2 -0
- package/dist/eth/erc4337/index.d.cts.map +1 -0
- package/dist/eth/erc4337/index.d.mts +2 -0
- package/dist/eth/erc4337/index.d.mts.map +1 -0
- package/dist/eth/erc4337/index.mjs +2 -0
- package/dist/eth/erc4337/index.mjs.map +1 -0
- package/dist/eth/erc4337/{types.js → types.cjs} +2 -2
- package/dist/eth/erc4337/types.cjs.map +1 -0
- package/dist/eth/erc4337/{types.d.ts → types.d.cts} +7 -6
- package/dist/eth/erc4337/types.d.cts.map +1 -0
- package/dist/eth/erc4337/types.d.mts +98 -0
- package/dist/eth/erc4337/types.d.mts.map +1 -0
- package/dist/eth/erc4337/types.mjs +58 -0
- package/dist/eth/erc4337/types.mjs.map +1 -0
- package/dist/{index.js → eth/index.cjs} +4 -4
- package/dist/eth/index.cjs.map +1 -0
- package/dist/eth/index.d.cts +5 -0
- package/dist/eth/index.d.cts.map +1 -0
- package/dist/eth/index.d.mts +5 -0
- package/dist/eth/index.d.mts.map +1 -0
- package/dist/eth/index.mjs +4 -0
- package/dist/eth/index.mjs.map +1 -0
- package/dist/eth/{types.js → types.cjs} +2 -2
- package/dist/eth/types.cjs.map +1 -0
- package/dist/eth/{types.d.ts → types.d.cts} +6 -5
- package/dist/eth/types.d.cts.map +1 -0
- package/dist/eth/types.d.mts +81 -0
- package/dist/eth/types.d.mts.map +1 -0
- package/dist/eth/types.mjs +70 -0
- package/dist/eth/types.mjs.map +1 -0
- package/dist/eth/{utils.js → utils.cjs} +2 -3
- package/dist/eth/{utils.js.map → utils.cjs.map} +1 -1
- package/dist/eth/{utils.d.ts → utils.d.cts} +2 -1
- package/dist/eth/utils.d.cts.map +1 -0
- package/dist/eth/utils.d.mts +9 -0
- package/dist/eth/utils.d.mts.map +1 -0
- package/dist/eth/utils.mjs +11 -0
- package/dist/eth/utils.mjs.map +1 -0
- package/dist/{internal/events.js → events.cjs} +2 -2
- package/dist/events.cjs.map +1 -0
- package/dist/{internal/events.d.ts → events.d.cts} +11 -8
- package/dist/events.d.cts.map +1 -0
- package/dist/events.d.mts +172 -0
- package/dist/events.d.mts.map +1 -0
- package/dist/events.mjs +80 -0
- package/dist/events.mjs.map +1 -0
- package/dist/{eth/index.js → index.cjs} +8 -4
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{internal/rpc.js → rpc.cjs} +4 -4
- package/dist/rpc.cjs.map +1 -0
- package/dist/{internal/rpc.d.ts → rpc.d.cts} +1 -0
- package/dist/rpc.d.cts.map +1 -0
- package/dist/rpc.d.mts +26 -0
- package/dist/rpc.d.mts.map +1 -0
- package/dist/rpc.mjs +29 -0
- package/dist/rpc.mjs.map +1 -0
- package/dist/{internal/eth/index.js → sol/index.cjs} +2 -2
- package/dist/sol/index.cjs.map +1 -0
- package/dist/sol/index.d.cts +2 -0
- package/dist/sol/index.d.cts.map +1 -0
- package/dist/sol/index.d.mts +2 -0
- package/dist/sol/index.d.mts.map +1 -0
- package/dist/sol/index.mjs +2 -0
- package/dist/sol/index.mjs.map +1 -0
- package/dist/sol/types.cjs +36 -0
- package/dist/sol/types.cjs.map +1 -0
- package/dist/sol/types.d.cts +39 -0
- package/dist/sol/types.d.cts.map +1 -0
- package/dist/sol/types.d.mts +39 -0
- package/dist/sol/types.d.mts.map +1 -0
- package/dist/sol/types.mjs +33 -0
- package/dist/sol/types.mjs.map +1 -0
- package/dist/{internal/types.js → types.cjs} +26 -19
- package/dist/types.cjs.map +1 -0
- package/dist/{internal/types.d.ts → types.d.cts} +106 -44
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +392 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +53 -0
- package/dist/types.mjs.map +1 -0
- package/package.json +30 -18
- package/dist/btc/index.d.ts +0 -1
- package/dist/btc/index.js.map +0 -1
- package/dist/btc/types.js.map +0 -1
- package/dist/eth/erc4337/index.d.ts +0 -1
- package/dist/eth/erc4337/index.js.map +0 -1
- package/dist/eth/erc4337/types.js.map +0 -1
- package/dist/eth/index.d.ts +0 -3
- package/dist/eth/index.js.map +0 -1
- package/dist/eth/types.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js.map +0 -1
- package/dist/internal/api.js.map +0 -1
- package/dist/internal/eth/EthKeyring.js.map +0 -1
- package/dist/internal/eth/index.d.ts +0 -1
- package/dist/internal/eth/index.js.map +0 -1
- package/dist/internal/events.js.map +0 -1
- package/dist/internal/index.d.ts +0 -5
- package/dist/internal/index.js +0 -22
- package/dist/internal/index.js.map +0 -1
- package/dist/internal/rpc.js.map +0 -1
- package/dist/internal/types.js.map +0 -1
|
@@ -5,7 +5,7 @@ const keyring_api_1 = require("@metamask/keyring-api");
|
|
|
5
5
|
const keyring_utils_1 = require("@metamask/keyring-utils");
|
|
6
6
|
const superstruct_1 = require("@metamask/superstruct");
|
|
7
7
|
const utils_1 = require("@metamask/utils");
|
|
8
|
-
const rpc_1 = require("./rpc");
|
|
8
|
+
const rpc_1 = require("./rpc.cjs");
|
|
9
9
|
const CommonHeader = {
|
|
10
10
|
jsonrpc: (0, superstruct_1.literal)('2.0'),
|
|
11
11
|
id: (0, superstruct_1.union)([(0, superstruct_1.string)(), (0, superstruct_1.number)(), (0, superstruct_1.literal)(null)]),
|
|
@@ -135,4 +135,4 @@ exports.RejectRequestRequestStruct = (0, keyring_utils_1.object)({
|
|
|
135
135
|
}),
|
|
136
136
|
});
|
|
137
137
|
exports.RejectRequestResponseStruct = (0, superstruct_1.literal)(null);
|
|
138
|
-
//# sourceMappingURL=api.
|
|
138
|
+
//# sourceMappingURL=api.cjs.map
|
package/dist/api.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.cjs","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";;;AAAA,uDAO+B;AAC/B,2DAA6D;AAE7D,uDAO+B;AAC/B,2CAA6C;AAE7C,mCAAyC;AAEzC,MAAM,YAAY,GAAG;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AC;KACnC,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,4BAA4B,GAAG,IAAA,qBAAO,EAAC,IAAI,CAAC,CAAC;AAI1D,+EAA+E;AAC/E,iBAAiB;AAEJ,QAAA,0BAA0B,GAAG,IAAA,sBAAM,EAAC;IAC/C,GAAG,YAAY;IACf,MAAM,EAAE,IAAA,qBAAO,EAAC,uBAAuB,CAAC;IACxC,MAAM,EAAE,IAAA,sBAAM,EAAC;QACb,EAAE,EAAE,0BAAU;KACf,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,2BAA2B,GAAG,IAAA,qBAAO,EAAC,IAAI,CAAC,CAAC","sourcesContent":["import {\n BalanceStruct,\n CaipAssetTypeStruct,\n KeyringAccountDataStruct,\n KeyringAccountStruct,\n KeyringRequestStruct,\n KeyringResponseStruct,\n} from '@metamask/keyring-api';\nimport { object, UuidStruct } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport {\n array,\n literal,\n number,\n record,\n string,\n union,\n} from '@metamask/superstruct';\nimport { JsonStruct } from '@metamask/utils';\n\nimport { KeyringRpcMethod } from './rpc';\n\nconst CommonHeader = {\n jsonrpc: literal('2.0'),\n id: union([string(), number(), literal(null)]),\n};\n\n// ----------------------------------------------------------------------------\n// List accounts\n\nexport const ListAccountsRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_listAccounts'),\n});\n\nexport type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;\n\nexport const ListAccountsResponseStruct = array(KeyringAccountStruct);\n\nexport type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Get account\n\nexport const GetAccountRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_getAccount'),\n params: object({\n id: UuidStruct,\n }),\n});\n\nexport type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;\n\nexport const GetAccountResponseStruct = KeyringAccountStruct;\n\nexport type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Create account\n\nexport const CreateAccountRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_createAccount'),\n params: object({\n options: record(string(), JsonStruct),\n }),\n});\n\nexport type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;\n\nexport const CreateAccountResponseStruct = KeyringAccountStruct;\n\nexport type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Get account balances\n\nexport const GetAccountBalancesRequestStruct = object({\n ...CommonHeader,\n method: literal(`${KeyringRpcMethod.GetAccountBalances}`),\n params: object({\n id: UuidStruct,\n assets: array(CaipAssetTypeStruct),\n }),\n});\n\nexport type GetAccountBalancesRequest = Infer<\n typeof GetAccountBalancesRequestStruct\n>;\n\nexport const GetAccountBalancesResponseStruct = record(\n CaipAssetTypeStruct,\n BalanceStruct,\n);\n\nexport type GetAccountBalancesResponse = Infer<\n typeof GetAccountBalancesResponseStruct\n>;\n\n// ----------------------------------------------------------------------------\n// Filter account chains\n\nexport const FilterAccountChainsStruct = object({\n ...CommonHeader,\n method: literal('keyring_filterAccountChains'),\n params: object({\n id: UuidStruct,\n chains: array(string()),\n }),\n});\n\nexport type FilterAccountChainsRequest = Infer<\n typeof FilterAccountChainsStruct\n>;\n\nexport const FilterAccountChainsResponseStruct = array(string());\n\nexport type FilterAccountChainsResponse = Infer<\n typeof FilterAccountChainsResponseStruct\n>;\n\n// ----------------------------------------------------------------------------\n// Update account\n\nexport const UpdateAccountRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_updateAccount'),\n params: object({\n account: KeyringAccountStruct,\n }),\n});\n\nexport type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;\n\nexport const UpdateAccountResponseStruct = literal(null);\n\nexport type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Delete account\n\nexport const DeleteAccountRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_deleteAccount'),\n params: object({\n id: UuidStruct,\n }),\n});\n\nexport type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;\n\nexport const DeleteAccountResponseStruct = literal(null);\n\nexport type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Export account\n\nexport const ExportAccountRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_exportAccount'),\n params: object({\n id: UuidStruct,\n }),\n});\n\nexport type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;\n\nexport const ExportAccountResponseStruct = KeyringAccountDataStruct;\n\nexport type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// List requests\n\nexport const ListRequestsRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_listRequests'),\n});\n\nexport type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;\n\nexport const ListRequestsResponseStruct = array(KeyringRequestStruct);\n\nexport type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Get request\n\nexport const GetRequestRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_getRequest'),\n params: object({\n id: UuidStruct,\n }),\n});\n\nexport type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;\n\nexport const GetRequestResponseStruct = KeyringRequestStruct;\n\nexport type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Submit request\n\nexport const SubmitRequestRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_submitRequest'),\n params: KeyringRequestStruct,\n});\n\nexport type SubmitRequestRequest = Infer<typeof SubmitRequestRequestStruct>;\n\nexport const SubmitRequestResponseStruct = KeyringResponseStruct;\n\nexport type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Approve request\n\nexport const ApproveRequestRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_approveRequest'),\n params: object({\n id: UuidStruct,\n data: record(string(), JsonStruct),\n }),\n});\n\nexport type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;\n\nexport const ApproveRequestResponseStruct = literal(null);\n\nexport type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;\n\n// ----------------------------------------------------------------------------\n// Reject request\n\nexport const RejectRequestRequestStruct = object({\n ...CommonHeader,\n method: literal('keyring_rejectRequest'),\n params: object({\n id: UuidStruct,\n }),\n});\n\nexport type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;\n\nexport const RejectRequestResponseStruct = literal(null);\n\nexport type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Infer } from
|
|
1
|
+
import type { Infer } from "@metamask/superstruct";
|
|
2
2
|
export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
3
3
|
method: "keyring_listAccounts";
|
|
4
4
|
jsonrpc: "2.0";
|
|
@@ -8,31 +8,32 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
|
8
8
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
9
9
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
10
10
|
}>;
|
|
11
|
-
export
|
|
11
|
+
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
12
12
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
13
13
|
id: string;
|
|
14
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
14
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
15
15
|
address: string;
|
|
16
16
|
options: Record<string, import("@metamask/utils").Json>;
|
|
17
17
|
methods: string[];
|
|
18
18
|
}[], import("@metamask/superstruct").Struct<{
|
|
19
19
|
id: string;
|
|
20
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
20
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
21
21
|
address: string;
|
|
22
22
|
options: Record<string, import("@metamask/utils").Json>;
|
|
23
23
|
methods: string[];
|
|
24
24
|
}, {
|
|
25
25
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
26
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
|
|
26
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
27
27
|
"eip155:eoa": "eip155:eoa";
|
|
28
28
|
"eip155:erc4337": "eip155:erc4337";
|
|
29
29
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
30
|
+
"solana:data-account": "solana:data-account";
|
|
30
31
|
}>;
|
|
31
32
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
32
33
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
33
34
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
34
35
|
}>>;
|
|
35
|
-
export
|
|
36
|
+
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
|
36
37
|
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
37
38
|
method: "keyring_getAccount";
|
|
38
39
|
jsonrpc: "2.0";
|
|
@@ -50,25 +51,26 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
|
50
51
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
51
52
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
52
53
|
}>;
|
|
53
|
-
export
|
|
54
|
+
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
54
55
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
55
56
|
id: string;
|
|
56
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
57
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
57
58
|
address: string;
|
|
58
59
|
options: Record<string, import("@metamask/utils").Json>;
|
|
59
60
|
methods: string[];
|
|
60
61
|
}, {
|
|
61
62
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
62
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
|
|
63
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
63
64
|
"eip155:eoa": "eip155:eoa";
|
|
64
65
|
"eip155:erc4337": "eip155:erc4337";
|
|
65
66
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
67
|
+
"solana:data-account": "solana:data-account";
|
|
66
68
|
}>;
|
|
67
69
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
68
70
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
69
71
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
70
72
|
}>;
|
|
71
|
-
export
|
|
73
|
+
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
|
72
74
|
export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
73
75
|
method: "keyring_createAccount";
|
|
74
76
|
jsonrpc: "2.0";
|
|
@@ -86,25 +88,26 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
86
88
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
87
89
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
88
90
|
}>;
|
|
89
|
-
export
|
|
91
|
+
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
90
92
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
91
93
|
id: string;
|
|
92
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
94
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
93
95
|
address: string;
|
|
94
96
|
options: Record<string, import("@metamask/utils").Json>;
|
|
95
97
|
methods: string[];
|
|
96
98
|
}, {
|
|
97
99
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
98
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
|
|
100
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
99
101
|
"eip155:eoa": "eip155:eoa";
|
|
100
102
|
"eip155:erc4337": "eip155:erc4337";
|
|
101
103
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
104
|
+
"solana:data-account": "solana:data-account";
|
|
102
105
|
}>;
|
|
103
106
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
104
107
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
105
108
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
106
109
|
}>;
|
|
107
|
-
export
|
|
110
|
+
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
|
108
111
|
export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
|
|
109
112
|
method: "keyring_getAccountBalances";
|
|
110
113
|
jsonrpc: "2.0";
|
|
@@ -125,12 +128,12 @@ export declare const GetAccountBalancesRequestStruct: import("@metamask/superstr
|
|
|
125
128
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
126
129
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
127
130
|
}>;
|
|
128
|
-
export
|
|
131
|
+
export type GetAccountBalancesRequest = Infer<typeof GetAccountBalancesRequestStruct>;
|
|
129
132
|
export declare const GetAccountBalancesResponseStruct: import("@metamask/superstruct").Struct<Record<string, {
|
|
130
133
|
amount: string;
|
|
131
134
|
unit: string;
|
|
132
135
|
}>, null>;
|
|
133
|
-
export
|
|
136
|
+
export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
|
|
134
137
|
export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
|
|
135
138
|
method: "keyring_filterAccountChains";
|
|
136
139
|
jsonrpc: "2.0";
|
|
@@ -151,9 +154,9 @@ export declare const FilterAccountChainsStruct: import("@metamask/superstruct").
|
|
|
151
154
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
152
155
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
153
156
|
}>;
|
|
154
|
-
export
|
|
157
|
+
export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>;
|
|
155
158
|
export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
156
|
-
export
|
|
159
|
+
export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
|
|
157
160
|
export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
158
161
|
method: "keyring_updateAccount";
|
|
159
162
|
jsonrpc: "2.0";
|
|
@@ -161,7 +164,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
161
164
|
params: {
|
|
162
165
|
account: {
|
|
163
166
|
id: string;
|
|
164
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
167
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
165
168
|
address: string;
|
|
166
169
|
options: Record<string, import("@metamask/utils").Json>;
|
|
167
170
|
methods: string[];
|
|
@@ -172,7 +175,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
172
175
|
params: import("@metamask/superstruct").Struct<{
|
|
173
176
|
account: {
|
|
174
177
|
id: string;
|
|
175
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
178
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
176
179
|
address: string;
|
|
177
180
|
options: Record<string, import("@metamask/utils").Json>;
|
|
178
181
|
methods: string[];
|
|
@@ -180,16 +183,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
180
183
|
}, {
|
|
181
184
|
account: import("@metamask/superstruct").Struct<{
|
|
182
185
|
id: string;
|
|
183
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
|
|
186
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
184
187
|
address: string;
|
|
185
188
|
options: Record<string, import("@metamask/utils").Json>;
|
|
186
189
|
methods: string[];
|
|
187
190
|
}, {
|
|
188
191
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
189
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
|
|
192
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
190
193
|
"eip155:eoa": "eip155:eoa";
|
|
191
194
|
"eip155:erc4337": "eip155:erc4337";
|
|
192
195
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
196
|
+
"solana:data-account": "solana:data-account";
|
|
193
197
|
}>;
|
|
194
198
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
195
199
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
@@ -199,9 +203,9 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
199
203
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
200
204
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
201
205
|
}>;
|
|
202
|
-
export
|
|
206
|
+
export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
|
|
203
207
|
export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
204
|
-
export
|
|
208
|
+
export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
|
|
205
209
|
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
206
210
|
method: "keyring_deleteAccount";
|
|
207
211
|
jsonrpc: "2.0";
|
|
@@ -219,9 +223,9 @@ export declare const DeleteAccountRequestStruct: import("@metamask/superstruct")
|
|
|
219
223
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
220
224
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
221
225
|
}>;
|
|
222
|
-
export
|
|
226
|
+
export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
|
|
223
227
|
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
224
|
-
export
|
|
228
|
+
export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
|
|
225
229
|
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
226
230
|
method: "keyring_exportAccount";
|
|
227
231
|
jsonrpc: "2.0";
|
|
@@ -239,9 +243,9 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
|
|
|
239
243
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
240
244
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
241
245
|
}>;
|
|
242
|
-
export
|
|
246
|
+
export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
|
|
243
247
|
export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
244
|
-
export
|
|
248
|
+
export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
|
|
245
249
|
export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
246
250
|
method: "keyring_listRequests";
|
|
247
251
|
jsonrpc: "2.0";
|
|
@@ -251,7 +255,7 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
|
251
255
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
252
256
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
253
257
|
}>;
|
|
254
|
-
export
|
|
258
|
+
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
|
255
259
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
256
260
|
id: string;
|
|
257
261
|
scope: string;
|
|
@@ -277,10 +281,10 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
277
281
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
278
282
|
}, {
|
|
279
283
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
280
|
-
params: import("@metamask/superstruct").Struct<import("@metamask/
|
|
284
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
281
285
|
}>;
|
|
282
286
|
}>>;
|
|
283
|
-
export
|
|
287
|
+
export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
|
|
284
288
|
export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
285
289
|
method: "keyring_getRequest";
|
|
286
290
|
jsonrpc: "2.0";
|
|
@@ -298,7 +302,7 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
|
298
302
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
299
303
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
300
304
|
}>;
|
|
301
|
-
export
|
|
305
|
+
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
|
302
306
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
|
303
307
|
id: string;
|
|
304
308
|
scope: string;
|
|
@@ -316,10 +320,10 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
|
316
320
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
317
321
|
}, {
|
|
318
322
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
319
|
-
params: import("@metamask/superstruct").Struct<import("@metamask/
|
|
323
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
320
324
|
}>;
|
|
321
325
|
}>;
|
|
322
|
-
export
|
|
326
|
+
export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
|
|
323
327
|
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
324
328
|
method: "keyring_submitRequest";
|
|
325
329
|
jsonrpc: "2.0";
|
|
@@ -352,13 +356,13 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
352
356
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
353
357
|
}, {
|
|
354
358
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
355
|
-
params: import("@metamask/superstruct").Struct<import("@metamask/
|
|
359
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
356
360
|
}>;
|
|
357
361
|
}>;
|
|
358
362
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
359
363
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
360
364
|
}>;
|
|
361
|
-
export
|
|
365
|
+
export type SubmitRequestRequest = Infer<typeof SubmitRequestRequestStruct>;
|
|
362
366
|
export declare const SubmitRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
|
363
367
|
pending: true;
|
|
364
368
|
redirect?: {
|
|
@@ -369,7 +373,7 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
|
|
|
369
373
|
pending: false;
|
|
370
374
|
result: import("@metamask/utils").Json;
|
|
371
375
|
}, null>;
|
|
372
|
-
export
|
|
376
|
+
export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
|
|
373
377
|
export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
374
378
|
method: "keyring_approveRequest";
|
|
375
379
|
jsonrpc: "2.0";
|
|
@@ -390,9 +394,9 @@ export declare const ApproveRequestRequestStruct: import("@metamask/superstruct"
|
|
|
390
394
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
391
395
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
392
396
|
}>;
|
|
393
|
-
export
|
|
397
|
+
export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
|
|
394
398
|
export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
395
|
-
export
|
|
399
|
+
export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
|
|
396
400
|
export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
397
401
|
method: "keyring_rejectRequest";
|
|
398
402
|
jsonrpc: "2.0";
|
|
@@ -410,6 +414,7 @@ export declare const RejectRequestRequestStruct: import("@metamask/superstruct")
|
|
|
410
414
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
411
415
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
412
416
|
}>;
|
|
413
|
-
export
|
|
417
|
+
export type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;
|
|
414
418
|
export declare const RejectRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
415
|
-
export
|
|
419
|
+
export type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;
|
|
420
|
+
//# sourceMappingURL=api.d.cts.map
|
|
@@ -0,0 +1 @@
|
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