@metamask-previews/keyring-api 23.1.0-bc99865 → 23.2.0-023fc63
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/CHANGELOG.md +8 -4
- package/dist/api/account.d.cts +2 -2
- package/dist/api/account.d.mts +2 -2
- package/dist/api/asset.d.cts +2 -2
- package/dist/api/asset.d.mts +2 -2
- package/dist/api/request.d.cts +3 -3
- package/dist/api/request.d.mts +3 -3
- package/dist/api/response.d.cts +1 -1
- package/dist/api/response.d.mts +1 -1
- package/dist/api/transaction.d.cts +71 -71
- package/dist/api/transaction.d.mts +71 -71
- package/dist/btc/types.d.cts +8 -8
- package/dist/btc/types.d.mts +8 -8
- package/dist/eth/erc4337/types.d.cts +3 -3
- package/dist/eth/erc4337/types.d.mts +3 -3
- package/dist/eth/rpc/params.d.cts +29 -29
- package/dist/eth/rpc/params.d.mts +29 -29
- package/dist/eth/types.cjs +5 -2
- package/dist/eth/types.cjs.map +1 -1
- package/dist/eth/types.d.cts +5 -4
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +5 -4
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/eth/types.mjs +4 -1
- package/dist/eth/types.mjs.map +1 -1
- package/dist/events.d.cts +56 -56
- package/dist/events.d.mts +56 -56
- package/dist/rpc.d.cts +131 -131
- package/dist/rpc.d.mts +131 -131
- package/dist/sol/types.d.cts +2 -2
- package/dist/sol/types.d.mts +2 -2
- package/dist/trx/types.d.cts +2 -2
- package/dist/trx/types.d.mts +2 -2
- package/dist/v2/api/create-account/bip44.d.cts +1 -1
- package/dist/v2/api/create-account/bip44.d.mts +1 -1
- package/dist/v2/api/create-account/index.d.cts +1 -1
- package/dist/v2/api/create-account/index.d.mts +1 -1
- package/dist/v2/api/keyring-rpc.d.cts +28 -28
- package/dist/v2/api/keyring-rpc.d.mts +28 -28
- package/dist/xlm/types.d.cts +2 -2
- package/dist/xlm/types.d.mts +2 -2
- package/package.json +1 -1
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" | "stellar:account" | "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" | "stellar:account" | "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" | "stellar:account" | "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>;
|
|
@@ -163,6 +163,8 @@ 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}`[];
|
|
166
168
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
167
169
|
entropy?: {
|
|
168
170
|
type: "mnemonic";
|
|
@@ -176,8 +178,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
176
178
|
};
|
|
177
179
|
exportable?: boolean;
|
|
178
180
|
};
|
|
179
|
-
address: string;
|
|
180
|
-
scopes: `${string}:${string}`[];
|
|
181
181
|
methods: string[];
|
|
182
182
|
};
|
|
183
183
|
};
|
|
@@ -187,6 +187,8 @@ 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}`[];
|
|
190
192
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
191
193
|
entropy?: {
|
|
192
194
|
type: "mnemonic";
|
|
@@ -200,8 +202,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
200
202
|
};
|
|
201
203
|
exportable?: boolean;
|
|
202
204
|
};
|
|
203
|
-
address: string;
|
|
204
|
-
scopes: `${string}:${string}`[];
|
|
205
205
|
methods: string[];
|
|
206
206
|
};
|
|
207
207
|
}, {
|
|
@@ -211,6 +211,8 @@ 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}`[];
|
|
214
216
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
215
217
|
entropy?: {
|
|
216
218
|
type: "mnemonic";
|
|
@@ -224,8 +226,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
224
226
|
};
|
|
225
227
|
exportable?: boolean;
|
|
226
228
|
};
|
|
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
|
-
result: import("@metamask/utils").Json;
|
|
287
286
|
id: string;
|
|
287
|
+
result: import("@metamask/utils").Json;
|
|
288
288
|
};
|
|
289
289
|
}, {
|
|
290
290
|
method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
|
|
291
291
|
params: import("@metamask/superstruct").Struct<{
|
|
292
|
-
result: import("@metamask/utils").Json;
|
|
293
292
|
id: string;
|
|
293
|
+
result: import("@metamask/utils").Json;
|
|
294
294
|
}, {
|
|
295
295
|
/**
|
|
296
296
|
* Request ID.
|
|
@@ -368,13 +368,17 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
368
368
|
method: "notify:accountTransactionsUpdated";
|
|
369
369
|
params: {
|
|
370
370
|
transactions: Record<string, {
|
|
371
|
-
type: "
|
|
371
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
372
372
|
id: string;
|
|
373
|
+
account: string;
|
|
374
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
375
|
+
timestamp: number | null;
|
|
376
|
+
chain: `${string}:${string}`;
|
|
373
377
|
from: {
|
|
374
378
|
address: string;
|
|
375
379
|
asset: {
|
|
376
|
-
unit: string;
|
|
377
380
|
type: `${string}:${string}/${string}:${string}`;
|
|
381
|
+
unit: string;
|
|
378
382
|
amount: string;
|
|
379
383
|
fungible: true;
|
|
380
384
|
} | {
|
|
@@ -382,19 +386,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
382
386
|
fungible: false;
|
|
383
387
|
} | null;
|
|
384
388
|
}[];
|
|
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;
|
|
393
389
|
to: {
|
|
394
390
|
address: string;
|
|
395
391
|
asset: {
|
|
396
|
-
unit: string;
|
|
397
392
|
type: `${string}:${string}/${string}:${string}`;
|
|
393
|
+
unit: string;
|
|
398
394
|
amount: string;
|
|
399
395
|
fungible: true;
|
|
400
396
|
} | {
|
|
@@ -405,8 +401,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
405
401
|
fees: {
|
|
406
402
|
type: "base" | "priority";
|
|
407
403
|
asset: {
|
|
408
|
-
unit: string;
|
|
409
404
|
type: `${string}:${string}/${string}:${string}`;
|
|
405
|
+
unit: string;
|
|
410
406
|
amount: string;
|
|
411
407
|
fungible: true;
|
|
412
408
|
} | {
|
|
@@ -414,6 +410,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
414
410
|
fungible: false;
|
|
415
411
|
};
|
|
416
412
|
}[];
|
|
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,13 +424,17 @@ 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: "
|
|
427
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
428
428
|
id: string;
|
|
429
|
+
account: string;
|
|
430
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
431
|
+
timestamp: number | null;
|
|
432
|
+
chain: `${string}:${string}`;
|
|
429
433
|
from: {
|
|
430
434
|
address: string;
|
|
431
435
|
asset: {
|
|
432
|
-
unit: string;
|
|
433
436
|
type: `${string}:${string}/${string}:${string}`;
|
|
437
|
+
unit: string;
|
|
434
438
|
amount: string;
|
|
435
439
|
fungible: true;
|
|
436
440
|
} | {
|
|
@@ -438,19 +442,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
438
442
|
fungible: false;
|
|
439
443
|
} | null;
|
|
440
444
|
}[];
|
|
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;
|
|
449
445
|
to: {
|
|
450
446
|
address: string;
|
|
451
447
|
asset: {
|
|
452
|
-
unit: string;
|
|
453
448
|
type: `${string}:${string}/${string}:${string}`;
|
|
449
|
+
unit: string;
|
|
454
450
|
amount: string;
|
|
455
451
|
fungible: true;
|
|
456
452
|
} | {
|
|
@@ -461,8 +457,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
461
457
|
fees: {
|
|
462
458
|
type: "base" | "priority";
|
|
463
459
|
asset: {
|
|
464
|
-
unit: string;
|
|
465
460
|
type: `${string}:${string}/${string}:${string}`;
|
|
461
|
+
unit: string;
|
|
466
462
|
amount: string;
|
|
467
463
|
fungible: true;
|
|
468
464
|
} | {
|
|
@@ -470,6 +466,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
470
466
|
fungible: false;
|
|
471
467
|
};
|
|
472
468
|
}[];
|
|
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,13 +480,17 @@ 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: "
|
|
483
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
484
484
|
id: string;
|
|
485
|
+
account: string;
|
|
486
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
487
|
+
timestamp: number | null;
|
|
488
|
+
chain: `${string}:${string}`;
|
|
485
489
|
from: {
|
|
486
490
|
address: string;
|
|
487
491
|
asset: {
|
|
488
|
-
unit: string;
|
|
489
492
|
type: `${string}:${string}/${string}:${string}`;
|
|
493
|
+
unit: string;
|
|
490
494
|
amount: string;
|
|
491
495
|
fungible: true;
|
|
492
496
|
} | {
|
|
@@ -494,19 +498,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
494
498
|
fungible: false;
|
|
495
499
|
} | null;
|
|
496
500
|
}[];
|
|
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;
|
|
505
501
|
to: {
|
|
506
502
|
address: string;
|
|
507
503
|
asset: {
|
|
508
|
-
unit: string;
|
|
509
504
|
type: `${string}:${string}/${string}:${string}`;
|
|
505
|
+
unit: string;
|
|
510
506
|
amount: string;
|
|
511
507
|
fungible: true;
|
|
512
508
|
} | {
|
|
@@ -517,8 +513,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
517
513
|
fees: {
|
|
518
514
|
type: "base" | "priority";
|
|
519
515
|
asset: {
|
|
520
|
-
unit: string;
|
|
521
516
|
type: `${string}:${string}/${string}:${string}`;
|
|
517
|
+
unit: string;
|
|
522
518
|
amount: string;
|
|
523
519
|
fungible: true;
|
|
524
520
|
} | {
|
|
@@ -526,6 +522,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
526
522
|
fungible: false;
|
|
527
523
|
};
|
|
528
524
|
}[];
|
|
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}
|
|
550
|
-
removed: (`${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}
|
|
558
|
-
removed: (`${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}
|
|
566
|
-
removed: (`${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,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" | "stellar:account" | "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" | "stellar:account" | "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" | "stellar:account" | "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>;
|
|
@@ -163,6 +163,8 @@ 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}`[];
|
|
166
168
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
167
169
|
entropy?: {
|
|
168
170
|
type: "mnemonic";
|
|
@@ -176,8 +178,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
176
178
|
};
|
|
177
179
|
exportable?: boolean;
|
|
178
180
|
};
|
|
179
|
-
address: string;
|
|
180
|
-
scopes: `${string}:${string}`[];
|
|
181
181
|
methods: string[];
|
|
182
182
|
};
|
|
183
183
|
};
|
|
@@ -187,6 +187,8 @@ 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}`[];
|
|
190
192
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
191
193
|
entropy?: {
|
|
192
194
|
type: "mnemonic";
|
|
@@ -200,8 +202,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
200
202
|
};
|
|
201
203
|
exportable?: boolean;
|
|
202
204
|
};
|
|
203
|
-
address: string;
|
|
204
|
-
scopes: `${string}:${string}`[];
|
|
205
205
|
methods: string[];
|
|
206
206
|
};
|
|
207
207
|
}, {
|
|
@@ -211,6 +211,8 @@ 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}`[];
|
|
214
216
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
215
217
|
entropy?: {
|
|
216
218
|
type: "mnemonic";
|
|
@@ -224,8 +226,6 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
224
226
|
};
|
|
225
227
|
exportable?: boolean;
|
|
226
228
|
};
|
|
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
|
-
result: import("@metamask/utils").Json;
|
|
287
286
|
id: string;
|
|
287
|
+
result: import("@metamask/utils").Json;
|
|
288
288
|
};
|
|
289
289
|
}, {
|
|
290
290
|
method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
|
|
291
291
|
params: import("@metamask/superstruct").Struct<{
|
|
292
|
-
result: import("@metamask/utils").Json;
|
|
293
292
|
id: string;
|
|
293
|
+
result: import("@metamask/utils").Json;
|
|
294
294
|
}, {
|
|
295
295
|
/**
|
|
296
296
|
* Request ID.
|
|
@@ -368,13 +368,17 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
368
368
|
method: "notify:accountTransactionsUpdated";
|
|
369
369
|
params: {
|
|
370
370
|
transactions: Record<string, {
|
|
371
|
-
type: "
|
|
371
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
372
372
|
id: string;
|
|
373
|
+
account: string;
|
|
374
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
375
|
+
timestamp: number | null;
|
|
376
|
+
chain: `${string}:${string}`;
|
|
373
377
|
from: {
|
|
374
378
|
address: string;
|
|
375
379
|
asset: {
|
|
376
|
-
unit: string;
|
|
377
380
|
type: `${string}:${string}/${string}:${string}`;
|
|
381
|
+
unit: string;
|
|
378
382
|
amount: string;
|
|
379
383
|
fungible: true;
|
|
380
384
|
} | {
|
|
@@ -382,19 +386,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
382
386
|
fungible: false;
|
|
383
387
|
} | null;
|
|
384
388
|
}[];
|
|
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;
|
|
393
389
|
to: {
|
|
394
390
|
address: string;
|
|
395
391
|
asset: {
|
|
396
|
-
unit: string;
|
|
397
392
|
type: `${string}:${string}/${string}:${string}`;
|
|
393
|
+
unit: string;
|
|
398
394
|
amount: string;
|
|
399
395
|
fungible: true;
|
|
400
396
|
} | {
|
|
@@ -405,8 +401,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
405
401
|
fees: {
|
|
406
402
|
type: "base" | "priority";
|
|
407
403
|
asset: {
|
|
408
|
-
unit: string;
|
|
409
404
|
type: `${string}:${string}/${string}:${string}`;
|
|
405
|
+
unit: string;
|
|
410
406
|
amount: string;
|
|
411
407
|
fungible: true;
|
|
412
408
|
} | {
|
|
@@ -414,6 +410,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
414
410
|
fungible: false;
|
|
415
411
|
};
|
|
416
412
|
}[];
|
|
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,13 +424,17 @@ 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: "
|
|
427
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
428
428
|
id: string;
|
|
429
|
+
account: string;
|
|
430
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
431
|
+
timestamp: number | null;
|
|
432
|
+
chain: `${string}:${string}`;
|
|
429
433
|
from: {
|
|
430
434
|
address: string;
|
|
431
435
|
asset: {
|
|
432
|
-
unit: string;
|
|
433
436
|
type: `${string}:${string}/${string}:${string}`;
|
|
437
|
+
unit: string;
|
|
434
438
|
amount: string;
|
|
435
439
|
fungible: true;
|
|
436
440
|
} | {
|
|
@@ -438,19 +442,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
438
442
|
fungible: false;
|
|
439
443
|
} | null;
|
|
440
444
|
}[];
|
|
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;
|
|
449
445
|
to: {
|
|
450
446
|
address: string;
|
|
451
447
|
asset: {
|
|
452
|
-
unit: string;
|
|
453
448
|
type: `${string}:${string}/${string}:${string}`;
|
|
449
|
+
unit: string;
|
|
454
450
|
amount: string;
|
|
455
451
|
fungible: true;
|
|
456
452
|
} | {
|
|
@@ -461,8 +457,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
461
457
|
fees: {
|
|
462
458
|
type: "base" | "priority";
|
|
463
459
|
asset: {
|
|
464
|
-
unit: string;
|
|
465
460
|
type: `${string}:${string}/${string}:${string}`;
|
|
461
|
+
unit: string;
|
|
466
462
|
amount: string;
|
|
467
463
|
fungible: true;
|
|
468
464
|
} | {
|
|
@@ -470,6 +466,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
470
466
|
fungible: false;
|
|
471
467
|
};
|
|
472
468
|
}[];
|
|
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,13 +480,17 @@ 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: "
|
|
483
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
484
484
|
id: string;
|
|
485
|
+
account: string;
|
|
486
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
487
|
+
timestamp: number | null;
|
|
488
|
+
chain: `${string}:${string}`;
|
|
485
489
|
from: {
|
|
486
490
|
address: string;
|
|
487
491
|
asset: {
|
|
488
|
-
unit: string;
|
|
489
492
|
type: `${string}:${string}/${string}:${string}`;
|
|
493
|
+
unit: string;
|
|
490
494
|
amount: string;
|
|
491
495
|
fungible: true;
|
|
492
496
|
} | {
|
|
@@ -494,19 +498,11 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
494
498
|
fungible: false;
|
|
495
499
|
} | null;
|
|
496
500
|
}[];
|
|
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;
|
|
505
501
|
to: {
|
|
506
502
|
address: string;
|
|
507
503
|
asset: {
|
|
508
|
-
unit: string;
|
|
509
504
|
type: `${string}:${string}/${string}:${string}`;
|
|
505
|
+
unit: string;
|
|
510
506
|
amount: string;
|
|
511
507
|
fungible: true;
|
|
512
508
|
} | {
|
|
@@ -517,8 +513,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
517
513
|
fees: {
|
|
518
514
|
type: "base" | "priority";
|
|
519
515
|
asset: {
|
|
520
|
-
unit: string;
|
|
521
516
|
type: `${string}:${string}/${string}:${string}`;
|
|
517
|
+
unit: string;
|
|
522
518
|
amount: string;
|
|
523
519
|
fungible: true;
|
|
524
520
|
} | {
|
|
@@ -526,6 +522,10 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
526
522
|
fungible: false;
|
|
527
523
|
};
|
|
528
524
|
}[];
|
|
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}
|
|
550
|
-
removed: (`${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}
|
|
558
|
-
removed: (`${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}
|
|
566
|
-
removed: (`${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
|
}>;
|