deploy calleehelper
This commit is contained in:
@@ -139,7 +139,6 @@ module.exports = async (deployer, network, accounts) => {
|
|||||||
DODOSellHelperAddress = "0x0F859706AeE7FcF61D5A8939E8CB9dBB6c1EDA33";
|
DODOSellHelperAddress = "0x0F859706AeE7FcF61D5A8939E8CB9dBB6c1EDA33";
|
||||||
WETHAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
WETHAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
||||||
chiAddress = "0x0000000000000000000000000000000000000000";
|
chiAddress = "0x0000000000000000000000000000000000000000";
|
||||||
|
|
||||||
DODOCalleeHelperAddress = "0x0000000000000000000000000000000000000000";
|
DODOCalleeHelperAddress = "0x0000000000000000000000000000000000000000";
|
||||||
DODORouteV2HelperAddress = "0x0000000000000000000000000000000000000000";
|
DODORouteV2HelperAddress = "0x0000000000000000000000000000000000000000";
|
||||||
//Template
|
//Template
|
||||||
@@ -173,6 +172,10 @@ module.exports = async (deployer, network, accounts) => {
|
|||||||
defaultMaintainer = accounts[0];
|
defaultMaintainer = accounts[0];
|
||||||
} else return;
|
} else return;
|
||||||
|
|
||||||
|
logger.log("====================================================");
|
||||||
|
logger.log("network type: " + network);
|
||||||
|
logger.log("Deploy time: " + new Date().toLocaleString());
|
||||||
|
|
||||||
if (deploySwitch.ROUTER_HELPER) {
|
if (deploySwitch.ROUTER_HELPER) {
|
||||||
await deployer.deploy(DODOV1PmmHelper);
|
await deployer.deploy(DODOV1PmmHelper);
|
||||||
logger.log("DODOV1RouterHelper Address: ", DODOV1PmmHelper.address);
|
logger.log("DODOV1RouterHelper Address: ", DODOV1PmmHelper.address);
|
||||||
@@ -181,10 +184,8 @@ module.exports = async (deployer, network, accounts) => {
|
|||||||
// logger.log("DODOV2RouteHelper Address: ", DODOV2RouteHelperAddress);
|
// logger.log("DODOV2RouteHelper Address: ", DODOV2RouteHelperAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (deploySwitch.ADAPTER) {
|
if (deploySwitch.ADAPTER) {
|
||||||
logger.log("====================================================");
|
|
||||||
logger.log("network type: " + network);
|
|
||||||
logger.log("Deploy time: " + new Date().toLocaleString());
|
|
||||||
logger.log("Deploy type: V2 - Adapter");
|
logger.log("Deploy type: V2 - Adapter");
|
||||||
await deployer.deploy(DODOV1Adapter, DODOSellHelperAddress)
|
await deployer.deploy(DODOV1Adapter, DODOSellHelperAddress)
|
||||||
logger.log("DODOV1Adapter Address: ", DODOV1Adapter.address);
|
logger.log("DODOV1Adapter Address: ", DODOV1Adapter.address);
|
||||||
@@ -195,12 +196,8 @@ module.exports = async (deployer, network, accounts) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (deploySwitch.DEPLOY_V2) {
|
if (deploySwitch.DEPLOY_V2) {
|
||||||
logger.log("====================================================");
|
|
||||||
logger.log("network type: " + network);
|
|
||||||
logger.log("Deploy time: " + new Date().toLocaleString());
|
|
||||||
logger.log("Deploy type: V2");
|
logger.log("Deploy type: V2");
|
||||||
if (DODOTokenAddress == "") return;
|
if (DODOTokenAddress == "") return;
|
||||||
|
|
||||||
//Helper
|
//Helper
|
||||||
if (DODOSellHelperAddress == "") {
|
if (DODOSellHelperAddress == "") {
|
||||||
await deployer.deploy(DODOSellHelper);
|
await deployer.deploy(DODOSellHelper);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ module.exports = {
|
|||||||
* $ truffle test --network <network-name>
|
* $ truffle test --network <network-name>
|
||||||
*/
|
*/
|
||||||
deploySwitch: {
|
deploySwitch: {
|
||||||
DEPLOY_V1: true,
|
DEPLOY_V1: false,
|
||||||
DEPLOY_V2: false,
|
DEPLOY_V2: false,
|
||||||
ADAPTER: false,
|
ADAPTER: false,
|
||||||
MOCK_TOKEN: false,
|
MOCK_TOKEN: false,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# truffle compile --all
|
truffle compile --all
|
||||||
|
|
||||||
if [ "$1"x = "proxy-dpp"x ]
|
if [ "$1"x = "proxy-dpp"x ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user