test: added unexpire locks unit tests

This commit is contained in:
PedroCailleret
2022-12-08 20:38:58 -03:00
parent d541e7b70c
commit 932b2a03b4
18 changed files with 332 additions and 88 deletions

View File

@@ -4,13 +4,9 @@ import { BigNumber } from "ethers";
import * as fs from "fs";
import { ethers, network } from "hardhat";
// import hre from "hardhat";
import { Deploys } from "../test/utils/fixtures";
interface Deploys {
signers: string[];
p2pix: string;
token: string;
}
// import hre from "hardhat";
let deploysJson: Deploys;
const supply: BigNumber = ethers.utils.parseEther("20000000");

View File

@@ -2,8 +2,8 @@ import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import * as fs from "fs";
import { ethers, network } from "hardhat";
import { Deploys } from "../test/utils/fixtures";
import { Deploys } from "../test/utils/fixtures";
let deploysJson: Deploys;
@@ -22,17 +22,19 @@ const main = async () => {
const [deployer] = await ethers.getSigners();
console.log(`Deploying contracts with ${deployer.address}`);
const Reputation = await ethers.getContractFactory("Reputation");
const Reputation = await ethers.getContractFactory(
"Reputation",
);
const reputation = await Reputation.deploy();
await reputation.deployed();
const P2PIX = await ethers.getContractFactory("P2PIX");
const p2pix = await P2PIX.deploy(
10,
10,
deploysJson.signers,
reputation.address,
[deploysJson.token],
[true]
[true],
);
await p2pix.deployed();