@metamask-previews/keyring-api 21.5.0-cd75414 → 22.0.0-018fb62
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 +18 -1
- package/dist/api/account-options.cjs +0 -4
- package/dist/api/account-options.cjs.map +1 -1
- package/dist/api/account-options.d.cts +0 -4
- package/dist/api/account-options.d.cts.map +1 -1
- package/dist/api/account-options.d.mts +0 -4
- package/dist/api/account-options.d.mts.map +1 -1
- package/dist/api/account-options.mjs +0 -4
- package/dist/api/account-options.mjs.map +1 -1
- 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/api/v2/create-account/bip44.d.cts +1 -1
- package/dist/api/v2/create-account/bip44.d.mts +1 -1
- package/dist/api/v2/create-account/index.d.cts +1 -1
- package/dist/api/v2/create-account/index.d.mts +1 -1
- package/dist/api/v2/index.cjs +0 -1
- package/dist/api/v2/index.cjs.map +1 -1
- package/dist/api/v2/index.d.cts +0 -1
- package/dist/api/v2/index.d.cts.map +1 -1
- package/dist/api/v2/index.d.mts +0 -1
- package/dist/api/v2/index.d.mts.map +1 -1
- package/dist/api/v2/index.mjs +0 -1
- package/dist/api/v2/index.mjs.map +1 -1
- package/dist/api/v2/keyring-type.cjs +4 -0
- package/dist/api/v2/keyring-type.cjs.map +1 -1
- package/dist/api/v2/keyring-type.d.cts +5 -1
- package/dist/api/v2/keyring-type.d.cts.map +1 -1
- package/dist/api/v2/keyring-type.d.mts +5 -1
- package/dist/api/v2/keyring-type.d.mts.map +1 -1
- package/dist/api/v2/keyring-type.mjs +4 -0
- package/dist/api/v2/keyring-type.mjs.map +1 -1
- 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/index.cjs +0 -1
- package/dist/eth/index.cjs.map +1 -1
- package/dist/eth/index.d.cts +0 -1
- package/dist/eth/index.d.cts.map +1 -1
- package/dist/eth/index.d.mts +0 -1
- package/dist/eth/index.d.mts.map +1 -1
- package/dist/eth/index.mjs +0 -1
- package/dist/eth/index.mjs.map +1 -1
- package/dist/eth/rpc/params.d.cts +29 -29
- package/dist/eth/rpc/params.d.mts +29 -29
- package/dist/eth/types.d.cts +4 -4
- package/dist/eth/types.d.mts +4 -4
- package/dist/events.d.cts +50 -50
- package/dist/events.d.mts +50 -50
- package/dist/rpc.d.cts +133 -133
- package/dist/rpc.d.mts +133 -133
- 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/package.json +3 -8
- package/dist/api/v2/wrapper/index.cjs +0 -19
- package/dist/api/v2/wrapper/index.cjs.map +0 -1
- package/dist/api/v2/wrapper/index.d.cts +0 -3
- package/dist/api/v2/wrapper/index.d.cts.map +0 -1
- package/dist/api/v2/wrapper/index.d.mts +0 -3
- package/dist/api/v2/wrapper/index.d.mts.map +0 -1
- package/dist/api/v2/wrapper/index.mjs +0 -3
- package/dist/api/v2/wrapper/index.mjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.cjs +0 -135
- package/dist/api/v2/wrapper/keyring-account-registry.cjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.d.cts +0 -88
- package/dist/api/v2/wrapper/keyring-account-registry.d.cts.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.d.mts +0 -88
- package/dist/api/v2/wrapper/keyring-account-registry.d.mts.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.mjs +0 -131
- package/dist/api/v2/wrapper/keyring-account-registry.mjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.cjs +0 -134
- package/dist/api/v2/wrapper/keyring-wrapper.cjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.d.cts +0 -154
- package/dist/api/v2/wrapper/keyring-wrapper.d.cts.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.d.mts +0 -154
- package/dist/api/v2/wrapper/keyring-wrapper.d.mts.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.mjs +0 -130
- package/dist/api/v2/wrapper/keyring-wrapper.mjs.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.cjs +0 -165
- package/dist/eth/v2/eth-keyring-wrapper.cjs.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.d.cts +0 -54
- package/dist/eth/v2/eth-keyring-wrapper.d.cts.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.d.mts +0 -54
- package/dist/eth/v2/eth-keyring-wrapper.d.mts.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.mjs +0 -161
- package/dist/eth/v2/eth-keyring-wrapper.mjs.map +0 -1
- package/dist/eth/v2/index.cjs +0 -18
- package/dist/eth/v2/index.cjs.map +0 -1
- package/dist/eth/v2/index.d.cts +0 -2
- package/dist/eth/v2/index.d.cts.map +0 -1
- package/dist/eth/v2/index.d.mts +0 -2
- package/dist/eth/v2/index.d.mts.map +0 -1
- package/dist/eth/v2/index.mjs +0 -2
- package/dist/eth/v2/index.mjs.map +0 -1
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" | "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" | "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" | "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>;
|
|
@@ -162,8 +162,6 @@ 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}`[];
|
|
167
165
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
168
166
|
entropy?: {
|
|
169
167
|
type: "mnemonic";
|
|
@@ -177,6 +175,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
177
175
|
};
|
|
178
176
|
exportable?: boolean;
|
|
179
177
|
};
|
|
178
|
+
address: string;
|
|
179
|
+
scopes: `${string}:${string}`[];
|
|
180
180
|
methods: string[];
|
|
181
181
|
};
|
|
182
182
|
};
|
|
@@ -186,8 +186,6 @@ 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}`[];
|
|
191
189
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
192
190
|
entropy?: {
|
|
193
191
|
type: "mnemonic";
|
|
@@ -201,6 +199,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
201
199
|
};
|
|
202
200
|
exportable?: boolean;
|
|
203
201
|
};
|
|
202
|
+
address: string;
|
|
203
|
+
scopes: `${string}:${string}`[];
|
|
204
204
|
methods: string[];
|
|
205
205
|
};
|
|
206
206
|
}, {
|
|
@@ -210,8 +210,6 @@ 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}`[];
|
|
215
213
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
216
214
|
entropy?: {
|
|
217
215
|
type: "mnemonic";
|
|
@@ -225,6 +223,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
225
223
|
};
|
|
226
224
|
exportable?: boolean;
|
|
227
225
|
};
|
|
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
|
-
id: string;
|
|
285
284
|
result: import("@metamask/utils").Json;
|
|
285
|
+
id: string;
|
|
286
286
|
};
|
|
287
287
|
}, {
|
|
288
288
|
method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
|
|
289
289
|
params: import("@metamask/superstruct").Struct<{
|
|
290
|
-
id: string;
|
|
291
290
|
result: import("@metamask/utils").Json;
|
|
291
|
+
id: string;
|
|
292
292
|
}, {
|
|
293
293
|
/**
|
|
294
294
|
* Request ID.
|
|
@@ -366,17 +366,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
366
366
|
method: "notify:accountTransactionsUpdated";
|
|
367
367
|
params: {
|
|
368
368
|
transactions: Record<string, {
|
|
369
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
369
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
370
370
|
id: string;
|
|
371
|
-
account: string;
|
|
372
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
373
|
-
timestamp: number | null;
|
|
374
|
-
chain: `${string}:${string}`;
|
|
375
371
|
from: {
|
|
376
372
|
address: string;
|
|
377
373
|
asset: {
|
|
378
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
379
374
|
unit: string;
|
|
375
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
380
376
|
amount: string;
|
|
381
377
|
fungible: true;
|
|
382
378
|
} | {
|
|
@@ -384,11 +380,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
384
380
|
fungible: false;
|
|
385
381
|
} | null;
|
|
386
382
|
}[];
|
|
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;
|
|
387
391
|
to: {
|
|
388
392
|
address: string;
|
|
389
393
|
asset: {
|
|
390
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
391
394
|
unit: string;
|
|
395
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
392
396
|
amount: string;
|
|
393
397
|
fungible: true;
|
|
394
398
|
} | {
|
|
@@ -399,8 +403,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
399
403
|
fees: {
|
|
400
404
|
type: "base" | "priority";
|
|
401
405
|
asset: {
|
|
402
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
403
406
|
unit: string;
|
|
407
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
404
408
|
amount: string;
|
|
405
409
|
fungible: true;
|
|
406
410
|
} | {
|
|
@@ -408,10 +412,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
408
412
|
fungible: false;
|
|
409
413
|
};
|
|
410
414
|
}[];
|
|
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,17 +422,13 @@ 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: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
425
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
426
426
|
id: string;
|
|
427
|
-
account: string;
|
|
428
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
429
|
-
timestamp: number | null;
|
|
430
|
-
chain: `${string}:${string}`;
|
|
431
427
|
from: {
|
|
432
428
|
address: string;
|
|
433
429
|
asset: {
|
|
434
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
435
430
|
unit: string;
|
|
431
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
436
432
|
amount: string;
|
|
437
433
|
fungible: true;
|
|
438
434
|
} | {
|
|
@@ -440,11 +436,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
440
436
|
fungible: false;
|
|
441
437
|
} | null;
|
|
442
438
|
}[];
|
|
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;
|
|
443
447
|
to: {
|
|
444
448
|
address: string;
|
|
445
449
|
asset: {
|
|
446
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
447
450
|
unit: string;
|
|
451
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
448
452
|
amount: string;
|
|
449
453
|
fungible: true;
|
|
450
454
|
} | {
|
|
@@ -455,8 +459,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
455
459
|
fees: {
|
|
456
460
|
type: "base" | "priority";
|
|
457
461
|
asset: {
|
|
458
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
459
462
|
unit: string;
|
|
463
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
460
464
|
amount: string;
|
|
461
465
|
fungible: true;
|
|
462
466
|
} | {
|
|
@@ -464,10 +468,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
464
468
|
fungible: false;
|
|
465
469
|
};
|
|
466
470
|
}[];
|
|
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,17 +478,13 @@ 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: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
481
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
482
482
|
id: string;
|
|
483
|
-
account: string;
|
|
484
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
485
|
-
timestamp: number | null;
|
|
486
|
-
chain: `${string}:${string}`;
|
|
487
483
|
from: {
|
|
488
484
|
address: string;
|
|
489
485
|
asset: {
|
|
490
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
491
486
|
unit: string;
|
|
487
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
492
488
|
amount: string;
|
|
493
489
|
fungible: true;
|
|
494
490
|
} | {
|
|
@@ -496,11 +492,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
496
492
|
fungible: false;
|
|
497
493
|
} | null;
|
|
498
494
|
}[];
|
|
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;
|
|
499
503
|
to: {
|
|
500
504
|
address: string;
|
|
501
505
|
asset: {
|
|
502
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
503
506
|
unit: string;
|
|
507
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
504
508
|
amount: string;
|
|
505
509
|
fungible: true;
|
|
506
510
|
} | {
|
|
@@ -511,8 +515,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
511
515
|
fees: {
|
|
512
516
|
type: "base" | "priority";
|
|
513
517
|
asset: {
|
|
514
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
515
518
|
unit: string;
|
|
519
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
516
520
|
amount: string;
|
|
517
521
|
fungible: true;
|
|
518
522
|
} | {
|
|
@@ -520,10 +524,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
520
524
|
fungible: false;
|
|
521
525
|
};
|
|
522
526
|
}[];
|
|
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";
|
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" | "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" | "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" | "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>;
|
|
@@ -162,8 +162,6 @@ 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}`[];
|
|
167
165
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
168
166
|
entropy?: {
|
|
169
167
|
type: "mnemonic";
|
|
@@ -177,6 +175,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
177
175
|
};
|
|
178
176
|
exportable?: boolean;
|
|
179
177
|
};
|
|
178
|
+
address: string;
|
|
179
|
+
scopes: `${string}:${string}`[];
|
|
180
180
|
methods: string[];
|
|
181
181
|
};
|
|
182
182
|
};
|
|
@@ -186,8 +186,6 @@ 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}`[];
|
|
191
189
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
192
190
|
entropy?: {
|
|
193
191
|
type: "mnemonic";
|
|
@@ -201,6 +199,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
201
199
|
};
|
|
202
200
|
exportable?: boolean;
|
|
203
201
|
};
|
|
202
|
+
address: string;
|
|
203
|
+
scopes: `${string}:${string}`[];
|
|
204
204
|
methods: string[];
|
|
205
205
|
};
|
|
206
206
|
}, {
|
|
@@ -210,8 +210,6 @@ 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}`[];
|
|
215
213
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
216
214
|
entropy?: {
|
|
217
215
|
type: "mnemonic";
|
|
@@ -225,6 +223,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
225
223
|
};
|
|
226
224
|
exportable?: boolean;
|
|
227
225
|
};
|
|
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
|
-
id: string;
|
|
285
284
|
result: import("@metamask/utils").Json;
|
|
285
|
+
id: string;
|
|
286
286
|
};
|
|
287
287
|
}, {
|
|
288
288
|
method: import("@metamask/superstruct").Struct<"notify:requestApproved", "notify:requestApproved">;
|
|
289
289
|
params: import("@metamask/superstruct").Struct<{
|
|
290
|
-
id: string;
|
|
291
290
|
result: import("@metamask/utils").Json;
|
|
291
|
+
id: string;
|
|
292
292
|
}, {
|
|
293
293
|
/**
|
|
294
294
|
* Request ID.
|
|
@@ -366,17 +366,13 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
366
366
|
method: "notify:accountTransactionsUpdated";
|
|
367
367
|
params: {
|
|
368
368
|
transactions: Record<string, {
|
|
369
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
369
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
370
370
|
id: string;
|
|
371
|
-
account: string;
|
|
372
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
373
|
-
timestamp: number | null;
|
|
374
|
-
chain: `${string}:${string}`;
|
|
375
371
|
from: {
|
|
376
372
|
address: string;
|
|
377
373
|
asset: {
|
|
378
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
379
374
|
unit: string;
|
|
375
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
380
376
|
amount: string;
|
|
381
377
|
fungible: true;
|
|
382
378
|
} | {
|
|
@@ -384,11 +380,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
384
380
|
fungible: false;
|
|
385
381
|
} | null;
|
|
386
382
|
}[];
|
|
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;
|
|
387
391
|
to: {
|
|
388
392
|
address: string;
|
|
389
393
|
asset: {
|
|
390
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
391
394
|
unit: string;
|
|
395
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
392
396
|
amount: string;
|
|
393
397
|
fungible: true;
|
|
394
398
|
} | {
|
|
@@ -399,8 +403,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
399
403
|
fees: {
|
|
400
404
|
type: "base" | "priority";
|
|
401
405
|
asset: {
|
|
402
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
403
406
|
unit: string;
|
|
407
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
404
408
|
amount: string;
|
|
405
409
|
fungible: true;
|
|
406
410
|
} | {
|
|
@@ -408,10 +412,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
408
412
|
fungible: false;
|
|
409
413
|
};
|
|
410
414
|
}[];
|
|
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,17 +422,13 @@ 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: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
425
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
426
426
|
id: string;
|
|
427
|
-
account: string;
|
|
428
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
429
|
-
timestamp: number | null;
|
|
430
|
-
chain: `${string}:${string}`;
|
|
431
427
|
from: {
|
|
432
428
|
address: string;
|
|
433
429
|
asset: {
|
|
434
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
435
430
|
unit: string;
|
|
431
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
436
432
|
amount: string;
|
|
437
433
|
fungible: true;
|
|
438
434
|
} | {
|
|
@@ -440,11 +436,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
440
436
|
fungible: false;
|
|
441
437
|
} | null;
|
|
442
438
|
}[];
|
|
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;
|
|
443
447
|
to: {
|
|
444
448
|
address: string;
|
|
445
449
|
asset: {
|
|
446
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
447
450
|
unit: string;
|
|
451
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
448
452
|
amount: string;
|
|
449
453
|
fungible: true;
|
|
450
454
|
} | {
|
|
@@ -455,8 +459,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
455
459
|
fees: {
|
|
456
460
|
type: "base" | "priority";
|
|
457
461
|
asset: {
|
|
458
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
459
462
|
unit: string;
|
|
463
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
460
464
|
amount: string;
|
|
461
465
|
fungible: true;
|
|
462
466
|
} | {
|
|
@@ -464,10 +468,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
464
468
|
fungible: false;
|
|
465
469
|
};
|
|
466
470
|
}[];
|
|
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,17 +478,13 @@ 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: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
481
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
482
482
|
id: string;
|
|
483
|
-
account: string;
|
|
484
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
485
|
-
timestamp: number | null;
|
|
486
|
-
chain: `${string}:${string}`;
|
|
487
483
|
from: {
|
|
488
484
|
address: string;
|
|
489
485
|
asset: {
|
|
490
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
491
486
|
unit: string;
|
|
487
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
492
488
|
amount: string;
|
|
493
489
|
fungible: true;
|
|
494
490
|
} | {
|
|
@@ -496,11 +492,19 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
496
492
|
fungible: false;
|
|
497
493
|
} | null;
|
|
498
494
|
}[];
|
|
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;
|
|
499
503
|
to: {
|
|
500
504
|
address: string;
|
|
501
505
|
asset: {
|
|
502
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
503
506
|
unit: string;
|
|
507
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
504
508
|
amount: string;
|
|
505
509
|
fungible: true;
|
|
506
510
|
} | {
|
|
@@ -511,8 +515,8 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
511
515
|
fees: {
|
|
512
516
|
type: "base" | "priority";
|
|
513
517
|
asset: {
|
|
514
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
515
518
|
unit: string;
|
|
519
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
516
520
|
amount: string;
|
|
517
521
|
fungible: true;
|
|
518
522
|
} | {
|
|
@@ -520,10 +524,6 @@ export declare const AccountTransactionsUpdatedEventStruct: import("@metamask/su
|
|
|
520
524
|
fungible: false;
|
|
521
525
|
};
|
|
522
526
|
}[];
|
|
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";
|