@metamask-previews/keyring-internal-api 0.0.1-11541a9 → 0.0.1-1c468fa

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 (119) hide show
  1. package/dist/eth/EthKeyring.cjs.map +1 -1
  2. package/dist/eth/EthKeyring.d.cts +1 -2
  3. package/dist/eth/EthKeyring.d.cts.map +1 -1
  4. package/dist/eth/EthKeyring.d.mts +1 -2
  5. package/dist/eth/EthKeyring.d.mts.map +1 -1
  6. package/dist/eth/EthKeyring.mjs.map +1 -1
  7. package/dist/eth/index.cjs +0 -17
  8. package/dist/eth/index.cjs.map +1 -1
  9. package/dist/eth/index.d.cts +0 -3
  10. package/dist/eth/index.d.cts.map +1 -1
  11. package/dist/eth/index.d.mts +0 -3
  12. package/dist/eth/index.d.mts.map +1 -1
  13. package/dist/eth/index.mjs +1 -3
  14. package/dist/eth/index.mjs.map +1 -1
  15. package/dist/index.cjs +1 -6
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +2 -6
  18. package/dist/index.d.cts.map +1 -1
  19. package/dist/index.d.mts +2 -6
  20. package/dist/index.d.mts.map +1 -1
  21. package/dist/index.mjs +1 -6
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/types.cjs +4 -7
  24. package/dist/types.cjs.map +1 -1
  25. package/dist/types.d.cts +45 -45
  26. package/dist/types.d.cts.map +1 -1
  27. package/dist/types.d.mts +45 -45
  28. package/dist/types.d.mts.map +1 -1
  29. package/dist/types.mjs +1 -4
  30. package/dist/types.mjs.map +1 -1
  31. package/package.json +5 -6
  32. package/dist/api.cjs +0 -138
  33. package/dist/api.cjs.map +0 -1
  34. package/dist/api.d.cts +0 -420
  35. package/dist/api.d.cts.map +0 -1
  36. package/dist/api.d.mts +0 -420
  37. package/dist/api.d.mts.map +0 -1
  38. package/dist/api.mjs +0 -135
  39. package/dist/api.mjs.map +0 -1
  40. package/dist/btc/index.cjs +0 -18
  41. package/dist/btc/index.cjs.map +0 -1
  42. package/dist/btc/index.d.cts +0 -2
  43. package/dist/btc/index.d.cts.map +0 -1
  44. package/dist/btc/index.d.mts +0 -2
  45. package/dist/btc/index.d.mts.map +0 -1
  46. package/dist/btc/index.mjs +0 -2
  47. package/dist/btc/index.mjs.map +0 -1
  48. package/dist/btc/types.cjs +0 -40
  49. package/dist/btc/types.cjs.map +0 -1
  50. package/dist/btc/types.d.cts +0 -34
  51. package/dist/btc/types.d.cts.map +0 -1
  52. package/dist/btc/types.d.mts +0 -34
  53. package/dist/btc/types.d.mts.map +0 -1
  54. package/dist/btc/types.mjs +0 -37
  55. package/dist/btc/types.mjs.map +0 -1
  56. package/dist/eth/erc4337/index.cjs +0 -18
  57. package/dist/eth/erc4337/index.cjs.map +0 -1
  58. package/dist/eth/erc4337/index.d.cts +0 -2
  59. package/dist/eth/erc4337/index.d.cts.map +0 -1
  60. package/dist/eth/erc4337/index.d.mts +0 -2
  61. package/dist/eth/erc4337/index.d.mts.map +0 -1
  62. package/dist/eth/erc4337/index.mjs +0 -2
  63. package/dist/eth/erc4337/index.mjs.map +0 -1
  64. package/dist/eth/erc4337/types.cjs +0 -61
  65. package/dist/eth/erc4337/types.cjs.map +0 -1
  66. package/dist/eth/erc4337/types.d.cts +0 -98
  67. package/dist/eth/erc4337/types.d.cts.map +0 -1
  68. package/dist/eth/erc4337/types.d.mts +0 -98
  69. package/dist/eth/erc4337/types.d.mts.map +0 -1
  70. package/dist/eth/erc4337/types.mjs +0 -58
  71. package/dist/eth/erc4337/types.mjs.map +0 -1
  72. package/dist/eth/types.cjs +0 -73
  73. package/dist/eth/types.cjs.map +0 -1
  74. package/dist/eth/types.d.cts +0 -81
  75. package/dist/eth/types.d.cts.map +0 -1
  76. package/dist/eth/types.d.mts +0 -81
  77. package/dist/eth/types.d.mts.map +0 -1
  78. package/dist/eth/types.mjs +0 -70
  79. package/dist/eth/types.mjs.map +0 -1
  80. package/dist/eth/utils.cjs +0 -14
  81. package/dist/eth/utils.cjs.map +0 -1
  82. package/dist/eth/utils.d.cts +0 -9
  83. package/dist/eth/utils.d.cts.map +0 -1
  84. package/dist/eth/utils.d.mts +0 -9
  85. package/dist/eth/utils.d.mts.map +0 -1
  86. package/dist/eth/utils.mjs +0 -11
  87. package/dist/eth/utils.mjs.map +0 -1
  88. package/dist/events.cjs +0 -83
  89. package/dist/events.cjs.map +0 -1
  90. package/dist/events.d.cts +0 -172
  91. package/dist/events.d.cts.map +0 -1
  92. package/dist/events.d.mts +0 -172
  93. package/dist/events.d.mts.map +0 -1
  94. package/dist/events.mjs +0 -80
  95. package/dist/events.mjs.map +0 -1
  96. package/dist/rpc.cjs +0 -33
  97. package/dist/rpc.cjs.map +0 -1
  98. package/dist/rpc.d.cts +0 -26
  99. package/dist/rpc.d.cts.map +0 -1
  100. package/dist/rpc.d.mts +0 -26
  101. package/dist/rpc.d.mts.map +0 -1
  102. package/dist/rpc.mjs +0 -29
  103. package/dist/rpc.mjs.map +0 -1
  104. package/dist/sol/index.cjs +0 -18
  105. package/dist/sol/index.cjs.map +0 -1
  106. package/dist/sol/index.d.cts +0 -2
  107. package/dist/sol/index.d.cts.map +0 -1
  108. package/dist/sol/index.d.mts +0 -2
  109. package/dist/sol/index.d.mts.map +0 -1
  110. package/dist/sol/index.mjs +0 -2
  111. package/dist/sol/index.mjs.map +0 -1
  112. package/dist/sol/types.cjs +0 -36
  113. package/dist/sol/types.cjs.map +0 -1
  114. package/dist/sol/types.d.cts +0 -39
  115. package/dist/sol/types.d.cts.map +0 -1
  116. package/dist/sol/types.d.mts +0 -39
  117. package/dist/sol/types.d.mts.map +0 -1
  118. package/dist/sol/types.mjs +0 -33
  119. package/dist/sol/types.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.cjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"","sourcesContent":["import type { KeyringExecutionContext } from '@metamask/keyring-api';\nimport type { Json, Keyring } from '@metamask/utils';\n\nimport type {\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '.';\n\nexport type EthKeyring<State extends Json> = Keyring<State> & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
1
+ {"version":3,"file":"EthKeyring.cjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyringExecutionContext,\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '@metamask/keyring-api';\nimport type { Json, Keyring } from '@metamask/utils';\n\nexport type EthKeyring<State extends Json> = Keyring<State> & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
@@ -1,6 +1,5 @@
1
- import type { KeyringExecutionContext } from "@metamask/keyring-api";
1
+ import type { KeyringExecutionContext, EthBaseTransaction, EthBaseUserOperation, EthUserOperation, EthUserOperationPatch } from "@metamask/keyring-api";
2
2
  import type { Json, Keyring } from "@metamask/utils";
3
- import type { EthBaseTransaction, EthBaseUserOperation, EthUserOperation, EthUserOperationPatch } from "./index.cjs";
4
3
  export type EthKeyring<State extends Json> = Keyring<State> & {
5
4
  /**
6
5
  * Convert a base transaction to a base UserOperation.
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.d.cts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,8BAA8B;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,wBAAwB;AAErD,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACtB,oBAAU;AAEX,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG;IAC5D;;;;;;;OAOG;IACH,oBAAoB,CAAC,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"EthKeyring.d.cts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACtB,8BAA8B;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,wBAAwB;AAErD,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG;IAC5D;;;;;;;OAOG;IACH,oBAAoB,CAAC,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
@@ -1,6 +1,5 @@
1
- import type { KeyringExecutionContext } from "@metamask/keyring-api";
1
+ import type { KeyringExecutionContext, EthBaseTransaction, EthBaseUserOperation, EthUserOperation, EthUserOperationPatch } from "@metamask/keyring-api";
2
2
  import type { Json, Keyring } from "@metamask/utils";
3
- import type { EthBaseTransaction, EthBaseUserOperation, EthUserOperation, EthUserOperationPatch } from "./index.mjs";
4
3
  export type EthKeyring<State extends Json> = Keyring<State> & {
5
4
  /**
6
5
  * Convert a base transaction to a base UserOperation.
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.d.mts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,8BAA8B;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,wBAAwB;AAErD,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACtB,oBAAU;AAEX,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG;IAC5D;;;;;;;OAOG;IACH,oBAAoB,CAAC,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"EthKeyring.d.mts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACtB,8BAA8B;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,wBAAwB;AAErD,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG;IAC5D;;;;;;;OAOG;IACH,oBAAoB,CAAC,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.mjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"","sourcesContent":["import type { KeyringExecutionContext } from '@metamask/keyring-api';\nimport type { Json, Keyring } from '@metamask/utils';\n\nimport type {\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '.';\n\nexport type EthKeyring<State extends Json> = Keyring<State> & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
1
+ {"version":3,"file":"EthKeyring.mjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyringExecutionContext,\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '@metamask/keyring-api';\nimport type { Json, Keyring } from '@metamask/utils';\n\nexport type EthKeyring<State extends Json> = Keyring<State> & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
@@ -1,20 +1,3 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./erc4337/index.cjs"), exports);
18
- __exportStar(require("./types.cjs"), exports);
19
- __exportStar(require("./utils.cjs"), exports);
20
3
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAA0B;AAC1B,8CAAwB;AACxB,8CAAwB","sourcesContent":["export * from './erc4337';\nexport * from './types';\nexport * from './utils';\nexport type * from './EthKeyring';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './EthKeyring';\n"]}
@@ -1,5 +1,2 @@
1
- export * from "./erc4337/index.cjs";
2
- export * from "./types.cjs";
3
- export * from "./utils.cjs";
4
1
  export type * from "./EthKeyring.cjs";
5
2
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB;AACxB,sCAAkC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
@@ -1,5 +1,2 @@
1
- export * from "./erc4337/index.mjs";
2
- export * from "./types.mjs";
3
- export * from "./utils.mjs";
4
1
  export type * from "./EthKeyring.mjs";
5
2
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB;AACxB,sCAAkC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
@@ -1,4 +1,2 @@
1
- export * from "./erc4337/index.mjs";
2
- export * from "./types.mjs";
3
- export * from "./utils.mjs";
1
+ export {};
4
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB","sourcesContent":["export * from './erc4337';\nexport * from './types';\nexport * from './utils';\nexport type * from './EthKeyring';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './EthKeyring';\n"]}
package/dist/index.cjs CHANGED
@@ -14,11 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./btc/index.cjs"), exports);
18
- __exportStar(require("./eth/index.cjs"), exports);
19
- __exportStar(require("./sol/index.cjs"), exports);
20
- __exportStar(require("./api.cjs"), exports);
21
- __exportStar(require("./events.cjs"), exports);
22
- __exportStar(require("./rpc.cjs"), exports);
17
+ __exportStar(require("../../keyring-api/src/api/index.cjs"), exports);
23
18
  __exportStar(require("./types.cjs"), exports);
24
19
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,4CAAsB;AACtB,+CAAyB;AACzB,4CAAsB;AACtB,8CAAwB","sourcesContent":["export * from './btc';\nexport * from './eth';\nexport * from './sol';\nexport * from './api';\nexport * from './events';\nexport * from './rpc';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,sEAA0C;AAC1C,8CAAwB","sourcesContent":["export type * from './eth';\nexport * from '../../keyring-api/src/api';\nexport * from './types';\n"]}
package/dist/index.d.cts CHANGED
@@ -1,8 +1,4 @@
1
- export * from "./btc/index.cjs";
2
- export * from "./eth/index.cjs";
3
- export * from "./sol/index.cjs";
4
- export * from "./api.cjs";
5
- export * from "./events.cjs";
6
- export * from "./rpc.cjs";
1
+ export type * from "./eth/index.cjs";
2
+ export * from "../../keyring-api/src/api/index.cjs";
7
3
  export * from "./types.cjs";
8
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,0BAAsB;AACtB,6BAAyB;AACzB,0BAAsB;AACtB,4BAAwB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAA2B;AAC3B,oDAA0C;AAC1C,4BAAwB"}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,4 @@
1
- export * from "./btc/index.mjs";
2
- export * from "./eth/index.mjs";
3
- export * from "./sol/index.mjs";
4
- export * from "./api.mjs";
5
- export * from "./events.mjs";
6
- export * from "./rpc.mjs";
1
+ export type * from "./eth/index.mjs";
2
+ export * from "../../keyring-api/src/api/index.mjs";
7
3
  export * from "./types.mjs";
8
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,0BAAsB;AACtB,6BAAyB;AACzB,0BAAsB;AACtB,4BAAwB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAA2B;AAC3B,oDAA0C;AAC1C,4BAAwB"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,3 @@
1
- export * from "./btc/index.mjs";
2
- export * from "./eth/index.mjs";
3
- export * from "./sol/index.mjs";
4
- export * from "./api.mjs";
5
- export * from "./events.mjs";
6
- export * from "./rpc.mjs";
1
+ export * from "../../keyring-api/src/api/index.mjs";
7
2
  export * from "./types.mjs";
8
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,0BAAsB;AACtB,6BAAyB;AACzB,0BAAsB;AACtB,4BAAwB","sourcesContent":["export * from './btc';\nexport * from './eth';\nexport * from './sol';\nexport * from './api';\nexport * from './events';\nexport * from './rpc';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,oDAA0C;AAC1C,4BAAwB","sourcesContent":["export type * from './eth';\nexport * from '../../keyring-api/src/api';\nexport * from './types';\n"]}
package/dist/types.cjs CHANGED
@@ -8,9 +8,6 @@ exports.InternalAccountStruct = exports.InternalAccountStructs = exports.Interna
8
8
  const keyring_api_1 = require("@metamask/keyring-api");
9
9
  const keyring_utils_1 = require("@metamask/keyring-utils");
10
10
  const superstruct_1 = require("@metamask/superstruct");
11
- const types_1 = require("./btc/types.cjs");
12
- const types_2 = require("./eth/types.cjs");
13
- const types_3 = require("./sol/types.cjs");
14
11
  exports.InternalAccountMetadataStruct = (0, keyring_utils_1.object)({
15
12
  metadata: (0, keyring_utils_1.object)({
16
13
  name: (0, superstruct_1.string)(),
@@ -28,19 +25,19 @@ exports.InternalAccountMetadataStruct = (0, keyring_utils_1.object)({
28
25
  }),
29
26
  });
30
27
  exports.InternalEthEoaAccountStruct = (0, keyring_utils_1.object)({
31
- ...types_2.EthEoaAccountStruct.schema,
28
+ ...keyring_api_1.EthEoaAccountStruct.schema,
32
29
  ...exports.InternalAccountMetadataStruct.schema,
33
30
  });
34
31
  exports.InternalEthErc4337AccountStruct = (0, keyring_utils_1.object)({
35
- ...types_2.EthErc4337AccountStruct.schema,
32
+ ...keyring_api_1.EthErc4337AccountStruct.schema,
36
33
  ...exports.InternalAccountMetadataStruct.schema,
37
34
  });
38
35
  exports.InternalBtcP2wpkhAccountStruct = (0, keyring_utils_1.object)({
39
- ...types_1.BtcP2wpkhAccountStruct.schema,
36
+ ...keyring_api_1.BtcP2wpkhAccountStruct.schema,
40
37
  ...exports.InternalAccountMetadataStruct.schema,
41
38
  });
42
39
  exports.InternalSolDataAccountStruct = (0, keyring_utils_1.object)({
43
- ...types_3.SolDataAccountStruct.schema,
40
+ ...keyring_api_1.SolDataAccountStruct.schema,
44
41
  ...exports.InternalAccountMetadataStruct.schema,
45
42
  });
46
43
  exports.InternalAccountStructs = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sEAAsE;AACtE,qFAAqF;AACrF,8BAA8B;;;AAE9B,uDAK+B;AAC/B,2DAAgE;AAEhE,uDAAgE;AAEhE,2CAAqD;AACrD,2CAA2E;AAC3E,2CAAmD;AAOtC,QAAA,6BAA6B,GAAG,IAAA,sBAAM,EAAC;IAClD,QAAQ,EAAE,IAAA,sBAAM,EAAC;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AC5D,CAAC,GAAG,4BAAc,CAAC,WAAW,EAAE,CAAC,EAAE,oCAA4B;CAChE,CAAC;AAQW,QAAA,qBAAqB,GAAG,IAAA,sBAAM,EAAC;IAC1C,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nimport { BtcP2wpkhAccountStruct } from './btc/types';\nimport { EthEoaAccountStruct, EthErc4337AccountStruct } from './eth/types';\nimport { SolDataAccountStruct } from './sol/types';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalSolDataAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2wpkhAccount\n | InternalSolDataAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
1
+ {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sEAAsE;AACtE,qFAAqF;AACrF,8BAA8B;;;AAE9B,uDAS+B;AAC/B,2DAAgE;AAEhE,uDAAgE;AAOnD,QAAA,6BAA6B,GAAG,IAAA,sBAAM,EAAC;IAClD,QAAQ,EAAE,IAAA,sBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,iBAAiB,EAAE,IAAA,6BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QAC1C,IAAI,EAAE,IAAA,6BAAa,EACjB,IAAA,sBAAM,EAAC;YACL,EAAE,EAAE,IAAA,oBAA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AM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2wpkhAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalSolDataAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2wpkhAccount\n | InternalSolDataAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
package/dist/types.d.cts CHANGED
@@ -10,8 +10,8 @@ export declare const InternalAccountMetadataStruct: Struct<{
10
10
  };
11
11
  nameLastUpdatedAt?: number;
12
12
  snap?: {
13
- id: string;
14
13
  name: string;
14
+ id: string;
15
15
  enabled: boolean;
16
16
  };
17
17
  lastSelected?: number;
@@ -25,8 +25,8 @@ export declare const InternalAccountMetadataStruct: Struct<{
25
25
  };
26
26
  nameLastUpdatedAt?: number;
27
27
  snap?: {
28
- id: string;
29
28
  name: string;
29
+ id: string;
30
30
  enabled: boolean;
31
31
  };
32
32
  lastSelected?: number;
@@ -34,8 +34,8 @@ export declare const InternalAccountMetadataStruct: Struct<{
34
34
  name: Struct<string, null>;
35
35
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
36
36
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
37
- id: string;
38
37
  name: string;
38
+ id: string;
39
39
  enabled: boolean;
40
40
  }, {
41
41
  id: Struct<string, null>;
@@ -52,11 +52,9 @@ export declare const InternalAccountMetadataStruct: Struct<{
52
52
  }>;
53
53
  }>;
54
54
  export declare const InternalEthEoaAccountStruct: Struct<{
55
+ type: "eip155:eoa";
55
56
  id: string;
56
57
  options: Record<string, import("@metamask/utils").Json>;
57
- type: "eip155:eoa";
58
- address: string;
59
- methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
60
58
  metadata: {
61
59
  name: string;
62
60
  importTime: number;
@@ -65,12 +63,14 @@ export declare const InternalEthEoaAccountStruct: Struct<{
65
63
  };
66
64
  nameLastUpdatedAt?: number;
67
65
  snap?: {
68
- id: string;
69
66
  name: string;
67
+ id: string;
70
68
  enabled: boolean;
71
69
  };
72
70
  lastSelected?: number;
73
71
  };
72
+ address: string;
73
+ methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
74
74
  }, {
75
75
  metadata: Struct<{
76
76
  name: string;
@@ -80,8 +80,8 @@ export declare const InternalEthEoaAccountStruct: Struct<{
80
80
  };
81
81
  nameLastUpdatedAt?: number;
82
82
  snap?: {
83
- id: string;
84
83
  name: string;
84
+ id: string;
85
85
  enabled: boolean;
86
86
  };
87
87
  lastSelected?: number;
@@ -89,8 +89,8 @@ export declare const InternalEthEoaAccountStruct: Struct<{
89
89
  name: Struct<string, null>;
90
90
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
91
91
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
92
- id: string;
93
92
  name: string;
93
+ id: string;
94
94
  enabled: boolean;
95
95
  }, {
96
96
  id: Struct<string, null>;
@@ -105,9 +105,9 @@ export declare const InternalEthEoaAccountStruct: Struct<{
105
105
  type: Struct<string, null>;
106
106
  }>;
107
107
  }>;
108
- address: Struct<string, null>;
109
- type: Struct<"eip155:eoa", "eip155:eoa">;
110
- methods: Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
108
+ address: import("@metamask/superstruct").Struct<string, null>;
109
+ type: import("@metamask/superstruct").Struct<"eip155:eoa", "eip155:eoa">;
110
+ methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
111
111
  personal_sign: "personal_sign";
112
112
  eth_sign: "eth_sign";
113
113
  eth_signTransaction: "eth_signTransaction";
@@ -119,11 +119,9 @@ export declare const InternalEthEoaAccountStruct: Struct<{
119
119
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
120
120
  }>;
121
121
  export declare const InternalEthErc4337AccountStruct: Struct<{
122
+ type: "eip155:erc4337";
122
123
  id: string;
123
124
  options: Record<string, import("@metamask/utils").Json>;
124
- type: "eip155:erc4337";
125
- address: string;
126
- methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
127
125
  metadata: {
128
126
  name: string;
129
127
  importTime: number;
@@ -132,12 +130,14 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
132
130
  };
133
131
  nameLastUpdatedAt?: number;
134
132
  snap?: {
135
- id: string;
136
133
  name: string;
134
+ id: string;
137
135
  enabled: boolean;
138
136
  };
139
137
  lastSelected?: number;
140
138
  };
139
+ address: string;
140
+ methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
141
141
  }, {
142
142
  metadata: Struct<{
143
143
  name: string;
@@ -147,8 +147,8 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
147
147
  };
148
148
  nameLastUpdatedAt?: number;
149
149
  snap?: {
150
- id: string;
151
150
  name: string;
151
+ id: string;
152
152
  enabled: boolean;
153
153
  };
154
154
  lastSelected?: number;
@@ -156,8 +156,8 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
156
156
  name: Struct<string, null>;
157
157
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
158
158
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
159
- id: string;
160
159
  name: string;
160
+ id: string;
161
161
  enabled: boolean;
162
162
  }, {
163
163
  id: Struct<string, null>;
@@ -172,9 +172,9 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
172
172
  type: Struct<string, null>;
173
173
  }>;
174
174
  }>;
175
- address: Struct<string, null>;
176
- type: Struct<"eip155:erc4337", "eip155:erc4337">;
177
- methods: Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
175
+ address: import("@metamask/superstruct").Struct<string, null>;
176
+ type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
177
+ methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
178
178
  personal_sign: "personal_sign";
179
179
  eth_sign: "eth_sign";
180
180
  eth_signTypedData_v1: "eth_signTypedData_v1";
@@ -188,11 +188,9 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
188
188
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
189
189
  }>;
190
190
  export declare const InternalBtcP2wpkhAccountStruct: Struct<{
191
+ type: "bip122:p2wpkh";
191
192
  id: string;
192
193
  options: Record<string, import("@metamask/utils").Json>;
193
- type: "bip122:p2wpkh";
194
- address: string;
195
- methods: "sendBitcoin"[];
196
194
  metadata: {
197
195
  name: string;
198
196
  importTime: number;
@@ -201,12 +199,14 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
201
199
  };
202
200
  nameLastUpdatedAt?: number;
203
201
  snap?: {
204
- id: string;
205
202
  name: string;
203
+ id: string;
206
204
  enabled: boolean;
207
205
  };
208
206
  lastSelected?: number;
209
207
  };
208
+ address: string;
209
+ methods: "sendBitcoin"[];
210
210
  }, {
211
211
  metadata: Struct<{
212
212
  name: string;
@@ -216,8 +216,8 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
216
216
  };
217
217
  nameLastUpdatedAt?: number;
218
218
  snap?: {
219
- id: string;
220
219
  name: string;
220
+ id: string;
221
221
  enabled: boolean;
222
222
  };
223
223
  lastSelected?: number;
@@ -225,8 +225,8 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
225
225
  name: Struct<string, null>;
226
226
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
227
227
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
228
- id: string;
229
228
  name: string;
229
+ id: string;
230
230
  enabled: boolean;
231
231
  }, {
232
232
  id: Struct<string, null>;
@@ -241,20 +241,18 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
241
241
  type: Struct<string, null>;
242
242
  }>;
243
243
  }>;
244
- address: Struct<string, null>;
245
- type: Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
246
- methods: Struct<"sendBitcoin"[], Struct<"sendBitcoin", {
244
+ address: import("@metamask/superstruct").Struct<string, null>;
245
+ type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
246
+ methods: import("@metamask/superstruct").Struct<"sendBitcoin"[], import("@metamask/superstruct").Struct<"sendBitcoin", {
247
247
  sendBitcoin: "sendBitcoin";
248
248
  }>>;
249
249
  id: import("@metamask/superstruct").Struct<string, null>;
250
250
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
251
251
  }>;
252
252
  export declare const InternalSolDataAccountStruct: Struct<{
253
+ type: "solana:data-account";
253
254
  id: string;
254
255
  options: Record<string, import("@metamask/utils").Json>;
255
- type: "solana:data-account";
256
- address: string;
257
- methods: "sendAndConfirmTransaction"[];
258
256
  metadata: {
259
257
  name: string;
260
258
  importTime: number;
@@ -263,12 +261,14 @@ export declare const InternalSolDataAccountStruct: Struct<{
263
261
  };
264
262
  nameLastUpdatedAt?: number;
265
263
  snap?: {
266
- id: string;
267
264
  name: string;
265
+ id: string;
268
266
  enabled: boolean;
269
267
  };
270
268
  lastSelected?: number;
271
269
  };
270
+ address: string;
271
+ methods: "sendAndConfirmTransaction"[];
272
272
  }, {
273
273
  metadata: Struct<{
274
274
  name: string;
@@ -278,8 +278,8 @@ export declare const InternalSolDataAccountStruct: Struct<{
278
278
  };
279
279
  nameLastUpdatedAt?: number;
280
280
  snap?: {
281
- id: string;
282
281
  name: string;
282
+ id: string;
283
283
  enabled: boolean;
284
284
  };
285
285
  lastSelected?: number;
@@ -287,8 +287,8 @@ export declare const InternalSolDataAccountStruct: Struct<{
287
287
  name: Struct<string, null>;
288
288
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
289
289
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
290
- id: string;
291
290
  name: string;
291
+ id: string;
292
292
  enabled: boolean;
293
293
  }, {
294
294
  id: Struct<string, null>;
@@ -303,9 +303,9 @@ export declare const InternalSolDataAccountStruct: Struct<{
303
303
  type: Struct<string, null>;
304
304
  }>;
305
305
  }>;
306
- address: Struct<string, null>;
307
- type: Struct<"solana:data-account", "solana:data-account">;
308
- methods: Struct<"sendAndConfirmTransaction"[], Struct<"sendAndConfirmTransaction", {
306
+ address: import("@metamask/superstruct").Struct<string, null>;
307
+ type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
308
+ methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
309
309
  sendAndConfirmTransaction: "sendAndConfirmTransaction";
310
310
  }>>;
311
311
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -318,11 +318,9 @@ export type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;
318
318
  export declare const InternalAccountStructs: Record<string, Struct<InternalEthEoaAccount> | Struct<InternalEthErc4337Account> | Struct<InternalBtcP2wpkhAccount> | Struct<InternalSolDataAccount>>;
319
319
  export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2wpkhAccount | InternalSolDataAccount;
320
320
  export declare const InternalAccountStruct: Struct<{
321
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
321
322
  id: string;
322
323
  options: Record<string, import("@metamask/utils").Json>;
323
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
324
- address: string;
325
- methods: string[];
326
324
  metadata: {
327
325
  name: string;
328
326
  importTime: number;
@@ -331,12 +329,14 @@ export declare const InternalAccountStruct: Struct<{
331
329
  };
332
330
  nameLastUpdatedAt?: number;
333
331
  snap?: {
334
- id: string;
335
332
  name: string;
333
+ id: string;
336
334
  enabled: boolean;
337
335
  };
338
336
  lastSelected?: number;
339
337
  };
338
+ address: string;
339
+ methods: string[];
340
340
  }, {
341
341
  metadata: Struct<{
342
342
  name: string;
@@ -346,8 +346,8 @@ export declare const InternalAccountStruct: Struct<{
346
346
  };
347
347
  nameLastUpdatedAt?: number;
348
348
  snap?: {
349
- id: string;
350
349
  name: string;
350
+ id: string;
351
351
  enabled: boolean;
352
352
  };
353
353
  lastSelected?: number;
@@ -355,8 +355,8 @@ export declare const InternalAccountStruct: Struct<{
355
355
  name: Struct<string, null>;
356
356
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
357
357
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
358
- id: string;
359
358
  name: string;
359
+ id: string;
360
360
  enabled: boolean;
361
361
  }, {
362
362
  id: Struct<string, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EACf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAO3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1C,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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