Skip to content

Commit

Permalink
fix mainnnet deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
elshan-eth committed Feb 16, 2024
1 parent 08384a8 commit e62fa36
Show file tree
Hide file tree
Showing 39 changed files with 15,614 additions and 80 deletions.
Binary file removed contracts/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
proxyArgs: ["{implementation}", "{data}"],
execute: {
methodName: "initialize",
args: ["Fluence", "FLT", ethers.parseEther("1000000000")],
args: ["Fluence", "FLT", ethers.utils.parseEther("1000000000")],
},
},
waitConfirmations: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import { parseVestingAddresses } from "../utils/utils";
import { YEAR, HOURS, MINUTES } from "../utils/time";
import { HOURS, MINUTES } from "../utils/time";
import { ethers } from "hardhat";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
console.log("\nDeploying Investors Vesting #1...");
console.log("\nDeploying Team Vesting...");
const deployer = (await ethers.getSigners())[0].address;

const { accounts, amounts, totalAmount } =
Expand All @@ -20,8 +21,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
token.address,
"Fluence Token (Locked, Voting)",
"FLT-LV",
10 * MINUTES,
1 * HOURS,
MINUTES,
20 * HOURS,
accounts,
amounts,
],
Expand Down
Binary file modified contracts/deploy/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { Config } from "../../utils/config";
import { Config } from "../utils/config";
import { ethers } from "ethers";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { DAY } from "../../utils/time";
import { Config } from "../../utils/config";
import { DAY } from "../utils/time";
import { Config } from "../utils/config";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { ethers } from "hardhat";
import { DAY } from "../../utils/time";
import { Config } from "../../utils/config";
import { DAY } from "../utils/time";
import { Config } from "../utils/config";
import { BigNumber } from "ethers";
import { IERC20Metadata__factory } from "../typechain";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { MONTH } from "../../utils/time";
import { Config } from "../../utils/config";
import { MONTH } from "../utils/time";
import { Config } from "../utils/config";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { MONTH } from "../../utils/time";
import { Config } from "../../utils/config";
import { MONTH } from "../utils/time";
import { Config } from "../utils/config";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { Config } from "../../utils/config";
import { Config } from "../utils/config";
import { parse } from "csv-parse/sync";
import { BigNumber, BigNumberish, ethers } from "ethers";
import fs from "fs";
import { MONTH } from "../../utils/time";
import { MONTH } from "../utils/time";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { MONTH } from "../../utils/time";
import { Config } from "../../utils/config";
import { MONTH } from "../utils/time";
import { Config } from "../utils/config";
import { parse } from "csv-parse/sync";
import { BigNumber, BigNumberish, ethers } from "ethers";
import fs from "fs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { DeployFunction } from "hardhat-deploy/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import { ethers } from "hardhat";
import { DAY } from "../../utils/time";
import { Config } from "../../utils/config";
import { DAY } from "../utils/time";
import { Config } from "../utils/config";
import { BigNumber } from "ethers";

const RPROPOSER_ROLE = ethers.utils.keccak256(
Expand Down
45 changes: 0 additions & 45 deletions contracts/deploy/mainnet/0001_InvestorsVesting#1.ts

This file was deleted.

1 change: 1 addition & 0 deletions contracts/deployments/mainnet/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Loading

0 comments on commit e62fa36

Please sign in to comment.