@metamask/keyring-api 17.6.0 → 19.0.0
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 +122 -0
- package/dist/api/account-options.cjs.map +1 -0
- package/dist/api/account-options.d.cts +131 -0
- package/dist/api/account-options.d.cts.map +1 -0
- package/dist/api/account-options.d.mts +131 -0
- package/dist/api/account-options.d.mts.map +1 -0
- package/dist/api/account-options.mjs +119 -0
- package/dist/api/account-options.mjs.map +1 -0
- package/dist/api/account.cjs +2 -2
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +22 -2
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +22 -2
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +3 -3
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/discovery.d.cts +2 -2
- package/dist/api/discovery.d.mts +2 -2
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -0
- package/dist/api/index.d.cts.map +1 -1
- package/dist/api/index.d.mts +1 -0
- package/dist/api/index.d.mts.map +1 -1
- package/dist/api/index.mjs +1 -0
- package/dist/api/index.mjs.map +1 -1
- package/dist/api/request.cjs +4 -0
- package/dist/api/request.cjs.map +1 -1
- package/dist/api/request.d.cts +5 -0
- package/dist/api/request.d.cts.map +1 -1
- package/dist/api/request.d.mts +5 -0
- package/dist/api/request.d.mts.map +1 -1
- package/dist/api/request.mjs +4 -0
- package/dist/api/request.mjs.map +1 -1
- package/dist/btc/types.d.cts +88 -8
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +88 -8
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/eth/types.d.cts +44 -4
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +44 -4
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/events.d.cts +88 -8
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +88 -8
- package/dist/events.d.mts.map +1 -1
- package/dist/rpc.d.cts +133 -15
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +133 -15
- package/dist/rpc.d.mts.map +1 -1
- package/dist/sol/types.d.cts +22 -2
- package/dist/sol/types.d.cts.map +1 -1
- package/dist/sol/types.d.mts +22 -2
- package/dist/sol/types.d.mts.map +1 -1
- package/package.json +3 -3
package/dist/eth/types.d.cts
CHANGED
@@ -20,7 +20,17 @@ export declare enum EthMethod {
|
|
20
20
|
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
21
21
|
type: "eip155:eoa";
|
22
22
|
id: string;
|
23
|
-
options: Record<string, import("@metamask/utils").Json
|
23
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
24
|
+
entropy?: {
|
25
|
+
type: "mnemonic";
|
26
|
+
id: string;
|
27
|
+
derivationPath: string;
|
28
|
+
groupIndex: number;
|
29
|
+
} | {
|
30
|
+
type: "private-key";
|
31
|
+
};
|
32
|
+
exportable?: boolean;
|
33
|
+
};
|
24
34
|
address: string;
|
25
35
|
scopes: EthScope.Eoa[];
|
26
36
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
@@ -49,13 +59,33 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
|
|
49
59
|
eth_signTypedData_v4: "eth_signTypedData_v4";
|
50
60
|
}>>;
|
51
61
|
id: import("@metamask/superstruct").Struct<string, null>;
|
52
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
62
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
63
|
+
entropy?: {
|
64
|
+
type: "mnemonic";
|
65
|
+
id: string;
|
66
|
+
derivationPath: string;
|
67
|
+
groupIndex: number;
|
68
|
+
} | {
|
69
|
+
type: "private-key";
|
70
|
+
};
|
71
|
+
exportable?: boolean;
|
72
|
+
}, null>;
|
53
73
|
}>;
|
54
74
|
export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
|
55
75
|
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
|
56
76
|
type: "eip155:erc4337";
|
57
77
|
id: string;
|
58
|
-
options: Record<string, import("@metamask/utils").Json
|
78
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
79
|
+
entropy?: {
|
80
|
+
type: "mnemonic";
|
81
|
+
id: string;
|
82
|
+
derivationPath: string;
|
83
|
+
groupIndex: number;
|
84
|
+
} | {
|
85
|
+
type: "private-key";
|
86
|
+
};
|
87
|
+
exportable?: boolean;
|
88
|
+
};
|
59
89
|
address: string;
|
60
90
|
scopes: `${string}:${string}`[];
|
61
91
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
@@ -86,7 +116,17 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
|
|
86
116
|
eth_signUserOperation: "eth_signUserOperation";
|
87
117
|
}>>;
|
88
118
|
id: import("@metamask/superstruct").Struct<string, null>;
|
89
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
119
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
120
|
+
entropy?: {
|
121
|
+
type: "mnemonic";
|
122
|
+
id: string;
|
123
|
+
derivationPath: string;
|
124
|
+
groupIndex: number;
|
125
|
+
} | {
|
126
|
+
type: "private-key";
|
127
|
+
};
|
128
|
+
exportable?: boolean;
|
129
|
+
}, null>;
|
90
130
|
}>;
|
91
131
|
export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
|
92
132
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/eth/types.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD,OAAO,EAAE,QAAQ,EAAE,oBAAU;AAO7B,eAAO,MAAM,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBAAkB,2BAA2B;IAC7C,iBAAiB,0BAA0B;CAC5C;AAED,eAAO,MAAM,mBAAmB
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD,OAAO,EAAE,QAAQ,EAAE,oBAAU;AAO7B,eAAO,MAAM,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBAAkB,2BAA2B;IAC7C,iBAAiB,0BAA0B;CAC5C;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;IAG9B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;EAWH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;IAGlC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;EAaH,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/eth/types.d.mts
CHANGED
@@ -20,7 +20,17 @@ export declare enum EthMethod {
|
|
20
20
|
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
21
21
|
type: "eip155:eoa";
|
22
22
|
id: string;
|
23
|
-
options: Record<string, import("@metamask/utils").Json
|
23
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
24
|
+
entropy?: {
|
25
|
+
type: "mnemonic";
|
26
|
+
id: string;
|
27
|
+
derivationPath: string;
|
28
|
+
groupIndex: number;
|
29
|
+
} | {
|
30
|
+
type: "private-key";
|
31
|
+
};
|
32
|
+
exportable?: boolean;
|
33
|
+
};
|
24
34
|
address: string;
|
25
35
|
scopes: EthScope.Eoa[];
|
26
36
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
@@ -49,13 +59,33 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
|
|
49
59
|
eth_signTypedData_v4: "eth_signTypedData_v4";
|
50
60
|
}>>;
|
51
61
|
id: import("@metamask/superstruct").Struct<string, null>;
|
52
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
62
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
63
|
+
entropy?: {
|
64
|
+
type: "mnemonic";
|
65
|
+
id: string;
|
66
|
+
derivationPath: string;
|
67
|
+
groupIndex: number;
|
68
|
+
} | {
|
69
|
+
type: "private-key";
|
70
|
+
};
|
71
|
+
exportable?: boolean;
|
72
|
+
}, null>;
|
53
73
|
}>;
|
54
74
|
export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
|
55
75
|
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
|
56
76
|
type: "eip155:erc4337";
|
57
77
|
id: string;
|
58
|
-
options: Record<string, import("@metamask/utils").Json
|
78
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
79
|
+
entropy?: {
|
80
|
+
type: "mnemonic";
|
81
|
+
id: string;
|
82
|
+
derivationPath: string;
|
83
|
+
groupIndex: number;
|
84
|
+
} | {
|
85
|
+
type: "private-key";
|
86
|
+
};
|
87
|
+
exportable?: boolean;
|
88
|
+
};
|
59
89
|
address: string;
|
60
90
|
scopes: `${string}:${string}`[];
|
61
91
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
@@ -86,7 +116,17 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
|
|
86
116
|
eth_signUserOperation: "eth_signUserOperation";
|
87
117
|
}>>;
|
88
118
|
id: import("@metamask/superstruct").Struct<string, null>;
|
89
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
119
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
120
|
+
entropy?: {
|
121
|
+
type: "mnemonic";
|
122
|
+
id: string;
|
123
|
+
derivationPath: string;
|
124
|
+
groupIndex: number;
|
125
|
+
} | {
|
126
|
+
type: "private-key";
|
127
|
+
};
|
128
|
+
exportable?: boolean;
|
129
|
+
}, null>;
|
90
130
|
}>;
|
91
131
|
export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
|
92
132
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/eth/types.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AACA,OAAO,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IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;EAaH,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/events.d.cts
CHANGED
@@ -18,7 +18,17 @@ 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";
|
20
20
|
id: string;
|
21
|
-
options: Record<string, import("@metamask/utils").Json
|
21
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
22
|
+
entropy?: {
|
23
|
+
type: "mnemonic";
|
24
|
+
id: string;
|
25
|
+
derivationPath: string;
|
26
|
+
groupIndex: number;
|
27
|
+
} | {
|
28
|
+
type: "private-key";
|
29
|
+
};
|
30
|
+
exportable?: boolean;
|
31
|
+
};
|
22
32
|
address: string;
|
23
33
|
scopes: `${string}:${string}`[];
|
24
34
|
methods: string[];
|
@@ -36,7 +46,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
36
46
|
account: {
|
37
47
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
38
48
|
id: string;
|
39
|
-
options: Record<string, import("@metamask/utils").Json
|
49
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
50
|
+
entropy?: {
|
51
|
+
type: "mnemonic";
|
52
|
+
id: string;
|
53
|
+
derivationPath: string;
|
54
|
+
groupIndex: number;
|
55
|
+
} | {
|
56
|
+
type: "private-key";
|
57
|
+
};
|
58
|
+
exportable?: boolean;
|
59
|
+
};
|
40
60
|
address: string;
|
41
61
|
scopes: `${string}:${string}`[];
|
42
62
|
methods: string[];
|
@@ -59,7 +79,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
59
79
|
account: import("@metamask/superstruct").Struct<{
|
60
80
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
61
81
|
id: string;
|
62
|
-
options: Record<string, import("@metamask/utils").Json
|
82
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
83
|
+
entropy?: {
|
84
|
+
type: "mnemonic";
|
85
|
+
id: string;
|
86
|
+
derivationPath: string;
|
87
|
+
groupIndex: number;
|
88
|
+
} | {
|
89
|
+
type: "private-key";
|
90
|
+
};
|
91
|
+
exportable?: boolean;
|
92
|
+
};
|
63
93
|
address: string;
|
64
94
|
scopes: `${string}:${string}`[];
|
65
95
|
methods: string[];
|
@@ -76,7 +106,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
76
106
|
}>;
|
77
107
|
address: import("@metamask/superstruct").Struct<string, null>;
|
78
108
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
79
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
109
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
110
|
+
entropy?: {
|
111
|
+
type: "mnemonic";
|
112
|
+
id: string;
|
113
|
+
derivationPath: string;
|
114
|
+
groupIndex: number;
|
115
|
+
} | {
|
116
|
+
type: "private-key";
|
117
|
+
};
|
118
|
+
exportable?: boolean;
|
119
|
+
}, null>;
|
80
120
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
81
121
|
}>;
|
82
122
|
/**
|
@@ -112,7 +152,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
112
152
|
account: {
|
113
153
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
114
154
|
id: string;
|
115
|
-
options: Record<string, import("@metamask/utils").Json
|
155
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
156
|
+
entropy?: {
|
157
|
+
type: "mnemonic";
|
158
|
+
id: string;
|
159
|
+
derivationPath: string;
|
160
|
+
groupIndex: number;
|
161
|
+
} | {
|
162
|
+
type: "private-key";
|
163
|
+
};
|
164
|
+
exportable?: boolean;
|
165
|
+
};
|
116
166
|
address: string;
|
117
167
|
scopes: `${string}:${string}`[];
|
118
168
|
methods: string[];
|
@@ -124,7 +174,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
124
174
|
account: {
|
125
175
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
126
176
|
id: string;
|
127
|
-
options: Record<string, import("@metamask/utils").Json
|
177
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
178
|
+
entropy?: {
|
179
|
+
type: "mnemonic";
|
180
|
+
id: string;
|
181
|
+
derivationPath: string;
|
182
|
+
groupIndex: number;
|
183
|
+
} | {
|
184
|
+
type: "private-key";
|
185
|
+
};
|
186
|
+
exportable?: boolean;
|
187
|
+
};
|
128
188
|
address: string;
|
129
189
|
scopes: `${string}:${string}`[];
|
130
190
|
methods: string[];
|
@@ -136,7 +196,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
136
196
|
account: import("@metamask/superstruct").Struct<{
|
137
197
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
138
198
|
id: string;
|
139
|
-
options: Record<string, import("@metamask/utils").Json
|
199
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
200
|
+
entropy?: {
|
201
|
+
type: "mnemonic";
|
202
|
+
id: string;
|
203
|
+
derivationPath: string;
|
204
|
+
groupIndex: number;
|
205
|
+
} | {
|
206
|
+
type: "private-key";
|
207
|
+
};
|
208
|
+
exportable?: boolean;
|
209
|
+
};
|
140
210
|
address: string;
|
141
211
|
scopes: `${string}:${string}`[];
|
142
212
|
methods: string[];
|
@@ -153,7 +223,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
153
223
|
}>;
|
154
224
|
address: import("@metamask/superstruct").Struct<string, null>;
|
155
225
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
156
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
226
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
227
|
+
entropy?: {
|
228
|
+
type: "mnemonic";
|
229
|
+
id: string;
|
230
|
+
derivationPath: string;
|
231
|
+
groupIndex: number;
|
232
|
+
} | {
|
233
|
+
type: "private-key";
|
234
|
+
};
|
235
|
+
exportable?: boolean;
|
236
|
+
}, null>;
|
157
237
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
158
238
|
}>;
|
159
239
|
}>;
|
package/dist/events.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB
|
1
|
+
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH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+BAA+B,GAC/B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,OAAO,CACnE,aAAa,EAGb;IAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;CAAE,CACvB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/events.d.mts
CHANGED
@@ -18,7 +18,17 @@ 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";
|
20
20
|
id: string;
|
21
|
-
options: Record<string, import("@metamask/utils").Json
|
21
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
22
|
+
entropy?: {
|
23
|
+
type: "mnemonic";
|
24
|
+
id: string;
|
25
|
+
derivationPath: string;
|
26
|
+
groupIndex: number;
|
27
|
+
} | {
|
28
|
+
type: "private-key";
|
29
|
+
};
|
30
|
+
exportable?: boolean;
|
31
|
+
};
|
22
32
|
address: string;
|
23
33
|
scopes: `${string}:${string}`[];
|
24
34
|
methods: string[];
|
@@ -36,7 +46,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
36
46
|
account: {
|
37
47
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
38
48
|
id: string;
|
39
|
-
options: Record<string, import("@metamask/utils").Json
|
49
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
50
|
+
entropy?: {
|
51
|
+
type: "mnemonic";
|
52
|
+
id: string;
|
53
|
+
derivationPath: string;
|
54
|
+
groupIndex: number;
|
55
|
+
} | {
|
56
|
+
type: "private-key";
|
57
|
+
};
|
58
|
+
exportable?: boolean;
|
59
|
+
};
|
40
60
|
address: string;
|
41
61
|
scopes: `${string}:${string}`[];
|
42
62
|
methods: string[];
|
@@ -59,7 +79,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
59
79
|
account: import("@metamask/superstruct").Struct<{
|
60
80
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
61
81
|
id: string;
|
62
|
-
options: Record<string, import("@metamask/utils").Json
|
82
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
83
|
+
entropy?: {
|
84
|
+
type: "mnemonic";
|
85
|
+
id: string;
|
86
|
+
derivationPath: string;
|
87
|
+
groupIndex: number;
|
88
|
+
} | {
|
89
|
+
type: "private-key";
|
90
|
+
};
|
91
|
+
exportable?: boolean;
|
92
|
+
};
|
63
93
|
address: string;
|
64
94
|
scopes: `${string}:${string}`[];
|
65
95
|
methods: string[];
|
@@ -76,7 +106,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
76
106
|
}>;
|
77
107
|
address: import("@metamask/superstruct").Struct<string, null>;
|
78
108
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
79
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
109
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
110
|
+
entropy?: {
|
111
|
+
type: "mnemonic";
|
112
|
+
id: string;
|
113
|
+
derivationPath: string;
|
114
|
+
groupIndex: number;
|
115
|
+
} | {
|
116
|
+
type: "private-key";
|
117
|
+
};
|
118
|
+
exportable?: boolean;
|
119
|
+
}, null>;
|
80
120
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
81
121
|
}>;
|
82
122
|
/**
|
@@ -112,7 +152,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
112
152
|
account: {
|
113
153
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
114
154
|
id: string;
|
115
|
-
options: Record<string, import("@metamask/utils").Json
|
155
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
156
|
+
entropy?: {
|
157
|
+
type: "mnemonic";
|
158
|
+
id: string;
|
159
|
+
derivationPath: string;
|
160
|
+
groupIndex: number;
|
161
|
+
} | {
|
162
|
+
type: "private-key";
|
163
|
+
};
|
164
|
+
exportable?: boolean;
|
165
|
+
};
|
116
166
|
address: string;
|
117
167
|
scopes: `${string}:${string}`[];
|
118
168
|
methods: string[];
|
@@ -124,7 +174,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
124
174
|
account: {
|
125
175
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
126
176
|
id: string;
|
127
|
-
options: Record<string, import("@metamask/utils").Json
|
177
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
178
|
+
entropy?: {
|
179
|
+
type: "mnemonic";
|
180
|
+
id: string;
|
181
|
+
derivationPath: string;
|
182
|
+
groupIndex: number;
|
183
|
+
} | {
|
184
|
+
type: "private-key";
|
185
|
+
};
|
186
|
+
exportable?: boolean;
|
187
|
+
};
|
128
188
|
address: string;
|
129
189
|
scopes: `${string}:${string}`[];
|
130
190
|
methods: string[];
|
@@ -136,7 +196,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
136
196
|
account: import("@metamask/superstruct").Struct<{
|
137
197
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
138
198
|
id: string;
|
139
|
-
options: Record<string, import("@metamask/utils").Json
|
199
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
200
|
+
entropy?: {
|
201
|
+
type: "mnemonic";
|
202
|
+
id: string;
|
203
|
+
derivationPath: string;
|
204
|
+
groupIndex: number;
|
205
|
+
} | {
|
206
|
+
type: "private-key";
|
207
|
+
};
|
208
|
+
exportable?: boolean;
|
209
|
+
};
|
140
210
|
address: string;
|
141
211
|
scopes: `${string}:${string}`[];
|
142
212
|
methods: string[];
|
@@ -153,7 +223,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
153
223
|
}>;
|
154
224
|
address: import("@metamask/superstruct").Struct<string, null>;
|
155
225
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
156
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
226
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
227
|
+
entropy?: {
|
228
|
+
type: "mnemonic";
|
229
|
+
id: string;
|
230
|
+
derivationPath: string;
|
231
|
+
groupIndex: number;
|
232
|
+
} | {
|
233
|
+
type: "private-key";
|
234
|
+
};
|
235
|
+
exportable?: boolean;
|
236
|
+
}, null>;
|
157
237
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
158
238
|
}>;
|
159
239
|
}>;
|
package/dist/events.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"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