Skip to content

Commit

Permalink
refine contract state type for campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
Whytecrowe committed Nov 6, 2023
1 parent 8dadfbd commit 5948613
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/deploy/campaign/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ICurvePriceConfig, TDeployMissionCtor } from "../missions/types";
import { HardhatDeployer } from "../deployer/hardhat-deployer";
import { BaseStorageAdapter } from "../storage/base-storage-adapter";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { IZNSContracts } from "../../../test/helpers/types";
import { IZNSContracts, ZNSContract } from "../../../test/helpers/types";
import { Logger as WinstonLogger } from "winston";


Expand All @@ -26,14 +26,14 @@ export interface IDeployCampaignConfig {

export type TLogger = WinstonLogger | Console;

export interface IContractState {
[key : string] : Contract;
}
export type IContractState = {
[key in keyof IZNSContracts as string] : ZNSContract;
};

export interface ICampaignState {
missions : Array<TDeployMissionCtor>;
instances : Array<BaseDeployMission>;
contracts : TZNSContractState;
contracts : IContractState;
}

export interface ICampaignArgs {
Expand All @@ -43,5 +43,3 @@ export interface ICampaignArgs {
logger : TLogger;
config : IDeployCampaignConfig;
}

export type TZNSContractState = IContractState & IZNSContracts;

0 comments on commit 5948613

Please sign in to comment.