Skip to content

Commit

Permalink
update contract deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
kstoykov committed May 20, 2022
1 parent 423007f commit 58df5b5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions solidity/contract-deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Gravity } from "./typechain/Gravity";
import { TestERC20A } from "./typechain/TestERC20A";
import { TestERC20B } from "./typechain/TestERC20B";
import { TestERC20C } from "./typechain/TestERC20C";
import { TestUniswapLiquidity } from "./typechain/TestUniswapLiquidity";
// import { TestUniswapLiquidity } from "./typechain/TestUniswapLiquidity";
import { ethers } from "ethers";
import fs from "fs";
import commandLineArgs from "command-line-args";
Expand Down Expand Up @@ -173,15 +173,15 @@ async function deploy() {
console.log("ERC20 deployed at Address - ", erc20TestAddress2);


const arbitrary_logic_path = "/gravity/solidity/artifacts/contracts/TestUniswapLiquidity.sol/TestUniswapLiquidity.json"
if (fs.existsSync(arbitrary_logic_path)) {
const { abi, bytecode } = getContractArtifacts(arbitrary_logic_path);
const liquidityFactory = new ethers.ContractFactory(abi, bytecode, wallet);
const testUniswapLiquidity = (await liquidityFactory.deploy(erc20TestAddress)) as TestUniswapLiquidity;
await testUniswapLiquidity.deployed();
const testAddress = testUniswapLiquidity.address;
console.log("Uniswap Liquidity test deployed at Address - ", testAddress);
}
// const arbitrary_logic_path = "/gravity/solidity/artifacts/contracts/TestUniswapLiquidity.sol/TestUniswapLiquidity.json"
// if (fs.existsSync(arbitrary_logic_path)) {
// const { abi, bytecode } = getContractArtifacts(arbitrary_logic_path);
// const liquidityFactory = new ethers.ContractFactory(abi, bytecode, wallet);
// const testUniswapLiquidity = (await liquidityFactory.deploy(erc20TestAddress)) as TestUniswapLiquidity;
// await testUniswapLiquidity.deployed();
// const testAddress = testUniswapLiquidity.address;
// console.log("Uniswap Liquidity test deployed at Address - ", testAddress);
// }
}
const gravityIdString = await getGravityId();
const gravityId = ethers.utils.formatBytes32String(gravityIdString);
Expand Down

0 comments on commit 58df5b5

Please sign in to comment.