Cleanup eth-contracts

This commit is contained in:
ChronosX88 2021-04-15 02:14:13 +03:00
parent 03f1b85170
commit 9fcd925dcb
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
3 changed files with 3 additions and 19 deletions

View File

@ -1,18 +0,0 @@
const DioneToken = artifacts.require("DioneToken");
const DioneOracle = artifacts.require("DioneOracle");
const DioneDispute = artifacts.require("DioneDispute");
const DioneStaking = artifacts.require("DioneStaking");
module.exports = function (deployer) {
return deployer
.then(() => {
return deployer.deploy(DioneToken);
})
.then(() => {
return deployer.deploy(DioneStaking, DioneToken.address, web3.utils.toBN("10000000000000000000"), 0, web3.utils.toBN("5000000000000000000000"));
}).then(() => {
return deployer.deploy(DioneOracle, DioneStaking.address);
}).then(() => {
return deployer.deploy(DioneDispute, DioneStaking.address);
});
};

View File

@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"deployLocal": "npx hardhat --network localhost run scripts/deploy.ts"
},
"author": "",
"license": "ISC",

View File

@ -1,4 +1,5 @@
import { run, ethers } from "hardhat";
import "@nomiclabs/hardhat-ethers";
async function main() {
await run("compile");