@metamask/keyring-api 24.1.0 → 24.2.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/api/account-options.cjs +34 -3
  3. package/dist/api/account-options.cjs.map +1 -1
  4. package/dist/api/account-options.d.cts +42 -3
  5. package/dist/api/account-options.d.cts.map +1 -1
  6. package/dist/api/account-options.d.mts +42 -3
  7. package/dist/api/account-options.d.mts.map +1 -1
  8. package/dist/api/account-options.mjs +33 -2
  9. package/dist/api/account-options.mjs.map +1 -1
  10. package/dist/api/account.d.cts +4 -0
  11. package/dist/api/account.d.cts.map +1 -1
  12. package/dist/api/account.d.mts +4 -0
  13. package/dist/api/account.d.mts.map +1 -1
  14. package/dist/btc/types.d.cts +16 -0
  15. package/dist/btc/types.d.cts.map +1 -1
  16. package/dist/btc/types.d.mts +16 -0
  17. package/dist/btc/types.d.mts.map +1 -1
  18. package/dist/eth/types.d.cts +8 -0
  19. package/dist/eth/types.d.cts.map +1 -1
  20. package/dist/eth/types.d.mts +8 -0
  21. package/dist/eth/types.d.mts.map +1 -1
  22. package/dist/events.d.cts +16 -0
  23. package/dist/events.d.cts.map +1 -1
  24. package/dist/events.d.mts +16 -0
  25. package/dist/events.d.mts.map +1 -1
  26. package/dist/rpc.d.cts +43 -0
  27. package/dist/rpc.d.cts.map +1 -1
  28. package/dist/rpc.d.mts +43 -0
  29. package/dist/rpc.d.mts.map +1 -1
  30. package/dist/sol/types.d.cts +4 -0
  31. package/dist/sol/types.d.cts.map +1 -1
  32. package/dist/sol/types.d.mts +4 -0
  33. package/dist/sol/types.d.mts.map +1 -1
  34. package/dist/trx/types.d.cts +4 -0
  35. package/dist/trx/types.d.cts.map +1 -1
  36. package/dist/trx/types.d.mts +4 -0
  37. package/dist/trx/types.d.mts.map +1 -1
  38. package/dist/v2/api/create-account/address-import.cjs +39 -0
  39. package/dist/v2/api/create-account/address-import.cjs.map +1 -0
  40. package/dist/v2/api/create-account/address-import.d.cts +54 -0
  41. package/dist/v2/api/create-account/address-import.d.cts.map +1 -0
  42. package/dist/v2/api/create-account/address-import.d.mts +54 -0
  43. package/dist/v2/api/create-account/address-import.d.mts.map +1 -0
  44. package/dist/v2/api/create-account/address-import.mjs +36 -0
  45. package/dist/v2/api/create-account/address-import.mjs.map +1 -0
  46. package/dist/v2/api/create-account/index.cjs +8 -0
  47. package/dist/v2/api/create-account/index.cjs.map +1 -1
  48. package/dist/v2/api/create-account/index.d.cts +10 -0
  49. package/dist/v2/api/create-account/index.d.cts.map +1 -1
  50. package/dist/v2/api/create-account/index.d.mts +10 -0
  51. package/dist/v2/api/create-account/index.d.mts.map +1 -1
  52. package/dist/v2/api/create-account/index.mjs +8 -0
  53. package/dist/v2/api/create-account/index.mjs.map +1 -1
  54. package/dist/v2/api/keyring-capabilities.cjs +10 -0
  55. package/dist/v2/api/keyring-capabilities.cjs.map +1 -1
  56. package/dist/v2/api/keyring-capabilities.d.cts +15 -0
  57. package/dist/v2/api/keyring-capabilities.d.cts.map +1 -1
  58. package/dist/v2/api/keyring-capabilities.d.mts +15 -0
  59. package/dist/v2/api/keyring-capabilities.d.mts.map +1 -1
  60. package/dist/v2/api/keyring-capabilities.mjs +10 -0
  61. package/dist/v2/api/keyring-capabilities.mjs.map +1 -1
  62. package/dist/v2/api/keyring-rpc.d.cts +26 -0
  63. package/dist/v2/api/keyring-rpc.d.cts.map +1 -1
  64. package/dist/v2/api/keyring-rpc.d.mts +26 -0
  65. package/dist/v2/api/keyring-rpc.d.mts.map +1 -1
  66. package/dist/v2/api/keyring-type.cjs +10 -0
  67. package/dist/v2/api/keyring-type.cjs.map +1 -1
  68. package/dist/v2/api/keyring-type.d.cts +11 -1
  69. package/dist/v2/api/keyring-type.d.cts.map +1 -1
  70. package/dist/v2/api/keyring-type.d.mts +11 -1
  71. package/dist/v2/api/keyring-type.d.mts.map +1 -1
  72. package/dist/v2/api/keyring-type.mjs +10 -0
  73. package/dist/v2/api/keyring-type.mjs.map +1 -1
  74. package/dist/xlm/types.d.cts +4 -0
  75. package/dist/xlm/types.d.cts.map +1 -1
  76. package/dist/xlm/types.d.mts +4 -0
  77. package/dist/xlm/types.d.mts.map +1 -1
  78. package/package.json +1 -1
package/dist/rpc.d.mts CHANGED
@@ -57,6 +57,8 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
57
57
  type: "private-key";
58
58
  } | {
59
59
  type: "custom";
60
+ } | {
61
+ type: "mpc";
60
62
  };
61
63
  exportable?: boolean;
62
64
  };
@@ -76,6 +78,8 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
76
78
  type: "private-key";
77
79
  } | {
78
80
  type: "custom";
81
+ } | {
82
+ type: "mpc";
79
83
  };
80
84
  exportable?: boolean;
81
85
  };
@@ -108,6 +112,8 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
108
112
  type: "private-key";
109
113
  } | {
110
114
  type: "custom";
115
+ } | {
116
+ type: "mpc";
111
117
  };
112
118
  exportable?: boolean;
113
119
  }, null>;
@@ -145,6 +151,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
145
151
  type: "private-key";
146
152
  } | {
147
153
  type: "custom";
154
+ } | {
155
+ type: "mpc";
148
156
  };
149
157
  exportable?: boolean;
150
158
  };
@@ -177,6 +185,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
177
185
  type: "private-key";
178
186
  } | {
179
187
  type: "custom";
188
+ } | {
189
+ type: "mpc";
180
190
  };
181
191
  exportable?: boolean;
182
192
  }, null>;
@@ -214,6 +224,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
214
224
  type: "private-key";
215
225
  } | {
216
226
  type: "custom";
227
+ } | {
228
+ type: "mpc";
217
229
  };
218
230
  exportable?: boolean;
219
231
  };
@@ -246,6 +258,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
246
258
  type: "private-key";
247
259
  } | {
248
260
  type: "custom";
261
+ } | {
262
+ type: "mpc";
249
263
  };
250
264
  exportable?: boolean;
251
265
  }, null>;
@@ -258,6 +272,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
258
272
  jsonrpc: "2.0";
259
273
  params: {
260
274
  options: {
275
+ type: "address:import";
276
+ address: string;
277
+ scopes?: `${string}:${string}`[];
278
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
279
+ } | {
261
280
  type: "bip44:derive-path";
262
281
  derivationPath: `m/${string}`;
263
282
  entropySource: string;
@@ -289,6 +308,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
289
308
  method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
290
309
  params: import("@metamask/superstruct").Struct<{
291
310
  options: {
311
+ type: "address:import";
312
+ address: string;
313
+ scopes?: `${string}:${string}`[];
314
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
315
+ } | {
292
316
  type: "bip44:derive-path";
293
317
  derivationPath: `m/${string}`;
294
318
  entropySource: string;
@@ -317,6 +341,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
317
341
  };
318
342
  }, {
319
343
  options: import("@metamask/superstruct").Struct<{
344
+ type: "address:import";
345
+ address: string;
346
+ scopes?: `${string}:${string}`[];
347
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
348
+ } | {
320
349
  type: "bip44:derive-path";
321
350
  derivationPath: `m/${string}`;
322
351
  entropySource: string;
@@ -361,6 +390,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
361
390
  type: "private-key";
362
391
  } | {
363
392
  type: "custom";
393
+ } | {
394
+ type: "mpc";
364
395
  };
365
396
  exportable?: boolean;
366
397
  };
@@ -380,6 +411,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
380
411
  type: "private-key";
381
412
  } | {
382
413
  type: "custom";
414
+ } | {
415
+ type: "mpc";
383
416
  };
384
417
  exportable?: boolean;
385
418
  };
@@ -412,6 +445,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
412
445
  type: "private-key";
413
446
  } | {
414
447
  type: "custom";
448
+ } | {
449
+ type: "mpc";
415
450
  };
416
451
  exportable?: boolean;
417
452
  }, null>;
@@ -982,6 +1017,8 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
982
1017
  type: "private-key";
983
1018
  } | {
984
1019
  type: "custom";
1020
+ } | {
1021
+ type: "mpc";
985
1022
  };
986
1023
  exportable?: boolean;
987
1024
  };
@@ -1006,6 +1043,8 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
1006
1043
  type: "private-key";
1007
1044
  } | {
1008
1045
  type: "custom";
1046
+ } | {
1047
+ type: "mpc";
1009
1048
  };
1010
1049
  exportable?: boolean;
1011
1050
  };
@@ -1027,6 +1066,8 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
1027
1066
  type: "private-key";
1028
1067
  } | {
1029
1068
  type: "custom";
1069
+ } | {
1070
+ type: "mpc";
1030
1071
  };
1031
1072
  exportable?: boolean;
1032
1073
  };
@@ -1059,6 +1100,8 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
1059
1100
  type: "private-key";
1060
1101
  } | {
1061
1102
  type: "custom";
1103
+ } | {
1104
+ type: "mpc";
1062
1105
  };
1063
1106
  exportable?: boolean;
1064
1107
  }, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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AC;IAC3C,mBAAmB,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D,CAAC"}
@@ -28,6 +28,8 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
28
28
  type: "private-key";
29
29
  } | {
30
30
  type: "custom";
31
+ } | {
32
+ type: "mpc";
31
33
  };
32
34
  exportable?: boolean;
33
35
  };
@@ -68,6 +70,8 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
68
70
  type: "private-key";
69
71
  } | {
70
72
  type: "custom";
73
+ } | {
74
+ type: "mpc";
71
75
  };
72
76
  exportable?: boolean;
73
77
  }, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -28,6 +28,8 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
28
28
  type: "private-key";
29
29
  } | {
30
30
  type: "custom";
31
+ } | {
32
+ type: "mpc";
31
33
  };
32
34
  exportable?: boolean;
33
35
  };
@@ -68,6 +70,8 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
68
70
  type: "private-key";
69
71
  } | {
70
72
  type: "custom";
73
+ } | {
74
+ type: "mpc";
71
75
  };
72
76
  exportable?: boolean;
73
77
  }, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -26,6 +26,8 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
26
26
  type: "private-key";
27
27
  } | {
28
28
  type: "custom";
29
+ } | {
30
+ type: "mpc";
29
31
  };
30
32
  exportable?: boolean;
31
33
  };
@@ -65,6 +67,8 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
65
67
  type: "private-key";
66
68
  } | {
67
69
  type: "custom";
70
+ } | {
71
+ type: "mpc";
68
72
  };
69
73
  exportable?: boolean;
70
74
  }, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/trx/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IACnB,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IAGnC,aAAa,kBAAkB;IAE/B,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;IAE9B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/trx/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IACnB,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IAGnC,aAAa,kBAAkB;IAE/B,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;IAE9B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -26,6 +26,8 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
26
26
  type: "private-key";
27
27
  } | {
28
28
  type: "custom";
29
+ } | {
30
+ type: "mpc";
29
31
  };
30
32
  exportable?: boolean;
31
33
  };
@@ -65,6 +67,8 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
65
67
  type: "private-key";
66
68
  } | {
67
69
  type: "custom";
70
+ } | {
71
+ type: "mpc";
68
72
  };
69
73
  exportable?: boolean;
70
74
  }, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/trx/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IACnB,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IAGnC,aAAa,kBAAkB;IAE/B,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;IAE9B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/trx/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IACnB,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IAGnC,aAAa,kBAAkB;IAE/B,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;IAE9B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAccountAddressImportOptionsStruct = void 0;
4
+ const superstruct_1 = require("@metamask/superstruct");
5
+ const account_1 = require("../../../api/account.cjs");
6
+ const caip_1 = require("../../../api/caip.cjs");
7
+ /**
8
+ * Struct for {@link CreateAccountAddressImportOptions}.
9
+ */
10
+ exports.CreateAccountAddressImportOptionsStruct = (0, superstruct_1.object)({
11
+ /**
12
+ * The type of the options.
13
+ */
14
+ type: (0, superstruct_1.literal)('address:import'),
15
+ /**
16
+ * The address to be imported.
17
+ */
18
+ address: (0, superstruct_1.string)(),
19
+ /**
20
+ * The account type of the imported account.
21
+ *
22
+ * This is needed because the account type cannot always be detected from
23
+ * the address alone (e.g., an EVM address may be an EOA or an ERC-4337
24
+ * account). When omitted, the keyring decides the account type, typically
25
+ * defaulting to the chain's standard account type.
26
+ */
27
+ accountType: (0, superstruct_1.exactOptional)(account_1.KeyringAccountTypeStruct),
28
+ /**
29
+ * The scopes (CAIP-2 chain IDs) of the imported account.
30
+ *
31
+ * This is needed because the scope cannot always be detected from the
32
+ * address alone (e.g., an EVM address is valid on every EVM chain, and
33
+ * Solana or TRON addresses do not encode a network). When omitted, the
34
+ * keyring decides the scopes: it infers them from the address where
35
+ * possible, and falls back to its own default policy otherwise.
36
+ */
37
+ scopes: (0, superstruct_1.exactOptional)((0, superstruct_1.nonempty)((0, superstruct_1.array)(caip_1.CaipChainIdStruct))),
38
+ });
39
+ //# sourceMappingURL=address-import.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-import.cjs","sourceRoot":"","sources":["../../../../src/v2/api/create-account/address-import.ts"],"names":[],"mappings":";;;AACA,uDAO+B;AAE/B,sDAAgE;AAChE,gDAAsD;AAEtD;;GAEG;AACU,QAAA,uCAAuC,GAAG,IAAA,oBAAM,EAAC;IAC5D;;OAEG;IACH,IAAI,EAAE,IAAA,qBAAO,EAAC,gBAAgB,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB;;;;;;;OAOG;IACH,WAAW,EAAE,IAAA,2BAAa,EAAC,kCAAwB,CAAC;IACpD;;;;;;;;OAQG;IACH,MAAM,EAAE,IAAA,2BAAa,EAAC,IAAA,sBAAQ,EAAC,IAAA,mBAAK,EAAC,wBAAiB,CAAC,CAAC,CAAC;CAC1D,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n exactOptional,\n literal,\n nonempty,\n object,\n string,\n} from '@metamask/superstruct';\n\nimport { KeyringAccountTypeStruct } from '../../../api/account';\nimport { CaipChainIdStruct } from '../../../api/caip';\n\n/**\n * Struct for {@link CreateAccountAddressImportOptions}.\n */\nexport const CreateAccountAddressImportOptionsStruct = object({\n /**\n * The type of the options.\n */\n type: literal('address:import'),\n /**\n * The address to be imported.\n */\n address: string(),\n /**\n * The account type of the imported account.\n *\n * This is needed because the account type cannot always be detected from\n * the address alone (e.g., an EVM address may be an EOA or an ERC-4337\n * account). When omitted, the keyring decides the account type, typically\n * defaulting to the chain's standard account type.\n */\n accountType: exactOptional(KeyringAccountTypeStruct),\n /**\n * The scopes (CAIP-2 chain IDs) of the imported account.\n *\n * This is needed because the scope cannot always be detected from the\n * address alone (e.g., an EVM address is valid on every EVM chain, and\n * Solana or TRON addresses do not encode a network). When omitted, the\n * keyring decides the scopes: it infers them from the address where\n * possible, and falls back to its own default policy otherwise.\n */\n scopes: exactOptional(nonempty(array(CaipChainIdStruct))),\n});\n\n/**\n * Options for importing a watch-only account from an address.\n */\nexport type CreateAccountAddressImportOptions = Infer<\n typeof CreateAccountAddressImportOptionsStruct\n>;\n"]}
@@ -0,0 +1,54 @@
1
+ import type { Infer } from "@metamask/superstruct";
2
+ /**
3
+ * Struct for {@link CreateAccountAddressImportOptions}.
4
+ */
5
+ export declare const CreateAccountAddressImportOptionsStruct: import("@metamask/superstruct").Struct<{
6
+ type: "address:import";
7
+ address: string;
8
+ scopes?: `${string}:${string}`[];
9
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
10
+ }, {
11
+ /**
12
+ * The type of the options.
13
+ */
14
+ type: import("@metamask/superstruct").Struct<"address:import", "address:import">;
15
+ /**
16
+ * The address to be imported.
17
+ */
18
+ address: import("@metamask/superstruct").Struct<string, null>;
19
+ /**
20
+ * The account type of the imported account.
21
+ *
22
+ * This is needed because the account type cannot always be detected from
23
+ * the address alone (e.g., an EVM address may be an EOA or an ERC-4337
24
+ * account). When omitted, the keyring decides the account type, typically
25
+ * defaulting to the chain's standard account type.
26
+ */
27
+ accountType: import("@metamask/superstruct").ExactOptionalStruct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account", {
28
+ "eip155:eoa": "eip155:eoa";
29
+ "eip155:erc4337": "eip155:erc4337";
30
+ "bip122:p2pkh": "bip122:p2pkh";
31
+ "bip122:p2sh": "bip122:p2sh";
32
+ "bip122:p2wpkh": "bip122:p2wpkh";
33
+ "bip122:p2tr": "bip122:p2tr";
34
+ "solana:data-account": "solana:data-account";
35
+ "tron:eoa": "tron:eoa";
36
+ "stellar:account": "stellar:account";
37
+ "any:account": "any:account";
38
+ }>;
39
+ /**
40
+ * The scopes (CAIP-2 chain IDs) of the imported account.
41
+ *
42
+ * This is needed because the scope cannot always be detected from the
43
+ * address alone (e.g., an EVM address is valid on every EVM chain, and
44
+ * Solana or TRON addresses do not encode a network). When omitted, the
45
+ * keyring decides the scopes: it infers them from the address where
46
+ * possible, and falls back to its own default policy otherwise.
47
+ */
48
+ scopes: import("@metamask/superstruct").ExactOptionalStruct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
49
+ }>;
50
+ /**
51
+ * Options for importing a watch-only account from an address.
52
+ */
53
+ export type CreateAccountAddressImportOptions = Infer<typeof CreateAccountAddressImportOptionsStruct>;
54
+ //# sourceMappingURL=address-import.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-import.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/address-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAanD;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;IAClD;;OAEG;;IAEH;;OAEG;;IAEH;;;;;;;OAOG;;;;;;;;;;;;;IAEH;;;;;;;;OAQG;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,KAAK,CACnD,OAAO,uCAAuC,CAC/C,CAAC"}
@@ -0,0 +1,54 @@
1
+ import type { Infer } from "@metamask/superstruct";
2
+ /**
3
+ * Struct for {@link CreateAccountAddressImportOptions}.
4
+ */
5
+ export declare const CreateAccountAddressImportOptionsStruct: import("@metamask/superstruct").Struct<{
6
+ type: "address:import";
7
+ address: string;
8
+ scopes?: `${string}:${string}`[];
9
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
10
+ }, {
11
+ /**
12
+ * The type of the options.
13
+ */
14
+ type: import("@metamask/superstruct").Struct<"address:import", "address:import">;
15
+ /**
16
+ * The address to be imported.
17
+ */
18
+ address: import("@metamask/superstruct").Struct<string, null>;
19
+ /**
20
+ * The account type of the imported account.
21
+ *
22
+ * This is needed because the account type cannot always be detected from
23
+ * the address alone (e.g., an EVM address may be an EOA or an ERC-4337
24
+ * account). When omitted, the keyring decides the account type, typically
25
+ * defaulting to the chain's standard account type.
26
+ */
27
+ accountType: import("@metamask/superstruct").ExactOptionalStruct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account", {
28
+ "eip155:eoa": "eip155:eoa";
29
+ "eip155:erc4337": "eip155:erc4337";
30
+ "bip122:p2pkh": "bip122:p2pkh";
31
+ "bip122:p2sh": "bip122:p2sh";
32
+ "bip122:p2wpkh": "bip122:p2wpkh";
33
+ "bip122:p2tr": "bip122:p2tr";
34
+ "solana:data-account": "solana:data-account";
35
+ "tron:eoa": "tron:eoa";
36
+ "stellar:account": "stellar:account";
37
+ "any:account": "any:account";
38
+ }>;
39
+ /**
40
+ * The scopes (CAIP-2 chain IDs) of the imported account.
41
+ *
42
+ * This is needed because the scope cannot always be detected from the
43
+ * address alone (e.g., an EVM address is valid on every EVM chain, and
44
+ * Solana or TRON addresses do not encode a network). When omitted, the
45
+ * keyring decides the scopes: it infers them from the address where
46
+ * possible, and falls back to its own default policy otherwise.
47
+ */
48
+ scopes: import("@metamask/superstruct").ExactOptionalStruct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
49
+ }>;
50
+ /**
51
+ * Options for importing a watch-only account from an address.
52
+ */
53
+ export type CreateAccountAddressImportOptions = Infer<typeof CreateAccountAddressImportOptionsStruct>;
54
+ //# sourceMappingURL=address-import.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-import.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/address-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAanD;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;IAClD;;OAEG;;IAEH;;OAEG;;IAEH;;;;;;;OAOG;;;;;;;;;;;;;IAEH;;;;;;;;OAQG;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,KAAK,CACnD,OAAO,uCAAuC,CAC/C,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { array, exactOptional, literal, nonempty, object, string } from "@metamask/superstruct";
2
+ import { KeyringAccountTypeStruct } from "../../../api/account.mjs";
3
+ import { CaipChainIdStruct } from "../../../api/caip.mjs";
4
+ /**
5
+ * Struct for {@link CreateAccountAddressImportOptions}.
6
+ */
7
+ export const CreateAccountAddressImportOptionsStruct = object({
8
+ /**
9
+ * The type of the options.
10
+ */
11
+ type: literal('address:import'),
12
+ /**
13
+ * The address to be imported.
14
+ */
15
+ address: string(),
16
+ /**
17
+ * The account type of the imported account.
18
+ *
19
+ * This is needed because the account type cannot always be detected from
20
+ * the address alone (e.g., an EVM address may be an EOA or an ERC-4337
21
+ * account). When omitted, the keyring decides the account type, typically
22
+ * defaulting to the chain's standard account type.
23
+ */
24
+ accountType: exactOptional(KeyringAccountTypeStruct),
25
+ /**
26
+ * The scopes (CAIP-2 chain IDs) of the imported account.
27
+ *
28
+ * This is needed because the scope cannot always be detected from the
29
+ * address alone (e.g., an EVM address is valid on every EVM chain, and
30
+ * Solana or TRON addresses do not encode a network). When omitted, the
31
+ * keyring decides the scopes: it infers them from the address where
32
+ * possible, and falls back to its own default policy otherwise.
33
+ */
34
+ scopes: exactOptional(nonempty(array(CaipChainIdStruct))),
35
+ });
36
+ //# sourceMappingURL=address-import.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-import.mjs","sourceRoot":"","sources":["../../../../src/v2/api/create-account/address-import.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,EACP,8BAA8B;AAE/B,OAAO,EAAE,wBAAwB,EAAE,iCAA6B;AAChE,OAAO,EAAE,iBAAiB,EAAE,8BAA0B;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,MAAM,CAAC;IAC5D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE;IACjB;;;;;;;OAOG;IACH,WAAW,EAAE,aAAa,CAAC,wBAAwB,CAAC;IACpD;;;;;;;;OAQG;IACH,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;CAC1D,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n exactOptional,\n literal,\n nonempty,\n object,\n string,\n} from '@metamask/superstruct';\n\nimport { KeyringAccountTypeStruct } from '../../../api/account';\nimport { CaipChainIdStruct } from '../../../api/caip';\n\n/**\n * Struct for {@link CreateAccountAddressImportOptions}.\n */\nexport const CreateAccountAddressImportOptionsStruct = object({\n /**\n * The type of the options.\n */\n type: literal('address:import'),\n /**\n * The address to be imported.\n */\n address: string(),\n /**\n * The account type of the imported account.\n *\n * This is needed because the account type cannot always be detected from\n * the address alone (e.g., an EVM address may be an EOA or an ERC-4337\n * account). When omitted, the keyring decides the account type, typically\n * defaulting to the chain's standard account type.\n */\n accountType: exactOptional(KeyringAccountTypeStruct),\n /**\n * The scopes (CAIP-2 chain IDs) of the imported account.\n *\n * This is needed because the scope cannot always be detected from the\n * address alone (e.g., an EVM address is valid on every EVM chain, and\n * Solana or TRON addresses do not encode a network). When omitted, the\n * keyring decides the scopes: it infers them from the address where\n * possible, and falls back to its own default policy otherwise.\n */\n scopes: exactOptional(nonempty(array(CaipChainIdStruct))),\n});\n\n/**\n * Options for importing a watch-only account from an address.\n */\nexport type CreateAccountAddressImportOptions = Infer<\n typeof CreateAccountAddressImportOptionsStruct\n>;\n"]}
@@ -16,9 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.assertCreateAccountOptionIsSupported = exports.CreateAccountOptionsStruct = exports.AccountCreationType = void 0;
18
18
  const keyring_utils_1 = require("@metamask/keyring-utils");
19
+ const address_import_1 = require("./address-import.cjs");
19
20
  const bip44_1 = require("./bip44.cjs");
20
21
  const custom_1 = require("./custom.cjs");
21
22
  const private_key_1 = require("./private-key.cjs");
23
+ __exportStar(require("./address-import.cjs"), exports);
22
24
  __exportStar(require("./bip44.cjs"), exports);
23
25
  __exportStar(require("./custom.cjs"), exports);
24
26
  __exportStar(require("./private-key.cjs"), exports);
@@ -59,6 +61,10 @@ var AccountCreationType;
59
61
  * Represents an account imported from a private key.
60
62
  */
61
63
  AccountCreationType["PrivateKeyImport"] = "private-key:import";
64
+ /**
65
+ * Represents a watch-only account imported from an address.
66
+ */
67
+ AccountCreationType["AddressImport"] = "address:import";
62
68
  /**
63
69
  * Represents an account created using a custom, keyring-specific method.
64
70
  *
@@ -83,6 +89,8 @@ exports.CreateAccountOptionsStruct = (0, keyring_utils_1.selectiveUnion)((value)
83
89
  return bip44_1.CreateAccountBip44DiscoverOptionsStruct;
84
90
  case AccountCreationType.PrivateKeyImport:
85
91
  return private_key_1.CreateAccountPrivateKeyOptionsStruct;
92
+ case AccountCreationType.AddressImport:
93
+ return address_import_1.CreateAccountAddressImportOptionsStruct;
86
94
  case AccountCreationType.Custom:
87
95
  return custom_1.CreateAccountCustomOptionsStruct;
88
96
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/v2/api/create-account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyD;AAGzD,uCAKiB;AACjB,yCAA4D;AAC5D,mDAAqE;AAErE,8CAAwB;AACxB,+CAAyB;AACzB,oDAA8B;AAE9B;;GAEG;AACH,IAAY,mBA6CX;AA7CD,WAAY,mBAAmB;IAC7B;;OAEG;IACH,4DAAqC,CAAA;IAErC;;;;;;OAMG;IACH,8DAAuC,CAAA;IAEvC;;;;;;OAMG;IACH,yEAAkD,CAAA;IAElD;;;;;;OAMG;IACH,uDAAgC,CAAA;IAEhC;;OAEG;IACH,8DAAuC,CAAA;IAEvC;;;;;OAKG;IACH,wCAAiB,CAAA;AACnB,CAAC,EA7CW,mBAAmB,mCAAnB,mBAAmB,QA6C9B;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG,IAAA,8BAAc,EAAC,CAAC,KAAU,EAAE,EAAE;IACtE,MAAM,mBAAmB,GAAG,KAAK,EAAE,IAA2B,CAAC;IAC/D,QAAQ,mBAAmB,EAAE,CAAC;QAC5B,KAAK,mBAAmB,CAAC,eAAe;YACtC,OAAO,iDAAyC,CAAC;QACnD,KAAK,mBAAmB,CAAC,gBAAgB;YACvC,OAAO,kDAA0C,CAAC;QACpD,KAAK,mBAAmB,CAAC,qBAAqB;YAC5C,OAAO,uDAA+C,CAAC;QACzD,KAAK,mBAAmB,CAAC,aAAa;YACpC,OAAO,+CAAuC,CAAC;QACjD,KAAK,mBAAmB,CAAC,gBAAgB;YACvC,OAAO,kDAAoC,CAAC;QAC9C,KAAK,mBAAmB,CAAC,MAAM;YAC7B,OAAO,yCAAgC,CAAC;QAC1C;YACE,wGAAwG;YACxG,OAAO,iDAAyC,CAAC;IACrD,CAAC;AACH,CAAC,CAAC,CAAC;AAOH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,oCAAoC,CAKlD,OAAgB,EAChB,cAAoC;IAGpC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACzB,MAAM,KAAK,GAA4C,cAAc,CAAC;IAEtE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,2CAA2C,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;AACH,CAAC;AAfD,oFAeC","sourcesContent":["import { selectiveUnion } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\n\nimport {\n CreateAccountBip44DiscoverOptionsStruct,\n CreateAccountBip44DeriveIndexOptionsStruct,\n CreateAccountBip44DeriveIndexRangeOptionsStruct,\n CreateAccountBip44DerivePathOptionsStruct,\n} from './bip44';\nimport { CreateAccountCustomOptionsStruct } from './custom';\nimport { CreateAccountPrivateKeyOptionsStruct } from './private-key';\n\nexport * from './bip44';\nexport * from './custom';\nexport * from './private-key';\n\n/**\n * Enum representing the different ways an account can be created.\n */\nexport enum AccountCreationType {\n /**\n * Represents an account created using a BIP-44 derivation path.\n */\n Bip44DerivePath = 'bip44:derive-path',\n\n /**\n * Represents accounts created using a BIP-44 account index.\n *\n * More than one account can be created, for example, the keyring can create\n * multiple account types (e.g., P2PKH, P2TR, P2WPKH) for the same account\n * index.\n */\n Bip44DeriveIndex = 'bip44:derive-index',\n\n /**\n * Represents accounts created by deriving a range of BIP-44 account indices.\n *\n * More than one account can be created per index, for example, the keyring\n * can create multiple account types (e.g., P2PKH, P2TR, P2WPKH) for each\n * account index in the range.\n */\n Bip44DeriveIndexRange = 'bip44:derive-index-range',\n\n /**\n * Represents accounts created through BIP-44 account discovery.\n *\n * More than one account can be created, for example, the keyring can create\n * multiple account types (e.g., P2PKH, P2TR, P2WPKH) for the same account\n * index.\n */\n Bip44Discover = 'bip44:discover',\n\n /**\n * Represents an account imported from a private key.\n */\n PrivateKeyImport = 'private-key:import',\n\n /**\n * Represents an account created using a custom, keyring-specific method.\n *\n * This is used by keyrings that have non-standard account creation flows\n * and declare `custom.createAccounts: true` in their capabilities.\n */\n Custom = 'custom',\n}\n\n/**\n * Struct for {@link CreateAccountOptions}.\n */\nexport const CreateAccountOptionsStruct = selectiveUnion((value: any) => {\n const accountCreationType = value?.type as AccountCreationType;\n switch (accountCreationType) {\n case AccountCreationType.Bip44DerivePath:\n return CreateAccountBip44DerivePathOptionsStruct;\n case AccountCreationType.Bip44DeriveIndex:\n return CreateAccountBip44DeriveIndexOptionsStruct;\n case AccountCreationType.Bip44DeriveIndexRange:\n return CreateAccountBip44DeriveIndexRangeOptionsStruct;\n case AccountCreationType.Bip44Discover:\n return CreateAccountBip44DiscoverOptionsStruct;\n case AccountCreationType.PrivateKeyImport:\n return CreateAccountPrivateKeyOptionsStruct;\n case AccountCreationType.Custom:\n return CreateAccountCustomOptionsStruct;\n default:\n // Return first struct as fallback - validation will fail with proper error indicating the type mismatch\n return CreateAccountBip44DerivePathOptionsStruct;\n }\n});\n\n/**\n * Represents the available options for creating a new account.\n */\nexport type CreateAccountOptions = Infer<typeof CreateAccountOptionsStruct>;\n\n/**\n * Asserts that a given create account option type is supported by the keyring.\n *\n * @example\n * ```ts\n * createAccounts(options: CreateAccountOptions) {\n * assertCreateAccountOptionIsSupported(options, [\n * ${AccountCreationType.Bip44DeriveIndex},\n * ${AccountCreationType.Bip44DeriveIndexRange},\n * ] as const);\n *\n * // At this point, TypeScript knows that options.type is either Bip44DeriveIndex or Bip44DeriveIndexRange.\n * if (options.type === AccountCreationType.Bip44DeriveIndex) {\n * ... // Handle Bip44DeriveIndex case.\n * } else {\n * ... // Handle Bip44DeriveIndexRange case.\n * }\n * ...\n * return accounts;\n * }\n * ```\n *\n * @param options - The create account option object to check.\n * @param supportedTypes - The list of supported create account option types for this keyring.\n * @throws Will throw an error if the provided options are not supported.\n */\nexport function assertCreateAccountOptionIsSupported<\n Options extends CreateAccountOptions,\n // We use template literal types to enforce string-literal over strict enum values.\n Type extends `${CreateAccountOptions['type']}`,\n>(\n options: Options,\n supportedTypes: readonly `${Type}`[],\n // Use intersection to avoid widening `type` beyond `Options['type']`.\n): asserts options is Options & { type: `${Type}` & `${Options['type']}` } {\n const { type } = options;\n const types: readonly CreateAccountOptions['type'][] = supportedTypes;\n\n if (!types.includes(type)) {\n throw new Error(`Unsupported create account option type: ${type}`);\n }\n}\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/v2/api/create-account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyD;AAGzD,yDAA2E;AAC3E,uCAKiB;AACjB,yCAA4D;AAC5D,mDAAqE;AAErE,uDAAiC;AACjC,8CAAwB;AACxB,+CAAyB;AACzB,oDAA8B;AAE9B;;GAEG;AACH,IAAY,mBAkDX;AAlDD,WAAY,mBAAmB;IAC7B;;OAEG;IACH,4DAAqC,CAAA;IAErC;;;;;;OAMG;IACH,8DAAuC,CAAA;IAEvC;;;;;;OAMG;IACH,yEAAkD,CAAA;IAElD;;;;;;OAMG;IACH,uDAAgC,CAAA;IAEhC;;OAEG;IACH,8DAAuC,CAAA;IAEvC;;OAEG;IACH,uDAAgC,CAAA;IAEhC;;;;;OAKG;IACH,wCAAiB,CAAA;AACnB,CAAC,EAlDW,mBAAmB,mCAAnB,mBAAmB,QAkD9B;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG,IAAA,8BAAc,EAAC,CAAC,KAAU,EAAE,EAAE;IACtE,MAAM,mBAAmB,GAAG,KAAK,EAAE,IAA2B,CAAC;IAC/D,QAAQ,mBAAmB,EAAE,CAAC;QAC5B,KAAK,mBAAmB,CAAC,eAAe;YACtC,OAAO,iDAAyC,CAAC;QACnD,KAAK,mBAAmB,CAAC,gBAAgB;YACvC,OAAO,kDAA0C,CAAC;QACpD,KAAK,mBAAmB,CAAC,qBAAqB;YAC5C,OAAO,uDAA+C,CAAC;QACzD,KAAK,mBAAmB,CAAC,aAAa;YACpC,OAAO,+CAAuC,CAAC;QACjD,KAAK,mBAAmB,CAAC,gBAAgB;YACvC,OAAO,kDAAoC,CAAC;QAC9C,KAAK,mBAAmB,CAAC,aAAa;YACpC,OAAO,wDAAuC,CAAC;QACjD,KAAK,mBAAmB,CAAC,MAAM;YAC7B,OAAO,yCAAgC,CAAC;QAC1C;YACE,wGAAwG;YACxG,OAAO,iDAAyC,CAAC;IACrD,CAAC;AACH,CAAC,CAAC,CAAC;AAOH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,oCAAoC,CAKlD,OAAgB,EAChB,cAAoC;IAGpC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACzB,MAAM,KAAK,GAA4C,cAAc,CAAC;IAEtE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,2CAA2C,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;AACH,CAAC;AAfD,oFAeC","sourcesContent":["import { selectiveUnion } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\n\nimport { CreateAccountAddressImportOptionsStruct } from './address-import';\nimport {\n CreateAccountBip44DiscoverOptionsStruct,\n CreateAccountBip44DeriveIndexOptionsStruct,\n CreateAccountBip44DeriveIndexRangeOptionsStruct,\n CreateAccountBip44DerivePathOptionsStruct,\n} from './bip44';\nimport { CreateAccountCustomOptionsStruct } from './custom';\nimport { CreateAccountPrivateKeyOptionsStruct } from './private-key';\n\nexport * from './address-import';\nexport * from './bip44';\nexport * from './custom';\nexport * from './private-key';\n\n/**\n * Enum representing the different ways an account can be created.\n */\nexport enum AccountCreationType {\n /**\n * Represents an account created using a BIP-44 derivation path.\n */\n Bip44DerivePath = 'bip44:derive-path',\n\n /**\n * Represents accounts created using a BIP-44 account index.\n *\n * More than one account can be created, for example, the keyring can create\n * multiple account types (e.g., P2PKH, P2TR, P2WPKH) for the same account\n * index.\n */\n Bip44DeriveIndex = 'bip44:derive-index',\n\n /**\n * Represents accounts created by deriving a range of BIP-44 account indices.\n *\n * More than one account can be created per index, for example, the keyring\n * can create multiple account types (e.g., P2PKH, P2TR, P2WPKH) for each\n * account index in the range.\n */\n Bip44DeriveIndexRange = 'bip44:derive-index-range',\n\n /**\n * Represents accounts created through BIP-44 account discovery.\n *\n * More than one account can be created, for example, the keyring can create\n * multiple account types (e.g., P2PKH, P2TR, P2WPKH) for the same account\n * index.\n */\n Bip44Discover = 'bip44:discover',\n\n /**\n * Represents an account imported from a private key.\n */\n PrivateKeyImport = 'private-key:import',\n\n /**\n * Represents a watch-only account imported from an address.\n */\n AddressImport = 'address:import',\n\n /**\n * Represents an account created using a custom, keyring-specific method.\n *\n * This is used by keyrings that have non-standard account creation flows\n * and declare `custom.createAccounts: true` in their capabilities.\n */\n Custom = 'custom',\n}\n\n/**\n * Struct for {@link CreateAccountOptions}.\n */\nexport const CreateAccountOptionsStruct = selectiveUnion((value: any) => {\n const accountCreationType = value?.type as AccountCreationType;\n switch (accountCreationType) {\n case AccountCreationType.Bip44DerivePath:\n return CreateAccountBip44DerivePathOptionsStruct;\n case AccountCreationType.Bip44DeriveIndex:\n return CreateAccountBip44DeriveIndexOptionsStruct;\n case AccountCreationType.Bip44DeriveIndexRange:\n return CreateAccountBip44DeriveIndexRangeOptionsStruct;\n case AccountCreationType.Bip44Discover:\n return CreateAccountBip44DiscoverOptionsStruct;\n case AccountCreationType.PrivateKeyImport:\n return CreateAccountPrivateKeyOptionsStruct;\n case AccountCreationType.AddressImport:\n return CreateAccountAddressImportOptionsStruct;\n case AccountCreationType.Custom:\n return CreateAccountCustomOptionsStruct;\n default:\n // Return first struct as fallback - validation will fail with proper error indicating the type mismatch\n return CreateAccountBip44DerivePathOptionsStruct;\n }\n});\n\n/**\n * Represents the available options for creating a new account.\n */\nexport type CreateAccountOptions = Infer<typeof CreateAccountOptionsStruct>;\n\n/**\n * Asserts that a given create account option type is supported by the keyring.\n *\n * @example\n * ```ts\n * createAccounts(options: CreateAccountOptions) {\n * assertCreateAccountOptionIsSupported(options, [\n * ${AccountCreationType.Bip44DeriveIndex},\n * ${AccountCreationType.Bip44DeriveIndexRange},\n * ] as const);\n *\n * // At this point, TypeScript knows that options.type is either Bip44DeriveIndex or Bip44DeriveIndexRange.\n * if (options.type === AccountCreationType.Bip44DeriveIndex) {\n * ... // Handle Bip44DeriveIndex case.\n * } else {\n * ... // Handle Bip44DeriveIndexRange case.\n * }\n * ...\n * return accounts;\n * }\n * ```\n *\n * @param options - The create account option object to check.\n * @param supportedTypes - The list of supported create account option types for this keyring.\n * @throws Will throw an error if the provided options are not supported.\n */\nexport function assertCreateAccountOptionIsSupported<\n Options extends CreateAccountOptions,\n // We use template literal types to enforce string-literal over strict enum values.\n Type extends `${CreateAccountOptions['type']}`,\n>(\n options: Options,\n supportedTypes: readonly `${Type}`[],\n // Use intersection to avoid widening `type` beyond `Options['type']`.\n): asserts options is Options & { type: `${Type}` & `${Options['type']}` } {\n const { type } = options;\n const types: readonly CreateAccountOptions['type'][] = supportedTypes;\n\n if (!types.includes(type)) {\n throw new Error(`Unsupported create account option type: ${type}`);\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import type { Infer } from "@metamask/superstruct";
2
+ export * from "./address-import.cjs";
2
3
  export * from "./bip44.cjs";
3
4
  export * from "./custom.cjs";
4
5
  export * from "./private-key.cjs";
@@ -38,6 +39,10 @@ export declare enum AccountCreationType {
38
39
  * Represents an account imported from a private key.
39
40
  */
40
41
  PrivateKeyImport = "private-key:import",
42
+ /**
43
+ * Represents a watch-only account imported from an address.
44
+ */
45
+ AddressImport = "address:import",
41
46
  /**
42
47
  * Represents an account created using a custom, keyring-specific method.
43
48
  *
@@ -50,6 +55,11 @@ export declare enum AccountCreationType {
50
55
  * Struct for {@link CreateAccountOptions}.
51
56
  */
52
57
  export declare const CreateAccountOptionsStruct: import("@metamask/superstruct").Struct<{
58
+ type: "address:import";
59
+ address: string;
60
+ scopes?: `${string}:${string}`[];
61
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
62
+ } | {
53
63
  type: "bip44:derive-path";
54
64
  derivationPath: `m/${string}`;
55
65
  entropySource: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,4BAAwB;AACxB,6BAAyB;AACzB,kCAA8B;AAE9B;;GAEG;AACH,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,eAAe,sBAAsB;IAErC;;;;;;OAMG;IACH,gBAAgB,uBAAuB;IAEvC;;;;;;OAMG;IACH,qBAAqB,6BAA6B;IAElD;;;;;;OAMG;IACH,aAAa,mBAAmB;IAEhC;;OAEG;IACH,gBAAgB,uBAAuB;IAEvC;;;;;OAKG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;QAmBrC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,SAAS,oBAAoB,EAEpC,IAAI,SAAS,GAAG,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAE9C,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,SAAS,GAAG,IAAI,EAAE,EAAE,GAEnC,OAAO,CAAC,OAAO,IAAI,OAAO,GAAG;IAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAA;CAAE,CAOzE"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAYnD,qCAAiC;AACjC,4BAAwB;AACxB,6BAAyB;AACzB,kCAA8B;AAE9B;;GAEG;AACH,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,eAAe,sBAAsB;IAErC;;;;;;OAMG;IACH,gBAAgB,uBAAuB;IAEvC;;;;;;OAMG;IACH,qBAAqB,6BAA6B;IAElD;;;;;;OAMG;IACH,aAAa,mBAAmB;IAEhC;;OAEG;IACH,gBAAgB,uBAAuB;IAEvC;;OAEG;IACH,aAAa,mBAAmB;IAEhC;;;;;OAKG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqBrC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,SAAS,oBAAoB,EAEpC,IAAI,SAAS,GAAG,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAE9C,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,SAAS,GAAG,IAAI,EAAE,EAAE,GAEnC,OAAO,CAAC,OAAO,IAAI,OAAO,GAAG;IAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAA;CAAE,CAOzE"}
@@ -1,4 +1,5 @@
1
1
  import type { Infer } from "@metamask/superstruct";
2
+ export * from "./address-import.mjs";
2
3
  export * from "./bip44.mjs";
3
4
  export * from "./custom.mjs";
4
5
  export * from "./private-key.mjs";
@@ -38,6 +39,10 @@ export declare enum AccountCreationType {
38
39
  * Represents an account imported from a private key.
39
40
  */
40
41
  PrivateKeyImport = "private-key:import",
42
+ /**
43
+ * Represents a watch-only account imported from an address.
44
+ */
45
+ AddressImport = "address:import",
41
46
  /**
42
47
  * Represents an account created using a custom, keyring-specific method.
43
48
  *
@@ -50,6 +55,11 @@ export declare enum AccountCreationType {
50
55
  * Struct for {@link CreateAccountOptions}.
51
56
  */
52
57
  export declare const CreateAccountOptionsStruct: import("@metamask/superstruct").Struct<{
58
+ type: "address:import";
59
+ address: string;
60
+ scopes?: `${string}:${string}`[];
61
+ accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
62
+ } | {
53
63
  type: "bip44:derive-path";
54
64
  derivationPath: `m/${string}`;
55
65
  entropySource: string;