chore: update chain138 dvm deployment config

This commit is contained in:
defiQUG
2026-04-18 12:04:43 -07:00
parent d946606870
commit 2e0a364743
2 changed files with 15 additions and 4 deletions

View File

@@ -11,12 +11,12 @@ const DvmTemplate = artifacts.require("DVM");
const DvmFactory = artifacts.require("DVMFactory");
module.exports = async function (deployer, network, accounts) {
if (network !== "chain138") return;
if (network !== "chain138" && network !== "celo") return;
const multiSig = 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);
const CloneFactoryAddress = CloneFactory.address;
@@ -56,7 +56,7 @@ module.exports = async function (deployer, network, accounts) {
const dvmFactoryInstance = await DvmFactory.at(dvmFactoryAddress);
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("Set DODO_VENDING_MACHINE_ADDRESS to the DVMFactoryAdapter address (deploy separately).");
};

View File

@@ -174,6 +174,17 @@ module.exports = {
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: {
networkCheckTimeout: 100000,
provider: () => {
@@ -323,4 +334,4 @@ module.exports = {
},
},
},
};
};