@metamask-previews/keyring-api 17.5.0-2d7389c → 17.6.0-1e1233a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/dist/api/account.cjs +6 -0
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +10 -4
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +10 -4
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +6 -0
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/request.cjs +0 -4
- package/dist/api/request.cjs.map +1 -1
- package/dist/api/request.d.cts +0 -5
- package/dist/api/request.d.cts.map +1 -1
- package/dist/api/request.d.mts +0 -5
- package/dist/api/request.d.mts.map +1 -1
- package/dist/api/request.mjs +0 -4
- package/dist/api/request.mjs.map +1 -1
- package/dist/btc/types.cjs +63 -14
- package/dist/btc/types.cjs.map +1 -1
- package/dist/btc/types.d.cts +95 -4
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +95 -4
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/btc/types.mjs +64 -15
- package/dist/btc/types.mjs.map +1 -1
- package/dist/events.d.cts +14 -8
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +14 -8
- package/dist/events.d.mts.map +1 -1
- package/dist/index.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/rpc.d.cts +23 -19
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +23 -19
- package/dist/rpc.d.mts.map +1 -1
- package/package.json +2 -2
- package/dist/versions.cjs +0 -16
- package/dist/versions.cjs.map +0 -1
- package/dist/versions.d.cts +0 -12
- package/dist/versions.d.cts.map +0 -1
- package/dist/versions.d.mts +0 -12
- package/dist/versions.d.mts.map +0 -1
- package/dist/versions.mjs +0 -13
- package/dist/versions.mjs.map +0 -1
package/dist/rpc.d.cts
CHANGED
|
@@ -39,14 +39,14 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
|
39
39
|
}>;
|
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
43
43
|
id: string;
|
|
44
44
|
options: Record<string, import("@metamask/utils").Json>;
|
|
45
45
|
address: string;
|
|
46
46
|
scopes: `${string}:${string}`[];
|
|
47
47
|
methods: string[];
|
|
48
48
|
}[], import("@metamask/superstruct").Struct<{
|
|
49
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
49
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
50
50
|
id: string;
|
|
51
51
|
options: Record<string, import("@metamask/utils").Json>;
|
|
52
52
|
address: string;
|
|
@@ -54,10 +54,13 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
54
54
|
methods: string[];
|
|
55
55
|
}, {
|
|
56
56
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
57
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
57
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
58
58
|
"eip155:eoa": "eip155:eoa";
|
|
59
59
|
"eip155:erc4337": "eip155:erc4337";
|
|
60
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
61
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
60
62
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
63
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
61
64
|
"solana:data-account": "solana:data-account";
|
|
62
65
|
}>;
|
|
63
66
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -85,7 +88,7 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
|
85
88
|
}>;
|
|
86
89
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
87
90
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
88
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
91
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
89
92
|
id: string;
|
|
90
93
|
options: Record<string, import("@metamask/utils").Json>;
|
|
91
94
|
address: string;
|
|
@@ -93,10 +96,13 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
93
96
|
methods: string[];
|
|
94
97
|
}, {
|
|
95
98
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
96
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
99
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
97
100
|
"eip155:eoa": "eip155:eoa";
|
|
98
101
|
"eip155:erc4337": "eip155:erc4337";
|
|
102
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
103
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
99
104
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
105
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
100
106
|
"solana:data-account": "solana:data-account";
|
|
101
107
|
}>;
|
|
102
108
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -124,7 +130,7 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
124
130
|
}>;
|
|
125
131
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
126
132
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
127
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
133
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
128
134
|
id: string;
|
|
129
135
|
options: Record<string, import("@metamask/utils").Json>;
|
|
130
136
|
address: string;
|
|
@@ -132,10 +138,13 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
|
132
138
|
methods: string[];
|
|
133
139
|
}, {
|
|
134
140
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
135
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
141
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
136
142
|
"eip155:eoa": "eip155:eoa";
|
|
137
143
|
"eip155:erc4337": "eip155:erc4337";
|
|
144
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
145
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
138
146
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
147
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
139
148
|
"solana:data-account": "solana:data-account";
|
|
140
149
|
}>;
|
|
141
150
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -625,7 +634,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
625
634
|
jsonrpc: "2.0";
|
|
626
635
|
params: {
|
|
627
636
|
account: {
|
|
628
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
637
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
629
638
|
id: string;
|
|
630
639
|
options: Record<string, import("@metamask/utils").Json>;
|
|
631
640
|
address: string;
|
|
@@ -637,7 +646,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
637
646
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
|
638
647
|
params: import("@metamask/superstruct").Struct<{
|
|
639
648
|
account: {
|
|
640
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
649
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
641
650
|
id: string;
|
|
642
651
|
options: Record<string, import("@metamask/utils").Json>;
|
|
643
652
|
address: string;
|
|
@@ -646,7 +655,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
646
655
|
};
|
|
647
656
|
}, {
|
|
648
657
|
account: import("@metamask/superstruct").Struct<{
|
|
649
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
658
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
650
659
|
id: string;
|
|
651
660
|
options: Record<string, import("@metamask/utils").Json>;
|
|
652
661
|
address: string;
|
|
@@ -654,10 +663,13 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
654
663
|
methods: string[];
|
|
655
664
|
}, {
|
|
656
665
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
657
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
666
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
658
667
|
"eip155:eoa": "eip155:eoa";
|
|
659
668
|
"eip155:erc4337": "eip155:erc4337";
|
|
669
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
670
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
660
671
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
672
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
661
673
|
"solana:data-account": "solana:data-account";
|
|
662
674
|
}>;
|
|
663
675
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -724,7 +736,6 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
|
724
736
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
|
725
737
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
726
738
|
id: string;
|
|
727
|
-
origin: string;
|
|
728
739
|
request: {
|
|
729
740
|
method: string;
|
|
730
741
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -733,7 +744,6 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
733
744
|
account: string;
|
|
734
745
|
}[], import("@metamask/superstruct").Struct<{
|
|
735
746
|
id: string;
|
|
736
|
-
origin: string;
|
|
737
747
|
request: {
|
|
738
748
|
method: string;
|
|
739
749
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -744,7 +754,6 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
744
754
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
745
755
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
746
756
|
account: import("@metamask/superstruct").Struct<string, null>;
|
|
747
|
-
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
748
757
|
request: import("@metamask/superstruct").Struct<{
|
|
749
758
|
method: string;
|
|
750
759
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -774,7 +783,6 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
|
774
783
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
|
775
784
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
|
776
785
|
id: string;
|
|
777
|
-
origin: string;
|
|
778
786
|
request: {
|
|
779
787
|
method: string;
|
|
780
788
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -785,7 +793,6 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
|
785
793
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
786
794
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
787
795
|
account: import("@metamask/superstruct").Struct<string, null>;
|
|
788
|
-
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
789
796
|
request: import("@metamask/superstruct").Struct<{
|
|
790
797
|
method: string;
|
|
791
798
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -801,7 +808,6 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
801
808
|
jsonrpc: "2.0";
|
|
802
809
|
params: {
|
|
803
810
|
id: string;
|
|
804
|
-
origin: string;
|
|
805
811
|
request: {
|
|
806
812
|
method: string;
|
|
807
813
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -813,7 +819,6 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
813
819
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
|
814
820
|
params: import("@metamask/superstruct").Struct<{
|
|
815
821
|
id: string;
|
|
816
|
-
origin: string;
|
|
817
822
|
request: {
|
|
818
823
|
method: string;
|
|
819
824
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -824,7 +829,6 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
824
829
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
825
830
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
826
831
|
account: import("@metamask/superstruct").Struct<string, null>;
|
|
827
|
-
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
828
832
|
request: import("@metamask/superstruct").Struct<{
|
|
829
833
|
method: string;
|
|
830
834
|
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":"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,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kB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AO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;QAAwB,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B,oDAAgB,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAKhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,oDAAgB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/rpc.d.mts
CHANGED
|
@@ -39,14 +39,14 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
|
39
39
|
}>;
|
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
43
43
|
id: string;
|
|
44
44
|
options: Record<string, import("@metamask/utils").Json>;
|
|
45
45
|
address: string;
|
|
46
46
|
scopes: `${string}:${string}`[];
|
|
47
47
|
methods: string[];
|
|
48
48
|
}[], import("@metamask/superstruct").Struct<{
|
|
49
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
49
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
50
50
|
id: string;
|
|
51
51
|
options: Record<string, import("@metamask/utils").Json>;
|
|
52
52
|
address: string;
|
|
@@ -54,10 +54,13 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
54
54
|
methods: string[];
|
|
55
55
|
}, {
|
|
56
56
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
57
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
57
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
58
58
|
"eip155:eoa": "eip155:eoa";
|
|
59
59
|
"eip155:erc4337": "eip155:erc4337";
|
|
60
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
61
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
60
62
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
63
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
61
64
|
"solana:data-account": "solana:data-account";
|
|
62
65
|
}>;
|
|
63
66
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -85,7 +88,7 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
|
85
88
|
}>;
|
|
86
89
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
87
90
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
88
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
91
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
89
92
|
id: string;
|
|
90
93
|
options: Record<string, import("@metamask/utils").Json>;
|
|
91
94
|
address: string;
|
|
@@ -93,10 +96,13 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
93
96
|
methods: string[];
|
|
94
97
|
}, {
|
|
95
98
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
96
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
99
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
97
100
|
"eip155:eoa": "eip155:eoa";
|
|
98
101
|
"eip155:erc4337": "eip155:erc4337";
|
|
102
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
103
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
99
104
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
105
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
100
106
|
"solana:data-account": "solana:data-account";
|
|
101
107
|
}>;
|
|
102
108
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -124,7 +130,7 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
124
130
|
}>;
|
|
125
131
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
126
132
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
127
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
133
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
128
134
|
id: string;
|
|
129
135
|
options: Record<string, import("@metamask/utils").Json>;
|
|
130
136
|
address: string;
|
|
@@ -132,10 +138,13 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
|
132
138
|
methods: string[];
|
|
133
139
|
}, {
|
|
134
140
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
135
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
141
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
136
142
|
"eip155:eoa": "eip155:eoa";
|
|
137
143
|
"eip155:erc4337": "eip155:erc4337";
|
|
144
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
145
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
138
146
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
147
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
139
148
|
"solana:data-account": "solana:data-account";
|
|
140
149
|
}>;
|
|
141
150
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -625,7 +634,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
625
634
|
jsonrpc: "2.0";
|
|
626
635
|
params: {
|
|
627
636
|
account: {
|
|
628
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
637
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
629
638
|
id: string;
|
|
630
639
|
options: Record<string, import("@metamask/utils").Json>;
|
|
631
640
|
address: string;
|
|
@@ -637,7 +646,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
637
646
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
|
638
647
|
params: import("@metamask/superstruct").Struct<{
|
|
639
648
|
account: {
|
|
640
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
649
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
641
650
|
id: string;
|
|
642
651
|
options: Record<string, import("@metamask/utils").Json>;
|
|
643
652
|
address: string;
|
|
@@ -646,7 +655,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
646
655
|
};
|
|
647
656
|
}, {
|
|
648
657
|
account: import("@metamask/superstruct").Struct<{
|
|
649
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
|
|
658
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
650
659
|
id: string;
|
|
651
660
|
options: Record<string, import("@metamask/utils").Json>;
|
|
652
661
|
address: string;
|
|
@@ -654,10 +663,13 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
654
663
|
methods: string[];
|
|
655
664
|
}, {
|
|
656
665
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
657
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
|
|
666
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
|
658
667
|
"eip155:eoa": "eip155:eoa";
|
|
659
668
|
"eip155:erc4337": "eip155:erc4337";
|
|
669
|
+
"bip122:p2pkh": "bip122:p2pkh";
|
|
670
|
+
"bip122:p2sh": "bip122:p2sh";
|
|
660
671
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
|
672
|
+
"bip122:p2tr": "bip122:p2tr";
|
|
661
673
|
"solana:data-account": "solana:data-account";
|
|
662
674
|
}>;
|
|
663
675
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -724,7 +736,6 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
|
724
736
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
|
725
737
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
726
738
|
id: string;
|
|
727
|
-
origin: string;
|
|
728
739
|
request: {
|
|
729
740
|
method: string;
|
|
730
741
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -733,7 +744,6 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
733
744
|
account: string;
|
|
734
745
|
}[], import("@metamask/superstruct").Struct<{
|
|
735
746
|
id: string;
|
|
736
|
-
origin: string;
|
|
737
747
|
request: {
|
|
738
748
|
method: string;
|
|
739
749
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -744,7 +754,6 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
744
754
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
745
755
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
746
756
|
account: import("@metamask/superstruct").Struct<string, null>;
|
|
747
|
-
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
748
757
|
request: import("@metamask/superstruct").Struct<{
|
|
749
758
|
method: string;
|
|
750
759
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -774,7 +783,6 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
|
774
783
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
|
775
784
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
|
776
785
|
id: string;
|
|
777
|
-
origin: string;
|
|
778
786
|
request: {
|
|
779
787
|
method: string;
|
|
780
788
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -785,7 +793,6 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
|
785
793
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
786
794
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
787
795
|
account: import("@metamask/superstruct").Struct<string, null>;
|
|
788
|
-
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
789
796
|
request: import("@metamask/superstruct").Struct<{
|
|
790
797
|
method: string;
|
|
791
798
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -801,7 +808,6 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
801
808
|
jsonrpc: "2.0";
|
|
802
809
|
params: {
|
|
803
810
|
id: string;
|
|
804
|
-
origin: string;
|
|
805
811
|
request: {
|
|
806
812
|
method: string;
|
|
807
813
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -813,7 +819,6 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
813
819
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
|
814
820
|
params: import("@metamask/superstruct").Struct<{
|
|
815
821
|
id: string;
|
|
816
|
-
origin: string;
|
|
817
822
|
request: {
|
|
818
823
|
method: string;
|
|
819
824
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
@@ -824,7 +829,6 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
824
829
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
825
830
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
826
831
|
account: import("@metamask/superstruct").Struct<string, null>;
|
|
827
|
-
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
828
832
|
request: import("@metamask/superstruct").Struct<{
|
|
829
833
|
method: string;
|
|
830
834
|
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,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D;AAYD,eAAO,MAAM,yBAAyB;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B
|
|
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,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IAC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|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/keyring-api",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.6.0-1e1233a",
|
|
4
4
|
"description": "MetaMask Keyring API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metamask",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@metamask/keyring-utils": "3.0.0",
|
|
50
50
|
"@metamask/superstruct": "^3.1.0",
|
|
51
51
|
"@metamask/utils": "^11.1.0",
|
|
52
|
-
"
|
|
52
|
+
"bitcoin-address-validation": "^2.2.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@lavamoat/allow-scripts": "^3.2.1",
|
package/dist/versions.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KeyringVersion = void 0;
|
|
4
|
-
var KeyringVersion;
|
|
5
|
-
(function (KeyringVersion) {
|
|
6
|
-
/** Default. */
|
|
7
|
-
KeyringVersion["V1"] = "v1";
|
|
8
|
-
/**
|
|
9
|
-
* Introduction of `KeyringRequest.origin`.
|
|
10
|
-
*
|
|
11
|
-
* Snap will now receive the `origin` as part of a `KeyringRquest` when `submitRequest` is invoked.
|
|
12
|
-
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
13
|
-
*/
|
|
14
|
-
KeyringVersion["V2"] = "v2";
|
|
15
|
-
})(KeyringVersion || (exports.KeyringVersion = KeyringVersion = {}));
|
|
16
|
-
//# sourceMappingURL=versions.cjs.map
|
package/dist/versions.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.cjs","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,eAAe;IACf,2BAAS,CAAA;IAET;;;;;OAKG;IACH,2BAAS,CAAA;AACX,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB","sourcesContent":["export enum KeyringVersion {\n /** Default. */\n V1 = 'v1',\n\n /**\n * Introduction of `KeyringRequest.origin`.\n *\n * Snap will now receive the `origin` as part of a `KeyringRquest` when `submitRequest` is invoked.\n * We also expect Snaps to display this `origin` in their confirmation screens (if any).\n */\n V2 = 'v2',\n}\n"]}
|
package/dist/versions.d.cts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum KeyringVersion {
|
|
2
|
-
/** Default. */
|
|
3
|
-
V1 = "v1",
|
|
4
|
-
/**
|
|
5
|
-
* Introduction of `KeyringRequest.origin`.
|
|
6
|
-
*
|
|
7
|
-
* Snap will now receive the `origin` as part of a `KeyringRquest` when `submitRequest` is invoked.
|
|
8
|
-
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
9
|
-
*/
|
|
10
|
-
V2 = "v2"
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=versions.d.cts.map
|
package/dist/versions.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.cts","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,eAAe;IACf,EAAE,OAAO;IAET;;;;;OAKG;IACH,EAAE,OAAO;CACV"}
|
package/dist/versions.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum KeyringVersion {
|
|
2
|
-
/** Default. */
|
|
3
|
-
V1 = "v1",
|
|
4
|
-
/**
|
|
5
|
-
* Introduction of `KeyringRequest.origin`.
|
|
6
|
-
*
|
|
7
|
-
* Snap will now receive the `origin` as part of a `KeyringRquest` when `submitRequest` is invoked.
|
|
8
|
-
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
9
|
-
*/
|
|
10
|
-
V2 = "v2"
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=versions.d.mts.map
|
package/dist/versions.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.mts","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,eAAe;IACf,EAAE,OAAO;IAET;;;;;OAKG;IACH,EAAE,OAAO;CACV"}
|
package/dist/versions.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export var KeyringVersion;
|
|
2
|
-
(function (KeyringVersion) {
|
|
3
|
-
/** Default. */
|
|
4
|
-
KeyringVersion["V1"] = "v1";
|
|
5
|
-
/**
|
|
6
|
-
* Introduction of `KeyringRequest.origin`.
|
|
7
|
-
*
|
|
8
|
-
* Snap will now receive the `origin` as part of a `KeyringRquest` when `submitRequest` is invoked.
|
|
9
|
-
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
10
|
-
*/
|
|
11
|
-
KeyringVersion["V2"] = "v2";
|
|
12
|
-
})(KeyringVersion || (KeyringVersion = {}));
|
|
13
|
-
//# sourceMappingURL=versions.mjs.map
|
package/dist/versions.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,eAAe;IACf,2BAAS,CAAA;IAET;;;;;OAKG;IACH,2BAAS,CAAA;AACX,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB","sourcesContent":["export enum KeyringVersion {\n /** Default. */\n V1 = 'v1',\n\n /**\n * Introduction of `KeyringRequest.origin`.\n *\n * Snap will now receive the `origin` as part of a `KeyringRquest` when `submitRequest` is invoked.\n * We also expect Snaps to display this `origin` in their confirmation screens (if any).\n */\n V2 = 'v2',\n}\n"]}
|