Skip to content

Commit

Permalink
update missing imports with the interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDedominici committed Oct 30, 2024
1 parent bdbfc10 commit 041e609
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Fixture, Snapshot } from "../../../types.js";
import type { NetworkHelpers } from "../network-helpers.js";
import type { Fixture, NetworkHelpers, Snapshot } from "../../../types.js";

import { HardhatError } from "@ignored/hardhat-vnext-errors";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { NumberLike } from "../../../types.js";
import type { NetworkHelpers } from "../network-helpers.js";
import type { NetworkHelpers, NumberLike } from "../../../types.js";
import type { EthereumProvider } from "@ignored/hardhat-vnext/types/providers";

import { toNumber } from "../../conversion.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {
NetworkHelpers as NetworkHelpersI,
NumberLike,
SnapshotRestorer,
Time as TimeI,
} from "../../types.js";
import type { EthereumProvider } from "@ignored/hardhat-vnext/types/providers";

Expand All @@ -29,7 +30,7 @@ import { Time } from "./time/time.js";

export class NetworkHelpers implements NetworkHelpersI {
readonly #provider: EthereumProvider;
public time: Time;
public time: TimeI;

constructor(provider: EthereumProvider) {
this.#provider = provider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { NumberLike } from "../../../../types.js";
import type { Duration } from "../../duration/duration.js";
import type { NetworkHelpers } from "../../network-helpers.js";
import type {
Duration,
NetworkHelpers,
NumberLike,
} from "../../../../types.js";
import type { EthereumProvider } from "@ignored/hardhat-vnext/types/providers";

import { toBigInt, toRpcQuantity } from "../../../conversion.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { NumberLike } from "../../../../types.js";
import type { NetworkHelpers } from "../../network-helpers.js";
import type { NetworkHelpers, NumberLike } from "../../../../types.js";
import type { EthereumProvider } from "@ignored/hardhat-vnext/types/providers";

import { toBigInt, toRpcQuantity } from "../../../conversion.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { NumberLike } from "../../../../types.js";
import type { Duration } from "../../duration/duration.js";
import type { Duration, NumberLike } from "../../../../types.js";
import type { EthereumProvider } from "@ignored/hardhat-vnext/types/providers";

import { toRpcQuantity } from "../../../conversion.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import type { NumberLike, Time as TimeI } from "../../../types.js";
import type { NetworkHelpers } from "../network-helpers.js";
import type {
Duration as DurationI,
NetworkHelpers,
NumberLike,
Time as TimeI,
} from "../../../types.js";
import type { EthereumProvider } from "@ignored/hardhat-vnext/types/providers";

import { Duration } from "../duration/duration.js";
Expand All @@ -14,7 +18,7 @@ export class Time implements TimeI {
readonly #networkHelpers: NetworkHelpers;
readonly #provider: EthereumProvider;

public readonly duration: Duration;
public readonly duration: DurationI;

constructor(networkHelpers: NetworkHelpers, provider: EthereumProvider) {
this.#networkHelpers = networkHelpers;
Expand Down
3 changes: 1 addition & 2 deletions v-next/hardhat-network-helpers/src/type-extensions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import "@ignored/hardhat-vnext/types/network";

import type { NetworkHelpers } from "./internal/network-helpers/network-helpers.js";
import type { NetworkHelpers } from "./types.js";

declare module "@ignored/hardhat-vnext/types/network" {
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- the ChainTypeT must be declared in the interface but in this scenario it's not used
Expand Down

0 comments on commit 041e609

Please sign in to comment.