hardhat 2.9.6-dev.0 → 2.9.7
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/internal/cli/cli.js +0 -0
- package/internal/core/jsonrpc/types/input/blockTag.d.ts +4 -4
- package/internal/core/jsonrpc/types/input/blockTag.d.ts.map +1 -1
- package/internal/core/jsonrpc/types/input/filterRequest.d.ts +6 -6
- package/internal/hardhat-network/provider/node.js +1 -1
- package/package.json +2 -2
- package/src/internal/hardhat-network/provider/node.ts +1 -1
package/internal/cli/cli.js
CHANGED
|
File without changes
|
|
@@ -22,17 +22,17 @@ export declare const rpcNewBlockTag: t.UnionC<[t.Type<import("bn.js"), import("b
|
|
|
22
22
|
pending: null;
|
|
23
23
|
}>]>;
|
|
24
24
|
export declare type RpcNewBlockTag = t.TypeOf<typeof rpcNewBlockTag>;
|
|
25
|
-
export declare const optionalRpcNewBlockTag: t.Type<import("bn.js") | "
|
|
25
|
+
export declare const optionalRpcNewBlockTag: t.Type<import("bn.js") | "pending" | "earliest" | "latest" | {
|
|
26
26
|
blockNumber: import("bn.js");
|
|
27
27
|
} | {
|
|
28
28
|
blockHash: Buffer;
|
|
29
29
|
requireCanonical: boolean | undefined;
|
|
30
|
-
} |
|
|
30
|
+
} | undefined, import("bn.js") | "pending" | "earliest" | "latest" | {
|
|
31
31
|
blockNumber: import("bn.js");
|
|
32
32
|
} | {
|
|
33
33
|
blockHash: Buffer;
|
|
34
34
|
requireCanonical: boolean | undefined;
|
|
35
|
-
} |
|
|
35
|
+
} | undefined, unknown>;
|
|
36
36
|
export declare type OptionalRpcNewBlockTag = t.TypeOf<typeof optionalRpcNewBlockTag>;
|
|
37
37
|
export declare const rpcOldBlockTag: t.UnionC<[t.Type<import("bn.js"), import("bn.js"), unknown>, t.KeyofC<{
|
|
38
38
|
earliest: null;
|
|
@@ -40,6 +40,6 @@ export declare const rpcOldBlockTag: t.UnionC<[t.Type<import("bn.js"), import("b
|
|
|
40
40
|
pending: null;
|
|
41
41
|
}>]>;
|
|
42
42
|
export declare type RpcOldBlockTag = t.TypeOf<typeof rpcOldBlockTag>;
|
|
43
|
-
export declare const optionalRpcOldBlockTag: t.Type<import("bn.js") | "
|
|
43
|
+
export declare const optionalRpcOldBlockTag: t.Type<import("bn.js") | "pending" | "earliest" | "latest" | undefined, import("bn.js") | "pending" | "earliest" | "latest" | undefined, unknown>;
|
|
44
44
|
export declare type OptionalRpcOldBlockTag = t.TypeOf<typeof optionalRpcOldBlockTag>;
|
|
45
45
|
//# sourceMappingURL=blockTag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTag.d.ts","sourceRoot":"","sources":["../../../../../src/internal/core/jsonrpc/types/input/blockTag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAK3B,eAAO,MAAM,8BAA8B;;EAEzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;EAGvC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;EAI1B,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;IAKzB,CAAC;AAEH,oBAAY,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"blockTag.d.ts","sourceRoot":"","sources":["../../../../../src/internal/core/jsonrpc/types/input/blockTag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAK3B,eAAO,MAAM,8BAA8B;;EAEzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;EAGvC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;EAI1B,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;IAKzB,CAAC;AAEH,oBAAY,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;;;;;;;;uBAAqC,CAAC;AAEzE,oBAAY,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAG7E,eAAO,MAAM,cAAc;;;;IAA0C,CAAC;AAEtE,oBAAY,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,eAAO,MAAM,sBAAsB,mJAAqC,CAAC;AAEzE,oBAAY,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
export declare const rpcFilterRequest: t.TypeC<{
|
|
3
|
-
fromBlock: t.Type<import("bn.js") | "
|
|
4
|
-
toBlock: t.Type<import("bn.js") | "
|
|
3
|
+
fromBlock: t.Type<import("bn.js") | "pending" | "earliest" | "latest" | undefined, import("bn.js") | "pending" | "earliest" | "latest" | undefined, unknown>;
|
|
4
|
+
toBlock: t.Type<import("bn.js") | "pending" | "earliest" | "latest" | undefined, import("bn.js") | "pending" | "earliest" | "latest" | undefined, unknown>;
|
|
5
5
|
address: t.Type<Buffer | Buffer[] | undefined, Buffer | Buffer[] | undefined, unknown>;
|
|
6
6
|
topics: t.Type<(Buffer | (Buffer | null)[] | null)[] | undefined, (Buffer | (Buffer | null)[] | null)[] | undefined, unknown>;
|
|
7
7
|
blockHash: t.Type<Buffer | undefined, Buffer | undefined, unknown>;
|
|
8
8
|
}>;
|
|
9
9
|
export declare type RpcFilterRequest = t.TypeOf<typeof rpcFilterRequest>;
|
|
10
10
|
export declare const optionalRpcFilterRequest: t.Type<{
|
|
11
|
-
fromBlock: import("bn.js") | "
|
|
12
|
-
toBlock: import("bn.js") | "
|
|
11
|
+
fromBlock: import("bn.js") | "pending" | "earliest" | "latest" | undefined;
|
|
12
|
+
toBlock: import("bn.js") | "pending" | "earliest" | "latest" | undefined;
|
|
13
13
|
address: Buffer | Buffer[] | undefined;
|
|
14
14
|
topics: (Buffer | (Buffer | null)[] | null)[] | undefined;
|
|
15
15
|
blockHash: Buffer | undefined;
|
|
16
16
|
} | undefined, {
|
|
17
|
-
fromBlock: import("bn.js") | "
|
|
18
|
-
toBlock: import("bn.js") | "
|
|
17
|
+
fromBlock: import("bn.js") | "pending" | "earliest" | "latest" | undefined;
|
|
18
|
+
toBlock: import("bn.js") | "pending" | "earliest" | "latest" | undefined;
|
|
19
19
|
address: Buffer | Buffer[] | undefined;
|
|
20
20
|
topics: (Buffer | (Buffer | null)[] | null)[] | undefined;
|
|
21
21
|
blockHash: Buffer | undefined;
|
|
@@ -1484,7 +1484,7 @@ Hardhat Network's forking functionality only works with blocks from at least spu
|
|
|
1484
1484
|
}
|
|
1485
1485
|
originalCommon = this._vm._common;
|
|
1486
1486
|
this._vm._common = new common_1.default({
|
|
1487
|
-
chain: Object.assign(Object.assign({}, this._vm._common["_chainParams"]), { chainId: this._forkBlockNumber
|
|
1487
|
+
chain: Object.assign(Object.assign({}, this._vm._common["_chainParams"]), { chainId: this._forkBlockNumber === undefined ||
|
|
1488
1488
|
blockContext.header.number.gte(new ethereumjs_util_1.BN(this._forkBlockNumber))
|
|
1489
1489
|
? this._configChainId
|
|
1490
1490
|
: this._forkNetworkId, networkId: (_a = this._forkNetworkId) !== null && _a !== void 0 ? _a : this._configNetworkId }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hardhat",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.7",
|
|
4
4
|
"author": "Nomic Labs LLC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://hardhat.org",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"find-up": "^2.1.0",
|
|
125
125
|
"fp-ts": "1.19.3",
|
|
126
126
|
"fs-extra": "^7.0.1",
|
|
127
|
-
"glob": "7.2.
|
|
127
|
+
"glob": "7.2.0",
|
|
128
128
|
"immutable": "^4.0.0-rc.12",
|
|
129
129
|
"io-ts": "1.10.4",
|
|
130
130
|
"lodash": "^4.17.11",
|
|
@@ -2352,7 +2352,7 @@ Hardhat Network's forking functionality only works with blocks from at least spu
|
|
|
2352
2352
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
2353
2353
|
...this._vm._common["_chainParams"],
|
|
2354
2354
|
chainId:
|
|
2355
|
-
this._forkBlockNumber
|
|
2355
|
+
this._forkBlockNumber === undefined ||
|
|
2356
2356
|
blockContext.header.number.gte(new BN(this._forkBlockNumber))
|
|
2357
2357
|
? this._configChainId
|
|
2358
2358
|
: this._forkNetworkId,
|