Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Oct 23, 2023
1 parent 377e4ba commit 90f5842
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/deployer/Linker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { catchError } from "../utils";

import { ArtifactExtended, Link, NeededLibrary } from "../types/deployer";

import { Reporter } from "../tools/reporter/Reporter";
import { Reporter } from "../tools/reporters/Reporter";
import { ArtifactProcessor } from "../tools/storage/ArtifactProcessor";
import { TransactionProcessor } from "../tools/storage/TransactionProcessor";

Expand Down
2 changes: 1 addition & 1 deletion src/deployer/MinimalContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { MigrateConfig } from "../types/migrations";

import { Verifier } from "../verifier/Verifier";

import { Reporter } from "../tools/reporter/Reporter";
import { Reporter } from "../tools/reporters/Reporter";
import { ArtifactProcessor } from "../tools/storage/ArtifactProcessor";
import { TransactionProcessor } from "../tools/storage/TransactionProcessor";

Expand Down
2 changes: 1 addition & 1 deletion src/deployer/adapters/EthersInjectHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { fillParameters, getMethodString } from "../../utils";
import { MigrateConfig } from "../../types/migrations";
import { OverridesAndLibs } from "../../types/deployer";

import { Reporter } from "../../tools/reporter/Reporter";
import { Reporter } from "../../tools/reporters/Reporter";
import { TransactionProcessor } from "../../tools/storage/TransactionProcessor";

export class EthersInjectHelper {
Expand Down
4 changes: 2 additions & 2 deletions src/deployer/adapters/TruffleAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { KeyTransactionFields } from "../../types/tools";
import { EthersFactory, Instance, TruffleFactory } from "../../types/adapter";
import { BaseTruffleMethod, OverridesAndLibs, TruffleTransactionResponse } from "../../types/deployer";

import { Reporter } from "../../tools/reporter/Reporter";
import { TruffleReporter } from "../../tools/reporter/adapters/TruffleReporter";
import { Reporter } from "../../tools/reporters/Reporter";
import { TruffleReporter } from "../../tools/reporters/TruffleReporter";

import { ArtifactProcessor } from "../../tools/storage/ArtifactProcessor";
import { TransactionProcessor } from "../../tools/storage/TransactionProcessor";
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { mergeConfigs, migrateConfigExtender } from "./config";
import { TASK_MIGRATE } from "./constants";

import { Migrator } from "./migrator/Migrator";
import { Reporter } from "./tools/reporter/Reporter";
import { Reporter } from "./tools/reporters/Reporter";

import { ArtifactProcessor } from "./tools/storage/ArtifactProcessor";
import { DefaultStorage } from "./tools/storage/MigrateStorage";
Expand Down
2 changes: 1 addition & 1 deletion src/migrator/Migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { MigrateConfig, VerifyStrategy } from "../types/migrations";
import { Deployer } from "../deployer/Deployer";
import { Verifier } from "../verifier/Verifier";

import { Reporter } from "../tools/reporter/Reporter";
import { Reporter } from "../tools/reporters/Reporter";
import { VerificationProcessor } from "../tools/storage/VerificationProcessor";

export class Migrator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,11 @@ export class Reporter {
}

private static _toEther(value: bigint): string {
return BigNumber(value.toString())
.div(10 ** 18)
.toFixed();
return new BigNumber(value.toString()).div(10 ** 18).toFixed();
}

private static _toGWei(value: bigint): string {
return BigNumber(value.toString())
.div(10 ** 9)
.toFixed();
return new BigNumber(value.toString()).div(10 ** 9).toFixed();
}

private static _reportMigrationFiles(files: string[]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Reporter } from "../Reporter";
import { Reporter } from "./Reporter";

import { TruffleTransactionResponse } from "../../../types/deployer";
import { TruffleTransactionResponse } from "../../types/deployer";

export class TruffleReporter {
public static async reportTransaction(tx: TruffleTransactionResponse | string, instanceName: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/verifier/Verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Args } from "../types/deployer";
import { VerifierArgs } from "../types/verifier";
import { MigrateConfig, VerifyStrategy } from "../types/migrations";

import { Reporter } from "../tools/reporter/Reporter";
import { Reporter } from "../tools/reporters/Reporter";
import { VerificationProcessor } from "../tools/storage/VerificationProcessor";

export class Verifier {
Expand Down

0 comments on commit 90f5842

Please sign in to comment.