deploy to mantle

This commit is contained in:
tracy
2023-11-20 21:43:35 +08:00
parent 365a14c477
commit c7124b5ed7
3 changed files with 71 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ const DODOV2RouteHelper = artifacts.require("DODOV2RouteHelper");
const DODOSwapCalcHelper = artifacts.require("DODOSwapCalcHelper");
const ERC20Helper = artifacts.require("ERC20Helper");
const MultiCall = artifacts.require("Multicall");
const MultiCallWithValid = artifacts.require("MulticallWithValid");
const DODOCalleeHelper = artifacts.require("DODOCalleeHelper");
const DvmTemplate = artifacts.require("DVM");
@@ -70,6 +71,7 @@ module.exports = async (deployer, network, accounts) => {
let DODOSwapCalcHelperAddress = CONFIG.DODOSwapCalcHelper;
let ERC20HelperAddress = CONFIG.ERC20Helper;
let MultiCallAddress = CONFIG.MultiCall;
let MultiCallWithValidAddress = CONFIG.MultiCallWithValid;
//Template
let CloneFactoryAddress = CONFIG.CloneFactory;
@@ -143,6 +145,12 @@ module.exports = async (deployer, network, accounts) => {
logger.log("MultiCallAddress: ", MultiCallAddress);
}
if (MultiCallWithValidAddress == "") {
await deployer.deploy(MultiCallWithValid);
MultiCallWithValidAddress = MultiCallWithValid.address;
logger.log("MultiCallWithValidAddress: ", MultiCallWithValidAddress);
}
if (DODOSellHelperAddress == "") {
await deployer.deploy(DODOSellHelper);
DODOSellHelperAddress = DODOSellHelper.address;