Skip to content

Commit

Permalink
Fix linter errors (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Whytecrowe authored Feb 26, 2024
2 parents 2b95f36 + 7bcca17 commit 5dd6a86
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/deploy/campaign/environments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { HardhatEthersSigner, SignerWithAddress } from "@nomicfoundation/hardhat-ethers/signers";

import { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/signers";
import { IZNSCampaignConfig } from "./types";
import {
DEFAULT_PROTOCOL_FEE_PERCENT,
Expand All @@ -19,7 +18,6 @@ import {
import { ethers } from "ethers";
import { ICurvePriceConfig } from "../missions/types";
import { MeowMainnet } from "../missions/contracts/meow-token/mainnet-data";
import { DefenderRelaySigner } from "@openzeppelin/defender-sdk-relay-signer-client/lib/ethers";


const getCustomAddresses = (
Expand Down
3 changes: 0 additions & 3 deletions src/deploy/missions/contracts/address-resolver.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import {
BaseDeployMission,
TDeployArgs,
IHardhatBase,
IProviderBase,
ISignerBase, IContractState,
} from "@zero-tech/zdc";
import { ProxyKinds, ResolverTypes } from "../../constants";
import { znsNames } from "./names";
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/missions/contracts/sub-registrar.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
BaseDeployMission, IContractState, IHardhatBase, IProviderBase, ISignerBase,
BaseDeployMission,
TDeployArgs,
} from "@zero-tech/zdc";
import { ProxyKinds, REGISTRAR_ROLE } from "../../constants";
Expand Down
2 changes: 2 additions & 0 deletions src/utils/convert-base64.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@


// eslint-disable-next-line no-shadow
const toBase64 = (str : string) => btoa(str);

// eslint-disable-next-line no-shadow
const fromBase64 = (str : string) => atob(str);

const [
Expand Down
9 changes: 2 additions & 7 deletions test/DeployCampaignInt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
MongoDBAdapter,
ITenderlyContractData,
TDeployArgs,
VERSION_TYPES, IHardhatBase, ISignerBase, IProviderBase,
VERSION_TYPES,
} from "@zero-tech/zdc";
import {
DEFAULT_ROYALTY_FRACTION,
Expand Down Expand Up @@ -46,7 +46,6 @@ import { saveTag } from "../src/utils/git-tag/save-tag";
import { IZNSCampaignConfig, IZNSContracts } from "../src/deploy/campaign/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DefenderRelayProvider } from "@openzeppelin/defender-sdk-relay-signer-client/lib/ethers";
import { IZNSContractsLocal } from "./helpers/types";
import { getZnsMongoAdapter } from "../src/deploy/mongo";


Expand Down Expand Up @@ -469,11 +468,7 @@ describe("Deploy Campaign Test", () => {
znsNames.subRegistrar,
];

const checkPostDeploy = async <
H extends IHardhatBase,
S extends ISignerBase,
P extends IProviderBase,
> (failingCampaign : DeployCampaign<
const checkPostDeploy = async (failingCampaign : DeployCampaign<
HardhatRuntimeEnvironment,
SignerWithAddress,
DefenderRelayProvider,
Expand Down

0 comments on commit 5dd6a86

Please sign in to comment.