From 2e0a36474323b5803d71e6de8e9336b2d350a10e Mon Sep 17 00:00:00 2001 From: defiQUG Date: Sat, 18 Apr 2026 12:04:43 -0700 Subject: [PATCH] chore: update chain138 dvm deployment config --- migrations/9_deploy_dvm_chain138.js | 6 +++--- truffle-config.js | 13 ++++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/migrations/9_deploy_dvm_chain138.js b/migrations/9_deploy_dvm_chain138.js index f05eea3..83eaf03 100644 --- a/migrations/9_deploy_dvm_chain138.js +++ b/migrations/9_deploy_dvm_chain138.js @@ -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)."); }; diff --git a/truffle-config.js b/truffle-config.js index 1b9e7dc..e16c453 100755 --- a/truffle-config.js +++ b/truffle-config.js @@ -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 = { }, }, }, -}; \ No newline at end of file +};