Compare commits
1 Commits
d946606870
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e0a364743 |
@@ -11,12 +11,12 @@ const DvmTemplate = artifacts.require("DVM");
|
|||||||
const DvmFactory = artifacts.require("DVMFactory");
|
const DvmFactory = artifacts.require("DVMFactory");
|
||||||
|
|
||||||
module.exports = async function (deployer, network, accounts) {
|
module.exports = async function (deployer, network, accounts) {
|
||||||
if (network !== "chain138") return;
|
if (network !== "chain138" && network !== "celo") return;
|
||||||
|
|
||||||
const multiSig = accounts[0];
|
const multiSig = accounts[0];
|
||||||
const defaultMaintainer = accounts[0];
|
const defaultMaintainer = accounts[0];
|
||||||
|
|
||||||
console.log("Deploying DVM stack on Chain 138 with maintainer:", multiSig);
|
console.log(`Deploying DVM stack on ${network} with maintainer:`, multiSig);
|
||||||
|
|
||||||
await deployer.deploy(CloneFactory);
|
await deployer.deploy(CloneFactory);
|
||||||
const CloneFactoryAddress = CloneFactory.address;
|
const CloneFactoryAddress = CloneFactory.address;
|
||||||
@@ -56,7 +56,7 @@ module.exports = async function (deployer, network, accounts) {
|
|||||||
const dvmFactoryInstance = await DvmFactory.at(dvmFactoryAddress);
|
const dvmFactoryInstance = await DvmFactory.at(dvmFactoryAddress);
|
||||||
await dvmFactoryInstance.initOwner(multiSig);
|
await dvmFactoryInstance.initOwner(multiSig);
|
||||||
|
|
||||||
console.log("\n=== Chain 138 DVM deployment summary ===");
|
console.log(`\n=== ${network} DVM deployment summary ===`);
|
||||||
console.log("DVMFactory (use this with an adapter for createDVM):", dvmFactoryAddress);
|
console.log("DVMFactory (use this with an adapter for createDVM):", dvmFactoryAddress);
|
||||||
console.log("Set DODO_VENDING_MACHINE_ADDRESS to the DVMFactoryAdapter address (deploy separately).");
|
console.log("Set DODO_VENDING_MACHINE_ADDRESS to the DVMFactoryAdapter address (deploy separately).");
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -174,6 +174,17 @@ module.exports = {
|
|||||||
network_id: 43114
|
network_id: 43114
|
||||||
},
|
},
|
||||||
|
|
||||||
|
celo: {
|
||||||
|
networkCheckTimeout: 100000,
|
||||||
|
provider: () => {
|
||||||
|
return new HDWalletProvider(privKey, process.env.CELO_RPC || process.env.CELO_MAINNET_RPC || 'https://forno.celo.org');
|
||||||
|
},
|
||||||
|
network_id: 42220,
|
||||||
|
confirmations: 5,
|
||||||
|
timeoutBlocks: 200,
|
||||||
|
skipDryRun: true
|
||||||
|
},
|
||||||
|
|
||||||
aurora: {
|
aurora: {
|
||||||
networkCheckTimeout: 100000,
|
networkCheckTimeout: 100000,
|
||||||
provider: () => {
|
provider: () => {
|
||||||
@@ -323,4 +334,4 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user