@metamask-previews/keyring-internal-api 2.0.1-0b22ddc → 2.0.1-7ba2de1
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/types.d.cts +6 -6
- package/dist/types.d.mts +6 -6
- package/package.json +1 -1
package/dist/types.d.cts
CHANGED
|
@@ -139,7 +139,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
139
139
|
lastSelected?: number;
|
|
140
140
|
};
|
|
141
141
|
address: string;
|
|
142
|
-
scopes: string[];
|
|
142
|
+
scopes: `${string}:${string}`[];
|
|
143
143
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
144
144
|
}, {
|
|
145
145
|
metadata: Struct<{
|
|
@@ -177,6 +177,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
177
177
|
}>;
|
|
178
178
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
179
179
|
type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
|
|
180
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
180
181
|
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
|
|
181
182
|
personal_sign: "personal_sign";
|
|
182
183
|
eth_sign: "eth_sign";
|
|
@@ -188,7 +189,6 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
188
189
|
eth_signUserOperation: "eth_signUserOperation";
|
|
189
190
|
}>>;
|
|
190
191
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
191
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
192
192
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
193
193
|
}>;
|
|
194
194
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
@@ -210,7 +210,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
210
210
|
lastSelected?: number;
|
|
211
211
|
};
|
|
212
212
|
address: string;
|
|
213
|
-
scopes: string[];
|
|
213
|
+
scopes: `${string}:${string}`[];
|
|
214
214
|
methods: "sendBitcoin"[];
|
|
215
215
|
}, {
|
|
216
216
|
metadata: Struct<{
|
|
@@ -248,11 +248,11 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
248
248
|
}>;
|
|
249
249
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
250
250
|
type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
|
|
251
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
251
252
|
methods: import("@metamask/superstruct").Struct<"sendBitcoin"[], import("@metamask/superstruct").Struct<"sendBitcoin", {
|
|
252
253
|
sendBitcoin: "sendBitcoin";
|
|
253
254
|
}>>;
|
|
254
255
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
255
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
256
256
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
257
257
|
}>;
|
|
258
258
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
@@ -274,7 +274,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
274
274
|
lastSelected?: number;
|
|
275
275
|
};
|
|
276
276
|
address: string;
|
|
277
|
-
scopes: string[];
|
|
277
|
+
scopes: `${string}:${string}`[];
|
|
278
278
|
methods: "sendAndConfirmTransaction"[];
|
|
279
279
|
}, {
|
|
280
280
|
metadata: Struct<{
|
|
@@ -312,11 +312,11 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
312
312
|
}>;
|
|
313
313
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
314
314
|
type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
|
|
315
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
315
316
|
methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
|
|
316
317
|
sendAndConfirmTransaction: "sendAndConfirmTransaction";
|
|
317
318
|
}>>;
|
|
318
319
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
319
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
320
320
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
321
321
|
}>;
|
|
322
322
|
export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
|
package/dist/types.d.mts
CHANGED
|
@@ -139,7 +139,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
139
139
|
lastSelected?: number;
|
|
140
140
|
};
|
|
141
141
|
address: string;
|
|
142
|
-
scopes: string[];
|
|
142
|
+
scopes: `${string}:${string}`[];
|
|
143
143
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
144
144
|
}, {
|
|
145
145
|
metadata: Struct<{
|
|
@@ -177,6 +177,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
177
177
|
}>;
|
|
178
178
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
179
179
|
type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
|
|
180
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
180
181
|
methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
|
|
181
182
|
personal_sign: "personal_sign";
|
|
182
183
|
eth_sign: "eth_sign";
|
|
@@ -188,7 +189,6 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
188
189
|
eth_signUserOperation: "eth_signUserOperation";
|
|
189
190
|
}>>;
|
|
190
191
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
191
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
192
192
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
193
193
|
}>;
|
|
194
194
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
@@ -210,7 +210,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
210
210
|
lastSelected?: number;
|
|
211
211
|
};
|
|
212
212
|
address: string;
|
|
213
|
-
scopes: string[];
|
|
213
|
+
scopes: `${string}:${string}`[];
|
|
214
214
|
methods: "sendBitcoin"[];
|
|
215
215
|
}, {
|
|
216
216
|
metadata: Struct<{
|
|
@@ -248,11 +248,11 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
248
248
|
}>;
|
|
249
249
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
250
250
|
type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
|
|
251
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
251
252
|
methods: import("@metamask/superstruct").Struct<"sendBitcoin"[], import("@metamask/superstruct").Struct<"sendBitcoin", {
|
|
252
253
|
sendBitcoin: "sendBitcoin";
|
|
253
254
|
}>>;
|
|
254
255
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
255
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
256
256
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
257
257
|
}>;
|
|
258
258
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
@@ -274,7 +274,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
274
274
|
lastSelected?: number;
|
|
275
275
|
};
|
|
276
276
|
address: string;
|
|
277
|
-
scopes: string[];
|
|
277
|
+
scopes: `${string}:${string}`[];
|
|
278
278
|
methods: "sendAndConfirmTransaction"[];
|
|
279
279
|
}, {
|
|
280
280
|
metadata: Struct<{
|
|
@@ -312,11 +312,11 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
312
312
|
}>;
|
|
313
313
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
314
314
|
type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
|
|
315
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
315
316
|
methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
|
|
316
317
|
sendAndConfirmTransaction: "sendAndConfirmTransaction";
|
|
317
318
|
}>>;
|
|
318
319
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
319
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
320
320
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
321
321
|
}>;
|
|
322
322
|
export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
|