@metamask/keyring-api 11.1.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/dist/api/account.cjs +3 -4
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +1 -1
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +1 -1
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +1 -2
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/asset.cjs +5 -6
- package/dist/api/asset.cjs.map +1 -1
- package/dist/api/asset.d.cts +2 -2
- package/dist/api/asset.d.cts.map +1 -1
- package/dist/api/asset.d.mts +2 -2
- package/dist/api/asset.d.mts.map +1 -1
- package/dist/api/asset.mjs +1 -2
- package/dist/api/asset.mjs.map +1 -1
- package/dist/api/balance.cjs +3 -4
- package/dist/api/balance.cjs.map +1 -1
- package/dist/api/balance.d.cts.map +1 -1
- package/dist/api/balance.d.mts.map +1 -1
- package/dist/api/balance.mjs +1 -2
- package/dist/api/balance.mjs.map +1 -1
- package/dist/api/caip.cjs +3 -3
- package/dist/api/caip.cjs.map +1 -1
- package/dist/api/caip.d.cts.map +1 -1
- package/dist/api/caip.d.mts.map +1 -1
- package/dist/api/caip.mjs +1 -1
- package/dist/api/caip.mjs.map +1 -1
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -0
- package/dist/api/index.d.cts.map +1 -1
- package/dist/api/index.d.mts +1 -0
- package/dist/api/index.d.mts.map +1 -1
- package/dist/api/index.mjs +1 -0
- package/dist/api/index.mjs.map +1 -1
- package/dist/api/keyring.cjs +2 -0
- package/dist/api/keyring.cjs.map +1 -1
- package/dist/api/keyring.d.cts +1 -1
- package/dist/api/keyring.d.cts.map +1 -1
- package/dist/api/keyring.d.mts +1 -1
- package/dist/api/keyring.d.mts.map +1 -1
- package/dist/api/keyring.mjs +2 -0
- package/dist/api/keyring.mjs.map +1 -1
- package/dist/{utils → api}/pagination.cjs +3 -3
- package/dist/api/pagination.cjs.map +1 -0
- package/dist/{utils → api}/pagination.d.cts +1 -1
- package/dist/api/pagination.d.cts.map +1 -0
- package/dist/{utils → api}/pagination.d.mts +1 -1
- package/dist/api/pagination.d.mts.map +1 -0
- package/dist/{utils → api}/pagination.mjs +1 -1
- package/dist/api/pagination.mjs.map +1 -0
- package/dist/api/request.cjs +6 -7
- package/dist/api/request.cjs.map +1 -1
- package/dist/api/request.d.cts +5 -5
- package/dist/api/request.d.cts.map +1 -1
- package/dist/api/request.d.mts +5 -5
- package/dist/api/request.d.mts.map +1 -1
- package/dist/api/request.mjs +1 -2
- package/dist/api/request.mjs.map +1 -1
- package/dist/api/response.cjs +6 -6
- package/dist/api/response.cjs.map +1 -1
- package/dist/api/response.d.cts +1 -1
- package/dist/api/response.d.cts.map +1 -1
- package/dist/api/response.d.mts +1 -1
- package/dist/api/response.d.mts.map +1 -1
- package/dist/api/response.mjs +1 -1
- package/dist/api/response.mjs.map +1 -1
- package/dist/api/transaction.cjs +7 -8
- package/dist/api/transaction.cjs.map +1 -1
- package/dist/api/transaction.d.cts +65 -65
- package/dist/api/transaction.d.cts.map +1 -1
- package/dist/api/transaction.d.mts +65 -65
- package/dist/api/transaction.d.mts.map +1 -1
- package/dist/api/transaction.mjs +1 -2
- package/dist/api/transaction.mjs.map +1 -1
- package/dist/btc/types.cjs +2 -2
- package/dist/btc/types.cjs.map +1 -1
- package/dist/btc/types.d.cts +1 -1
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +1 -1
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/btc/types.mjs +2 -2
- package/dist/btc/types.mjs.map +1 -1
- package/dist/eth/erc4337/types.cjs +10 -11
- package/dist/eth/erc4337/types.cjs.map +1 -1
- package/dist/eth/erc4337/types.d.cts +5 -5
- package/dist/eth/erc4337/types.d.cts.map +1 -1
- package/dist/eth/erc4337/types.d.mts +5 -5
- package/dist/eth/erc4337/types.d.mts.map +1 -1
- package/dist/eth/erc4337/types.mjs +1 -2
- package/dist/eth/erc4337/types.mjs.map +1 -1
- package/dist/eth/types.cjs +6 -6
- package/dist/eth/types.cjs.map +1 -1
- package/dist/eth/types.d.cts +2 -2
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +2 -2
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/eth/types.mjs +1 -1
- package/dist/eth/types.mjs.map +1 -1
- package/dist/eth/utils.cjs.map +1 -1
- package/dist/eth/utils.d.cts.map +1 -1
- package/dist/eth/utils.d.mts.map +1 -1
- package/dist/eth/utils.mjs.map +1 -1
- package/dist/events.cjs +67 -1
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +161 -0
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +161 -0
- package/dist/events.d.mts.map +1 -1
- package/dist/events.mjs +66 -0
- package/dist/events.mjs.map +1 -1
- package/dist/index.cjs +2 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{internal/api.cjs → rpc.cjs} +71 -42
- package/dist/rpc.cjs.map +1 -0
- package/dist/{internal/api.d.cts → rpc.d.cts} +130 -104
- package/dist/rpc.d.cts.map +1 -0
- package/dist/{internal/api.d.mts → rpc.d.mts} +130 -104
- package/dist/rpc.d.mts.map +1 -0
- package/dist/{internal/api.mjs → rpc.mjs} +33 -5
- package/dist/rpc.mjs.map +1 -0
- package/dist/sol/types.cjs +3 -3
- package/dist/sol/types.cjs.map +1 -1
- package/dist/sol/types.d.cts +1 -1
- package/dist/sol/types.d.cts.map +1 -1
- package/dist/sol/types.d.mts +1 -1
- package/dist/sol/types.d.mts.map +1 -1
- package/dist/sol/types.mjs +1 -1
- package/dist/sol/types.mjs.map +1 -1
- package/package.json +10 -13
- package/dist/JsonRpcRequest.cjs +0 -13
- package/dist/JsonRpcRequest.cjs.map +0 -1
- package/dist/JsonRpcRequest.d.cts +0 -17
- package/dist/JsonRpcRequest.d.cts.map +0 -1
- package/dist/JsonRpcRequest.d.mts +0 -17
- package/dist/JsonRpcRequest.d.mts.map +0 -1
- package/dist/JsonRpcRequest.mjs +0 -10
- package/dist/JsonRpcRequest.mjs.map +0 -1
- package/dist/KeyringClient.cjs +0 -130
- package/dist/KeyringClient.cjs.map +0 -1
- package/dist/KeyringClient.d.cts +0 -31
- package/dist/KeyringClient.d.cts.map +0 -1
- package/dist/KeyringClient.d.mts +0 -31
- package/dist/KeyringClient.d.mts.map +0 -1
- package/dist/KeyringClient.mjs +0 -126
- package/dist/KeyringClient.mjs.map +0 -1
- package/dist/KeyringSnapRpcClient.cjs +0 -68
- package/dist/KeyringSnapRpcClient.cjs.map +0 -1
- package/dist/KeyringSnapRpcClient.d.cts +0 -40
- package/dist/KeyringSnapRpcClient.d.cts.map +0 -1
- package/dist/KeyringSnapRpcClient.d.mts +0 -40
- package/dist/KeyringSnapRpcClient.d.mts.map +0 -1
- package/dist/KeyringSnapRpcClient.mjs +0 -63
- package/dist/KeyringSnapRpcClient.mjs.map +0 -1
- package/dist/internal/api.cjs.map +0 -1
- package/dist/internal/api.d.cts.map +0 -1
- package/dist/internal/api.d.mts.map +0 -1
- package/dist/internal/api.mjs.map +0 -1
- package/dist/internal/eth/EthKeyring.cjs +0 -3
- package/dist/internal/eth/EthKeyring.cjs.map +0 -1
- package/dist/internal/eth/EthKeyring.d.cts +0 -34
- package/dist/internal/eth/EthKeyring.d.cts.map +0 -1
- package/dist/internal/eth/EthKeyring.d.mts +0 -34
- package/dist/internal/eth/EthKeyring.d.mts.map +0 -1
- package/dist/internal/eth/EthKeyring.mjs +0 -2
- package/dist/internal/eth/EthKeyring.mjs.map +0 -1
- package/dist/internal/eth/index.cjs +0 -3
- package/dist/internal/eth/index.cjs.map +0 -1
- package/dist/internal/eth/index.d.cts +0 -2
- package/dist/internal/eth/index.d.cts.map +0 -1
- package/dist/internal/eth/index.d.mts +0 -2
- package/dist/internal/eth/index.d.mts.map +0 -1
- package/dist/internal/eth/index.mjs +0 -2
- package/dist/internal/eth/index.mjs.map +0 -1
- package/dist/internal/events.cjs +0 -72
- package/dist/internal/events.cjs.map +0 -1
- package/dist/internal/events.d.cts +0 -162
- package/dist/internal/events.d.cts.map +0 -1
- package/dist/internal/events.d.mts +0 -162
- package/dist/internal/events.d.mts.map +0 -1
- package/dist/internal/events.mjs +0 -69
- package/dist/internal/events.mjs.map +0 -1
- package/dist/internal/index.cjs +0 -21
- package/dist/internal/index.cjs.map +0 -1
- package/dist/internal/index.d.cts +0 -6
- package/dist/internal/index.d.cts.map +0 -1
- package/dist/internal/index.d.mts +0 -6
- package/dist/internal/index.d.mts.map +0 -1
- package/dist/internal/index.mjs +0 -5
- package/dist/internal/index.mjs.map +0 -1
- package/dist/internal/rpc.cjs +0 -34
- package/dist/internal/rpc.cjs.map +0 -1
- package/dist/internal/rpc.d.cts +0 -27
- package/dist/internal/rpc.d.cts.map +0 -1
- package/dist/internal/rpc.d.mts +0 -27
- package/dist/internal/rpc.d.mts.map +0 -1
- package/dist/internal/rpc.mjs +0 -30
- package/dist/internal/rpc.mjs.map +0 -1
- package/dist/internal/types.cjs +0 -52
- package/dist/internal/types.cjs.map +0 -1
- package/dist/internal/types.d.cts +0 -392
- package/dist/internal/types.d.cts.map +0 -1
- package/dist/internal/types.d.mts +0 -392
- package/dist/internal/types.d.mts.map +0 -1
- package/dist/internal/types.mjs +0 -49
- package/dist/internal/types.mjs.map +0 -1
- package/dist/rpc-handler.cjs +0 -143
- package/dist/rpc-handler.cjs.map +0 -1
- package/dist/rpc-handler.d.cts +0 -30
- package/dist/rpc-handler.d.cts.map +0 -1
- package/dist/rpc-handler.d.mts +0 -30
- package/dist/rpc-handler.d.mts.map +0 -1
- package/dist/rpc-handler.mjs +0 -138
- package/dist/rpc-handler.mjs.map +0 -1
- package/dist/snap-utils.cjs +0 -20
- package/dist/snap-utils.cjs.map +0 -1
- package/dist/snap-utils.d.cts +0 -12
- package/dist/snap-utils.d.cts.map +0 -1
- package/dist/snap-utils.d.mts +0 -12
- package/dist/snap-utils.d.mts.map +0 -1
- package/dist/snap-utils.mjs +0 -17
- package/dist/snap-utils.mjs.map +0 -1
- package/dist/superstruct.cjs +0 -109
- package/dist/superstruct.cjs.map +0 -1
- package/dist/superstruct.d.cts +0 -102
- package/dist/superstruct.d.cts.map +0 -1
- package/dist/superstruct.d.mts +0 -102
- package/dist/superstruct.d.mts.map +0 -1
- package/dist/superstruct.mjs +0 -102
- package/dist/superstruct.mjs.map +0 -1
- package/dist/utils/index.cjs +0 -20
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.cts +0 -4
- package/dist/utils/index.d.cts.map +0 -1
- package/dist/utils/index.d.mts +0 -4
- package/dist/utils/index.d.mts.map +0 -1
- package/dist/utils/index.mjs +0 -4
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/pagination.cjs.map +0 -1
- package/dist/utils/pagination.d.cts.map +0 -1
- package/dist/utils/pagination.d.mts.map +0 -1
- package/dist/utils/pagination.mjs.map +0 -1
- package/dist/utils/types.cjs +0 -29
- package/dist/utils/types.cjs.map +0 -1
- package/dist/utils/types.d.cts +0 -42
- package/dist/utils/types.d.cts.map +0 -1
- package/dist/utils/types.d.mts +0 -42
- package/dist/utils/types.d.mts.map +0 -1
- package/dist/utils/types.mjs +0 -26
- package/dist/utils/types.mjs.map +0 -1
- package/dist/utils/typing.cjs +0 -20
- package/dist/utils/typing.cjs.map +0 -1
- package/dist/utils/typing.d.cts +0 -33
- package/dist/utils/typing.d.cts.map +0 -1
- package/dist/utils/typing.d.mts +0 -33
- package/dist/utils/typing.d.mts.map +0 -1
- package/dist/utils/typing.mjs +0 -17
- package/dist/utils/typing.mjs.map +0 -1
@@ -1,8 +1,34 @@
|
|
1
1
|
import type { Infer } from "@metamask/superstruct";
|
2
|
+
/**
|
3
|
+
* Keyring RPC methods used by the API.
|
4
|
+
*/
|
5
|
+
export declare enum KeyringRpcMethod {
|
6
|
+
ListAccounts = "keyring_listAccounts",
|
7
|
+
GetAccount = "keyring_getAccount",
|
8
|
+
CreateAccount = "keyring_createAccount",
|
9
|
+
ListAccountTransactions = "keyring_listAccountTransactions",
|
10
|
+
GetAccountBalances = "keyring_getAccountBalances",
|
11
|
+
FilterAccountChains = "keyring_filterAccountChains",
|
12
|
+
UpdateAccount = "keyring_updateAccount",
|
13
|
+
DeleteAccount = "keyring_deleteAccount",
|
14
|
+
ExportAccount = "keyring_exportAccount",
|
15
|
+
ListRequests = "keyring_listRequests",
|
16
|
+
GetRequest = "keyring_getRequest",
|
17
|
+
SubmitRequest = "keyring_submitRequest",
|
18
|
+
ApproveRequest = "keyring_approveRequest",
|
19
|
+
RejectRequest = "keyring_rejectRequest"
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Check if a method is a keyring RPC method.
|
23
|
+
*
|
24
|
+
* @param method - Method to check.
|
25
|
+
* @returns Whether the method is a keyring RPC method.
|
26
|
+
*/
|
27
|
+
export declare function isKeyringRpcMethod(method: string): boolean;
|
2
28
|
export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
3
|
-
jsonrpc: "2.0";
|
4
|
-
id: string | number | null;
|
5
29
|
method: "keyring_listAccounts";
|
30
|
+
id: string | number | null;
|
31
|
+
jsonrpc: "2.0";
|
6
32
|
}, {
|
7
33
|
method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
|
8
34
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
@@ -12,14 +38,14 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
12
38
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
13
39
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
14
40
|
id: string;
|
15
|
-
address: string;
|
16
41
|
options: Record<string, import("@metamask/utils").Json>;
|
42
|
+
address: string;
|
17
43
|
methods: string[];
|
18
44
|
}[], import("@metamask/superstruct").Struct<{
|
19
45
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
20
46
|
id: string;
|
21
|
-
address: string;
|
22
47
|
options: Record<string, import("@metamask/utils").Json>;
|
48
|
+
address: string;
|
23
49
|
methods: string[];
|
24
50
|
}, {
|
25
51
|
id: import("@metamask/superstruct").Struct<string, null>;
|
@@ -35,9 +61,9 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
35
61
|
}>>;
|
36
62
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
37
63
|
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
38
|
-
jsonrpc: "2.0";
|
39
|
-
id: string | number | null;
|
40
64
|
method: "keyring_getAccount";
|
65
|
+
id: string | number | null;
|
66
|
+
jsonrpc: "2.0";
|
41
67
|
params: {
|
42
68
|
id: string;
|
43
69
|
};
|
@@ -55,8 +81,8 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
55
81
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
56
82
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
57
83
|
id: string;
|
58
|
-
address: string;
|
59
84
|
options: Record<string, import("@metamask/utils").Json>;
|
85
|
+
address: string;
|
60
86
|
methods: string[];
|
61
87
|
}, {
|
62
88
|
id: import("@metamask/superstruct").Struct<string, null>;
|
@@ -72,9 +98,9 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
72
98
|
}>;
|
73
99
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
74
100
|
export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
75
|
-
jsonrpc: "2.0";
|
76
|
-
id: string | number | null;
|
77
101
|
method: "keyring_createAccount";
|
102
|
+
id: string | number | null;
|
103
|
+
jsonrpc: "2.0";
|
78
104
|
params: {
|
79
105
|
options: Record<string, import("@metamask/utils").Json>;
|
80
106
|
};
|
@@ -92,8 +118,8 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
92
118
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
93
119
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
94
120
|
id: string;
|
95
|
-
address: string;
|
96
121
|
options: Record<string, import("@metamask/utils").Json>;
|
122
|
+
address: string;
|
97
123
|
methods: string[];
|
98
124
|
}, {
|
99
125
|
id: import("@metamask/superstruct").Struct<string, null>;
|
@@ -109,9 +135,9 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
109
135
|
}>;
|
110
136
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
111
137
|
export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
|
112
|
-
jsonrpc: "2.0";
|
113
|
-
id: string | number | null;
|
114
138
|
method: "keyring_listAccountTransactions";
|
139
|
+
id: string | number | null;
|
140
|
+
jsonrpc: "2.0";
|
115
141
|
params: {
|
116
142
|
id: string;
|
117
143
|
pagination: {
|
@@ -134,7 +160,7 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
|
|
134
160
|
next?: string | null;
|
135
161
|
}, {
|
136
162
|
limit: import("@metamask/superstruct").Struct<number, null>;
|
137
|
-
next: import("@metamask/superstruct").Struct<string | import("
|
163
|
+
next: import("@metamask/superstruct").Struct<string | import("@metamask/keyring-utils").ExactOptionalTag | null, null>;
|
138
164
|
}>;
|
139
165
|
}>;
|
140
166
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
@@ -142,32 +168,35 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
|
|
142
168
|
}>;
|
143
169
|
export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
|
144
170
|
export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
|
145
|
-
next: string | null;
|
146
171
|
data: {
|
147
172
|
type: "send" | "receive";
|
148
173
|
id: string;
|
149
|
-
account: string;
|
150
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
151
|
-
timestamp: number | null;
|
152
|
-
chain: `${string}:${string}`;
|
153
174
|
from: {
|
154
175
|
address: string;
|
155
176
|
asset: {
|
177
|
+
unit: string;
|
156
178
|
type: `${string}:${string}/${string}:${string}`;
|
157
179
|
fungible: true;
|
158
|
-
unit: string;
|
159
180
|
amount: string;
|
160
181
|
} | {
|
161
182
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
162
183
|
fungible: false;
|
163
184
|
} | null;
|
164
185
|
}[];
|
186
|
+
events: {
|
187
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
188
|
+
timestamp: number | null;
|
189
|
+
}[];
|
190
|
+
chain: `${string}:${string}`;
|
191
|
+
account: string;
|
192
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
193
|
+
timestamp: number | null;
|
165
194
|
to: {
|
166
195
|
address: string;
|
167
196
|
asset: {
|
197
|
+
unit: string;
|
168
198
|
type: `${string}:${string}/${string}:${string}`;
|
169
199
|
fungible: true;
|
170
|
-
unit: string;
|
171
200
|
amount: string;
|
172
201
|
} | {
|
173
202
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -177,46 +206,47 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
177
206
|
fees: {
|
178
207
|
type: "base" | "priority";
|
179
208
|
asset: {
|
209
|
+
unit: string;
|
180
210
|
type: `${string}:${string}/${string}:${string}`;
|
181
211
|
fungible: true;
|
182
|
-
unit: string;
|
183
212
|
amount: string;
|
184
213
|
} | {
|
185
214
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
186
215
|
fungible: false;
|
187
216
|
};
|
188
217
|
}[];
|
189
|
-
events: {
|
190
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
191
|
-
timestamp: number | null;
|
192
|
-
}[];
|
193
218
|
}[];
|
219
|
+
next: string | null;
|
194
220
|
}, {
|
195
221
|
data: import("@metamask/superstruct").Struct<{
|
196
222
|
type: "send" | "receive";
|
197
223
|
id: string;
|
198
|
-
account: string;
|
199
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
200
|
-
timestamp: number | null;
|
201
|
-
chain: `${string}:${string}`;
|
202
224
|
from: {
|
203
225
|
address: string;
|
204
226
|
asset: {
|
227
|
+
unit: string;
|
205
228
|
type: `${string}:${string}/${string}:${string}`;
|
206
229
|
fungible: true;
|
207
|
-
unit: string;
|
208
230
|
amount: string;
|
209
231
|
} | {
|
210
232
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
211
233
|
fungible: false;
|
212
234
|
} | null;
|
213
235
|
}[];
|
236
|
+
events: {
|
237
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
238
|
+
timestamp: number | null;
|
239
|
+
}[];
|
240
|
+
chain: `${string}:${string}`;
|
241
|
+
account: string;
|
242
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
243
|
+
timestamp: number | null;
|
214
244
|
to: {
|
215
245
|
address: string;
|
216
246
|
asset: {
|
247
|
+
unit: string;
|
217
248
|
type: `${string}:${string}/${string}:${string}`;
|
218
249
|
fungible: true;
|
219
|
-
unit: string;
|
220
250
|
amount: string;
|
221
251
|
} | {
|
222
252
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -226,44 +256,44 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
226
256
|
fees: {
|
227
257
|
type: "base" | "priority";
|
228
258
|
asset: {
|
259
|
+
unit: string;
|
229
260
|
type: `${string}:${string}/${string}:${string}`;
|
230
261
|
fungible: true;
|
231
|
-
unit: string;
|
232
262
|
amount: string;
|
233
263
|
} | {
|
234
264
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
235
265
|
fungible: false;
|
236
266
|
};
|
237
267
|
}[];
|
238
|
-
events: {
|
239
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
240
|
-
timestamp: number | null;
|
241
|
-
}[];
|
242
268
|
}[], import("@metamask/superstruct").Struct<{
|
243
269
|
type: "send" | "receive";
|
244
270
|
id: string;
|
245
|
-
account: string;
|
246
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
247
|
-
timestamp: number | null;
|
248
|
-
chain: `${string}:${string}`;
|
249
271
|
from: {
|
250
272
|
address: string;
|
251
273
|
asset: {
|
274
|
+
unit: string;
|
252
275
|
type: `${string}:${string}/${string}:${string}`;
|
253
276
|
fungible: true;
|
254
|
-
unit: string;
|
255
277
|
amount: string;
|
256
278
|
} | {
|
257
279
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
258
280
|
fungible: false;
|
259
281
|
} | null;
|
260
282
|
}[];
|
283
|
+
events: {
|
284
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
285
|
+
timestamp: number | null;
|
286
|
+
}[];
|
287
|
+
chain: `${string}:${string}`;
|
288
|
+
account: string;
|
289
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
290
|
+
timestamp: number | null;
|
261
291
|
to: {
|
262
292
|
address: string;
|
263
293
|
asset: {
|
294
|
+
unit: string;
|
264
295
|
type: `${string}:${string}/${string}:${string}`;
|
265
296
|
fungible: true;
|
266
|
-
unit: string;
|
267
297
|
amount: string;
|
268
298
|
} | {
|
269
299
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -273,19 +303,15 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
273
303
|
fees: {
|
274
304
|
type: "base" | "priority";
|
275
305
|
asset: {
|
306
|
+
unit: string;
|
276
307
|
type: `${string}:${string}/${string}:${string}`;
|
277
308
|
fungible: true;
|
278
|
-
unit: string;
|
279
309
|
amount: string;
|
280
310
|
} | {
|
281
311
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
282
312
|
fungible: false;
|
283
313
|
};
|
284
314
|
}[];
|
285
|
-
events: {
|
286
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
287
|
-
timestamp: number | null;
|
288
|
-
}[];
|
289
315
|
}, {
|
290
316
|
id: import("@metamask/superstruct").Struct<string, null>;
|
291
317
|
chain: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
|
@@ -304,9 +330,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
304
330
|
from: import("@metamask/superstruct").Struct<{
|
305
331
|
address: string;
|
306
332
|
asset: {
|
333
|
+
unit: string;
|
307
334
|
type: `${string}:${string}/${string}:${string}`;
|
308
335
|
fungible: true;
|
309
|
-
unit: string;
|
310
336
|
amount: string;
|
311
337
|
} | {
|
312
338
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -315,9 +341,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
315
341
|
}[], import("@metamask/superstruct").Struct<{
|
316
342
|
address: string;
|
317
343
|
asset: {
|
344
|
+
unit: string;
|
318
345
|
type: `${string}:${string}/${string}:${string}`;
|
319
346
|
fungible: true;
|
320
|
-
unit: string;
|
321
347
|
amount: string;
|
322
348
|
} | {
|
323
349
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -326,9 +352,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
326
352
|
}, {
|
327
353
|
address: import("@metamask/superstruct").Struct<string, null>;
|
328
354
|
asset: import("@metamask/superstruct").Struct<{
|
355
|
+
unit: string;
|
329
356
|
type: `${string}:${string}/${string}:${string}`;
|
330
357
|
fungible: true;
|
331
|
-
unit: string;
|
332
358
|
amount: string;
|
333
359
|
} | {
|
334
360
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -338,9 +364,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
338
364
|
to: import("@metamask/superstruct").Struct<{
|
339
365
|
address: string;
|
340
366
|
asset: {
|
367
|
+
unit: string;
|
341
368
|
type: `${string}:${string}/${string}:${string}`;
|
342
369
|
fungible: true;
|
343
|
-
unit: string;
|
344
370
|
amount: string;
|
345
371
|
} | {
|
346
372
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -349,9 +375,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
349
375
|
}[], import("@metamask/superstruct").Struct<{
|
350
376
|
address: string;
|
351
377
|
asset: {
|
378
|
+
unit: string;
|
352
379
|
type: `${string}:${string}/${string}:${string}`;
|
353
380
|
fungible: true;
|
354
|
-
unit: string;
|
355
381
|
amount: string;
|
356
382
|
} | {
|
357
383
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -360,9 +386,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
360
386
|
}, {
|
361
387
|
address: import("@metamask/superstruct").Struct<string, null>;
|
362
388
|
asset: import("@metamask/superstruct").Struct<{
|
389
|
+
unit: string;
|
363
390
|
type: `${string}:${string}/${string}:${string}`;
|
364
391
|
fungible: true;
|
365
|
-
unit: string;
|
366
392
|
amount: string;
|
367
393
|
} | {
|
368
394
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -372,9 +398,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
372
398
|
fees: import("@metamask/superstruct").Struct<{
|
373
399
|
type: "base" | "priority";
|
374
400
|
asset: {
|
401
|
+
unit: string;
|
375
402
|
type: `${string}:${string}/${string}:${string}`;
|
376
403
|
fungible: true;
|
377
|
-
unit: string;
|
378
404
|
amount: string;
|
379
405
|
} | {
|
380
406
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -383,9 +409,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
383
409
|
}[], import("@metamask/superstruct").Struct<{
|
384
410
|
type: "base" | "priority";
|
385
411
|
asset: {
|
412
|
+
unit: string;
|
386
413
|
type: `${string}:${string}/${string}:${string}`;
|
387
414
|
fungible: true;
|
388
|
-
unit: string;
|
389
415
|
amount: string;
|
390
416
|
} | {
|
391
417
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -397,9 +423,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
397
423
|
priority: "priority";
|
398
424
|
}>;
|
399
425
|
asset: import("@metamask/superstruct").Struct<{
|
426
|
+
unit: string;
|
400
427
|
type: `${string}:${string}/${string}:${string}`;
|
401
428
|
fungible: true;
|
402
|
-
unit: string;
|
403
429
|
amount: string;
|
404
430
|
} | {
|
405
431
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
@@ -426,9 +452,9 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
426
452
|
}>;
|
427
453
|
export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
|
428
454
|
export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
|
429
|
-
jsonrpc: "2.0";
|
430
|
-
id: string | number | null;
|
431
455
|
method: "keyring_getAccountBalances";
|
456
|
+
id: string | number | null;
|
457
|
+
jsonrpc: "2.0";
|
432
458
|
params: {
|
433
459
|
id: string;
|
434
460
|
assets: string[];
|
@@ -452,9 +478,9 @@ export declare const GetAccountBalancesResponseStruct: import("@metamask/superst
|
|
452
478
|
}>, null>;
|
453
479
|
export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
|
454
480
|
export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
|
455
|
-
jsonrpc: "2.0";
|
456
|
-
id: string | number | null;
|
457
481
|
method: "keyring_filterAccountChains";
|
482
|
+
id: string | number | null;
|
483
|
+
jsonrpc: "2.0";
|
458
484
|
params: {
|
459
485
|
id: string;
|
460
486
|
chains: string[];
|
@@ -475,15 +501,15 @@ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>
|
|
475
501
|
export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
476
502
|
export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
|
477
503
|
export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
478
|
-
jsonrpc: "2.0";
|
479
|
-
id: string | number | null;
|
480
504
|
method: "keyring_updateAccount";
|
505
|
+
id: string | number | null;
|
506
|
+
jsonrpc: "2.0";
|
481
507
|
params: {
|
482
508
|
account: {
|
483
509
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
484
510
|
id: string;
|
485
|
-
address: string;
|
486
511
|
options: Record<string, import("@metamask/utils").Json>;
|
512
|
+
address: string;
|
487
513
|
methods: string[];
|
488
514
|
};
|
489
515
|
};
|
@@ -493,16 +519,16 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
493
519
|
account: {
|
494
520
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
495
521
|
id: string;
|
496
|
-
address: string;
|
497
522
|
options: Record<string, import("@metamask/utils").Json>;
|
523
|
+
address: string;
|
498
524
|
methods: string[];
|
499
525
|
};
|
500
526
|
}, {
|
501
527
|
account: import("@metamask/superstruct").Struct<{
|
502
528
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
503
529
|
id: string;
|
504
|
-
address: string;
|
505
530
|
options: Record<string, import("@metamask/utils").Json>;
|
531
|
+
address: string;
|
506
532
|
methods: string[];
|
507
533
|
}, {
|
508
534
|
id: import("@metamask/superstruct").Struct<string, null>;
|
@@ -524,9 +550,9 @@ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
|
|
524
550
|
export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
525
551
|
export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
|
526
552
|
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
527
|
-
jsonrpc: "2.0";
|
528
|
-
id: string | number | null;
|
529
553
|
method: "keyring_deleteAccount";
|
554
|
+
id: string | number | null;
|
555
|
+
jsonrpc: "2.0";
|
530
556
|
params: {
|
531
557
|
id: string;
|
532
558
|
};
|
@@ -544,9 +570,9 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
|
|
544
570
|
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
545
571
|
export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
|
546
572
|
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
547
|
-
jsonrpc: "2.0";
|
548
|
-
id: string | number | null;
|
549
573
|
method: "keyring_exportAccount";
|
574
|
+
id: string | number | null;
|
575
|
+
jsonrpc: "2.0";
|
550
576
|
params: {
|
551
577
|
id: string;
|
552
578
|
};
|
@@ -564,9 +590,9 @@ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
|
|
564
590
|
export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
565
591
|
export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
|
566
592
|
export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
|
567
|
-
jsonrpc: "2.0";
|
568
|
-
id: string | number | null;
|
569
593
|
method: "keyring_listRequests";
|
594
|
+
id: string | number | null;
|
595
|
+
jsonrpc: "2.0";
|
570
596
|
}, {
|
571
597
|
method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
|
572
598
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
@@ -575,37 +601,37 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
575
601
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
576
602
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
577
603
|
id: string;
|
578
|
-
scope: string;
|
579
|
-
account: string;
|
580
604
|
request: {
|
581
605
|
method: string;
|
582
|
-
params?: import("@metamask/utils").Json
|
606
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
583
607
|
};
|
584
|
-
}[], import("@metamask/superstruct").Struct<{
|
585
|
-
id: string;
|
586
608
|
scope: string;
|
587
609
|
account: string;
|
610
|
+
}[], import("@metamask/superstruct").Struct<{
|
611
|
+
id: string;
|
588
612
|
request: {
|
589
613
|
method: string;
|
590
|
-
params?: import("@metamask/utils").Json
|
614
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
591
615
|
};
|
616
|
+
scope: string;
|
617
|
+
account: string;
|
592
618
|
}, {
|
593
619
|
id: import("@metamask/superstruct").Struct<string, null>;
|
594
620
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
595
621
|
account: import("@metamask/superstruct").Struct<string, null>;
|
596
622
|
request: import("@metamask/superstruct").Struct<{
|
597
623
|
method: string;
|
598
|
-
params?: import("@metamask/utils").Json
|
624
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
599
625
|
}, {
|
600
626
|
method: import("@metamask/superstruct").Struct<string, null>;
|
601
|
-
params: import("@metamask/superstruct").Struct<import("
|
627
|
+
params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
|
602
628
|
}>;
|
603
629
|
}>>;
|
604
630
|
export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
|
605
631
|
export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
606
|
-
jsonrpc: "2.0";
|
607
|
-
id: string | number | null;
|
608
632
|
method: "keyring_getRequest";
|
633
|
+
id: string | number | null;
|
634
|
+
jsonrpc: "2.0";
|
609
635
|
params: {
|
610
636
|
id: string;
|
611
637
|
};
|
@@ -622,58 +648,58 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
622
648
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
623
649
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
624
650
|
id: string;
|
625
|
-
scope: string;
|
626
|
-
account: string;
|
627
651
|
request: {
|
628
652
|
method: string;
|
629
|
-
params?: import("@metamask/utils").Json
|
653
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
630
654
|
};
|
655
|
+
scope: string;
|
656
|
+
account: string;
|
631
657
|
}, {
|
632
658
|
id: import("@metamask/superstruct").Struct<string, null>;
|
633
659
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
634
660
|
account: import("@metamask/superstruct").Struct<string, null>;
|
635
661
|
request: import("@metamask/superstruct").Struct<{
|
636
662
|
method: string;
|
637
|
-
params?: import("@metamask/utils").Json
|
663
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
638
664
|
}, {
|
639
665
|
method: import("@metamask/superstruct").Struct<string, null>;
|
640
|
-
params: import("@metamask/superstruct").Struct<import("
|
666
|
+
params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
|
641
667
|
}>;
|
642
668
|
}>;
|
643
669
|
export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
|
644
670
|
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
645
|
-
jsonrpc: "2.0";
|
646
|
-
id: string | number | null;
|
647
671
|
method: "keyring_submitRequest";
|
672
|
+
id: string | number | null;
|
673
|
+
jsonrpc: "2.0";
|
648
674
|
params: {
|
649
675
|
id: string;
|
650
|
-
scope: string;
|
651
|
-
account: string;
|
652
676
|
request: {
|
653
677
|
method: string;
|
654
|
-
params?: import("@metamask/utils").Json
|
678
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
655
679
|
};
|
680
|
+
scope: string;
|
681
|
+
account: string;
|
656
682
|
};
|
657
683
|
}, {
|
658
684
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
659
685
|
params: import("@metamask/superstruct").Struct<{
|
660
686
|
id: string;
|
661
|
-
scope: string;
|
662
|
-
account: string;
|
663
687
|
request: {
|
664
688
|
method: string;
|
665
|
-
params?: import("@metamask/utils").Json
|
689
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
666
690
|
};
|
691
|
+
scope: string;
|
692
|
+
account: string;
|
667
693
|
}, {
|
668
694
|
id: import("@metamask/superstruct").Struct<string, null>;
|
669
695
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
670
696
|
account: import("@metamask/superstruct").Struct<string, null>;
|
671
697
|
request: import("@metamask/superstruct").Struct<{
|
672
698
|
method: string;
|
673
|
-
params?: import("@metamask/utils").Json
|
699
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
674
700
|
}, {
|
675
701
|
method: import("@metamask/superstruct").Struct<string, null>;
|
676
|
-
params: import("@metamask/superstruct").Struct<import("
|
702
|
+
params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
|
677
703
|
}>;
|
678
704
|
}>;
|
679
705
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
@@ -687,23 +713,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
|
|
687
713
|
url?: string;
|
688
714
|
};
|
689
715
|
} | {
|
690
|
-
pending: false;
|
691
716
|
result: import("@metamask/utils").Json;
|
717
|
+
pending: false;
|
692
718
|
}, null>;
|
693
719
|
export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
|
694
720
|
export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
695
|
-
jsonrpc: "2.0";
|
696
|
-
id: string | number | null;
|
697
721
|
method: "keyring_approveRequest";
|
722
|
+
id: string | number | null;
|
723
|
+
jsonrpc: "2.0";
|
698
724
|
params: {
|
699
|
-
id: string;
|
700
725
|
data: Record<string, import("@metamask/utils").Json>;
|
726
|
+
id: string;
|
701
727
|
};
|
702
728
|
}, {
|
703
729
|
method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
|
704
730
|
params: import("@metamask/superstruct").Struct<{
|
705
|
-
id: string;
|
706
731
|
data: Record<string, import("@metamask/utils").Json>;
|
732
|
+
id: string;
|
707
733
|
}, {
|
708
734
|
id: import("@metamask/superstruct").Struct<string, null>;
|
709
735
|
data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
@@ -715,9 +741,9 @@ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
|
|
715
741
|
export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
716
742
|
export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
|
717
743
|
export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
718
|
-
jsonrpc: "2.0";
|
719
|
-
id: string | number | null;
|
720
744
|
method: "keyring_rejectRequest";
|
745
|
+
id: string | number | null;
|
746
|
+
jsonrpc: "2.0";
|
721
747
|
params: {
|
722
748
|
id: string;
|
723
749
|
};
|
@@ -734,4 +760,4 @@ export declare const RejectRequestRequestStruct: import("@metamask/superstruct")
|
|
734
760
|
export type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;
|
735
761
|
export declare const RejectRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
736
762
|
export type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;
|
737
|
-
//# sourceMappingURL=
|
763
|
+
//# sourceMappingURL=rpc.d.mts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/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