Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Aug 6, 2024
1 parent f36899a commit 2656bf9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions scripts/deploy/DeployAllProd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ async function main() {
await RunHelper.runAndWait(() => investFund.init(controller.address));

const vaultImpl = await DeployerUtils.deployContract(signer, 'TetuVaultV2');
const vaultInsuranceImpl = await DeployerUtils.deployContract(signer, 'VaultInsurance');
const splitterImpl = await DeployerUtils.deployContract(signer, 'StrategySplitterV2');

const vaultFactory = await DeployerUtils.deployVaultFactory(
signer,
controller.address,
vaultImpl.address,
vaultInsuranceImpl.address,
splitterImpl.address,
);

Expand Down
2 changes: 0 additions & 2 deletions scripts/deploy/DeployAllProdSimplified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ async function main() {
await RunHelper.runAndWait2(investFund.populateTransaction.init(controller.address));

const vaultImpl = await DeployerUtils.deployContract(signer, 'TetuVaultV2');
const vaultInsuranceImpl = await DeployerUtils.deployContract(signer, 'VaultInsurance');
const splitterImpl = await DeployerUtils.deployContract(signer, 'StrategySplitterV2');

const vaultFactory = await DeployerUtils.deployVaultFactory(
signer,
controller.address,
vaultImpl.address,
vaultInsuranceImpl.address,
splitterImpl.address,
);

Expand Down
2 changes: 0 additions & 2 deletions scripts/deploy/DeployAllTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ async function main() {
await RunHelper.runAndWait(() => investFund.init(controller.address));

const vaultImpl = await DeployerUtils.deployContract(signer, 'TetuVaultV2');
const vaultInsuranceImpl = await DeployerUtils.deployContract(signer, 'VaultInsurance');
const splitterImpl = await DeployerUtils.deployContract(signer, 'StrategySplitterV2');

const vaultFactory = await DeployerUtils.deployVaultFactory(
signer,
controller.address,
vaultImpl.address,
vaultInsuranceImpl.address,
splitterImpl.address,
);

Expand Down
2 changes: 0 additions & 2 deletions scripts/deploy/DeployVaultFactory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {ethers} from "hardhat";
import {DeployerUtils} from "../utils/DeployerUtils";
import {appendFileSync} from "fs";
import {Addresses} from "../addresses/addresses";


Expand All @@ -10,7 +9,6 @@ async function main() {
await DeployerUtils.deployVaultFactory(
signer,
core.controller,
'0xa2c5911b6ecb4da440c93f8b7daa90c68f53e26a',
'0x6d85966b5280bfbb479e0eba00ac5cedfe8760d3',
'0x27af55366a339393865fc5943c04bc2600f55c9f',
);
Expand Down
6 changes: 0 additions & 6 deletions scripts/utils/DeployerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
ControllerV2__factory,
ForwarderV3,
ForwarderV3__factory,
ForwarderV4,
ForwarderV4__factory,
MockStakingToken,
MockToken,
Expand All @@ -27,14 +26,11 @@ import {
TetuEmitter__factory,
TetuVaultV2,
TetuVaultV2__factory,
TetuVoter,
TetuVoter__factory,
TetuVoterSimplified__factory,
VaultFactory,
VaultInsurance,
VeDistributor__factory,
VeDistributorV2__factory,
VeTetu,
VeTetu__factory
} from "../../typechain";
import {RunHelper} from "./RunHelper";
Expand Down Expand Up @@ -363,13 +359,11 @@ export class DeployerUtils {
signer: SignerWithAddress,
controller: string,
vaultImpl: string,
vaultInsuranceImpl: string,
splitterImpl: string,
) {
return await DeployerUtils.deployContract(signer, 'VaultFactory',
controller,
vaultImpl,
vaultInsuranceImpl,
splitterImpl
) as VaultFactory;
}
Expand Down

0 comments on commit 2656bf9

Please sign in to comment.