@metamask-previews/eth-json-rpc-middleware 21.0.0-preview-55f130d1 → 21.0.0-preview-fa44f49b
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.
|
@@ -3,30 +3,30 @@ import { type Hex, type Json, type JsonRpcRequest, type PendingJsonRpcResponse }
|
|
|
3
3
|
declare const PermissionRequestStruct: import("@metamask/superstruct").Struct<{
|
|
4
4
|
chainId: `0x${string}`;
|
|
5
5
|
signer: {
|
|
6
|
+
type: "account";
|
|
6
7
|
data: {
|
|
7
8
|
address: `0x${string}`;
|
|
8
9
|
};
|
|
9
|
-
type: "account";
|
|
10
10
|
};
|
|
11
11
|
permission: {
|
|
12
|
-
data: Record<string, unknown>;
|
|
13
12
|
type: string;
|
|
13
|
+
data: Record<string, unknown>;
|
|
14
14
|
isAdjustmentAllowed: boolean;
|
|
15
15
|
};
|
|
16
16
|
address?: `0x${string}` | undefined;
|
|
17
17
|
rules?: {
|
|
18
|
-
data: Record<string, unknown>;
|
|
19
18
|
type: string;
|
|
19
|
+
data: Record<string, unknown>;
|
|
20
20
|
isAdjustmentAllowed: boolean;
|
|
21
21
|
}[] | null | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
chainId: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
24
24
|
address: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
|
|
25
25
|
signer: import("@metamask/superstruct").Struct<{
|
|
26
|
+
type: "account";
|
|
26
27
|
data: {
|
|
27
28
|
address: `0x${string}`;
|
|
28
29
|
};
|
|
29
|
-
type: "account";
|
|
30
30
|
}, {
|
|
31
31
|
type: import("@metamask/superstruct").Struct<"account", "account">;
|
|
32
32
|
data: import("@metamask/superstruct").Struct<{
|
|
@@ -36,8 +36,8 @@ declare const PermissionRequestStruct: import("@metamask/superstruct").Struct<{
|
|
|
36
36
|
}>;
|
|
37
37
|
}>;
|
|
38
38
|
permission: import("@metamask/superstruct").Struct<{
|
|
39
|
-
data: Record<string, unknown>;
|
|
40
39
|
type: string;
|
|
40
|
+
data: Record<string, unknown>;
|
|
41
41
|
isAdjustmentAllowed: boolean;
|
|
42
42
|
}, {
|
|
43
43
|
type: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -45,57 +45,57 @@ declare const PermissionRequestStruct: import("@metamask/superstruct").Struct<{
|
|
|
45
45
|
data: import("@metamask/superstruct").Struct<Record<string, unknown>, null>;
|
|
46
46
|
}>;
|
|
47
47
|
rules: import("@metamask/superstruct").Struct<{
|
|
48
|
-
data: Record<string, unknown>;
|
|
49
48
|
type: string;
|
|
49
|
+
data: Record<string, unknown>;
|
|
50
50
|
isAdjustmentAllowed: boolean;
|
|
51
51
|
}[] | null | undefined, null>;
|
|
52
52
|
}>;
|
|
53
53
|
export declare const RequestExecutionPermissionsStruct: import("@metamask/superstruct").Struct<{
|
|
54
54
|
chainId: `0x${string}`;
|
|
55
55
|
signer: {
|
|
56
|
+
type: "account";
|
|
56
57
|
data: {
|
|
57
58
|
address: `0x${string}`;
|
|
58
59
|
};
|
|
59
|
-
type: "account";
|
|
60
60
|
};
|
|
61
61
|
permission: {
|
|
62
|
-
data: Record<string, unknown>;
|
|
63
62
|
type: string;
|
|
63
|
+
data: Record<string, unknown>;
|
|
64
64
|
isAdjustmentAllowed: boolean;
|
|
65
65
|
};
|
|
66
66
|
address?: `0x${string}` | undefined;
|
|
67
67
|
rules?: {
|
|
68
|
-
data: Record<string, unknown>;
|
|
69
68
|
type: string;
|
|
69
|
+
data: Record<string, unknown>;
|
|
70
70
|
isAdjustmentAllowed: boolean;
|
|
71
71
|
}[] | null | undefined;
|
|
72
72
|
}[], import("@metamask/superstruct").Struct<{
|
|
73
73
|
chainId: `0x${string}`;
|
|
74
74
|
signer: {
|
|
75
|
+
type: "account";
|
|
75
76
|
data: {
|
|
76
77
|
address: `0x${string}`;
|
|
77
78
|
};
|
|
78
|
-
type: "account";
|
|
79
79
|
};
|
|
80
80
|
permission: {
|
|
81
|
-
data: Record<string, unknown>;
|
|
82
81
|
type: string;
|
|
82
|
+
data: Record<string, unknown>;
|
|
83
83
|
isAdjustmentAllowed: boolean;
|
|
84
84
|
};
|
|
85
85
|
address?: `0x${string}` | undefined;
|
|
86
86
|
rules?: {
|
|
87
|
-
data: Record<string, unknown>;
|
|
88
87
|
type: string;
|
|
88
|
+
data: Record<string, unknown>;
|
|
89
89
|
isAdjustmentAllowed: boolean;
|
|
90
90
|
}[] | null | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
chainId: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
93
93
|
address: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
|
|
94
94
|
signer: import("@metamask/superstruct").Struct<{
|
|
95
|
+
type: "account";
|
|
95
96
|
data: {
|
|
96
97
|
address: `0x${string}`;
|
|
97
98
|
};
|
|
98
|
-
type: "account";
|
|
99
99
|
}, {
|
|
100
100
|
type: import("@metamask/superstruct").Struct<"account", "account">;
|
|
101
101
|
data: import("@metamask/superstruct").Struct<{
|
|
@@ -105,8 +105,8 @@ export declare const RequestExecutionPermissionsStruct: import("@metamask/supers
|
|
|
105
105
|
}>;
|
|
106
106
|
}>;
|
|
107
107
|
permission: import("@metamask/superstruct").Struct<{
|
|
108
|
-
data: Record<string, unknown>;
|
|
109
108
|
type: string;
|
|
109
|
+
data: Record<string, unknown>;
|
|
110
110
|
isAdjustmentAllowed: boolean;
|
|
111
111
|
}, {
|
|
112
112
|
type: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -114,8 +114,8 @@ export declare const RequestExecutionPermissionsStruct: import("@metamask/supers
|
|
|
114
114
|
data: import("@metamask/superstruct").Struct<Record<string, unknown>, null>;
|
|
115
115
|
}>;
|
|
116
116
|
rules: import("@metamask/superstruct").Struct<{
|
|
117
|
-
data: Record<string, unknown>;
|
|
118
117
|
type: string;
|
|
118
|
+
data: Record<string, unknown>;
|
|
119
119
|
isAdjustmentAllowed: boolean;
|
|
120
120
|
}[] | null | undefined, null>;
|
|
121
121
|
}>>;
|
|
@@ -3,30 +3,30 @@ import { type Hex, type Json, type JsonRpcRequest, type PendingJsonRpcResponse }
|
|
|
3
3
|
declare const PermissionRequestStruct: import("@metamask/superstruct").Struct<{
|
|
4
4
|
chainId: `0x${string}`;
|
|
5
5
|
signer: {
|
|
6
|
+
type: "account";
|
|
6
7
|
data: {
|
|
7
8
|
address: `0x${string}`;
|
|
8
9
|
};
|
|
9
|
-
type: "account";
|
|
10
10
|
};
|
|
11
11
|
permission: {
|
|
12
|
-
data: Record<string, unknown>;
|
|
13
12
|
type: string;
|
|
13
|
+
data: Record<string, unknown>;
|
|
14
14
|
isAdjustmentAllowed: boolean;
|
|
15
15
|
};
|
|
16
16
|
address?: `0x${string}` | undefined;
|
|
17
17
|
rules?: {
|
|
18
|
-
data: Record<string, unknown>;
|
|
19
18
|
type: string;
|
|
19
|
+
data: Record<string, unknown>;
|
|
20
20
|
isAdjustmentAllowed: boolean;
|
|
21
21
|
}[] | null | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
chainId: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
24
24
|
address: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
|
|
25
25
|
signer: import("@metamask/superstruct").Struct<{
|
|
26
|
+
type: "account";
|
|
26
27
|
data: {
|
|
27
28
|
address: `0x${string}`;
|
|
28
29
|
};
|
|
29
|
-
type: "account";
|
|
30
30
|
}, {
|
|
31
31
|
type: import("@metamask/superstruct").Struct<"account", "account">;
|
|
32
32
|
data: import("@metamask/superstruct").Struct<{
|
|
@@ -36,8 +36,8 @@ declare const PermissionRequestStruct: import("@metamask/superstruct").Struct<{
|
|
|
36
36
|
}>;
|
|
37
37
|
}>;
|
|
38
38
|
permission: import("@metamask/superstruct").Struct<{
|
|
39
|
-
data: Record<string, unknown>;
|
|
40
39
|
type: string;
|
|
40
|
+
data: Record<string, unknown>;
|
|
41
41
|
isAdjustmentAllowed: boolean;
|
|
42
42
|
}, {
|
|
43
43
|
type: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -45,57 +45,57 @@ declare const PermissionRequestStruct: import("@metamask/superstruct").Struct<{
|
|
|
45
45
|
data: import("@metamask/superstruct").Struct<Record<string, unknown>, null>;
|
|
46
46
|
}>;
|
|
47
47
|
rules: import("@metamask/superstruct").Struct<{
|
|
48
|
-
data: Record<string, unknown>;
|
|
49
48
|
type: string;
|
|
49
|
+
data: Record<string, unknown>;
|
|
50
50
|
isAdjustmentAllowed: boolean;
|
|
51
51
|
}[] | null | undefined, null>;
|
|
52
52
|
}>;
|
|
53
53
|
export declare const RequestExecutionPermissionsStruct: import("@metamask/superstruct").Struct<{
|
|
54
54
|
chainId: `0x${string}`;
|
|
55
55
|
signer: {
|
|
56
|
+
type: "account";
|
|
56
57
|
data: {
|
|
57
58
|
address: `0x${string}`;
|
|
58
59
|
};
|
|
59
|
-
type: "account";
|
|
60
60
|
};
|
|
61
61
|
permission: {
|
|
62
|
-
data: Record<string, unknown>;
|
|
63
62
|
type: string;
|
|
63
|
+
data: Record<string, unknown>;
|
|
64
64
|
isAdjustmentAllowed: boolean;
|
|
65
65
|
};
|
|
66
66
|
address?: `0x${string}` | undefined;
|
|
67
67
|
rules?: {
|
|
68
|
-
data: Record<string, unknown>;
|
|
69
68
|
type: string;
|
|
69
|
+
data: Record<string, unknown>;
|
|
70
70
|
isAdjustmentAllowed: boolean;
|
|
71
71
|
}[] | null | undefined;
|
|
72
72
|
}[], import("@metamask/superstruct").Struct<{
|
|
73
73
|
chainId: `0x${string}`;
|
|
74
74
|
signer: {
|
|
75
|
+
type: "account";
|
|
75
76
|
data: {
|
|
76
77
|
address: `0x${string}`;
|
|
77
78
|
};
|
|
78
|
-
type: "account";
|
|
79
79
|
};
|
|
80
80
|
permission: {
|
|
81
|
-
data: Record<string, unknown>;
|
|
82
81
|
type: string;
|
|
82
|
+
data: Record<string, unknown>;
|
|
83
83
|
isAdjustmentAllowed: boolean;
|
|
84
84
|
};
|
|
85
85
|
address?: `0x${string}` | undefined;
|
|
86
86
|
rules?: {
|
|
87
|
-
data: Record<string, unknown>;
|
|
88
87
|
type: string;
|
|
88
|
+
data: Record<string, unknown>;
|
|
89
89
|
isAdjustmentAllowed: boolean;
|
|
90
90
|
}[] | null | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
chainId: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
93
93
|
address: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
|
|
94
94
|
signer: import("@metamask/superstruct").Struct<{
|
|
95
|
+
type: "account";
|
|
95
96
|
data: {
|
|
96
97
|
address: `0x${string}`;
|
|
97
98
|
};
|
|
98
|
-
type: "account";
|
|
99
99
|
}, {
|
|
100
100
|
type: import("@metamask/superstruct").Struct<"account", "account">;
|
|
101
101
|
data: import("@metamask/superstruct").Struct<{
|
|
@@ -105,8 +105,8 @@ export declare const RequestExecutionPermissionsStruct: import("@metamask/supers
|
|
|
105
105
|
}>;
|
|
106
106
|
}>;
|
|
107
107
|
permission: import("@metamask/superstruct").Struct<{
|
|
108
|
-
data: Record<string, unknown>;
|
|
109
108
|
type: string;
|
|
109
|
+
data: Record<string, unknown>;
|
|
110
110
|
isAdjustmentAllowed: boolean;
|
|
111
111
|
}, {
|
|
112
112
|
type: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -114,8 +114,8 @@ export declare const RequestExecutionPermissionsStruct: import("@metamask/supers
|
|
|
114
114
|
data: import("@metamask/superstruct").Struct<Record<string, unknown>, null>;
|
|
115
115
|
}>;
|
|
116
116
|
rules: import("@metamask/superstruct").Struct<{
|
|
117
|
-
data: Record<string, unknown>;
|
|
118
117
|
type: string;
|
|
118
|
+
data: Record<string, unknown>;
|
|
119
119
|
isAdjustmentAllowed: boolean;
|
|
120
120
|
}[] | null | undefined, null>;
|
|
121
121
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/eth-json-rpc-middleware",
|
|
3
|
-
"version": "21.0.0-preview-
|
|
3
|
+
"version": "21.0.0-preview-fa44f49b",
|
|
4
4
|
"description": "Ethereum-related json-rpc-engine middleware",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@metamask/auto-changelog": "^3.4.4",
|
|
70
|
-
"@metamask/error-reporting-service": "^
|
|
71
|
-
"@metamask/network-controller": "^
|
|
70
|
+
"@metamask/error-reporting-service": "^2.2.2",
|
|
71
|
+
"@metamask/network-controller": "^24.3.1",
|
|
72
72
|
"@types/jest": "^27.4.1",
|
|
73
73
|
"@types/pify": "^5.0.2",
|
|
74
74
|
"deepmerge": "^4.2.2",
|