2021-04-13 21:22:30 +00:00
|
|
|
const DioneToken = artifacts.require("DioneToken");
|
|
|
|
const DioneOracle = artifacts.require("DioneOracle");
|
|
|
|
const DioneDispute = artifacts.require("DioneDispute");
|
|
|
|
const DioneStaking = artifacts.require("DioneStaking");
|
2020-08-04 18:19:42 +00:00
|
|
|
|
|
|
|
module.exports = function (deployer) {
|
|
|
|
return deployer
|
|
|
|
.then(() => {
|
2021-04-13 21:22:30 +00:00
|
|
|
return deployer.deploy(DioneToken);
|
2020-08-04 18:19:42 +00:00
|
|
|
})
|
|
|
|
.then(() => {
|
2021-04-13 21:22:30 +00:00
|
|
|
return deployer.deploy(DioneStaking, DioneToken.address, web3.utils.toBN("10000000000000000000"), 0, web3.utils.toBN("5000000000000000000000"));
|
2020-08-04 18:19:42 +00:00
|
|
|
}).then(() => {
|
2021-04-13 21:22:30 +00:00
|
|
|
return deployer.deploy(DioneOracle, DioneStaking.address);
|
2020-08-04 18:19:42 +00:00
|
|
|
}).then(() => {
|
2021-04-13 21:22:30 +00:00
|
|
|
return deployer.deploy(DioneDispute, DioneStaking.address);
|
2020-08-04 18:19:42 +00:00
|
|
|
});
|
|
|
|
};
|