diff --git a/src/deploy/campaign/environments.ts b/src/deploy/campaign/environments.ts index 2dedf03e..2df9609a 100644 --- a/src/deploy/campaign/environments.ts +++ b/src/deploy/campaign/environments.ts @@ -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, @@ -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 = ( diff --git a/src/deploy/missions/contracts/address-resolver.ts b/src/deploy/missions/contracts/address-resolver.ts index a81e0f0b..a3195065 100644 --- a/src/deploy/missions/contracts/address-resolver.ts +++ b/src/deploy/missions/contracts/address-resolver.ts @@ -1,9 +1,6 @@ import { BaseDeployMission, TDeployArgs, - IHardhatBase, - IProviderBase, - ISignerBase, IContractState, } from "@zero-tech/zdc"; import { ProxyKinds, ResolverTypes } from "../../constants"; import { znsNames } from "./names"; diff --git a/src/deploy/missions/contracts/sub-registrar.ts b/src/deploy/missions/contracts/sub-registrar.ts index 88f7a08a..6f62a646 100644 --- a/src/deploy/missions/contracts/sub-registrar.ts +++ b/src/deploy/missions/contracts/sub-registrar.ts @@ -1,5 +1,5 @@ import { - BaseDeployMission, IContractState, IHardhatBase, IProviderBase, ISignerBase, + BaseDeployMission, TDeployArgs, } from "@zero-tech/zdc"; import { ProxyKinds, REGISTRAR_ROLE } from "../../constants"; diff --git a/src/utils/convert-base64.ts b/src/utils/convert-base64.ts index 79a4a55b..d9904982 100644 --- a/src/utils/convert-base64.ts +++ b/src/utils/convert-base64.ts @@ -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 [ diff --git a/test/DeployCampaignInt.test.ts b/test/DeployCampaignInt.test.ts index 9b9e570f..2b546ad8 100644 --- a/test/DeployCampaignInt.test.ts +++ b/test/DeployCampaignInt.test.ts @@ -11,7 +11,7 @@ import { MongoDBAdapter, ITenderlyContractData, TDeployArgs, - VERSION_TYPES, IHardhatBase, ISignerBase, IProviderBase, + VERSION_TYPES, } from "@zero-tech/zdc"; import { DEFAULT_ROYALTY_FRACTION, @@ -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"; @@ -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,