@metamask-previews/keyring-api 23.2.0-023fc63 → 23.2.0-52bd218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/account.d.cts +2 -2
- package/dist/api/account.d.mts +2 -2
- package/dist/api/asset.d.cts +2 -2
- package/dist/api/asset.d.mts +2 -2
- package/dist/api/request.d.cts +3 -3
- package/dist/api/request.d.mts +3 -3
- package/dist/api/response.d.cts +1 -1
- package/dist/api/response.d.mts +1 -1
- package/dist/api/transaction.d.cts +71 -71
- package/dist/api/transaction.d.mts +71 -71
- package/dist/btc/types.d.cts +8 -8
- package/dist/btc/types.d.mts +8 -8
- package/dist/eth/erc4337/types.d.cts +3 -3
- package/dist/eth/erc4337/types.d.mts +3 -3
- package/dist/eth/rpc/params.d.cts +29 -29
- package/dist/eth/rpc/params.d.mts +29 -29
- package/dist/eth/types.d.cts +4 -4
- package/dist/eth/types.d.mts +4 -4
- package/dist/events.d.cts +56 -56
- package/dist/events.d.mts +56 -56
- package/dist/rpc.d.cts +131 -131
- package/dist/rpc.d.mts +131 -131
- package/dist/sol/types.d.cts +2 -2
- package/dist/sol/types.d.mts +2 -2
- package/dist/trx/types.d.cts +2 -2
- package/dist/trx/types.d.mts +2 -2
- package/dist/v2/api/create-account/bip44.d.cts +1 -1
- package/dist/v2/api/create-account/bip44.d.mts +1 -1
- package/dist/v2/api/create-account/index.d.cts +1 -1
- package/dist/v2/api/create-account/index.d.mts +1 -1
- package/dist/v2/api/keyring-rpc.d.cts +28 -28
- package/dist/v2/api/keyring-rpc.d.mts +28 -28
- package/dist/xlm/types.d.cts +2 -2
- package/dist/xlm/types.d.mts +2 -2
- package/package.json +1 -1
|
@@ -14,22 +14,22 @@ import type { Infer } from "@metamask/superstruct";
|
|
|
14
14
|
* The actual transaction validation is performed by the transaction library.
|
|
15
15
|
*/
|
|
16
16
|
export declare const EthTransactionDataStruct: import("@metamask/superstruct").Struct<{
|
|
17
|
+
value?: string | number | undefined;
|
|
17
18
|
type?: string | number | undefined;
|
|
18
|
-
from?: string | undefined;
|
|
19
|
-
to?: string | null | undefined;
|
|
20
19
|
data?: string | undefined;
|
|
21
|
-
|
|
20
|
+
from?: string | undefined;
|
|
21
|
+
chainId?: string | number | undefined;
|
|
22
|
+
accessList?: {
|
|
23
|
+
address: string;
|
|
24
|
+
storageKeys: string[];
|
|
25
|
+
}[] | undefined;
|
|
22
26
|
nonce?: string | number | undefined;
|
|
27
|
+
to?: string | null | undefined;
|
|
23
28
|
maxFeePerGas?: string | number | undefined;
|
|
24
29
|
maxPriorityFeePerGas?: string | number | undefined;
|
|
25
30
|
gas?: string | number | undefined;
|
|
26
31
|
gasLimit?: string | number | undefined;
|
|
27
32
|
gasPrice?: string | number | undefined;
|
|
28
|
-
accessList?: {
|
|
29
|
-
address: string;
|
|
30
|
-
storageKeys: string[];
|
|
31
|
-
}[] | undefined;
|
|
32
|
-
chainId?: string | number | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
to: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
35
35
|
from: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
@@ -60,13 +60,13 @@ export type EthTransactionData = Infer<typeof EthTransactionDataStruct>;
|
|
|
60
60
|
* This is an array of { type, name, value } objects.
|
|
61
61
|
*/
|
|
62
62
|
export declare const EthTypedDataV1Struct: import("@metamask/superstruct").Struct<{
|
|
63
|
-
type: string;
|
|
64
|
-
value: unknown;
|
|
65
63
|
name: string;
|
|
66
|
-
}[], import("@metamask/superstruct").Struct<{
|
|
67
|
-
type: string;
|
|
68
64
|
value: unknown;
|
|
65
|
+
type: string;
|
|
66
|
+
}[], import("@metamask/superstruct").Struct<{
|
|
69
67
|
name: string;
|
|
68
|
+
value: unknown;
|
|
69
|
+
type: string;
|
|
70
70
|
}, {
|
|
71
71
|
type: import("@metamask/superstruct").Struct<string, null>;
|
|
72
72
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -78,8 +78,8 @@ export type EthTypedDataV1 = Infer<typeof EthTypedDataV1Struct>;
|
|
|
78
78
|
* Maps type names to arrays of { name, type } definitions.
|
|
79
79
|
*/
|
|
80
80
|
export declare const EthTypedDataTypesStruct: import("@metamask/superstruct").Struct<Record<string, {
|
|
81
|
-
type: string;
|
|
82
81
|
name: string;
|
|
82
|
+
type: string;
|
|
83
83
|
}[]>, null>;
|
|
84
84
|
export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
|
|
85
85
|
/**
|
|
@@ -88,16 +88,16 @@ export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
|
|
|
88
88
|
*/
|
|
89
89
|
export declare const EthTypedMessageStruct: import("@metamask/superstruct").Struct<{
|
|
90
90
|
message: Record<string, any>;
|
|
91
|
+
domain: Record<string, any>;
|
|
91
92
|
types: Record<string, {
|
|
92
|
-
type: string;
|
|
93
93
|
name: string;
|
|
94
|
+
type: string;
|
|
94
95
|
}[]>;
|
|
95
96
|
primaryType: string;
|
|
96
|
-
domain: Record<string, any>;
|
|
97
97
|
}, {
|
|
98
98
|
types: import("@metamask/superstruct").Struct<Record<string, {
|
|
99
|
-
type: string;
|
|
100
99
|
name: string;
|
|
100
|
+
type: string;
|
|
101
101
|
}[]>, null>;
|
|
102
102
|
primaryType: import("@metamask/superstruct").Struct<string, null>;
|
|
103
103
|
domain: import("@metamask/superstruct").Struct<Record<string, any>, null>;
|
|
@@ -133,22 +133,22 @@ export declare const EthGetEncryptionPublicKeyOptionsStruct: import("@metamask/s
|
|
|
133
133
|
* Parameters for `eth_signTransaction`.
|
|
134
134
|
*/
|
|
135
135
|
export declare const EthSignTransactionParamsStruct: import("@metamask/superstruct").Struct<[{
|
|
136
|
+
value?: string | number | undefined;
|
|
136
137
|
type?: string | number | undefined;
|
|
137
|
-
from?: string | undefined;
|
|
138
|
-
to?: string | null | undefined;
|
|
139
138
|
data?: string | undefined;
|
|
140
|
-
|
|
139
|
+
from?: string | undefined;
|
|
140
|
+
chainId?: string | number | undefined;
|
|
141
|
+
accessList?: {
|
|
142
|
+
address: string;
|
|
143
|
+
storageKeys: string[];
|
|
144
|
+
}[] | undefined;
|
|
141
145
|
nonce?: string | number | undefined;
|
|
146
|
+
to?: string | null | undefined;
|
|
142
147
|
maxFeePerGas?: string | number | undefined;
|
|
143
148
|
maxPriorityFeePerGas?: string | number | undefined;
|
|
144
149
|
gas?: string | number | undefined;
|
|
145
150
|
gasLimit?: string | number | undefined;
|
|
146
151
|
gasPrice?: string | number | undefined;
|
|
147
|
-
accessList?: {
|
|
148
|
-
address: string;
|
|
149
|
-
storageKeys: string[];
|
|
150
|
-
}[] | undefined;
|
|
151
|
-
chainId?: string | number | undefined;
|
|
152
152
|
}], null>;
|
|
153
153
|
export type EthSignTransactionParams = Infer<typeof EthSignTransactionParamsStruct>;
|
|
154
154
|
/**
|
|
@@ -159,15 +159,15 @@ export type EthSignParams = Infer<typeof EthSignParamsStruct>;
|
|
|
159
159
|
/**
|
|
160
160
|
* Parameters for `personal_sign`.
|
|
161
161
|
*/
|
|
162
|
-
export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string] | [string
|
|
162
|
+
export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string, string] | [string], null>;
|
|
163
163
|
export type EthPersonalSignParams = Infer<typeof EthPersonalSignParamsStruct>;
|
|
164
164
|
/**
|
|
165
165
|
* Parameters for `eth_signTypedData_v1`.
|
|
166
166
|
*/
|
|
167
167
|
export declare const EthSignTypedDataV1ParamsStruct: import("@metamask/superstruct").Struct<[string, {
|
|
168
|
-
type: string;
|
|
169
|
-
value: unknown;
|
|
170
168
|
name: string;
|
|
169
|
+
value: unknown;
|
|
170
|
+
type: string;
|
|
171
171
|
}[]], null>;
|
|
172
172
|
export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStruct>;
|
|
173
173
|
/**
|
|
@@ -175,12 +175,12 @@ export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStru
|
|
|
175
175
|
*/
|
|
176
176
|
export declare const EthSignTypedDataParamsStruct: import("@metamask/superstruct").Struct<[string, {
|
|
177
177
|
message: Record<string, any>;
|
|
178
|
+
domain: Record<string, any>;
|
|
178
179
|
types: Record<string, {
|
|
179
|
-
type: string;
|
|
180
180
|
name: string;
|
|
181
|
+
type: string;
|
|
181
182
|
}[]>;
|
|
182
183
|
primaryType: string;
|
|
183
|
-
domain: Record<string, any>;
|
|
184
184
|
}], null>;
|
|
185
185
|
export type EthSignTypedDataParams = Infer<typeof EthSignTypedDataParamsStruct>;
|
|
186
186
|
/**
|
|
@@ -14,22 +14,22 @@ import type { Infer } from "@metamask/superstruct";
|
|
|
14
14
|
* The actual transaction validation is performed by the transaction library.
|
|
15
15
|
*/
|
|
16
16
|
export declare const EthTransactionDataStruct: import("@metamask/superstruct").Struct<{
|
|
17
|
+
value?: string | number | undefined;
|
|
17
18
|
type?: string | number | undefined;
|
|
18
|
-
from?: string | undefined;
|
|
19
|
-
to?: string | null | undefined;
|
|
20
19
|
data?: string | undefined;
|
|
21
|
-
|
|
20
|
+
from?: string | undefined;
|
|
21
|
+
chainId?: string | number | undefined;
|
|
22
|
+
accessList?: {
|
|
23
|
+
address: string;
|
|
24
|
+
storageKeys: string[];
|
|
25
|
+
}[] | undefined;
|
|
22
26
|
nonce?: string | number | undefined;
|
|
27
|
+
to?: string | null | undefined;
|
|
23
28
|
maxFeePerGas?: string | number | undefined;
|
|
24
29
|
maxPriorityFeePerGas?: string | number | undefined;
|
|
25
30
|
gas?: string | number | undefined;
|
|
26
31
|
gasLimit?: string | number | undefined;
|
|
27
32
|
gasPrice?: string | number | undefined;
|
|
28
|
-
accessList?: {
|
|
29
|
-
address: string;
|
|
30
|
-
storageKeys: string[];
|
|
31
|
-
}[] | undefined;
|
|
32
|
-
chainId?: string | number | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
to: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
35
35
|
from: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
@@ -60,13 +60,13 @@ export type EthTransactionData = Infer<typeof EthTransactionDataStruct>;
|
|
|
60
60
|
* This is an array of { type, name, value } objects.
|
|
61
61
|
*/
|
|
62
62
|
export declare const EthTypedDataV1Struct: import("@metamask/superstruct").Struct<{
|
|
63
|
-
type: string;
|
|
64
|
-
value: unknown;
|
|
65
63
|
name: string;
|
|
66
|
-
}[], import("@metamask/superstruct").Struct<{
|
|
67
|
-
type: string;
|
|
68
64
|
value: unknown;
|
|
65
|
+
type: string;
|
|
66
|
+
}[], import("@metamask/superstruct").Struct<{
|
|
69
67
|
name: string;
|
|
68
|
+
value: unknown;
|
|
69
|
+
type: string;
|
|
70
70
|
}, {
|
|
71
71
|
type: import("@metamask/superstruct").Struct<string, null>;
|
|
72
72
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -78,8 +78,8 @@ export type EthTypedDataV1 = Infer<typeof EthTypedDataV1Struct>;
|
|
|
78
78
|
* Maps type names to arrays of { name, type } definitions.
|
|
79
79
|
*/
|
|
80
80
|
export declare const EthTypedDataTypesStruct: import("@metamask/superstruct").Struct<Record<string, {
|
|
81
|
-
type: string;
|
|
82
81
|
name: string;
|
|
82
|
+
type: string;
|
|
83
83
|
}[]>, null>;
|
|
84
84
|
export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
|
|
85
85
|
/**
|
|
@@ -88,16 +88,16 @@ export type EthTypedDataTypes = Infer<typeof EthTypedDataTypesStruct>;
|
|
|
88
88
|
*/
|
|
89
89
|
export declare const EthTypedMessageStruct: import("@metamask/superstruct").Struct<{
|
|
90
90
|
message: Record<string, any>;
|
|
91
|
+
domain: Record<string, any>;
|
|
91
92
|
types: Record<string, {
|
|
92
|
-
type: string;
|
|
93
93
|
name: string;
|
|
94
|
+
type: string;
|
|
94
95
|
}[]>;
|
|
95
96
|
primaryType: string;
|
|
96
|
-
domain: Record<string, any>;
|
|
97
97
|
}, {
|
|
98
98
|
types: import("@metamask/superstruct").Struct<Record<string, {
|
|
99
|
-
type: string;
|
|
100
99
|
name: string;
|
|
100
|
+
type: string;
|
|
101
101
|
}[]>, null>;
|
|
102
102
|
primaryType: import("@metamask/superstruct").Struct<string, null>;
|
|
103
103
|
domain: import("@metamask/superstruct").Struct<Record<string, any>, null>;
|
|
@@ -133,22 +133,22 @@ export declare const EthGetEncryptionPublicKeyOptionsStruct: import("@metamask/s
|
|
|
133
133
|
* Parameters for `eth_signTransaction`.
|
|
134
134
|
*/
|
|
135
135
|
export declare const EthSignTransactionParamsStruct: import("@metamask/superstruct").Struct<[{
|
|
136
|
+
value?: string | number | undefined;
|
|
136
137
|
type?: string | number | undefined;
|
|
137
|
-
from?: string | undefined;
|
|
138
|
-
to?: string | null | undefined;
|
|
139
138
|
data?: string | undefined;
|
|
140
|
-
|
|
139
|
+
from?: string | undefined;
|
|
140
|
+
chainId?: string | number | undefined;
|
|
141
|
+
accessList?: {
|
|
142
|
+
address: string;
|
|
143
|
+
storageKeys: string[];
|
|
144
|
+
}[] | undefined;
|
|
141
145
|
nonce?: string | number | undefined;
|
|
146
|
+
to?: string | null | undefined;
|
|
142
147
|
maxFeePerGas?: string | number | undefined;
|
|
143
148
|
maxPriorityFeePerGas?: string | number | undefined;
|
|
144
149
|
gas?: string | number | undefined;
|
|
145
150
|
gasLimit?: string | number | undefined;
|
|
146
151
|
gasPrice?: string | number | undefined;
|
|
147
|
-
accessList?: {
|
|
148
|
-
address: string;
|
|
149
|
-
storageKeys: string[];
|
|
150
|
-
}[] | undefined;
|
|
151
|
-
chainId?: string | number | undefined;
|
|
152
152
|
}], null>;
|
|
153
153
|
export type EthSignTransactionParams = Infer<typeof EthSignTransactionParamsStruct>;
|
|
154
154
|
/**
|
|
@@ -159,15 +159,15 @@ export type EthSignParams = Infer<typeof EthSignParamsStruct>;
|
|
|
159
159
|
/**
|
|
160
160
|
* Parameters for `personal_sign`.
|
|
161
161
|
*/
|
|
162
|
-
export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string] | [string
|
|
162
|
+
export declare const EthPersonalSignParamsStruct: import("@metamask/superstruct").Struct<[string, string] | [string], null>;
|
|
163
163
|
export type EthPersonalSignParams = Infer<typeof EthPersonalSignParamsStruct>;
|
|
164
164
|
/**
|
|
165
165
|
* Parameters for `eth_signTypedData_v1`.
|
|
166
166
|
*/
|
|
167
167
|
export declare const EthSignTypedDataV1ParamsStruct: import("@metamask/superstruct").Struct<[string, {
|
|
168
|
-
type: string;
|
|
169
|
-
value: unknown;
|
|
170
168
|
name: string;
|
|
169
|
+
value: unknown;
|
|
170
|
+
type: string;
|
|
171
171
|
}[]], null>;
|
|
172
172
|
export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStruct>;
|
|
173
173
|
/**
|
|
@@ -175,12 +175,12 @@ export type EthSignTypedDataV1Params = Infer<typeof EthSignTypedDataV1ParamsStru
|
|
|
175
175
|
*/
|
|
176
176
|
export declare const EthSignTypedDataParamsStruct: import("@metamask/superstruct").Struct<[string, {
|
|
177
177
|
message: Record<string, any>;
|
|
178
|
+
domain: Record<string, any>;
|
|
178
179
|
types: Record<string, {
|
|
179
|
-
type: string;
|
|
180
180
|
name: string;
|
|
181
|
+
type: string;
|
|
181
182
|
}[]>;
|
|
182
183
|
primaryType: string;
|
|
183
|
-
domain: Record<string, any>;
|
|
184
184
|
}], null>;
|
|
185
185
|
export type EthSignTypedDataParams = Infer<typeof EthSignTypedDataParamsStruct>;
|
|
186
186
|
/**
|
package/dist/eth/types.d.cts
CHANGED
|
@@ -22,8 +22,6 @@ export declare enum EthMethod {
|
|
|
22
22
|
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
|
23
23
|
type: "eip155:eoa";
|
|
24
24
|
id: string;
|
|
25
|
-
address: string;
|
|
26
|
-
scopes: EthScope.Eoa[];
|
|
27
25
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
28
26
|
entropy?: {
|
|
29
27
|
type: "mnemonic";
|
|
@@ -37,6 +35,8 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
|
|
|
37
35
|
};
|
|
38
36
|
exportable?: boolean;
|
|
39
37
|
};
|
|
38
|
+
address: string;
|
|
39
|
+
scopes: EthScope.Eoa[];
|
|
40
40
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
|
41
41
|
}, {
|
|
42
42
|
/**
|
|
@@ -81,8 +81,6 @@ export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
|
|
|
81
81
|
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
|
|
82
82
|
type: "eip155:erc4337";
|
|
83
83
|
id: string;
|
|
84
|
-
address: string;
|
|
85
|
-
scopes: `${string}:${string}`[];
|
|
86
84
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
87
85
|
entropy?: {
|
|
88
86
|
type: "mnemonic";
|
|
@@ -96,6 +94,8 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
|
|
|
96
94
|
};
|
|
97
95
|
exportable?: boolean;
|
|
98
96
|
};
|
|
97
|
+
address: string;
|
|
98
|
+
scopes: `${string}:${string}`[];
|
|
99
99
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
100
100
|
}, {
|
|
101
101
|
/**
|
package/dist/eth/types.d.mts
CHANGED
|
@@ -22,8 +22,6 @@ export declare enum EthMethod {
|
|
|
22
22
|
export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
|
|
23
23
|
type: "eip155:eoa";
|
|
24
24
|
id: string;
|
|
25
|
-
address: string;
|
|
26
|
-
scopes: EthScope.Eoa[];
|
|
27
25
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
28
26
|
entropy?: {
|
|
29
27
|
type: "mnemonic";
|
|
@@ -37,6 +35,8 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
|
|
|
37
35
|
};
|
|
38
36
|
exportable?: boolean;
|
|
39
37
|
};
|
|
38
|
+
address: string;
|
|
39
|
+
scopes: EthScope.Eoa[];
|
|
40
40
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
|
41
41
|
}, {
|
|
42
42
|
/**
|
|
@@ -81,8 +81,6 @@ export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
|
|
|
81
81
|
export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
|
|
82
82
|
type: "eip155:erc4337";
|
|
83
83
|
id: string;
|
|
84
|
-
address: string;
|
|
85
|
-
scopes: `${string}:${string}`[];
|
|
86
84
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
87
85
|
entropy?: {
|
|
88
86
|
type: "mnemonic";
|
|
@@ -96,6 +94,8 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
|
|
|
96
94
|
};
|
|
97
95
|
exportable?: boolean;
|
|
98
96
|
};
|
|
97
|
+
address: string;
|
|
98
|
+
scopes: `${string}:${string}`[];
|
|
99
99
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
100
100
|
}, {
|
|
101
101
|
/**
|