@metamask-previews/keyring-api 21.5.0-543b4a0 → 21.5.0-cd75414

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 (39) hide show
  1. package/dist/api/account-options.cjs +4 -0
  2. package/dist/api/account-options.cjs.map +1 -1
  3. package/dist/api/account-options.d.cts +4 -0
  4. package/dist/api/account-options.d.cts.map +1 -1
  5. package/dist/api/account-options.d.mts +4 -0
  6. package/dist/api/account-options.d.mts.map +1 -1
  7. package/dist/api/account-options.mjs +4 -0
  8. package/dist/api/account-options.mjs.map +1 -1
  9. package/dist/api/account.d.cts +2 -2
  10. package/dist/api/account.d.mts +2 -2
  11. package/dist/api/asset.d.cts +2 -2
  12. package/dist/api/asset.d.mts +2 -2
  13. package/dist/api/request.d.cts +3 -3
  14. package/dist/api/request.d.mts +3 -3
  15. package/dist/api/response.d.cts +1 -1
  16. package/dist/api/response.d.mts +1 -1
  17. package/dist/api/transaction.d.cts +71 -71
  18. package/dist/api/transaction.d.mts +71 -71
  19. package/dist/api/v2/create-account/bip44.d.cts +1 -1
  20. package/dist/api/v2/create-account/bip44.d.mts +1 -1
  21. package/dist/api/v2/create-account/index.d.cts +1 -1
  22. package/dist/api/v2/create-account/index.d.mts +1 -1
  23. package/dist/btc/types.d.cts +8 -8
  24. package/dist/btc/types.d.mts +8 -8
  25. package/dist/eth/erc4337/types.d.cts +3 -3
  26. package/dist/eth/erc4337/types.d.mts +3 -3
  27. package/dist/eth/rpc/params.d.cts +29 -29
  28. package/dist/eth/rpc/params.d.mts +29 -29
  29. package/dist/eth/types.d.cts +4 -4
  30. package/dist/eth/types.d.mts +4 -4
  31. package/dist/events.d.cts +50 -50
  32. package/dist/events.d.mts +50 -50
  33. package/dist/rpc.d.cts +133 -133
  34. package/dist/rpc.d.mts +133 -133
  35. package/dist/sol/types.d.cts +2 -2
  36. package/dist/sol/types.d.mts +2 -2
  37. package/dist/trx/types.d.cts +2 -2
  38. package/dist/trx/types.d.mts +2 -2
  39. package/package.json +1 -1
@@ -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
- nonce: string;
9
8
  sender: string;
9
+ nonce: 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
- value: string;
39
- data: string;
40
38
  to: string;
39
+ data: string;
40
+ value: string;
41
41
  }, {
42
42
  /**
43
43
  * Address of the transaction recipient.
@@ -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;
18
17
  type?: string | number | undefined;
19
- data?: string | undefined;
20
18
  from?: string | undefined;
21
- chainId?: string | number | undefined;
22
- accessList?: {
23
- address: string;
24
- storageKeys: string[];
25
- }[] | undefined;
26
- nonce?: string | number | undefined;
27
19
  to?: string | null | undefined;
20
+ data?: string | undefined;
21
+ value?: string | number | undefined;
22
+ nonce?: string | number | undefined;
28
23
  maxFeePerGas?: string | number | undefined;
29
24
  maxPriorityFeePerGas?: string | number | undefined;
30
25
  gas?: string | number | undefined;
31
26
  gasLimit?: string | number | undefined;
32
27
  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
- name: string;
64
- value: unknown;
65
63
  type: string;
66
- }[], import("@metamask/superstruct").Struct<{
67
- name: string;
68
64
  value: unknown;
65
+ name: string;
66
+ }[], import("@metamask/superstruct").Struct<{
69
67
  type: string;
68
+ value: unknown;
69
+ name: 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
- name: string;
82
81
  type: string;
82
+ name: 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>;
92
91
  types: Record<string, {
93
- name: string;
94
92
  type: string;
93
+ name: string;
95
94
  }[]>;
96
95
  primaryType: string;
96
+ domain: Record<string, any>;
97
97
  }, {
98
98
  types: import("@metamask/superstruct").Struct<Record<string, {
99
- name: string;
100
99
  type: string;
100
+ name: 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;
137
136
  type?: string | number | undefined;
138
- data?: string | undefined;
139
137
  from?: string | undefined;
140
- chainId?: string | number | undefined;
141
- accessList?: {
142
- address: string;
143
- storageKeys: string[];
144
- }[] | undefined;
145
- nonce?: string | number | undefined;
146
138
  to?: string | null | undefined;
139
+ data?: string | undefined;
140
+ value?: string | number | undefined;
141
+ nonce?: string | number | undefined;
147
142
  maxFeePerGas?: string | number | undefined;
148
143
  maxPriorityFeePerGas?: string | number | undefined;
149
144
  gas?: string | number | undefined;
150
145
  gasLimit?: string | number | undefined;
151
146
  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
- name: string;
169
- value: unknown;
170
168
  type: string;
169
+ value: unknown;
170
+ name: 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>;
179
178
  types: Record<string, {
180
- name: string;
181
179
  type: string;
180
+ name: string;
182
181
  }[]>;
183
182
  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;
18
17
  type?: string | number | undefined;
19
- data?: string | undefined;
20
18
  from?: string | undefined;
21
- chainId?: string | number | undefined;
22
- accessList?: {
23
- address: string;
24
- storageKeys: string[];
25
- }[] | undefined;
26
- nonce?: string | number | undefined;
27
19
  to?: string | null | undefined;
20
+ data?: string | undefined;
21
+ value?: string | number | undefined;
22
+ nonce?: string | number | undefined;
28
23
  maxFeePerGas?: string | number | undefined;
29
24
  maxPriorityFeePerGas?: string | number | undefined;
30
25
  gas?: string | number | undefined;
31
26
  gasLimit?: string | number | undefined;
32
27
  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
- name: string;
64
- value: unknown;
65
63
  type: string;
66
- }[], import("@metamask/superstruct").Struct<{
67
- name: string;
68
64
  value: unknown;
65
+ name: string;
66
+ }[], import("@metamask/superstruct").Struct<{
69
67
  type: string;
68
+ value: unknown;
69
+ name: 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
- name: string;
82
81
  type: string;
82
+ name: 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>;
92
91
  types: Record<string, {
93
- name: string;
94
92
  type: string;
93
+ name: string;
95
94
  }[]>;
96
95
  primaryType: string;
96
+ domain: Record<string, any>;
97
97
  }, {
98
98
  types: import("@metamask/superstruct").Struct<Record<string, {
99
- name: string;
100
99
  type: string;
100
+ name: 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;
137
136
  type?: string | number | undefined;
138
- data?: string | undefined;
139
137
  from?: string | undefined;
140
- chainId?: string | number | undefined;
141
- accessList?: {
142
- address: string;
143
- storageKeys: string[];
144
- }[] | undefined;
145
- nonce?: string | number | undefined;
146
138
  to?: string | null | undefined;
139
+ data?: string | undefined;
140
+ value?: string | number | undefined;
141
+ nonce?: string | number | undefined;
147
142
  maxFeePerGas?: string | number | undefined;
148
143
  maxPriorityFeePerGas?: string | number | undefined;
149
144
  gas?: string | number | undefined;
150
145
  gasLimit?: string | number | undefined;
151
146
  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
- name: string;
169
- value: unknown;
170
168
  type: string;
169
+ value: unknown;
170
+ name: 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>;
179
178
  types: Record<string, {
180
- name: string;
181
179
  type: string;
180
+ name: string;
182
181
  }[]>;
183
182
  primaryType: string;
183
+ domain: Record<string, any>;
184
184
  }], null>;
185
185
  export type EthSignTypedDataParams = Infer<typeof EthSignTypedDataParamsStruct>;
186
186
  /**
@@ -21,6 +21,8 @@ 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[];
24
26
  options: Record<string, import("@metamask/utils").Json> & {
25
27
  entropy?: {
26
28
  type: "mnemonic";
@@ -34,8 +36,6 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
34
36
  };
35
37
  exportable?: boolean;
36
38
  };
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,6 +80,8 @@ 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}`[];
83
85
  options: Record<string, import("@metamask/utils").Json> & {
84
86
  entropy?: {
85
87
  type: "mnemonic";
@@ -93,8 +95,6 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
93
95
  };
94
96
  exportable?: boolean;
95
97
  };
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,6 +21,8 @@ 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[];
24
26
  options: Record<string, import("@metamask/utils").Json> & {
25
27
  entropy?: {
26
28
  type: "mnemonic";
@@ -34,8 +36,6 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
34
36
  };
35
37
  exportable?: boolean;
36
38
  };
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,6 +80,8 @@ 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}`[];
83
85
  options: Record<string, import("@metamask/utils").Json> & {
84
86
  entropy?: {
85
87
  type: "mnemonic";
@@ -93,8 +95,6 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
93
95
  };
94
96
  exportable?: boolean;
95
97
  };
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
  /**
package/dist/events.d.cts CHANGED
@@ -18,6 +18,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
18
18
  account: {
19
19
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
20
20
  id: string;
21
+ address: string;
22
+ scopes: `${string}:${string}`[];
21
23
  options: Record<string, import("@metamask/utils").Json> & {
22
24
  entropy?: {
23
25
  type: "mnemonic";
@@ -31,8 +33,6 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
31
33
  };
32
34
  exportable?: boolean;
33
35
  };
34
- address: string;
35
- scopes: `${string}:${string}`[];
36
36
  methods: string[];
37
37
  };
38
38
  metamask?: {
@@ -48,6 +48,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
48
48
  account: {
49
49
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
50
50
  id: string;
51
+ address: string;
52
+ scopes: `${string}:${string}`[];
51
53
  options: Record<string, import("@metamask/utils").Json> & {
52
54
  entropy?: {
53
55
  type: "mnemonic";
@@ -61,8 +63,6 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
61
63
  };
62
64
  exportable?: boolean;
63
65
  };
64
- address: string;
65
- scopes: `${string}:${string}`[];
66
66
  methods: string[];
67
67
  };
68
68
  metamask?: {
@@ -83,6 +83,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
83
83
  account: import("@metamask/superstruct").Struct<{
84
84
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
85
85
  id: string;
86
+ address: string;
87
+ scopes: `${string}:${string}`[];
86
88
  options: Record<string, import("@metamask/utils").Json> & {
87
89
  entropy?: {
88
90
  type: "mnemonic";
@@ -96,8 +98,6 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
96
98
  };
97
99
  exportable?: boolean;
98
100
  };
99
- address: string;
100
- scopes: `${string}:${string}`[];
101
101
  methods: string[];
102
102
  }, {
103
103
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -162,6 +162,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
162
162
  account: {
163
163
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
164
164
  id: string;
165
+ address: string;
166
+ scopes: `${string}:${string}`[];
165
167
  options: Record<string, import("@metamask/utils").Json> & {
166
168
  entropy?: {
167
169
  type: "mnemonic";
@@ -175,8 +177,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
175
177
  };
176
178
  exportable?: boolean;
177
179
  };
178
- address: string;
179
- scopes: `${string}:${string}`[];
180
180
  methods: string[];
181
181
  };
182
182
  };
@@ -186,6 +186,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
186
186
  account: {
187
187
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
188
188
  id: string;
189
+ address: string;
190
+ scopes: `${string}:${string}`[];
189
191
  options: Record<string, import("@metamask/utils").Json> & {
190
192
  entropy?: {
191
193
  type: "mnemonic";
@@ -199,8 +201,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
199
201
  };
200
202
  exportable?: boolean;
201
203
  };
202
- address: string;
203
- scopes: `${string}:${string}`[];
204
204
  methods: string[];
205
205
  };
206
206
  }, {
@@ -210,6 +210,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
210
210
  account: import("@metamask/superstruct").Struct<{
211
211
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
212
212
  id: string;
213
+ address: string;
214
+ scopes: `${string}:${string}`[];
213
215
  options: Record<string, import("@metamask/utils").Json> & {
214
216
  entropy?: {
215
217
  type: "mnemonic";
@@ -223,8 +225,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
223
225
  };
224
226
  exportable?: boolean;
225
227
  };
226
- address: string;
227
- scopes: `${string}:${string}`[];
228
228
  methods: string[];
229
229
  }, {
230
230
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -281,14 +281,14 @@ export type AccountDeletedEventPayload = AccountDeletedEvent['params'];
281
281
  export declare const RequestApprovedEventStruct: import("@metamask/superstruct").Struct<{
282
282
  method: "notify:requestApproved";
283
283
  params: {
284
- result: import("@metamask/utils").Json;
285
284
  id: string;
285
+ result: import("@metamask/utils").Json;
286
286
  };
287
287
  }, {
288
288
  method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
289
289
  params: import("@metamask/superstruct").Struct<{
290
- result: import("@metamask/utils").Json;
291
290
  id: string;
291
+ result: import("@metamask/utils").Json;
292
292
  }, {
293
293
  /**
294
294
  * Request ID.
@@ -366,13 +366,17 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
366
366
  method: "notify:accountTransactionsUpdated";
367
367
  params: {
368
368
  transactions: Record<string, {
369
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
369
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
370
370
  id: string;
371
+ account: string;
372
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
373
+ timestamp: number | null;
374
+ chain: `${string}:${string}`;
371
375
  from: {
372
376
  address: string;
373
377
  asset: {
374
- unit: string;
375
378
  type: `${string}:${string}/${string}:${string}`;
379
+ unit: string;
376
380
  amount: string;
377
381
  fungible: true;
378
382
  } | {
@@ -380,19 +384,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
380
384
  fungible: false;
381
385
  } | null;
382
386
  }[];
383
- events: {
384
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
385
- timestamp: number | null;
386
- }[];
387
- chain: `${string}:${string}`;
388
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
389
- account: string;
390
- timestamp: number | null;
391
387
  to: {
392
388
  address: string;
393
389
  asset: {
394
- unit: string;
395
390
  type: `${string}:${string}/${string}:${string}`;
391
+ unit: string;
396
392
  amount: string;
397
393
  fungible: true;
398
394
  } | {
@@ -403,8 +399,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
403
399
  fees: {
404
400
  type: "base" | "priority";
405
401
  asset: {
406
- unit: string;
407
402
  type: `${string}:${string}/${string}:${string}`;
403
+ unit: string;
408
404
  amount: string;
409
405
  fungible: true;
410
406
  } | {
@@ -412,6 +408,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
412
408
  fungible: false;
413
409
  };
414
410
  }[];
411
+ events: {
412
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
413
+ timestamp: number | null;
414
+ }[];
415
415
  details?: {
416
416
  origin?: string;
417
417
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -422,13 +422,17 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
422
422
  method: import("@metamask/superstruct").Struct<"notify:accountTransactionsUpdated", "notify:accountTransactionsUpdated">;
423
423
  params: import("@metamask/superstruct").Struct<{
424
424
  transactions: Record<string, {
425
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
425
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
426
426
  id: string;
427
+ account: string;
428
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
429
+ timestamp: number | null;
430
+ chain: `${string}:${string}`;
427
431
  from: {
428
432
  address: string;
429
433
  asset: {
430
- unit: string;
431
434
  type: `${string}:${string}/${string}:${string}`;
435
+ unit: string;
432
436
  amount: string;
433
437
  fungible: true;
434
438
  } | {
@@ -436,19 +440,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
436
440
  fungible: false;
437
441
  } | null;
438
442
  }[];
439
- events: {
440
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
441
- timestamp: number | null;
442
- }[];
443
- chain: `${string}:${string}`;
444
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
445
- account: string;
446
- timestamp: number | null;
447
443
  to: {
448
444
  address: string;
449
445
  asset: {
450
- unit: string;
451
446
  type: `${string}:${string}/${string}:${string}`;
447
+ unit: string;
452
448
  amount: string;
453
449
  fungible: true;
454
450
  } | {
@@ -459,8 +455,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
459
455
  fees: {
460
456
  type: "base" | "priority";
461
457
  asset: {
462
- unit: string;
463
458
  type: `${string}:${string}/${string}:${string}`;
459
+ unit: string;
464
460
  amount: string;
465
461
  fungible: true;
466
462
  } | {
@@ -468,6 +464,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
468
464
  fungible: false;
469
465
  };
470
466
  }[];
467
+ events: {
468
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
469
+ timestamp: number | null;
470
+ }[];
471
471
  details?: {
472
472
  origin?: string;
473
473
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -478,13 +478,17 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
478
478
  * Transactions updates of accounts owned by the Snap.
479
479
  */
480
480
  transactions: import("@metamask/superstruct").Struct<Record<string, {
481
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
481
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
482
482
  id: string;
483
+ account: string;
484
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
485
+ timestamp: number | null;
486
+ chain: `${string}:${string}`;
483
487
  from: {
484
488
  address: string;
485
489
  asset: {
486
- unit: string;
487
490
  type: `${string}:${string}/${string}:${string}`;
491
+ unit: string;
488
492
  amount: string;
489
493
  fungible: true;
490
494
  } | {
@@ -492,19 +496,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
492
496
  fungible: false;
493
497
  } | null;
494
498
  }[];
495
- events: {
496
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
497
- timestamp: number | null;
498
- }[];
499
- chain: `${string}:${string}`;
500
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
501
- account: string;
502
- timestamp: number | null;
503
499
  to: {
504
500
  address: string;
505
501
  asset: {
506
- unit: string;
507
502
  type: `${string}:${string}/${string}:${string}`;
503
+ unit: string;
508
504
  amount: string;
509
505
  fungible: true;
510
506
  } | {
@@ -515,8 +511,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
515
511
  fees: {
516
512
  type: "base" | "priority";
517
513
  asset: {
518
- unit: string;
519
514
  type: `${string}:${string}/${string}:${string}`;
515
+ unit: string;
520
516
  amount: string;
521
517
  fungible: true;
522
518
  } | {
@@ -524,6 +520,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
524
520
  fungible: false;
525
521
  };
526
522
  }[];
523
+ events: {
524
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
525
+ timestamp: number | null;
526
+ }[];
527
527
  details?: {
528
528
  origin?: string;
529
529
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";