@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/rpc.d.cts
CHANGED
@@ -41,14 +41,34 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
42
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
43
43
|
id: string;
|
44
|
-
options: Record<string, import("@metamask/utils").Json
|
44
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
45
|
+
entropy?: {
|
46
|
+
type: "mnemonic";
|
47
|
+
id: string;
|
48
|
+
derivationPath: string;
|
49
|
+
groupIndex: number;
|
50
|
+
} | {
|
51
|
+
type: "private-key";
|
52
|
+
};
|
53
|
+
exportable?: boolean;
|
54
|
+
};
|
45
55
|
address: string;
|
46
56
|
scopes: `${string}:${string}`[];
|
47
57
|
methods: string[];
|
48
58
|
}[], import("@metamask/superstruct").Struct<{
|
49
59
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
50
60
|
id: string;
|
51
|
-
options: Record<string, import("@metamask/utils").Json
|
61
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
62
|
+
entropy?: {
|
63
|
+
type: "mnemonic";
|
64
|
+
id: string;
|
65
|
+
derivationPath: string;
|
66
|
+
groupIndex: number;
|
67
|
+
} | {
|
68
|
+
type: "private-key";
|
69
|
+
};
|
70
|
+
exportable?: boolean;
|
71
|
+
};
|
52
72
|
address: string;
|
53
73
|
scopes: `${string}:${string}`[];
|
54
74
|
methods: string[];
|
@@ -65,7 +85,17 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
65
85
|
}>;
|
66
86
|
address: import("@metamask/superstruct").Struct<string, null>;
|
67
87
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
68
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
88
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
89
|
+
entropy?: {
|
90
|
+
type: "mnemonic";
|
91
|
+
id: string;
|
92
|
+
derivationPath: string;
|
93
|
+
groupIndex: number;
|
94
|
+
} | {
|
95
|
+
type: "private-key";
|
96
|
+
};
|
97
|
+
exportable?: boolean;
|
98
|
+
}, null>;
|
69
99
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
70
100
|
}>>;
|
71
101
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
@@ -90,7 +120,17 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
90
120
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
91
121
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
92
122
|
id: string;
|
93
|
-
options: Record<string, import("@metamask/utils").Json
|
123
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
124
|
+
entropy?: {
|
125
|
+
type: "mnemonic";
|
126
|
+
id: string;
|
127
|
+
derivationPath: string;
|
128
|
+
groupIndex: number;
|
129
|
+
} | {
|
130
|
+
type: "private-key";
|
131
|
+
};
|
132
|
+
exportable?: boolean;
|
133
|
+
};
|
94
134
|
address: string;
|
95
135
|
scopes: `${string}:${string}`[];
|
96
136
|
methods: string[];
|
@@ -107,7 +147,17 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
107
147
|
}>;
|
108
148
|
address: import("@metamask/superstruct").Struct<string, null>;
|
109
149
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
110
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
150
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
151
|
+
entropy?: {
|
152
|
+
type: "mnemonic";
|
153
|
+
id: string;
|
154
|
+
derivationPath: string;
|
155
|
+
groupIndex: number;
|
156
|
+
} | {
|
157
|
+
type: "private-key";
|
158
|
+
};
|
159
|
+
exportable?: boolean;
|
160
|
+
}, null>;
|
111
161
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
112
162
|
}>;
|
113
163
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
@@ -132,7 +182,17 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
132
182
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
133
183
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
134
184
|
id: string;
|
135
|
-
options: Record<string, import("@metamask/utils").Json
|
185
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
186
|
+
entropy?: {
|
187
|
+
type: "mnemonic";
|
188
|
+
id: string;
|
189
|
+
derivationPath: string;
|
190
|
+
groupIndex: number;
|
191
|
+
} | {
|
192
|
+
type: "private-key";
|
193
|
+
};
|
194
|
+
exportable?: boolean;
|
195
|
+
};
|
136
196
|
address: string;
|
137
197
|
scopes: `${string}:${string}`[];
|
138
198
|
methods: string[];
|
@@ -149,7 +209,17 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
149
209
|
}>;
|
150
210
|
address: import("@metamask/superstruct").Struct<string, null>;
|
151
211
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
152
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
212
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
213
|
+
entropy?: {
|
214
|
+
type: "mnemonic";
|
215
|
+
id: string;
|
216
|
+
derivationPath: string;
|
217
|
+
groupIndex: number;
|
218
|
+
} | {
|
219
|
+
type: "private-key";
|
220
|
+
};
|
221
|
+
exportable?: boolean;
|
222
|
+
}, null>;
|
153
223
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
154
224
|
}>;
|
155
225
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
@@ -158,16 +228,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
158
228
|
id: string | number | null;
|
159
229
|
jsonrpc: "2.0";
|
160
230
|
params: {
|
231
|
+
groupIndex: number;
|
161
232
|
scopes: `${string}:${string}`[];
|
162
233
|
entropySource: string;
|
163
|
-
groupIndex: number;
|
164
234
|
};
|
165
235
|
}, {
|
166
236
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
167
237
|
params: import("@metamask/superstruct").Struct<{
|
238
|
+
groupIndex: number;
|
168
239
|
scopes: `${string}:${string}`[];
|
169
240
|
entropySource: string;
|
170
|
-
groupIndex: number;
|
171
241
|
}, {
|
172
242
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
173
243
|
entropySource: import("@metamask/superstruct").Struct<string, null>;
|
@@ -179,12 +249,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
179
249
|
export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
|
180
250
|
export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
181
251
|
type: "bip44";
|
182
|
-
scopes: `${string}:${string}`[];
|
183
252
|
derivationPath: `m/${string}`;
|
253
|
+
scopes: `${string}:${string}`[];
|
184
254
|
}[], import("@metamask/superstruct").Struct<{
|
185
255
|
type: "bip44";
|
186
|
-
scopes: `${string}:${string}`[];
|
187
256
|
derivationPath: `m/${string}`;
|
257
|
+
scopes: `${string}:${string}`[];
|
188
258
|
}, {
|
189
259
|
type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
|
190
260
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -636,7 +706,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
636
706
|
account: {
|
637
707
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
638
708
|
id: string;
|
639
|
-
options: Record<string, import("@metamask/utils").Json
|
709
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
710
|
+
entropy?: {
|
711
|
+
type: "mnemonic";
|
712
|
+
id: string;
|
713
|
+
derivationPath: string;
|
714
|
+
groupIndex: number;
|
715
|
+
} | {
|
716
|
+
type: "private-key";
|
717
|
+
};
|
718
|
+
exportable?: boolean;
|
719
|
+
};
|
640
720
|
address: string;
|
641
721
|
scopes: `${string}:${string}`[];
|
642
722
|
methods: string[];
|
@@ -648,7 +728,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
648
728
|
account: {
|
649
729
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
650
730
|
id: string;
|
651
|
-
options: Record<string, import("@metamask/utils").Json
|
731
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
732
|
+
entropy?: {
|
733
|
+
type: "mnemonic";
|
734
|
+
id: string;
|
735
|
+
derivationPath: string;
|
736
|
+
groupIndex: number;
|
737
|
+
} | {
|
738
|
+
type: "private-key";
|
739
|
+
};
|
740
|
+
exportable?: boolean;
|
741
|
+
};
|
652
742
|
address: string;
|
653
743
|
scopes: `${string}:${string}`[];
|
654
744
|
methods: string[];
|
@@ -657,7 +747,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
657
747
|
account: import("@metamask/superstruct").Struct<{
|
658
748
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
659
749
|
id: string;
|
660
|
-
options: Record<string, import("@metamask/utils").Json
|
750
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
751
|
+
entropy?: {
|
752
|
+
type: "mnemonic";
|
753
|
+
id: string;
|
754
|
+
derivationPath: string;
|
755
|
+
groupIndex: number;
|
756
|
+
} | {
|
757
|
+
type: "private-key";
|
758
|
+
};
|
759
|
+
exportable?: boolean;
|
760
|
+
};
|
661
761
|
address: string;
|
662
762
|
scopes: `${string}:${string}`[];
|
663
763
|
methods: string[];
|
@@ -674,7 +774,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
674
774
|
}>;
|
675
775
|
address: import("@metamask/superstruct").Struct<string, null>;
|
676
776
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
677
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
777
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
778
|
+
entropy?: {
|
779
|
+
type: "mnemonic";
|
780
|
+
id: string;
|
781
|
+
derivationPath: string;
|
782
|
+
groupIndex: number;
|
783
|
+
} | {
|
784
|
+
type: "private-key";
|
785
|
+
};
|
786
|
+
exportable?: boolean;
|
787
|
+
}, null>;
|
678
788
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
679
789
|
}>;
|
680
790
|
}>;
|
@@ -736,6 +846,7 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
736
846
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
737
847
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
738
848
|
id: string;
|
849
|
+
origin: string;
|
739
850
|
request: {
|
740
851
|
method: string;
|
741
852
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -744,6 +855,7 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
744
855
|
account: string;
|
745
856
|
}[], import("@metamask/superstruct").Struct<{
|
746
857
|
id: string;
|
858
|
+
origin: string;
|
747
859
|
request: {
|
748
860
|
method: string;
|
749
861
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -754,6 +866,7 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
754
866
|
id: import("@metamask/superstruct").Struct<string, null>;
|
755
867
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
756
868
|
account: import("@metamask/superstruct").Struct<string, null>;
|
869
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
757
870
|
request: import("@metamask/superstruct").Struct<{
|
758
871
|
method: string;
|
759
872
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -783,6 +896,7 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
783
896
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
784
897
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
785
898
|
id: string;
|
899
|
+
origin: string;
|
786
900
|
request: {
|
787
901
|
method: string;
|
788
902
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -793,6 +907,7 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
793
907
|
id: import("@metamask/superstruct").Struct<string, null>;
|
794
908
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
795
909
|
account: import("@metamask/superstruct").Struct<string, null>;
|
910
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
796
911
|
request: import("@metamask/superstruct").Struct<{
|
797
912
|
method: string;
|
798
913
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -808,6 +923,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
808
923
|
jsonrpc: "2.0";
|
809
924
|
params: {
|
810
925
|
id: string;
|
926
|
+
origin: string;
|
811
927
|
request: {
|
812
928
|
method: string;
|
813
929
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -819,6 +935,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
819
935
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
820
936
|
params: import("@metamask/superstruct").Struct<{
|
821
937
|
id: string;
|
938
|
+
origin: string;
|
822
939
|
request: {
|
823
940
|
method: string;
|
824
941
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -829,6 +946,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
829
946
|
id: import("@metamask/superstruct").Struct<string, null>;
|
830
947
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
831
948
|
account: import("@metamask/superstruct").Struct<string, null>;
|
949
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
832
950
|
request: import("@metamask/superstruct").Struct<{
|
833
951
|
method: string;
|
834
952
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
package/dist/rpc.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":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CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/rpc.d.mts
CHANGED
@@ -41,14 +41,34 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
42
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
43
43
|
id: string;
|
44
|
-
options: Record<string, import("@metamask/utils").Json
|
44
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
45
|
+
entropy?: {
|
46
|
+
type: "mnemonic";
|
47
|
+
id: string;
|
48
|
+
derivationPath: string;
|
49
|
+
groupIndex: number;
|
50
|
+
} | {
|
51
|
+
type: "private-key";
|
52
|
+
};
|
53
|
+
exportable?: boolean;
|
54
|
+
};
|
45
55
|
address: string;
|
46
56
|
scopes: `${string}:${string}`[];
|
47
57
|
methods: string[];
|
48
58
|
}[], import("@metamask/superstruct").Struct<{
|
49
59
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
50
60
|
id: string;
|
51
|
-
options: Record<string, import("@metamask/utils").Json
|
61
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
62
|
+
entropy?: {
|
63
|
+
type: "mnemonic";
|
64
|
+
id: string;
|
65
|
+
derivationPath: string;
|
66
|
+
groupIndex: number;
|
67
|
+
} | {
|
68
|
+
type: "private-key";
|
69
|
+
};
|
70
|
+
exportable?: boolean;
|
71
|
+
};
|
52
72
|
address: string;
|
53
73
|
scopes: `${string}:${string}`[];
|
54
74
|
methods: string[];
|
@@ -65,7 +85,17 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
65
85
|
}>;
|
66
86
|
address: import("@metamask/superstruct").Struct<string, null>;
|
67
87
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
68
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
88
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
89
|
+
entropy?: {
|
90
|
+
type: "mnemonic";
|
91
|
+
id: string;
|
92
|
+
derivationPath: string;
|
93
|
+
groupIndex: number;
|
94
|
+
} | {
|
95
|
+
type: "private-key";
|
96
|
+
};
|
97
|
+
exportable?: boolean;
|
98
|
+
}, null>;
|
69
99
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
70
100
|
}>>;
|
71
101
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
@@ -90,7 +120,17 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
90
120
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
91
121
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
92
122
|
id: string;
|
93
|
-
options: Record<string, import("@metamask/utils").Json
|
123
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
124
|
+
entropy?: {
|
125
|
+
type: "mnemonic";
|
126
|
+
id: string;
|
127
|
+
derivationPath: string;
|
128
|
+
groupIndex: number;
|
129
|
+
} | {
|
130
|
+
type: "private-key";
|
131
|
+
};
|
132
|
+
exportable?: boolean;
|
133
|
+
};
|
94
134
|
address: string;
|
95
135
|
scopes: `${string}:${string}`[];
|
96
136
|
methods: string[];
|
@@ -107,7 +147,17 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
107
147
|
}>;
|
108
148
|
address: import("@metamask/superstruct").Struct<string, null>;
|
109
149
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
110
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
150
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
151
|
+
entropy?: {
|
152
|
+
type: "mnemonic";
|
153
|
+
id: string;
|
154
|
+
derivationPath: string;
|
155
|
+
groupIndex: number;
|
156
|
+
} | {
|
157
|
+
type: "private-key";
|
158
|
+
};
|
159
|
+
exportable?: boolean;
|
160
|
+
}, null>;
|
111
161
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
112
162
|
}>;
|
113
163
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
@@ -132,7 +182,17 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
132
182
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
133
183
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
134
184
|
id: string;
|
135
|
-
options: Record<string, import("@metamask/utils").Json
|
185
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
186
|
+
entropy?: {
|
187
|
+
type: "mnemonic";
|
188
|
+
id: string;
|
189
|
+
derivationPath: string;
|
190
|
+
groupIndex: number;
|
191
|
+
} | {
|
192
|
+
type: "private-key";
|
193
|
+
};
|
194
|
+
exportable?: boolean;
|
195
|
+
};
|
136
196
|
address: string;
|
137
197
|
scopes: `${string}:${string}`[];
|
138
198
|
methods: string[];
|
@@ -149,7 +209,17 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
149
209
|
}>;
|
150
210
|
address: import("@metamask/superstruct").Struct<string, null>;
|
151
211
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
152
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
212
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
213
|
+
entropy?: {
|
214
|
+
type: "mnemonic";
|
215
|
+
id: string;
|
216
|
+
derivationPath: string;
|
217
|
+
groupIndex: number;
|
218
|
+
} | {
|
219
|
+
type: "private-key";
|
220
|
+
};
|
221
|
+
exportable?: boolean;
|
222
|
+
}, null>;
|
153
223
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
154
224
|
}>;
|
155
225
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
@@ -158,16 +228,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
158
228
|
id: string | number | null;
|
159
229
|
jsonrpc: "2.0";
|
160
230
|
params: {
|
231
|
+
groupIndex: number;
|
161
232
|
scopes: `${string}:${string}`[];
|
162
233
|
entropySource: string;
|
163
|
-
groupIndex: number;
|
164
234
|
};
|
165
235
|
}, {
|
166
236
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
167
237
|
params: import("@metamask/superstruct").Struct<{
|
238
|
+
groupIndex: number;
|
168
239
|
scopes: `${string}:${string}`[];
|
169
240
|
entropySource: string;
|
170
|
-
groupIndex: number;
|
171
241
|
}, {
|
172
242
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
173
243
|
entropySource: import("@metamask/superstruct").Struct<string, null>;
|
@@ -179,12 +249,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
179
249
|
export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
|
180
250
|
export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
181
251
|
type: "bip44";
|
182
|
-
scopes: `${string}:${string}`[];
|
183
252
|
derivationPath: `m/${string}`;
|
253
|
+
scopes: `${string}:${string}`[];
|
184
254
|
}[], import("@metamask/superstruct").Struct<{
|
185
255
|
type: "bip44";
|
186
|
-
scopes: `${string}:${string}`[];
|
187
256
|
derivationPath: `m/${string}`;
|
257
|
+
scopes: `${string}:${string}`[];
|
188
258
|
}, {
|
189
259
|
type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
|
190
260
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -636,7 +706,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
636
706
|
account: {
|
637
707
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
638
708
|
id: string;
|
639
|
-
options: Record<string, import("@metamask/utils").Json
|
709
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
710
|
+
entropy?: {
|
711
|
+
type: "mnemonic";
|
712
|
+
id: string;
|
713
|
+
derivationPath: string;
|
714
|
+
groupIndex: number;
|
715
|
+
} | {
|
716
|
+
type: "private-key";
|
717
|
+
};
|
718
|
+
exportable?: boolean;
|
719
|
+
};
|
640
720
|
address: string;
|
641
721
|
scopes: `${string}:${string}`[];
|
642
722
|
methods: string[];
|
@@ -648,7 +728,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
648
728
|
account: {
|
649
729
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
650
730
|
id: string;
|
651
|
-
options: Record<string, import("@metamask/utils").Json
|
731
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
732
|
+
entropy?: {
|
733
|
+
type: "mnemonic";
|
734
|
+
id: string;
|
735
|
+
derivationPath: string;
|
736
|
+
groupIndex: number;
|
737
|
+
} | {
|
738
|
+
type: "private-key";
|
739
|
+
};
|
740
|
+
exportable?: boolean;
|
741
|
+
};
|
652
742
|
address: string;
|
653
743
|
scopes: `${string}:${string}`[];
|
654
744
|
methods: string[];
|
@@ -657,7 +747,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
657
747
|
account: import("@metamask/superstruct").Struct<{
|
658
748
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
659
749
|
id: string;
|
660
|
-
options: Record<string, import("@metamask/utils").Json
|
750
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
751
|
+
entropy?: {
|
752
|
+
type: "mnemonic";
|
753
|
+
id: string;
|
754
|
+
derivationPath: string;
|
755
|
+
groupIndex: number;
|
756
|
+
} | {
|
757
|
+
type: "private-key";
|
758
|
+
};
|
759
|
+
exportable?: boolean;
|
760
|
+
};
|
661
761
|
address: string;
|
662
762
|
scopes: `${string}:${string}`[];
|
663
763
|
methods: string[];
|
@@ -674,7 +774,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
674
774
|
}>;
|
675
775
|
address: import("@metamask/superstruct").Struct<string, null>;
|
676
776
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
677
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
777
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
778
|
+
entropy?: {
|
779
|
+
type: "mnemonic";
|
780
|
+
id: string;
|
781
|
+
derivationPath: string;
|
782
|
+
groupIndex: number;
|
783
|
+
} | {
|
784
|
+
type: "private-key";
|
785
|
+
};
|
786
|
+
exportable?: boolean;
|
787
|
+
}, null>;
|
678
788
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
679
789
|
}>;
|
680
790
|
}>;
|
@@ -736,6 +846,7 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
736
846
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
737
847
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
738
848
|
id: string;
|
849
|
+
origin: string;
|
739
850
|
request: {
|
740
851
|
method: string;
|
741
852
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -744,6 +855,7 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
744
855
|
account: string;
|
745
856
|
}[], import("@metamask/superstruct").Struct<{
|
746
857
|
id: string;
|
858
|
+
origin: string;
|
747
859
|
request: {
|
748
860
|
method: string;
|
749
861
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -754,6 +866,7 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
754
866
|
id: import("@metamask/superstruct").Struct<string, null>;
|
755
867
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
756
868
|
account: import("@metamask/superstruct").Struct<string, null>;
|
869
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
757
870
|
request: import("@metamask/superstruct").Struct<{
|
758
871
|
method: string;
|
759
872
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -783,6 +896,7 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
783
896
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
784
897
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
785
898
|
id: string;
|
899
|
+
origin: string;
|
786
900
|
request: {
|
787
901
|
method: string;
|
788
902
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -793,6 +907,7 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
793
907
|
id: import("@metamask/superstruct").Struct<string, null>;
|
794
908
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
795
909
|
account: import("@metamask/superstruct").Struct<string, null>;
|
910
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
796
911
|
request: import("@metamask/superstruct").Struct<{
|
797
912
|
method: string;
|
798
913
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -808,6 +923,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
808
923
|
jsonrpc: "2.0";
|
809
924
|
params: {
|
810
925
|
id: string;
|
926
|
+
origin: string;
|
811
927
|
request: {
|
812
928
|
method: string;
|
813
929
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -819,6 +935,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
819
935
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
820
936
|
params: import("@metamask/superstruct").Struct<{
|
821
937
|
id: string;
|
938
|
+
origin: string;
|
822
939
|
request: {
|
823
940
|
method: string;
|
824
941
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
@@ -829,6 +946,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
829
946
|
id: import("@metamask/superstruct").Struct<string, null>;
|
830
947
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
831
948
|
account: import("@metamask/superstruct").Struct<string, null>;
|
949
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
832
950
|
request: import("@metamask/superstruct").Struct<{
|
833
951
|
method: string;
|
834
952
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
package/dist/rpc.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAq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