dione/eth-contracts/migrations/1_initial_migration.js

19 lines
590 B
JavaScript
Raw Normal View History

const Whitelist = artifacts.require("Whitelist");
const OracleEmitter = artifacts.require("OracleEmitter");
const Aggregator = artifacts.require("Aggregator");
const Mediator = artifacts.require("Mediator");
module.exports = function (deployer) {
return deployer
.then(() => {
return deployer.deploy(Whitelist);
})
.then(() => {
return deployer.deploy(OracleEmitter);
}).then(() => {
return deployer.deploy(Aggregator, Whitelist.address);
}).then(() => {
return deployer.deploy(Mediator, OracleEmitter.address, Aggregator.address);
});
};