Cleanup eth-contracts
This commit is contained in:
parent
03f1b85170
commit
9fcd925dcb
@ -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);
|
||||
});
|
||||
};
|
@ -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",
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { run, ethers } from "hardhat";
|
||||
import "@nomiclabs/hardhat-ethers";
|
||||
|
||||
async function main() {
|
||||
await run("compile");
|
||||
|
Loading…
Reference in New Issue
Block a user