@metamask-previews/keyring-api 21.5.0-cd75414 → 22.0.0-8ff7ba2

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 (104) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/dist/api/account-options.cjs +0 -4
  3. package/dist/api/account-options.cjs.map +1 -1
  4. package/dist/api/account-options.d.cts +0 -4
  5. package/dist/api/account-options.d.cts.map +1 -1
  6. package/dist/api/account-options.d.mts +0 -4
  7. package/dist/api/account-options.d.mts.map +1 -1
  8. package/dist/api/account-options.mjs +0 -4
  9. package/dist/api/account-options.mjs.map +1 -1
  10. package/dist/api/account.d.cts +2 -2
  11. package/dist/api/account.d.mts +2 -2
  12. package/dist/api/asset.d.cts +2 -2
  13. package/dist/api/asset.d.mts +2 -2
  14. package/dist/api/request.d.cts +3 -3
  15. package/dist/api/request.d.mts +3 -3
  16. package/dist/api/response.d.cts +1 -1
  17. package/dist/api/response.d.mts +1 -1
  18. package/dist/api/transaction.d.cts +71 -71
  19. package/dist/api/transaction.d.mts +71 -71
  20. package/dist/api/v2/create-account/bip44.d.cts +1 -1
  21. package/dist/api/v2/create-account/bip44.d.mts +1 -1
  22. package/dist/api/v2/create-account/index.d.cts +1 -1
  23. package/dist/api/v2/create-account/index.d.mts +1 -1
  24. package/dist/api/v2/index.cjs +0 -1
  25. package/dist/api/v2/index.cjs.map +1 -1
  26. package/dist/api/v2/index.d.cts +0 -1
  27. package/dist/api/v2/index.d.cts.map +1 -1
  28. package/dist/api/v2/index.d.mts +0 -1
  29. package/dist/api/v2/index.d.mts.map +1 -1
  30. package/dist/api/v2/index.mjs +0 -1
  31. package/dist/api/v2/index.mjs.map +1 -1
  32. package/dist/api/v2/keyring-type.cjs +4 -0
  33. package/dist/api/v2/keyring-type.cjs.map +1 -1
  34. package/dist/api/v2/keyring-type.d.cts +5 -1
  35. package/dist/api/v2/keyring-type.d.cts.map +1 -1
  36. package/dist/api/v2/keyring-type.d.mts +5 -1
  37. package/dist/api/v2/keyring-type.d.mts.map +1 -1
  38. package/dist/api/v2/keyring-type.mjs +4 -0
  39. package/dist/api/v2/keyring-type.mjs.map +1 -1
  40. package/dist/btc/types.d.cts +8 -8
  41. package/dist/btc/types.d.mts +8 -8
  42. package/dist/eth/erc4337/types.d.cts +3 -3
  43. package/dist/eth/erc4337/types.d.mts +3 -3
  44. package/dist/eth/index.cjs +0 -1
  45. package/dist/eth/index.cjs.map +1 -1
  46. package/dist/eth/index.d.cts +0 -1
  47. package/dist/eth/index.d.cts.map +1 -1
  48. package/dist/eth/index.d.mts +0 -1
  49. package/dist/eth/index.d.mts.map +1 -1
  50. package/dist/eth/index.mjs +0 -1
  51. package/dist/eth/index.mjs.map +1 -1
  52. package/dist/eth/rpc/params.d.cts +29 -29
  53. package/dist/eth/rpc/params.d.mts +29 -29
  54. package/dist/eth/types.d.cts +4 -4
  55. package/dist/eth/types.d.mts +4 -4
  56. package/dist/events.d.cts +50 -50
  57. package/dist/events.d.mts +50 -50
  58. package/dist/rpc.d.cts +133 -133
  59. package/dist/rpc.d.mts +133 -133
  60. package/dist/sol/types.d.cts +2 -2
  61. package/dist/sol/types.d.mts +2 -2
  62. package/dist/trx/types.d.cts +2 -2
  63. package/dist/trx/types.d.mts +2 -2
  64. package/package.json +3 -8
  65. package/dist/api/v2/wrapper/index.cjs +0 -19
  66. package/dist/api/v2/wrapper/index.cjs.map +0 -1
  67. package/dist/api/v2/wrapper/index.d.cts +0 -3
  68. package/dist/api/v2/wrapper/index.d.cts.map +0 -1
  69. package/dist/api/v2/wrapper/index.d.mts +0 -3
  70. package/dist/api/v2/wrapper/index.d.mts.map +0 -1
  71. package/dist/api/v2/wrapper/index.mjs +0 -3
  72. package/dist/api/v2/wrapper/index.mjs.map +0 -1
  73. package/dist/api/v2/wrapper/keyring-account-registry.cjs +0 -135
  74. package/dist/api/v2/wrapper/keyring-account-registry.cjs.map +0 -1
  75. package/dist/api/v2/wrapper/keyring-account-registry.d.cts +0 -88
  76. package/dist/api/v2/wrapper/keyring-account-registry.d.cts.map +0 -1
  77. package/dist/api/v2/wrapper/keyring-account-registry.d.mts +0 -88
  78. package/dist/api/v2/wrapper/keyring-account-registry.d.mts.map +0 -1
  79. package/dist/api/v2/wrapper/keyring-account-registry.mjs +0 -131
  80. package/dist/api/v2/wrapper/keyring-account-registry.mjs.map +0 -1
  81. package/dist/api/v2/wrapper/keyring-wrapper.cjs +0 -134
  82. package/dist/api/v2/wrapper/keyring-wrapper.cjs.map +0 -1
  83. package/dist/api/v2/wrapper/keyring-wrapper.d.cts +0 -154
  84. package/dist/api/v2/wrapper/keyring-wrapper.d.cts.map +0 -1
  85. package/dist/api/v2/wrapper/keyring-wrapper.d.mts +0 -154
  86. package/dist/api/v2/wrapper/keyring-wrapper.d.mts.map +0 -1
  87. package/dist/api/v2/wrapper/keyring-wrapper.mjs +0 -130
  88. package/dist/api/v2/wrapper/keyring-wrapper.mjs.map +0 -1
  89. package/dist/eth/v2/eth-keyring-wrapper.cjs +0 -165
  90. package/dist/eth/v2/eth-keyring-wrapper.cjs.map +0 -1
  91. package/dist/eth/v2/eth-keyring-wrapper.d.cts +0 -54
  92. package/dist/eth/v2/eth-keyring-wrapper.d.cts.map +0 -1
  93. package/dist/eth/v2/eth-keyring-wrapper.d.mts +0 -54
  94. package/dist/eth/v2/eth-keyring-wrapper.d.mts.map +0 -1
  95. package/dist/eth/v2/eth-keyring-wrapper.mjs +0 -161
  96. package/dist/eth/v2/eth-keyring-wrapper.mjs.map +0 -1
  97. package/dist/eth/v2/index.cjs +0 -18
  98. package/dist/eth/v2/index.cjs.map +0 -1
  99. package/dist/eth/v2/index.d.cts +0 -2
  100. package/dist/eth/v2/index.d.cts.map +0 -1
  101. package/dist/eth/v2/index.d.mts +0 -2
  102. package/dist/eth/v2/index.d.mts.map +0 -1
  103. package/dist/eth/v2/index.mjs +0 -2
  104. package/dist/eth/v2/index.mjs.map +0 -1
@@ -20,8 +20,6 @@ export declare enum BtcMethod {
20
20
  export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Struct<{
21
21
  type: "bip122:p2pkh";
22
22
  id: string;
23
- address: string;
24
- scopes: `${string}:${string}`[];
25
23
  options: Record<string, import("@metamask/utils").Json> & {
26
24
  entropy?: {
27
25
  type: "mnemonic";
@@ -35,6 +33,8 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
35
33
  };
36
34
  exportable?: boolean;
37
35
  };
36
+ address: string;
37
+ scopes: `${string}:${string}`[];
38
38
  methods: BtcMethod[];
39
39
  }, {
40
40
  /**
@@ -81,8 +81,6 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
81
81
  export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struct<{
82
82
  type: "bip122:p2sh";
83
83
  id: string;
84
- address: string;
85
- scopes: `${string}:${string}`[];
86
84
  options: Record<string, import("@metamask/utils").Json> & {
87
85
  entropy?: {
88
86
  type: "mnemonic";
@@ -96,6 +94,8 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
96
94
  };
97
95
  exportable?: boolean;
98
96
  };
97
+ address: string;
98
+ scopes: `${string}:${string}`[];
99
99
  methods: BtcMethod[];
100
100
  }, {
101
101
  /**
@@ -142,8 +142,6 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
142
142
  export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Struct<{
143
143
  type: "bip122:p2wpkh";
144
144
  id: string;
145
- address: string;
146
- scopes: `${string}:${string}`[];
147
145
  options: Record<string, import("@metamask/utils").Json> & {
148
146
  entropy?: {
149
147
  type: "mnemonic";
@@ -157,6 +155,8 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
157
155
  };
158
156
  exportable?: boolean;
159
157
  };
158
+ address: string;
159
+ scopes: `${string}:${string}`[];
160
160
  methods: BtcMethod[];
161
161
  }, {
162
162
  /**
@@ -203,8 +203,6 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
203
203
  export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struct<{
204
204
  type: "bip122:p2tr";
205
205
  id: string;
206
- address: string;
207
- scopes: `${string}:${string}`[];
208
206
  options: Record<string, import("@metamask/utils").Json> & {
209
207
  entropy?: {
210
208
  type: "mnemonic";
@@ -218,6 +216,8 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
218
216
  };
219
217
  exportable?: boolean;
220
218
  };
219
+ address: string;
220
+ scopes: `${string}:${string}`[];
221
221
  methods: BtcMethod[];
222
222
  }, {
223
223
  /**
@@ -20,8 +20,6 @@ export declare enum BtcMethod {
20
20
  export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Struct<{
21
21
  type: "bip122:p2pkh";
22
22
  id: string;
23
- address: string;
24
- scopes: `${string}:${string}`[];
25
23
  options: Record<string, import("@metamask/utils").Json> & {
26
24
  entropy?: {
27
25
  type: "mnemonic";
@@ -35,6 +33,8 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
35
33
  };
36
34
  exportable?: boolean;
37
35
  };
36
+ address: string;
37
+ scopes: `${string}:${string}`[];
38
38
  methods: BtcMethod[];
39
39
  }, {
40
40
  /**
@@ -81,8 +81,6 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
81
81
  export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struct<{
82
82
  type: "bip122:p2sh";
83
83
  id: string;
84
- address: string;
85
- scopes: `${string}:${string}`[];
86
84
  options: Record<string, import("@metamask/utils").Json> & {
87
85
  entropy?: {
88
86
  type: "mnemonic";
@@ -96,6 +94,8 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
96
94
  };
97
95
  exportable?: boolean;
98
96
  };
97
+ address: string;
98
+ scopes: `${string}:${string}`[];
99
99
  methods: BtcMethod[];
100
100
  }, {
101
101
  /**
@@ -142,8 +142,6 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
142
142
  export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Struct<{
143
143
  type: "bip122:p2wpkh";
144
144
  id: string;
145
- address: string;
146
- scopes: `${string}:${string}`[];
147
145
  options: Record<string, import("@metamask/utils").Json> & {
148
146
  entropy?: {
149
147
  type: "mnemonic";
@@ -157,6 +155,8 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
157
155
  };
158
156
  exportable?: boolean;
159
157
  };
158
+ address: string;
159
+ scopes: `${string}:${string}`[];
160
160
  methods: BtcMethod[];
161
161
  }, {
162
162
  /**
@@ -203,8 +203,6 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
203
203
  export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struct<{
204
204
  type: "bip122:p2tr";
205
205
  id: string;
206
- address: string;
207
- scopes: `${string}:${string}`[];
208
206
  options: Record<string, import("@metamask/utils").Json> & {
209
207
  entropy?: {
210
208
  type: "mnemonic";
@@ -218,6 +216,8 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
218
216
  };
219
217
  exportable?: boolean;
220
218
  };
219
+ address: string;
220
+ scopes: `${string}:${string}`[];
221
221
  methods: BtcMethod[];
222
222
  }, {
223
223
  /**
@@ -5,8 +5,8 @@ import { type Infer } from "@metamask/superstruct";
5
5
  * @see https://eips.ethereum.org/EIPS/eip-4337#definitions
6
6
  */
7
7
  export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
8
- sender: string;
9
8
  nonce: string;
9
+ sender: string;
10
10
  initCode: string;
11
11
  callData: string;
12
12
  callGasLimit: string;
@@ -35,9 +35,9 @@ export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
35
35
  * construct a UserOperation.
36
36
  */
37
37
  export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
38
- to: string;
39
- data: string;
40
38
  value: string;
39
+ data: string;
40
+ to: string;
41
41
  }, {
42
42
  /**
43
43
  * Address of the transaction recipient.
@@ -5,8 +5,8 @@ import { type Infer } from "@metamask/superstruct";
5
5
  * @see https://eips.ethereum.org/EIPS/eip-4337#definitions
6
6
  */
7
7
  export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
8
- sender: string;
9
8
  nonce: string;
9
+ sender: string;
10
10
  initCode: string;
11
11
  callData: string;
12
12
  callGasLimit: string;
@@ -35,9 +35,9 @@ export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
35
35
  * construct a UserOperation.
36
36
  */
37
37
  export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
38
- to: string;
39
- data: string;
40
38
  value: string;
39
+ data: string;
40
+ to: string;
41
41
  }, {
42
42
  /**
43
43
  * Address of the transaction recipient.
@@ -19,5 +19,4 @@ __exportStar(require("./erc4337/index.cjs"), exports);
19
19
  __exportStar(require("./rpc/index.cjs"), exports);
20
20
  __exportStar(require("./types.cjs"), exports);
21
21
  __exportStar(require("./utils.cjs"), exports);
22
- __exportStar(require("./v2/index.cjs"), exports);
23
22
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAC5B,sDAA0B;AAC1B,kDAAsB;AACtB,8CAAwB;AACxB,8CAAwB;AACxB,iDAAqB","sourcesContent":["export * from './constants';\nexport * from './erc4337';\nexport * from './rpc';\nexport * from './types';\nexport * from './utils';\nexport * from './v2';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAC5B,sDAA0B;AAC1B,kDAAsB;AACtB,8CAAwB;AACxB,8CAAwB","sourcesContent":["export * from './constants';\nexport * from './erc4337';\nexport * from './rpc';\nexport * from './types';\nexport * from './utils';\n"]}
@@ -3,5 +3,4 @@ export * from "./erc4337/index.cjs";
3
3
  export * from "./rpc/index.cjs";
4
4
  export * from "./types.cjs";
5
5
  export * from "./utils.cjs";
6
- export * from "./v2/index.cjs";
7
6
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,gCAAsB;AACtB,4BAAwB;AACxB,4BAAwB;AACxB,+BAAqB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,gCAAsB;AACtB,4BAAwB;AACxB,4BAAwB"}
@@ -3,5 +3,4 @@ export * from "./erc4337/index.mjs";
3
3
  export * from "./rpc/index.mjs";
4
4
  export * from "./types.mjs";
5
5
  export * from "./utils.mjs";
6
- export * from "./v2/index.mjs";
7
6
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,gCAAsB;AACtB,4BAAwB;AACxB,4BAAwB;AACxB,+BAAqB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,gCAAsB;AACtB,4BAAwB;AACxB,4BAAwB"}
@@ -3,5 +3,4 @@ export * from "./erc4337/index.mjs";
3
3
  export * from "./rpc/index.mjs";
4
4
  export * from "./types.mjs";
5
5
  export * from "./utils.mjs";
6
- export * from "./v2/index.mjs";
7
6
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,gCAAsB;AACtB,4BAAwB;AACxB,4BAAwB;AACxB,+BAAqB","sourcesContent":["export * from './constants';\nexport * from './erc4337';\nexport * from './rpc';\nexport * from './types';\nexport * from './utils';\nexport * from './v2';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,gCAAsB;AACtB,4BAAwB;AACxB,4BAAwB","sourcesContent":["export * from './constants';\nexport * from './erc4337';\nexport * from './rpc';\nexport * from './types';\nexport * from './utils';\n"]}
@@ -14,22 +14,22 @@ import type { Infer } from "@metamask/superstruct";
14
14
  * The actual transaction validation is performed by the transaction library.
15
15
  */
16
16
  export declare const EthTransactionDataStruct: import("@metamask/superstruct").Struct<{
17
+ value?: string | number | undefined;
17
18
  type?: string | number | undefined;
18
- from?: string | undefined;
19
- to?: string | null | undefined;
20
19
  data?: string | undefined;
21
- value?: string | number | undefined;
20
+ from?: string | undefined;
21
+ chainId?: string | number | undefined;
22
+ accessList?: {
23
+ address: string;
24
+ storageKeys: string[];
25
+ }[] | undefined;
22
26
  nonce?: string | number | undefined;
27
+ to?: string | null | undefined;
23
28
  maxFeePerGas?: string | number | undefined;
24
29
  maxPriorityFeePerGas?: string | number | undefined;
25
30
  gas?: string | number | undefined;
26
31
  gasLimit?: string | number | undefined;
27
32
  gasPrice?: string | number | undefined;
28
- accessList?: {
29
- address: string;
30
- storageKeys: string[];
31
- }[] | undefined;
32
- chainId?: string | number | undefined;
33
33
  }, {
34
34
  to: import("@metamask/superstruct").Struct<string | null | undefined, null>;
35
35
  from: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -60,13 +60,13 @@ export type EthTransactionData = Infer<typeof EthTransactionDataStruct>;
60
60
  * This is an array of { type, name, value } objects.
61
61
  */
62
62
  export declare const EthTypedDataV1Struct: import("@metamask/superstruct").Struct<{
63
- type: string;
64
- value: unknown;
65
63
  name: string;
66
- }[], import("@metamask/superstruct").Struct<{
67
- type: string;
68
64
  value: unknown;
65
+ type: string;
66
+ }[], import("@metamask/superstruct").Struct<{
69
67
  name: string;
68
+ value: unknown;
69
+ type: string;
70
70
  }, {
71
71
  type: import("@metamask/superstruct").Struct<string, null>;
72
72
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -78,8 +78,8 @@ export type EthTypedDataV1 = Infer<typeof EthTypedDataV1Struct>;
78
78
  * Maps type names to arrays of { name, type } definitions.
79
79
  */
80
80
  export declare const EthTypedDataTypesStruct: import("@metamask/superstruct").Struct<Record<string, {
81
- type: string;
82
81
  name: string;
82
+ type: string;
83
83
  }[]>, null>;
84
84
  export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
85
85
  /**
@@ -88,16 +88,16 @@ export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
88
88
  */
89
89
  export declare const EthTypedMessageStruct: import("@metamask/superstruct").Struct<{
90
90
  message: Record<string, any>;
91
+ domain: Record<string, any>;
91
92
  types: Record<string, {
92
- type: string;
93
93
  name: string;
94
+ type: string;
94
95
  }[]>;
95
96
  primaryType: string;
96
- domain: Record<string, any>;
97
97
  }, {
98
98
  types: import("@metamask/superstruct").Struct<Record<string, {
99
- type: string;
100
99
  name: string;
100
+ type: string;
101
101
  }[]>, null>;
102
102
  primaryType: import("@metamask/superstruct").Struct<string, null>;
103
103
  domain: import("@metamask/superstruct").Struct<Record<string, any>, null>;
@@ -133,22 +133,22 @@ export declare const EthGetEncryptionPublicKeyOptionsStruct: import("@metamask/s
133
133
  * Parameters for `eth_signTransaction`.
134
134
  */
135
135
  export declare const EthSignTransactionParamsStruct: import("@metamask/superstruct").Struct<[{
136
+ value?: string | number | undefined;
136
137
  type?: string | number | undefined;
137
- from?: string | undefined;
138
- to?: string | null | undefined;
139
138
  data?: string | undefined;
140
- value?: string | number | undefined;
139
+ from?: string | undefined;
140
+ chainId?: string | number | undefined;
141
+ accessList?: {
142
+ address: string;
143
+ storageKeys: string[];
144
+ }[] | undefined;
141
145
  nonce?: string | number | undefined;
146
+ to?: string | null | undefined;
142
147
  maxFeePerGas?: string | number | undefined;
143
148
  maxPriorityFeePerGas?: string | number | undefined;
144
149
  gas?: string | number | undefined;
145
150
  gasLimit?: string | number | undefined;
146
151
  gasPrice?: string | number | undefined;
147
- accessList?: {
148
- address: string;
149
- storageKeys: string[];
150
- }[] | undefined;
151
- chainId?: string | number | undefined;
152
152
  }], null>;
153
153
  export type EthSignTransactionParams = Infer<typeof EthSignTransactionParamsStruct>;
154
154
  /**
@@ -159,15 +159,15 @@ export type EthSignParams = Infer<typeof EthSignParamsStruct>;
159
159
  /**
160
160
  * Parameters for `personal_sign`.
161
161
  */
162
- export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string] | [string, string], null>;
162
+ export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string, string] | [string], null>;
163
163
  export type EthPersonalSignParams = Infer<typeof EthPersonalSignParamsStruct>;
164
164
  /**
165
165
  * Parameters for `eth_signTypedData_v1`.
166
166
  */
167
167
  export declare const EthSignTypedDataV1ParamsStruct: import("@metamask/superstruct").Struct<[string, {
168
- type: string;
169
- value: unknown;
170
168
  name: string;
169
+ value: unknown;
170
+ type: string;
171
171
  }[]], null>;
172
172
  export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStruct>;
173
173
  /**
@@ -175,12 +175,12 @@ export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStru
175
175
  */
176
176
  export declare const EthSignTypedDataParamsStruct: import("@metamask/superstruct").Struct<[string, {
177
177
  message: Record<string, any>;
178
+ domain: Record<string, any>;
178
179
  types: Record<string, {
179
- type: string;
180
180
  name: string;
181
+ type: string;
181
182
  }[]>;
182
183
  primaryType: string;
183
- domain: Record<string, any>;
184
184
  }], null>;
185
185
  export type EthSignTypedDataParams = Infer<typeof EthSignTypedDataParamsStruct>;
186
186
  /**
@@ -14,22 +14,22 @@ import type { Infer } from "@metamask/superstruct";
14
14
  * The actual transaction validation is performed by the transaction library.
15
15
  */
16
16
  export declare const EthTransactionDataStruct: import("@metamask/superstruct").Struct<{
17
+ value?: string | number | undefined;
17
18
  type?: string | number | undefined;
18
- from?: string | undefined;
19
- to?: string | null | undefined;
20
19
  data?: string | undefined;
21
- value?: string | number | undefined;
20
+ from?: string | undefined;
21
+ chainId?: string | number | undefined;
22
+ accessList?: {
23
+ address: string;
24
+ storageKeys: string[];
25
+ }[] | undefined;
22
26
  nonce?: string | number | undefined;
27
+ to?: string | null | undefined;
23
28
  maxFeePerGas?: string | number | undefined;
24
29
  maxPriorityFeePerGas?: string | number | undefined;
25
30
  gas?: string | number | undefined;
26
31
  gasLimit?: string | number | undefined;
27
32
  gasPrice?: string | number | undefined;
28
- accessList?: {
29
- address: string;
30
- storageKeys: string[];
31
- }[] | undefined;
32
- chainId?: string | number | undefined;
33
33
  }, {
34
34
  to: import("@metamask/superstruct").Struct<string | null | undefined, null>;
35
35
  from: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -60,13 +60,13 @@ export type EthTransactionData = Infer<typeof EthTransactionDataStruct>;
60
60
  * This is an array of { type, name, value } objects.
61
61
  */
62
62
  export declare const EthTypedDataV1Struct: import("@metamask/superstruct").Struct<{
63
- type: string;
64
- value: unknown;
65
63
  name: string;
66
- }[], import("@metamask/superstruct").Struct<{
67
- type: string;
68
64
  value: unknown;
65
+ type: string;
66
+ }[], import("@metamask/superstruct").Struct<{
69
67
  name: string;
68
+ value: unknown;
69
+ type: string;
70
70
  }, {
71
71
  type: import("@metamask/superstruct").Struct<string, null>;
72
72
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -78,8 +78,8 @@ export type EthTypedDataV1 = Infer<typeof EthTypedDataV1Struct>;
78
78
  * Maps type names to arrays of { name, type } definitions.
79
79
  */
80
80
  export declare const EthTypedDataTypesStruct: import("@metamask/superstruct").Struct<Record<string, {
81
- type: string;
82
81
  name: string;
82
+ type: string;
83
83
  }[]>, null>;
84
84
  export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
85
85
  /**
@@ -88,16 +88,16 @@ export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
88
88
  */
89
89
  export declare const EthTypedMessageStruct: import("@metamask/superstruct").Struct<{
90
90
  message: Record<string, any>;
91
+ domain: Record<string, any>;
91
92
  types: Record<string, {
92
- type: string;
93
93
  name: string;
94
+ type: string;
94
95
  }[]>;
95
96
  primaryType: string;
96
- domain: Record<string, any>;
97
97
  }, {
98
98
  types: import("@metamask/superstruct").Struct<Record<string, {
99
- type: string;
100
99
  name: string;
100
+ type: string;
101
101
  }[]>, null>;
102
102
  primaryType: import("@metamask/superstruct").Struct<string, null>;
103
103
  domain: import("@metamask/superstruct").Struct<Record<string, any>, null>;
@@ -133,22 +133,22 @@ export declare const EthGetEncryptionPublicKeyOptionsStruct: import("@metamask/s
133
133
  * Parameters for `eth_signTransaction`.
134
134
  */
135
135
  export declare const EthSignTransactionParamsStruct: import("@metamask/superstruct").Struct<[{
136
+ value?: string | number | undefined;
136
137
  type?: string | number | undefined;
137
- from?: string | undefined;
138
- to?: string | null | undefined;
139
138
  data?: string | undefined;
140
- value?: string | number | undefined;
139
+ from?: string | undefined;
140
+ chainId?: string | number | undefined;
141
+ accessList?: {
142
+ address: string;
143
+ storageKeys: string[];
144
+ }[] | undefined;
141
145
  nonce?: string | number | undefined;
146
+ to?: string | null | undefined;
142
147
  maxFeePerGas?: string | number | undefined;
143
148
  maxPriorityFeePerGas?: string | number | undefined;
144
149
  gas?: string | number | undefined;
145
150
  gasLimit?: string | number | undefined;
146
151
  gasPrice?: string | number | undefined;
147
- accessList?: {
148
- address: string;
149
- storageKeys: string[];
150
- }[] | undefined;
151
- chainId?: string | number | undefined;
152
152
  }], null>;
153
153
  export type EthSignTransactionParams = Infer<typeof EthSignTransactionParamsStruct>;
154
154
  /**
@@ -159,15 +159,15 @@ export type EthSignParams = Infer<typeof EthSignParamsStruct>;
159
159
  /**
160
160
  * Parameters for `personal_sign`.
161
161
  */
162
- export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string] | [string, string], null>;
162
+ export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string, string] | [string], null>;
163
163
  export type EthPersonalSignParams = Infer<typeof EthPersonalSignParamsStruct>;
164
164
  /**
165
165
  * Parameters for `eth_signTypedData_v1`.
166
166
  */
167
167
  export declare const EthSignTypedDataV1ParamsStruct: import("@metamask/superstruct").Struct<[string, {
168
- type: string;
169
- value: unknown;
170
168
  name: string;
169
+ value: unknown;
170
+ type: string;
171
171
  }[]], null>;
172
172
  export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStruct>;
173
173
  /**
@@ -175,12 +175,12 @@ export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStru
175
175
  */
176
176
  export declare const EthSignTypedDataParamsStruct: import("@metamask/superstruct").Struct<[string, {
177
177
  message: Record<string, any>;
178
+ domain: Record<string, any>;
178
179
  types: Record<string, {
179
- type: string;
180
180
  name: string;
181
+ type: string;
181
182
  }[]>;
182
183
  primaryType: string;
183
- domain: Record<string, any>;
184
184
  }], null>;
185
185
  export type EthSignTypedDataParams = Infer<typeof EthSignTypedDataParamsStruct>;
186
186
  /**
@@ -21,8 +21,6 @@ export declare enum EthMethod {
21
21
  export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
22
22
  type: "eip155:eoa";
23
23
  id: string;
24
- address: string;
25
- scopes: EthScope.Eoa[];
26
24
  options: Record<string, import("@metamask/utils").Json> & {
27
25
  entropy?: {
28
26
  type: "mnemonic";
@@ -36,6 +34,8 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
36
34
  };
37
35
  exportable?: boolean;
38
36
  };
37
+ address: string;
38
+ scopes: EthScope.Eoa[];
39
39
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
40
40
  }, {
41
41
  /**
@@ -80,8 +80,6 @@ export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
80
80
  export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
81
81
  type: "eip155:erc4337";
82
82
  id: string;
83
- address: string;
84
- scopes: `${string}:${string}`[];
85
83
  options: Record<string, import("@metamask/utils").Json> & {
86
84
  entropy?: {
87
85
  type: "mnemonic";
@@ -95,6 +93,8 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
95
93
  };
96
94
  exportable?: boolean;
97
95
  };
96
+ address: string;
97
+ scopes: `${string}:${string}`[];
98
98
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
99
99
  }, {
100
100
  /**
@@ -21,8 +21,6 @@ export declare enum EthMethod {
21
21
  export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
22
22
  type: "eip155:eoa";
23
23
  id: string;
24
- address: string;
25
- scopes: EthScope.Eoa[];
26
24
  options: Record<string, import("@metamask/utils").Json> & {
27
25
  entropy?: {
28
26
  type: "mnemonic";
@@ -36,6 +34,8 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
36
34
  };
37
35
  exportable?: boolean;
38
36
  };
37
+ address: string;
38
+ scopes: EthScope.Eoa[];
39
39
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
40
40
  }, {
41
41
  /**
@@ -80,8 +80,6 @@ export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
80
80
  export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
81
81
  type: "eip155:erc4337";
82
82
  id: string;
83
- address: string;
84
- scopes: `${string}:${string}`[];
85
83
  options: Record<string, import("@metamask/utils").Json> & {
86
84
  entropy?: {
87
85
  type: "mnemonic";
@@ -95,6 +93,8 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
95
93
  };
96
94
  exportable?: boolean;
97
95
  };
96
+ address: string;
97
+ scopes: `${string}:${string}`[];
98
98
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
99
99
  }, {
100
100
  /**