smart route mainnet deploy config
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
====================================================
|
====================================================
|
||||||
network type: development
|
network type: live
|
||||||
Deploy time: 2020/11/13 下午3:47:21
|
Deploy time: 2020/11/13 下午5:16:25
|
||||||
|
Deploy type: Smart Route
|
||||||
|
SmartApprove Address: 0xe380Ad3181A69BF92133D2feb609867c4adC61eA
|
||||||
|
DODOSellHelper Address: 0x533da777aedce766ceae696bf90f8541a4ba80eb
|
||||||
|
SmartSwap Address: 0xc1e152A032130bc7b49A00c78571C858BFc959C5
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const TestERC20 = artifacts.require("TestERC20");
|
|||||||
const NaiveOracle = artifacts.require("NaiveOracle");
|
const NaiveOracle = artifacts.require("NaiveOracle");
|
||||||
const DODOZoo = artifacts.require("DODOZoo");
|
const DODOZoo = artifacts.require("DODOZoo");
|
||||||
|
|
||||||
const DEPLOY_ROUTE = false;
|
const DEPLOY_ROUTE = true;
|
||||||
const DEPLOY_KOVAN_TOKEN = false;
|
const DEPLOY_KOVAN_TOKEN = false;
|
||||||
|
|
||||||
module.exports = async (deployer, network,accounts) => {
|
module.exports = async (deployer, network,accounts) => {
|
||||||
@@ -20,11 +20,12 @@ module.exports = async (deployer, network,accounts) => {
|
|||||||
DODOSellHelperAddress = "0xbdEae617F2616b45DCB69B287D52940a76035Fe3";
|
DODOSellHelperAddress = "0xbdEae617F2616b45DCB69B287D52940a76035Fe3";
|
||||||
DODOZooAddress = "0x92230e929a2226b29ed3441ae5524886347c60c8";
|
DODOZooAddress = "0x92230e929a2226b29ed3441ae5524886347c60c8";
|
||||||
WETHAddress = "0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b";
|
WETHAddress = "0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b";
|
||||||
}else {
|
}else if(network == 'live'){
|
||||||
DODOSellHelperAddress = "0x533da777aedce766ceae696bf90f8541a4ba80eb";
|
DODOSellHelperAddress = "0x533da777aedce766ceae696bf90f8541a4ba80eb";
|
||||||
DODOZooAddress = "0x3a97247df274a17c59a3bd12735ea3fcdfb49950";
|
DODOZooAddress = "0x3a97247df274a17c59a3bd12735ea3fcdfb49950";
|
||||||
WETHAddress = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";
|
WETHAddress = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";
|
||||||
}
|
}else
|
||||||
|
return;
|
||||||
|
|
||||||
logger.log("====================================================");
|
logger.log("====================================================");
|
||||||
logger.log("network type: " + network);
|
logger.log("network type: " + network);
|
||||||
@@ -40,7 +41,7 @@ module.exports = async (deployer, network,accounts) => {
|
|||||||
logger.log("SmartApprove Address: ",SmartApprove.address);
|
logger.log("SmartApprove Address: ",SmartApprove.address);
|
||||||
logger.log("DODOSellHelper Address: ",DODOSellHelperAddress);
|
logger.log("DODOSellHelper Address: ",DODOSellHelperAddress);
|
||||||
|
|
||||||
await deployer.deploy(SmartSwap,SmartApprove.address,DODOSellHelperAddress);
|
await deployer.deploy(SmartSwap,SmartApprove.address,DODOSellHelperAddress,WETHAddress);
|
||||||
logger.log("SmartSwap Address: ",SmartSwap.address);
|
logger.log("SmartSwap Address: ",SmartSwap.address);
|
||||||
|
|
||||||
const SmartApproveInstance = await SmartApprove.deployed();
|
const SmartApproveInstance = await SmartApprove.deployed();
|
||||||
|
|||||||
@@ -64,6 +64,15 @@ module.exports = {
|
|||||||
network_id: 42,
|
network_id: 42,
|
||||||
skipDryRun: true
|
skipDryRun: true
|
||||||
},
|
},
|
||||||
|
live: {
|
||||||
|
provider: function() {
|
||||||
|
return new HDWalletProvider(privKey, "https://mainnet.infura.io/v3/" + infuraId);
|
||||||
|
},
|
||||||
|
gas: 4000000,
|
||||||
|
gasPrice: 50000000000,
|
||||||
|
network_id: 1,
|
||||||
|
skipDryRun: true
|
||||||
|
},
|
||||||
coverage: {
|
coverage: {
|
||||||
host: "127.0.0.1",
|
host: "127.0.0.1",
|
||||||
port: 6545,
|
port: 6545,
|
||||||
|
|||||||
Reference in New Issue
Block a user