Compare commits

..

1 Commits

Author SHA1 Message Date
defiQUG
2e0a364743 chore: update chain138 dvm deployment config 2026-04-18 12:04:43 -07:00
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"); 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).");
}; };

View File

@@ -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: () => {