@metamask-previews/keyring-api 23.2.0-023fc63 → 23.2.0-52bd218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/events.d.cts CHANGED
@@ -18,8 +18,6 @@ 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" | "stellar:account" | "any:account";
20
20
  id: string;
21
- address: string;
22
- scopes: `${string}:${string}`[];
23
21
  options: Record<string, import("@metamask/utils").Json> & {
24
22
  entropy?: {
25
23
  type: "mnemonic";
@@ -33,6 +31,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
33
31
  };
34
32
  exportable?: boolean;
35
33
  };
34
+ address: string;
35
+ scopes: `${string}:${string}`[];
36
36
  methods: string[];
37
37
  };
38
38
  metamask?: {
@@ -48,8 +48,6 @@ 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" | "stellar:account" | "any:account";
50
50
  id: string;
51
- address: string;
52
- scopes: `${string}:${string}`[];
53
51
  options: Record<string, import("@metamask/utils").Json> & {
54
52
  entropy?: {
55
53
  type: "mnemonic";
@@ -63,6 +61,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
63
61
  };
64
62
  exportable?: boolean;
65
63
  };
64
+ address: string;
65
+ scopes: `${string}:${string}`[];
66
66
  methods: string[];
67
67
  };
68
68
  metamask?: {
@@ -83,8 +83,6 @@ 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" | "stellar:account" | "any:account";
85
85
  id: string;
86
- address: string;
87
- scopes: `${string}:${string}`[];
88
86
  options: Record<string, import("@metamask/utils").Json> & {
89
87
  entropy?: {
90
88
  type: "mnemonic";
@@ -98,6 +96,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
98
96
  };
99
97
  exportable?: boolean;
100
98
  };
99
+ address: string;
100
+ scopes: `${string}:${string}`[];
101
101
  methods: string[];
102
102
  }, {
103
103
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -163,8 +163,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
163
163
  account: {
164
164
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
165
165
  id: string;
166
- address: string;
167
- scopes: `${string}:${string}`[];
168
166
  options: Record<string, import("@metamask/utils").Json> & {
169
167
  entropy?: {
170
168
  type: "mnemonic";
@@ -178,6 +176,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
178
176
  };
179
177
  exportable?: boolean;
180
178
  };
179
+ address: string;
180
+ scopes: `${string}:${string}`[];
181
181
  methods: string[];
182
182
  };
183
183
  };
@@ -187,8 +187,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
187
187
  account: {
188
188
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
189
189
  id: string;
190
- address: string;
191
- scopes: `${string}:${string}`[];
192
190
  options: Record<string, import("@metamask/utils").Json> & {
193
191
  entropy?: {
194
192
  type: "mnemonic";
@@ -202,6 +200,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
202
200
  };
203
201
  exportable?: boolean;
204
202
  };
203
+ address: string;
204
+ scopes: `${string}:${string}`[];
205
205
  methods: string[];
206
206
  };
207
207
  }, {
@@ -211,8 +211,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
211
211
  account: import("@metamask/superstruct").Struct<{
212
212
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
213
213
  id: string;
214
- address: string;
215
- scopes: `${string}:${string}`[];
216
214
  options: Record<string, import("@metamask/utils").Json> & {
217
215
  entropy?: {
218
216
  type: "mnemonic";
@@ -226,6 +224,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
226
224
  };
227
225
  exportable?: boolean;
228
226
  };
227
+ address: string;
228
+ scopes: `${string}:${string}`[];
229
229
  methods: string[];
230
230
  }, {
231
231
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -283,14 +283,14 @@ export type AccountDeletedEventPayload = AccountDeletedEvent['params'];
283
283
  export declare const RequestApprovedEventStruct: import("@metamask/superstruct").Struct<{
284
284
  method: "notify:requestApproved";
285
285
  params: {
286
- id: string;
287
286
  result: import("@metamask/utils").Json;
287
+ id: string;
288
288
  };
289
289
  }, {
290
290
  method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
291
291
  params: import("@metamask/superstruct").Struct<{
292
- id: string;
293
292
  result: import("@metamask/utils").Json;
293
+ id: string;
294
294
  }, {
295
295
  /**
296
296
  * Request ID.
@@ -368,17 +368,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
368
368
  method: "notify:accountTransactionsUpdated";
369
369
  params: {
370
370
  transactions: Record<string, {
371
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
371
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
372
372
  id: string;
373
- account: string;
374
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
375
- timestamp: number | null;
376
- chain: `${string}:${string}`;
377
373
  from: {
378
374
  address: string;
379
375
  asset: {
380
- type: `${string}:${string}/${string}:${string}`;
381
376
  unit: string;
377
+ type: `${string}:${string}/${string}:${string}`;
382
378
  amount: string;
383
379
  fungible: true;
384
380
  } | {
@@ -386,11 +382,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
386
382
  fungible: false;
387
383
  } | null;
388
384
  }[];
385
+ events: {
386
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
387
+ timestamp: number | null;
388
+ }[];
389
+ chain: `${string}:${string}`;
390
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
391
+ account: string;
392
+ timestamp: number | null;
389
393
  to: {
390
394
  address: string;
391
395
  asset: {
392
- type: `${string}:${string}/${string}:${string}`;
393
396
  unit: string;
397
+ type: `${string}:${string}/${string}:${string}`;
394
398
  amount: string;
395
399
  fungible: true;
396
400
  } | {
@@ -401,8 +405,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
401
405
  fees: {
402
406
  type: "base" | "priority";
403
407
  asset: {
404
- type: `${string}:${string}/${string}:${string}`;
405
408
  unit: string;
409
+ type: `${string}:${string}/${string}:${string}`;
406
410
  amount: string;
407
411
  fungible: true;
408
412
  } | {
@@ -410,10 +414,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
410
414
  fungible: false;
411
415
  };
412
416
  }[];
413
- events: {
414
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
415
- timestamp: number | null;
416
- }[];
417
417
  details?: {
418
418
  origin?: string;
419
419
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -424,17 +424,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
424
424
  method: import("@metamask/superstruct").Struct<"notify:accountTransactionsUpdated", "notify:accountTransactionsUpdated">;
425
425
  params: import("@metamask/superstruct").Struct<{
426
426
  transactions: Record<string, {
427
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
427
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
428
428
  id: string;
429
- account: string;
430
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
431
- timestamp: number | null;
432
- chain: `${string}:${string}`;
433
429
  from: {
434
430
  address: string;
435
431
  asset: {
436
- type: `${string}:${string}/${string}:${string}`;
437
432
  unit: string;
433
+ type: `${string}:${string}/${string}:${string}`;
438
434
  amount: string;
439
435
  fungible: true;
440
436
  } | {
@@ -442,11 +438,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
442
438
  fungible: false;
443
439
  } | null;
444
440
  }[];
441
+ events: {
442
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
443
+ timestamp: number | null;
444
+ }[];
445
+ chain: `${string}:${string}`;
446
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
447
+ account: string;
448
+ timestamp: number | null;
445
449
  to: {
446
450
  address: string;
447
451
  asset: {
448
- type: `${string}:${string}/${string}:${string}`;
449
452
  unit: string;
453
+ type: `${string}:${string}/${string}:${string}`;
450
454
  amount: string;
451
455
  fungible: true;
452
456
  } | {
@@ -457,8 +461,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
457
461
  fees: {
458
462
  type: "base" | "priority";
459
463
  asset: {
460
- type: `${string}:${string}/${string}:${string}`;
461
464
  unit: string;
465
+ type: `${string}:${string}/${string}:${string}`;
462
466
  amount: string;
463
467
  fungible: true;
464
468
  } | {
@@ -466,10 +470,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
466
470
  fungible: false;
467
471
  };
468
472
  }[];
469
- events: {
470
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
471
- timestamp: number | null;
472
- }[];
473
473
  details?: {
474
474
  origin?: string;
475
475
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -480,17 +480,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
480
480
  * Transactions updates of accounts owned by the Snap.
481
481
  */
482
482
  transactions: import("@metamask/superstruct").Struct<Record<string, {
483
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
483
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
484
484
  id: string;
485
- account: string;
486
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
487
- timestamp: number | null;
488
- chain: `${string}:${string}`;
489
485
  from: {
490
486
  address: string;
491
487
  asset: {
492
- type: `${string}:${string}/${string}:${string}`;
493
488
  unit: string;
489
+ type: `${string}:${string}/${string}:${string}`;
494
490
  amount: string;
495
491
  fungible: true;
496
492
  } | {
@@ -498,11 +494,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
498
494
  fungible: false;
499
495
  } | null;
500
496
  }[];
497
+ events: {
498
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
499
+ timestamp: number | null;
500
+ }[];
501
+ chain: `${string}:${string}`;
502
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
503
+ account: string;
504
+ timestamp: number | null;
501
505
  to: {
502
506
  address: string;
503
507
  asset: {
504
- type: `${string}:${string}/${string}:${string}`;
505
508
  unit: string;
509
+ type: `${string}:${string}/${string}:${string}`;
506
510
  amount: string;
507
511
  fungible: true;
508
512
  } | {
@@ -513,8 +517,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
513
517
  fees: {
514
518
  type: "base" | "priority";
515
519
  asset: {
516
- type: `${string}:${string}/${string}:${string}`;
517
520
  unit: string;
521
+ type: `${string}:${string}/${string}:${string}`;
518
522
  amount: string;
519
523
  fungible: true;
520
524
  } | {
@@ -522,10 +526,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
522
526
  fungible: false;
523
527
  };
524
528
  }[];
525
- events: {
526
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
527
- timestamp: number | null;
528
- }[];
529
529
  details?: {
530
530
  origin?: string;
531
531
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -546,24 +546,24 @@ export declare const AccountAssetListUpdatedEventStruct: import("@metamask/super
546
546
  method: "notify:accountAssetListUpdated";
547
547
  params: {
548
548
  assets: Record<string, {
549
- added: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
550
- removed: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
549
+ added: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
550
+ removed: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
551
551
  }>;
552
552
  };
553
553
  }, {
554
554
  method: import("@metamask/superstruct").Struct<"notify:accountAssetListUpdated", "notify:accountAssetListUpdated">;
555
555
  params: import("@metamask/superstruct").Struct<{
556
556
  assets: Record<string, {
557
- added: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
558
- removed: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
557
+ added: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
558
+ removed: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
559
559
  }>;
560
560
  }, {
561
561
  /**
562
562
  * Asset list update of accounts owned by the Snap.
563
563
  */
564
564
  assets: import("@metamask/superstruct").Struct<Record<string, {
565
- added: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
566
- removed: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
565
+ added: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
566
+ removed: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
567
567
  }>, null>;
568
568
  }>;
569
569
  }>;
package/dist/events.d.mts CHANGED
@@ -18,8 +18,6 @@ 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" | "stellar:account" | "any:account";
20
20
  id: string;
21
- address: string;
22
- scopes: `${string}:${string}`[];
23
21
  options: Record<string, import("@metamask/utils").Json> & {
24
22
  entropy?: {
25
23
  type: "mnemonic";
@@ -33,6 +31,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
33
31
  };
34
32
  exportable?: boolean;
35
33
  };
34
+ address: string;
35
+ scopes: `${string}:${string}`[];
36
36
  methods: string[];
37
37
  };
38
38
  metamask?: {
@@ -48,8 +48,6 @@ 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" | "stellar:account" | "any:account";
50
50
  id: string;
51
- address: string;
52
- scopes: `${string}:${string}`[];
53
51
  options: Record<string, import("@metamask/utils").Json> & {
54
52
  entropy?: {
55
53
  type: "mnemonic";
@@ -63,6 +61,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
63
61
  };
64
62
  exportable?: boolean;
65
63
  };
64
+ address: string;
65
+ scopes: `${string}:${string}`[];
66
66
  methods: string[];
67
67
  };
68
68
  metamask?: {
@@ -83,8 +83,6 @@ 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" | "stellar:account" | "any:account";
85
85
  id: string;
86
- address: string;
87
- scopes: `${string}:${string}`[];
88
86
  options: Record<string, import("@metamask/utils").Json> & {
89
87
  entropy?: {
90
88
  type: "mnemonic";
@@ -98,6 +96,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
98
96
  };
99
97
  exportable?: boolean;
100
98
  };
99
+ address: string;
100
+ scopes: `${string}:${string}`[];
101
101
  methods: string[];
102
102
  }, {
103
103
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -163,8 +163,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
163
163
  account: {
164
164
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
165
165
  id: string;
166
- address: string;
167
- scopes: `${string}:${string}`[];
168
166
  options: Record<string, import("@metamask/utils").Json> & {
169
167
  entropy?: {
170
168
  type: "mnemonic";
@@ -178,6 +176,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
178
176
  };
179
177
  exportable?: boolean;
180
178
  };
179
+ address: string;
180
+ scopes: `${string}:${string}`[];
181
181
  methods: string[];
182
182
  };
183
183
  };
@@ -187,8 +187,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
187
187
  account: {
188
188
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
189
189
  id: string;
190
- address: string;
191
- scopes: `${string}:${string}`[];
192
190
  options: Record<string, import("@metamask/utils").Json> & {
193
191
  entropy?: {
194
192
  type: "mnemonic";
@@ -202,6 +200,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
202
200
  };
203
201
  exportable?: boolean;
204
202
  };
203
+ address: string;
204
+ scopes: `${string}:${string}`[];
205
205
  methods: string[];
206
206
  };
207
207
  }, {
@@ -211,8 +211,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
211
211
  account: import("@metamask/superstruct").Struct<{
212
212
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
213
213
  id: string;
214
- address: string;
215
- scopes: `${string}:${string}`[];
216
214
  options: Record<string, import("@metamask/utils").Json> & {
217
215
  entropy?: {
218
216
  type: "mnemonic";
@@ -226,6 +224,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
226
224
  };
227
225
  exportable?: boolean;
228
226
  };
227
+ address: string;
228
+ scopes: `${string}:${string}`[];
229
229
  methods: string[];
230
230
  }, {
231
231
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -283,14 +283,14 @@ export type AccountDeletedEventPayload = AccountDeletedEvent['params'];
283
283
  export declare const RequestApprovedEventStruct: import("@metamask/superstruct").Struct<{
284
284
  method: "notify:requestApproved";
285
285
  params: {
286
- id: string;
287
286
  result: import("@metamask/utils").Json;
287
+ id: string;
288
288
  };
289
289
  }, {
290
290
  method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
291
291
  params: import("@metamask/superstruct").Struct<{
292
- id: string;
293
292
  result: import("@metamask/utils").Json;
293
+ id: string;
294
294
  }, {
295
295
  /**
296
296
  * Request ID.
@@ -368,17 +368,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
368
368
  method: "notify:accountTransactionsUpdated";
369
369
  params: {
370
370
  transactions: Record<string, {
371
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
371
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
372
372
  id: string;
373
- account: string;
374
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
375
- timestamp: number | null;
376
- chain: `${string}:${string}`;
377
373
  from: {
378
374
  address: string;
379
375
  asset: {
380
- type: `${string}:${string}/${string}:${string}`;
381
376
  unit: string;
377
+ type: `${string}:${string}/${string}:${string}`;
382
378
  amount: string;
383
379
  fungible: true;
384
380
  } | {
@@ -386,11 +382,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
386
382
  fungible: false;
387
383
  } | null;
388
384
  }[];
385
+ events: {
386
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
387
+ timestamp: number | null;
388
+ }[];
389
+ chain: `${string}:${string}`;
390
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
391
+ account: string;
392
+ timestamp: number | null;
389
393
  to: {
390
394
  address: string;
391
395
  asset: {
392
- type: `${string}:${string}/${string}:${string}`;
393
396
  unit: string;
397
+ type: `${string}:${string}/${string}:${string}`;
394
398
  amount: string;
395
399
  fungible: true;
396
400
  } | {
@@ -401,8 +405,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
401
405
  fees: {
402
406
  type: "base" | "priority";
403
407
  asset: {
404
- type: `${string}:${string}/${string}:${string}`;
405
408
  unit: string;
409
+ type: `${string}:${string}/${string}:${string}`;
406
410
  amount: string;
407
411
  fungible: true;
408
412
  } | {
@@ -410,10 +414,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
410
414
  fungible: false;
411
415
  };
412
416
  }[];
413
- events: {
414
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
415
- timestamp: number | null;
416
- }[];
417
417
  details?: {
418
418
  origin?: string;
419
419
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -424,17 +424,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
424
424
  method: import("@metamask/superstruct").Struct<"notify:accountTransactionsUpdated", "notify:accountTransactionsUpdated">;
425
425
  params: import("@metamask/superstruct").Struct<{
426
426
  transactions: Record<string, {
427
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
427
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
428
428
  id: string;
429
- account: string;
430
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
431
- timestamp: number | null;
432
- chain: `${string}:${string}`;
433
429
  from: {
434
430
  address: string;
435
431
  asset: {
436
- type: `${string}:${string}/${string}:${string}`;
437
432
  unit: string;
433
+ type: `${string}:${string}/${string}:${string}`;
438
434
  amount: string;
439
435
  fungible: true;
440
436
  } | {
@@ -442,11 +438,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
442
438
  fungible: false;
443
439
  } | null;
444
440
  }[];
441
+ events: {
442
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
443
+ timestamp: number | null;
444
+ }[];
445
+ chain: `${string}:${string}`;
446
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
447
+ account: string;
448
+ timestamp: number | null;
445
449
  to: {
446
450
  address: string;
447
451
  asset: {
448
- type: `${string}:${string}/${string}:${string}`;
449
452
  unit: string;
453
+ type: `${string}:${string}/${string}:${string}`;
450
454
  amount: string;
451
455
  fungible: true;
452
456
  } | {
@@ -457,8 +461,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
457
461
  fees: {
458
462
  type: "base" | "priority";
459
463
  asset: {
460
- type: `${string}:${string}/${string}:${string}`;
461
464
  unit: string;
465
+ type: `${string}:${string}/${string}:${string}`;
462
466
  amount: string;
463
467
  fungible: true;
464
468
  } | {
@@ -466,10 +470,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
466
470
  fungible: false;
467
471
  };
468
472
  }[];
469
- events: {
470
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
471
- timestamp: number | null;
472
- }[];
473
473
  details?: {
474
474
  origin?: string;
475
475
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -480,17 +480,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
480
480
  * Transactions updates of accounts owned by the Snap.
481
481
  */
482
482
  transactions: import("@metamask/superstruct").Struct<Record<string, {
483
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
483
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
484
484
  id: string;
485
- account: string;
486
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
487
- timestamp: number | null;
488
- chain: `${string}:${string}`;
489
485
  from: {
490
486
  address: string;
491
487
  asset: {
492
- type: `${string}:${string}/${string}:${string}`;
493
488
  unit: string;
489
+ type: `${string}:${string}/${string}:${string}`;
494
490
  amount: string;
495
491
  fungible: true;
496
492
  } | {
@@ -498,11 +494,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
498
494
  fungible: false;
499
495
  } | null;
500
496
  }[];
497
+ events: {
498
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
499
+ timestamp: number | null;
500
+ }[];
501
+ chain: `${string}:${string}`;
502
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
503
+ account: string;
504
+ timestamp: number | null;
501
505
  to: {
502
506
  address: string;
503
507
  asset: {
504
- type: `${string}:${string}/${string}:${string}`;
505
508
  unit: string;
509
+ type: `${string}:${string}/${string}:${string}`;
506
510
  amount: string;
507
511
  fungible: true;
508
512
  } | {
@@ -513,8 +517,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
513
517
  fees: {
514
518
  type: "base" | "priority";
515
519
  asset: {
516
- type: `${string}:${string}/${string}:${string}`;
517
520
  unit: string;
521
+ type: `${string}:${string}/${string}:${string}`;
518
522
  amount: string;
519
523
  fungible: true;
520
524
  } | {
@@ -522,10 +526,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
522
526
  fungible: false;
523
527
  };
524
528
  }[];
525
- events: {
526
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
527
- timestamp: number | null;
528
- }[];
529
529
  details?: {
530
530
  origin?: string;
531
531
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -546,24 +546,24 @@ export declare const AccountAssetListUpdatedEventStruct: import("@metamask/super
546
546
  method: "notify:accountAssetListUpdated";
547
547
  params: {
548
548
  assets: Record<string, {
549
- added: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
550
- removed: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
549
+ added: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
550
+ removed: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
551
551
  }>;
552
552
  };
553
553
  }, {
554
554
  method: import("@metamask/superstruct").Struct<"notify:accountAssetListUpdated", "notify:accountAssetListUpdated">;
555
555
  params: import("@metamask/superstruct").Struct<{
556
556
  assets: Record<string, {
557
- added: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
558
- removed: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
557
+ added: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
558
+ removed: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
559
559
  }>;
560
560
  }, {
561
561
  /**
562
562
  * Asset list update of accounts owned by the Snap.
563
563
  */
564
564
  assets: import("@metamask/superstruct").Struct<Record<string, {
565
- added: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
566
- removed: (`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[];
565
+ added: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
566
+ removed: (`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[];
567
567
  }>, null>;
568
568
  }>;
569
569
  }>;