@metamask-previews/keyring-api 23.1.0-bc99865 → 23.2.0-023fc63
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 +8 -4
- package/dist/api/account.d.cts +2 -2
- package/dist/api/account.d.mts +2 -2
- package/dist/api/asset.d.cts +2 -2
- package/dist/api/asset.d.mts +2 -2
- package/dist/api/request.d.cts +3 -3
- package/dist/api/request.d.mts +3 -3
- package/dist/api/response.d.cts +1 -1
- package/dist/api/response.d.mts +1 -1
- package/dist/api/transaction.d.cts +71 -71
- package/dist/api/transaction.d.mts +71 -71
- package/dist/btc/types.d.cts +8 -8
- package/dist/btc/types.d.mts +8 -8
- package/dist/eth/erc4337/types.d.cts +3 -3
- package/dist/eth/erc4337/types.d.mts +3 -3
- package/dist/eth/rpc/params.d.cts +29 -29
- package/dist/eth/rpc/params.d.mts +29 -29
- package/dist/eth/types.cjs +5 -2
- package/dist/eth/types.cjs.map +1 -1
- package/dist/eth/types.d.cts +5 -4
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +5 -4
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/eth/types.mjs +4 -1
- package/dist/eth/types.mjs.map +1 -1
- package/dist/events.d.cts +56 -56
- package/dist/events.d.mts +56 -56
- package/dist/rpc.d.cts +131 -131
- package/dist/rpc.d.mts +131 -131
- package/dist/sol/types.d.cts +2 -2
- package/dist/sol/types.d.mts +2 -2
- package/dist/trx/types.d.cts +2 -2
- package/dist/trx/types.d.mts +2 -2
- package/dist/v2/api/create-account/bip44.d.cts +1 -1
- package/dist/v2/api/create-account/bip44.d.mts +1 -1
- package/dist/v2/api/create-account/index.d.cts +1 -1
- package/dist/v2/api/create-account/index.d.mts +1 -1
- package/dist/v2/api/keyring-rpc.d.cts +28 -28
- package/dist/v2/api/keyring-rpc.d.mts +28 -28
- package/dist/xlm/types.d.cts +2 -2
- package/dist/xlm/types.d.mts +2 -2
- package/package.json +1 -1
package/dist/sol/types.d.cts
CHANGED
|
@@ -18,6 +18,8 @@ export declare enum SolMethod {
|
|
|
18
18
|
export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
|
|
19
19
|
type: "solana:data-account";
|
|
20
20
|
id: string;
|
|
21
|
+
address: string;
|
|
22
|
+
scopes: `${string}:${string}`[];
|
|
21
23
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
22
24
|
entropy?: {
|
|
23
25
|
type: "mnemonic";
|
|
@@ -31,8 +33,6 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
|
|
|
31
33
|
};
|
|
32
34
|
exportable?: boolean;
|
|
33
35
|
};
|
|
34
|
-
address: string;
|
|
35
|
-
scopes: `${string}:${string}`[];
|
|
36
36
|
methods: SolMethod[];
|
|
37
37
|
}, {
|
|
38
38
|
/**
|
package/dist/sol/types.d.mts
CHANGED
|
@@ -18,6 +18,8 @@ export declare enum SolMethod {
|
|
|
18
18
|
export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
|
|
19
19
|
type: "solana:data-account";
|
|
20
20
|
id: string;
|
|
21
|
+
address: string;
|
|
22
|
+
scopes: `${string}:${string}`[];
|
|
21
23
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
22
24
|
entropy?: {
|
|
23
25
|
type: "mnemonic";
|
|
@@ -31,8 +33,6 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
|
|
|
31
33
|
};
|
|
32
34
|
exportable?: boolean;
|
|
33
35
|
};
|
|
34
|
-
address: string;
|
|
35
|
-
scopes: `${string}:${string}`[];
|
|
36
36
|
methods: SolMethod[];
|
|
37
37
|
}, {
|
|
38
38
|
/**
|
package/dist/trx/types.d.cts
CHANGED
|
@@ -16,6 +16,8 @@ export declare enum TrxMethod {
|
|
|
16
16
|
export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
|
17
17
|
type: "tron:eoa";
|
|
18
18
|
id: string;
|
|
19
|
+
address: string;
|
|
20
|
+
scopes: `${string}:${string}`[];
|
|
19
21
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
20
22
|
entropy?: {
|
|
21
23
|
type: "mnemonic";
|
|
@@ -29,8 +31,6 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
|
|
|
29
31
|
};
|
|
30
32
|
exportable?: boolean;
|
|
31
33
|
};
|
|
32
|
-
address: string;
|
|
33
|
-
scopes: `${string}:${string}`[];
|
|
34
34
|
methods: TrxMethod[];
|
|
35
35
|
}, {
|
|
36
36
|
/**
|
package/dist/trx/types.d.mts
CHANGED
|
@@ -16,6 +16,8 @@ export declare enum TrxMethod {
|
|
|
16
16
|
export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
|
17
17
|
type: "tron:eoa";
|
|
18
18
|
id: string;
|
|
19
|
+
address: string;
|
|
20
|
+
scopes: `${string}:${string}`[];
|
|
19
21
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
20
22
|
entropy?: {
|
|
21
23
|
type: "mnemonic";
|
|
@@ -29,8 +31,6 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
|
|
|
29
31
|
};
|
|
30
32
|
exportable?: boolean;
|
|
31
33
|
};
|
|
32
|
-
address: string;
|
|
33
|
-
scopes: `${string}:${string}`[];
|
|
34
34
|
methods: TrxMethod[];
|
|
35
35
|
}, {
|
|
36
36
|
/**
|
|
@@ -85,11 +85,11 @@ export type CreateAccountBip44DiscoverOptions = Infer<typeof CreateAccountBip44D
|
|
|
85
85
|
*/
|
|
86
86
|
export declare const CreateAccountBip44DeriveIndexRangeOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
87
87
|
type: "bip44:derive-index-range";
|
|
88
|
+
entropySource: string;
|
|
88
89
|
range: {
|
|
89
90
|
from: number;
|
|
90
91
|
to: number;
|
|
91
92
|
};
|
|
92
|
-
entropySource: string;
|
|
93
93
|
}, {
|
|
94
94
|
/**
|
|
95
95
|
* The type of the options.
|
|
@@ -85,11 +85,11 @@ export type CreateAccountBip44DiscoverOptions = Infer<typeof CreateAccountBip44D
|
|
|
85
85
|
*/
|
|
86
86
|
export declare const CreateAccountBip44DeriveIndexRangeOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
87
87
|
type: "bip44:derive-index-range";
|
|
88
|
+
entropySource: string;
|
|
88
89
|
range: {
|
|
89
90
|
from: number;
|
|
90
91
|
to: number;
|
|
91
92
|
};
|
|
92
|
-
entropySource: string;
|
|
93
93
|
}, {
|
|
94
94
|
/**
|
|
95
95
|
* The type of the options.
|
|
@@ -63,11 +63,11 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
|
|
|
63
63
|
entropySource: string;
|
|
64
64
|
} | {
|
|
65
65
|
type: "bip44:derive-index-range";
|
|
66
|
+
entropySource: string;
|
|
66
67
|
range: {
|
|
67
68
|
from: number;
|
|
68
69
|
to: number;
|
|
69
70
|
};
|
|
70
|
-
entropySource: string;
|
|
71
71
|
} | {
|
|
72
72
|
type: "custom";
|
|
73
73
|
} | {
|
|
@@ -63,11 +63,11 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
|
|
|
63
63
|
entropySource: string;
|
|
64
64
|
} | {
|
|
65
65
|
type: "bip44:derive-index-range";
|
|
66
|
+
entropySource: string;
|
|
66
67
|
range: {
|
|
67
68
|
from: number;
|
|
68
69
|
to: number;
|
|
69
70
|
};
|
|
70
|
-
entropySource: string;
|
|
71
71
|
} | {
|
|
72
72
|
type: "custom";
|
|
73
73
|
} | {
|
|
@@ -35,8 +35,8 @@ export type KeyringRpcMethod = (typeof KeyringRpcMethod)[keyof typeof KeyringRpc
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
|
|
37
37
|
export declare const GetAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
38
|
-
method: "keyring_getAccounts";
|
|
39
38
|
id: string | number | null;
|
|
39
|
+
method: "keyring_getAccounts";
|
|
40
40
|
jsonrpc: "2.0";
|
|
41
41
|
}, {
|
|
42
42
|
method: import("@metamask/superstruct").Struct<"keyring_getAccounts", "keyring_getAccounts">;
|
|
@@ -47,6 +47,8 @@ export type GetAccountsRequest = Infer<typeof GetAccountsRequestStruct>;
|
|
|
47
47
|
export declare const GetAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
48
48
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
49
49
|
id: string;
|
|
50
|
+
address: string;
|
|
51
|
+
scopes: `${string}:${string}`[];
|
|
50
52
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
51
53
|
entropy?: {
|
|
52
54
|
type: "mnemonic";
|
|
@@ -60,12 +62,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
|
|
|
60
62
|
};
|
|
61
63
|
exportable?: boolean;
|
|
62
64
|
};
|
|
63
|
-
address: string;
|
|
64
|
-
scopes: `${string}:${string}`[];
|
|
65
65
|
methods: string[];
|
|
66
66
|
}[], import("@metamask/superstruct").Struct<{
|
|
67
67
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
68
68
|
id: string;
|
|
69
|
+
address: string;
|
|
70
|
+
scopes: `${string}:${string}`[];
|
|
69
71
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
70
72
|
entropy?: {
|
|
71
73
|
type: "mnemonic";
|
|
@@ -79,8 +81,6 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
|
|
|
79
81
|
};
|
|
80
82
|
exportable?: boolean;
|
|
81
83
|
};
|
|
82
|
-
address: string;
|
|
83
|
-
scopes: `${string}:${string}`[];
|
|
84
84
|
methods: string[];
|
|
85
85
|
}, {
|
|
86
86
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -115,12 +115,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
|
|
|
115
115
|
}>>;
|
|
116
116
|
export type GetAccountsResponse = Infer<typeof GetAccountsResponseStruct>;
|
|
117
117
|
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
118
|
-
method: "keyring_getAccount";
|
|
119
118
|
id: string | number | null;
|
|
120
|
-
|
|
119
|
+
method: "keyring_getAccount";
|
|
121
120
|
params: {
|
|
122
121
|
id: string;
|
|
123
122
|
};
|
|
123
|
+
jsonrpc: "2.0";
|
|
124
124
|
}, {
|
|
125
125
|
method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
|
|
126
126
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -135,6 +135,8 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
|
135
135
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
136
136
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
137
137
|
id: string;
|
|
138
|
+
address: string;
|
|
139
|
+
scopes: `${string}:${string}`[];
|
|
138
140
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
139
141
|
entropy?: {
|
|
140
142
|
type: "mnemonic";
|
|
@@ -148,8 +150,6 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
148
150
|
};
|
|
149
151
|
exportable?: boolean;
|
|
150
152
|
};
|
|
151
|
-
address: string;
|
|
152
|
-
scopes: `${string}:${string}`[];
|
|
153
153
|
methods: string[];
|
|
154
154
|
}, {
|
|
155
155
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -184,9 +184,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
184
184
|
}>;
|
|
185
185
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
|
186
186
|
export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
187
|
-
method: "keyring_createAccounts";
|
|
188
187
|
id: string | number | null;
|
|
189
|
-
|
|
188
|
+
method: "keyring_createAccounts";
|
|
190
189
|
params: {
|
|
191
190
|
type: "bip44:derive-path";
|
|
192
191
|
derivationPath: `m/${string}`;
|
|
@@ -201,11 +200,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
201
200
|
entropySource: string;
|
|
202
201
|
} | {
|
|
203
202
|
type: "bip44:derive-index-range";
|
|
203
|
+
entropySource: string;
|
|
204
204
|
range: {
|
|
205
205
|
from: number;
|
|
206
206
|
to: number;
|
|
207
207
|
};
|
|
208
|
-
entropySource: string;
|
|
209
208
|
} | {
|
|
210
209
|
type: "custom";
|
|
211
210
|
} | {
|
|
@@ -214,6 +213,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
214
213
|
privateKey: string;
|
|
215
214
|
accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
216
215
|
};
|
|
216
|
+
jsonrpc: "2.0";
|
|
217
217
|
}, {
|
|
218
218
|
method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
|
|
219
219
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -230,11 +230,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
230
230
|
entropySource: string;
|
|
231
231
|
} | {
|
|
232
232
|
type: "bip44:derive-index-range";
|
|
233
|
+
entropySource: string;
|
|
233
234
|
range: {
|
|
234
235
|
from: number;
|
|
235
236
|
to: number;
|
|
236
237
|
};
|
|
237
|
-
entropySource: string;
|
|
238
238
|
} | {
|
|
239
239
|
type: "custom";
|
|
240
240
|
} | {
|
|
@@ -250,6 +250,8 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
|
|
|
250
250
|
export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
251
251
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
252
252
|
id: string;
|
|
253
|
+
address: string;
|
|
254
|
+
scopes: `${string}:${string}`[];
|
|
253
255
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
254
256
|
entropy?: {
|
|
255
257
|
type: "mnemonic";
|
|
@@ -263,12 +265,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
263
265
|
};
|
|
264
266
|
exportable?: boolean;
|
|
265
267
|
};
|
|
266
|
-
address: string;
|
|
267
|
-
scopes: `${string}:${string}`[];
|
|
268
268
|
methods: string[];
|
|
269
269
|
}[], import("@metamask/superstruct").Struct<{
|
|
270
270
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
271
271
|
id: string;
|
|
272
|
+
address: string;
|
|
273
|
+
scopes: `${string}:${string}`[];
|
|
272
274
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
273
275
|
entropy?: {
|
|
274
276
|
type: "mnemonic";
|
|
@@ -282,8 +284,6 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
282
284
|
};
|
|
283
285
|
exportable?: boolean;
|
|
284
286
|
};
|
|
285
|
-
address: string;
|
|
286
|
-
scopes: `${string}:${string}`[];
|
|
287
287
|
methods: string[];
|
|
288
288
|
}, {
|
|
289
289
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -318,12 +318,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
318
318
|
}>>;
|
|
319
319
|
export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
|
|
320
320
|
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
321
|
-
method: "keyring_deleteAccount";
|
|
322
321
|
id: string | number | null;
|
|
323
|
-
|
|
322
|
+
method: "keyring_deleteAccount";
|
|
324
323
|
params: {
|
|
325
324
|
id: string;
|
|
326
325
|
};
|
|
326
|
+
jsonrpc: "2.0";
|
|
327
327
|
}, {
|
|
328
328
|
method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
|
|
329
329
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -338,9 +338,8 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
|
|
|
338
338
|
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
339
339
|
export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
|
|
340
340
|
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
341
|
-
method: "keyring_exportAccount";
|
|
342
341
|
id: string | number | null;
|
|
343
|
-
|
|
342
|
+
method: "keyring_exportAccount";
|
|
344
343
|
params: {
|
|
345
344
|
id: string;
|
|
346
345
|
options?: {
|
|
@@ -348,6 +347,7 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
|
|
|
348
347
|
encoding: "hexadecimal" | "base58";
|
|
349
348
|
};
|
|
350
349
|
};
|
|
350
|
+
jsonrpc: "2.0";
|
|
351
351
|
}, {
|
|
352
352
|
method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
|
|
353
353
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -387,30 +387,30 @@ export declare const ExportAccountResponseStruct: import("@metamask/superstruct"
|
|
|
387
387
|
}>;
|
|
388
388
|
export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
|
|
389
389
|
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
390
|
-
method: "keyring_submitRequest";
|
|
391
390
|
id: string | number | null;
|
|
392
|
-
|
|
391
|
+
method: "keyring_submitRequest";
|
|
393
392
|
params: {
|
|
394
393
|
id: string;
|
|
394
|
+
scope: string;
|
|
395
|
+
account: string;
|
|
395
396
|
origin: string;
|
|
396
397
|
request: {
|
|
397
398
|
method: string;
|
|
398
399
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
399
400
|
};
|
|
400
|
-
scope: string;
|
|
401
|
-
account: string;
|
|
402
401
|
};
|
|
402
|
+
jsonrpc: "2.0";
|
|
403
403
|
}, {
|
|
404
404
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
|
405
405
|
params: import("@metamask/superstruct").Struct<{
|
|
406
406
|
id: string;
|
|
407
|
+
scope: string;
|
|
408
|
+
account: string;
|
|
407
409
|
origin: string;
|
|
408
410
|
request: {
|
|
409
411
|
method: string;
|
|
410
412
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
411
413
|
};
|
|
412
|
-
scope: string;
|
|
413
|
-
account: string;
|
|
414
414
|
}, {
|
|
415
415
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
416
416
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -421,7 +421,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
421
421
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
422
422
|
}, {
|
|
423
423
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
424
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
424
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
425
425
|
}>;
|
|
426
426
|
}>;
|
|
427
427
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
@@ -35,8 +35,8 @@ export type KeyringRpcMethod = (typeof KeyringRpcMethod)[keyof typeof KeyringRpc
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
|
|
37
37
|
export declare const GetAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
38
|
-
method: "keyring_getAccounts";
|
|
39
38
|
id: string | number | null;
|
|
39
|
+
method: "keyring_getAccounts";
|
|
40
40
|
jsonrpc: "2.0";
|
|
41
41
|
}, {
|
|
42
42
|
method: import("@metamask/superstruct").Struct<"keyring_getAccounts", "keyring_getAccounts">;
|
|
@@ -47,6 +47,8 @@ export type GetAccountsRequest = Infer<typeof GetAccountsRequestStruct>;
|
|
|
47
47
|
export declare const GetAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
48
48
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
49
49
|
id: string;
|
|
50
|
+
address: string;
|
|
51
|
+
scopes: `${string}:${string}`[];
|
|
50
52
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
51
53
|
entropy?: {
|
|
52
54
|
type: "mnemonic";
|
|
@@ -60,12 +62,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
|
|
|
60
62
|
};
|
|
61
63
|
exportable?: boolean;
|
|
62
64
|
};
|
|
63
|
-
address: string;
|
|
64
|
-
scopes: `${string}:${string}`[];
|
|
65
65
|
methods: string[];
|
|
66
66
|
}[], import("@metamask/superstruct").Struct<{
|
|
67
67
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
68
68
|
id: string;
|
|
69
|
+
address: string;
|
|
70
|
+
scopes: `${string}:${string}`[];
|
|
69
71
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
70
72
|
entropy?: {
|
|
71
73
|
type: "mnemonic";
|
|
@@ -79,8 +81,6 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
|
|
|
79
81
|
};
|
|
80
82
|
exportable?: boolean;
|
|
81
83
|
};
|
|
82
|
-
address: string;
|
|
83
|
-
scopes: `${string}:${string}`[];
|
|
84
84
|
methods: string[];
|
|
85
85
|
}, {
|
|
86
86
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -115,12 +115,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
|
|
|
115
115
|
}>>;
|
|
116
116
|
export type GetAccountsResponse = Infer<typeof GetAccountsResponseStruct>;
|
|
117
117
|
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
118
|
-
method: "keyring_getAccount";
|
|
119
118
|
id: string | number | null;
|
|
120
|
-
|
|
119
|
+
method: "keyring_getAccount";
|
|
121
120
|
params: {
|
|
122
121
|
id: string;
|
|
123
122
|
};
|
|
123
|
+
jsonrpc: "2.0";
|
|
124
124
|
}, {
|
|
125
125
|
method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
|
|
126
126
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -135,6 +135,8 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
|
135
135
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
136
136
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
137
137
|
id: string;
|
|
138
|
+
address: string;
|
|
139
|
+
scopes: `${string}:${string}`[];
|
|
138
140
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
139
141
|
entropy?: {
|
|
140
142
|
type: "mnemonic";
|
|
@@ -148,8 +150,6 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
148
150
|
};
|
|
149
151
|
exportable?: boolean;
|
|
150
152
|
};
|
|
151
|
-
address: string;
|
|
152
|
-
scopes: `${string}:${string}`[];
|
|
153
153
|
methods: string[];
|
|
154
154
|
}, {
|
|
155
155
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -184,9 +184,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
184
184
|
}>;
|
|
185
185
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
|
186
186
|
export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
187
|
-
method: "keyring_createAccounts";
|
|
188
187
|
id: string | number | null;
|
|
189
|
-
|
|
188
|
+
method: "keyring_createAccounts";
|
|
190
189
|
params: {
|
|
191
190
|
type: "bip44:derive-path";
|
|
192
191
|
derivationPath: `m/${string}`;
|
|
@@ -201,11 +200,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
201
200
|
entropySource: string;
|
|
202
201
|
} | {
|
|
203
202
|
type: "bip44:derive-index-range";
|
|
203
|
+
entropySource: string;
|
|
204
204
|
range: {
|
|
205
205
|
from: number;
|
|
206
206
|
to: number;
|
|
207
207
|
};
|
|
208
|
-
entropySource: string;
|
|
209
208
|
} | {
|
|
210
209
|
type: "custom";
|
|
211
210
|
} | {
|
|
@@ -214,6 +213,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
214
213
|
privateKey: string;
|
|
215
214
|
accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
216
215
|
};
|
|
216
|
+
jsonrpc: "2.0";
|
|
217
217
|
}, {
|
|
218
218
|
method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
|
|
219
219
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -230,11 +230,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
230
230
|
entropySource: string;
|
|
231
231
|
} | {
|
|
232
232
|
type: "bip44:derive-index-range";
|
|
233
|
+
entropySource: string;
|
|
233
234
|
range: {
|
|
234
235
|
from: number;
|
|
235
236
|
to: number;
|
|
236
237
|
};
|
|
237
|
-
entropySource: string;
|
|
238
238
|
} | {
|
|
239
239
|
type: "custom";
|
|
240
240
|
} | {
|
|
@@ -250,6 +250,8 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
|
|
|
250
250
|
export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
251
251
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
252
252
|
id: string;
|
|
253
|
+
address: string;
|
|
254
|
+
scopes: `${string}:${string}`[];
|
|
253
255
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
254
256
|
entropy?: {
|
|
255
257
|
type: "mnemonic";
|
|
@@ -263,12 +265,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
263
265
|
};
|
|
264
266
|
exportable?: boolean;
|
|
265
267
|
};
|
|
266
|
-
address: string;
|
|
267
|
-
scopes: `${string}:${string}`[];
|
|
268
268
|
methods: string[];
|
|
269
269
|
}[], import("@metamask/superstruct").Struct<{
|
|
270
270
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
271
271
|
id: string;
|
|
272
|
+
address: string;
|
|
273
|
+
scopes: `${string}:${string}`[];
|
|
272
274
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
273
275
|
entropy?: {
|
|
274
276
|
type: "mnemonic";
|
|
@@ -282,8 +284,6 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
282
284
|
};
|
|
283
285
|
exportable?: boolean;
|
|
284
286
|
};
|
|
285
|
-
address: string;
|
|
286
|
-
scopes: `${string}:${string}`[];
|
|
287
287
|
methods: string[];
|
|
288
288
|
}, {
|
|
289
289
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -318,12 +318,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
318
318
|
}>>;
|
|
319
319
|
export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
|
|
320
320
|
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
321
|
-
method: "keyring_deleteAccount";
|
|
322
321
|
id: string | number | null;
|
|
323
|
-
|
|
322
|
+
method: "keyring_deleteAccount";
|
|
324
323
|
params: {
|
|
325
324
|
id: string;
|
|
326
325
|
};
|
|
326
|
+
jsonrpc: "2.0";
|
|
327
327
|
}, {
|
|
328
328
|
method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
|
|
329
329
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -338,9 +338,8 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
|
|
|
338
338
|
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
339
339
|
export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
|
|
340
340
|
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
341
|
-
method: "keyring_exportAccount";
|
|
342
341
|
id: string | number | null;
|
|
343
|
-
|
|
342
|
+
method: "keyring_exportAccount";
|
|
344
343
|
params: {
|
|
345
344
|
id: string;
|
|
346
345
|
options?: {
|
|
@@ -348,6 +347,7 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
|
|
|
348
347
|
encoding: "hexadecimal" | "base58";
|
|
349
348
|
};
|
|
350
349
|
};
|
|
350
|
+
jsonrpc: "2.0";
|
|
351
351
|
}, {
|
|
352
352
|
method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
|
|
353
353
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -387,30 +387,30 @@ export declare const ExportAccountResponseStruct: import("@metamask/superstruct"
|
|
|
387
387
|
}>;
|
|
388
388
|
export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
|
|
389
389
|
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
390
|
-
method: "keyring_submitRequest";
|
|
391
390
|
id: string | number | null;
|
|
392
|
-
|
|
391
|
+
method: "keyring_submitRequest";
|
|
393
392
|
params: {
|
|
394
393
|
id: string;
|
|
394
|
+
scope: string;
|
|
395
|
+
account: string;
|
|
395
396
|
origin: string;
|
|
396
397
|
request: {
|
|
397
398
|
method: string;
|
|
398
399
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
399
400
|
};
|
|
400
|
-
scope: string;
|
|
401
|
-
account: string;
|
|
402
401
|
};
|
|
402
|
+
jsonrpc: "2.0";
|
|
403
403
|
}, {
|
|
404
404
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
|
405
405
|
params: import("@metamask/superstruct").Struct<{
|
|
406
406
|
id: string;
|
|
407
|
+
scope: string;
|
|
408
|
+
account: string;
|
|
407
409
|
origin: string;
|
|
408
410
|
request: {
|
|
409
411
|
method: string;
|
|
410
412
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
411
413
|
};
|
|
412
|
-
scope: string;
|
|
413
|
-
account: string;
|
|
414
414
|
}, {
|
|
415
415
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
416
416
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -421,7 +421,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
421
421
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
422
422
|
}, {
|
|
423
423
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
424
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
424
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
425
425
|
}>;
|
|
426
426
|
}>;
|
|
427
427
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
package/dist/xlm/types.d.cts
CHANGED
|
@@ -17,6 +17,8 @@ export declare enum XlmMethod {
|
|
|
17
17
|
export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
|
|
18
18
|
type: "stellar:account";
|
|
19
19
|
id: string;
|
|
20
|
+
address: string;
|
|
21
|
+
scopes: `${string}:${string}`[];
|
|
20
22
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
21
23
|
entropy?: {
|
|
22
24
|
type: "mnemonic";
|
|
@@ -30,8 +32,6 @@ export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
|
|
|
30
32
|
};
|
|
31
33
|
exportable?: boolean;
|
|
32
34
|
};
|
|
33
|
-
address: string;
|
|
34
|
-
scopes: `${string}:${string}`[];
|
|
35
35
|
methods: XlmMethod[];
|
|
36
36
|
}, {
|
|
37
37
|
/**
|
package/dist/xlm/types.d.mts
CHANGED
|
@@ -17,6 +17,8 @@ export declare enum XlmMethod {
|
|
|
17
17
|
export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
|
|
18
18
|
type: "stellar:account";
|
|
19
19
|
id: string;
|
|
20
|
+
address: string;
|
|
21
|
+
scopes: `${string}:${string}`[];
|
|
20
22
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
21
23
|
entropy?: {
|
|
22
24
|
type: "mnemonic";
|
|
@@ -30,8 +32,6 @@ export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
|
|
|
30
32
|
};
|
|
31
33
|
exportable?: boolean;
|
|
32
34
|
};
|
|
33
|
-
address: string;
|
|
34
|
-
scopes: `${string}:${string}`[];
|
|
35
35
|
methods: XlmMethod[];
|
|
36
36
|
}, {
|
|
37
37
|
/**
|