From 8f2e3ab28093b2e041155157788f91c2aa8f93b7 Mon Sep 17 00:00:00 2001 From: owen05 Date: Tue, 21 Dec 2021 09:41:21 +0800 Subject: [PATCH] add avax config --- config/avax-config.js | 68 +++++++++++++++++++++++++++++++++++ config/boba-test-config.js | 72 -------------------------------------- config/bsc-config.js | 2 +- configAdapter.js | 10 +++--- truffle-config.js | 27 +------------- 5 files changed, 74 insertions(+), 105 deletions(-) create mode 100644 config/avax-config.js delete mode 100644 config/boba-test-config.js diff --git a/config/avax-config.js b/config/avax-config.js new file mode 100644 index 0000000..e2f65f8 --- /dev/null +++ b/config/avax-config.js @@ -0,0 +1,68 @@ +module.exports = { + AVAX_CONFIG: { + //DODOZoo: "", + //DODOV1: "", + + //TOKEN + WETH: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7", + CHI: "0x0000000000000000000000000000000000000000", + DODO: "", + + //Helper + DODOSellHelper: "0xF7c5311B618E6dFBBc34210c92D2C9675D7EdDCA", + DODOCalleeHelper: "0x4EfF1D851366b8cc51d553a87e2d12dA8Da46F2a", + DODOV1PmmHelper: "0x790B4A80Fb1094589A3c0eFC8740aA9b0C1733fB", + DODOV2RouteHelper: "", + MultiCall: "0x97f0153E7F5749640aDF3Ff9CFC518b79D6Fe53b", + DODOSwapCalcHelper: "0xAfe0A75DFFb395eaaBd0a7E1BBbd0b11f8609eeF", + ERC20Helper: "0xC3528D128CC227fd60793007b5e3FdF7c2945282", + + //Template + CloneFactory: "0x778DF5B12170e8af8dF94356BfC864E57CE185DC", + FeeRateModel: "0x1565666CD77bB6DDE193e1D37Ad7b07900e6f4c0", + //FeeRateDIP3: "0x1dc8D1f1600B7C1D39e6b60FBC7b021Bc4F9C993", + PermissionManager: "0x8F8Dd7DB1bDA5eD3da8C9daf3bfa471c12d58486", + DVM: "0x70eFB31271C0796833f80dA4E6538d05B2AFA72C", + DPP: "0x77106d0f8c5B8ADF95a7feaae5bea130b1D2D748", + DSP: "0xa952f8716a753D9e094c4041FEBd163e38B21eDB", + DPPAdmin: "0x67e5a449EF6B0da29D338023e7cfc50a2975F9Bb", + CP: "0x01f9BfAC04E6184e90bD7eaFD51999CE430Cc750", + //ERC20MineV2: "0x0Fba7F96f3D7196FfAcaC46356F05Fdb7B24c38d", + ERC20MineV3: "0xF31162ef57b61D2FBA4f64dBbaC536bFc782D37c", + + ERC20: "0xf94435Ad7Edc3D5aDd1C1345622Bb745D0387416", + CustomERC20: "0x1cC529DB2a7D45F68B698A7019D4eE1e6FB2D58F", + + //Approve + DODOApprove: "0xCFea63e3DE31De53D68780Dd65675F169439e470", + DODOApproveProxy: "0x96a75d73b3de29c009863fA6329D96b2181D3Dc4", + + + //Factory + DVMFactory: "0xfF133A6D335b50bDAa6612D19E1352B049A8aE6a", + DPPFactory: "0xb7865a5ceE051d35B09A48b624D7057d3362655a", + DSPFactory: "0x2b0d94Eb7A63B8a2909dE1CB3951ecF7Ae76D2fE", + UpCpFactory: "0x55793C2c8A796cCE00EF2D1a86CCA2E0399BF285", + CrowdPoolingFactory: "0x25B2f945Fec30F34b05d416C7c0b5c6c51A3ADdC", + ERC20V2Factory: "0x141b4497a298340E8B451ac4eeE947B00aDbe07A", + //DODOMineV2Factory: "0xCDFD45f965De9932367833Ca7187e4c9C43A2380", + DODOMineV3Registry: "0x0fe261aeE0d1C4DFdDee4102E82Dd425999065F4", + + //Adapter + DODOV1Adapter: "", + DODOV2Adapter: "", + UniAdapter: "", + + //Proxy + DODOV2Proxy: "", + DSPProxy: "", + CpProxy: "", + DPPProxy: "", + RouteProxy: "", + DODOMineV3Proxy: "", + + //Account + multiSigAddress: "0x9FCFD9ff955D36856F8EE480471B05488C0eB5cA", + defaultMaintainer: "0x9FCFD9ff955D36856F8EE480471B05488C0eB5cA", + } +} \ No newline at end of file diff --git a/config/boba-test-config.js b/config/boba-test-config.js deleted file mode 100644 index b38e86d..0000000 --- a/config/boba-test-config.js +++ /dev/null @@ -1,72 +0,0 @@ -module.exports = { - BOBA_TEST_CONFIG: { - // DODOZoo: "", - // DODO: "", - - //TOKEN - WETH: "0x42e50568d436b0376a4203517Bd3AF274c5546B2", - CHI: "0x0000000000000000000000000000000000000000", - DODO: "", - - //Helper - MultiCall: "0x459645726a949f9877556c86E0f0e64430a4717d", - DODOSwapCalcHelper: "0x6DfB41B3f8A02a43376CFCca4f22680D62F4384E", - ERC20Helper: "0x365f4B1C994Ac136d7AD5acf4dE8d46096bC9f52", - DODOSellHelper: "0xf0f889393B2E9517568F6d061C0230bCBc224AD4", - DODOCalleeHelper: "0xc4E476AaCE8c53143fC8fB3b64c33777031809CF", - DODOV1PmmHelper: "0xaafDC59086a01269405B864EF4213e1490366DCE", - DODOV2RouteHelper: "0xDc21D37F4f5dAC4d14b19f51467cA2454F83F471", - CurveSample: "", - - //Template - CloneFactory: "0x4A82CD9E93f35b67962695268Afc602aCd34d088", - FeeRateModel: "0xa0f3499CE2fBF18dd179452d5dA52Db2E38c77d9", - // FeeRateDIP3: "0x4b408F5FeE325De4B9D4fe73a49b08601b3c0aCD", - FeeRateImpl: "", - UserQuota: "", - PermissionManager: "0xcB0Ae9A103CC0aCB74267a8a738dee21B965b463", - DVM: "0x4d6F9Ec882B0faE906D130789Df9004A79A61809", - DPP: "0xBCFBed364e1e9Ac687fD6430A31B1a097F19c5e6", - DSP: "0x5C1E05d419940e110F3a8f3F7b1360d35Fd4147D", - DPPAdmin: "0xf190622B38B8acE7a6E7A85d14e9d5401E4bC3BD", - CP: "0x730674eC7C9018c65308f1967ff6d53Dc948B01a", - //ERC20MineV2: "", - ERC20MineV3: "0x5CD2dA42341607E522d6BE9C8ab06598F59BC3a2", - - ERC20: "0xBAC0B198C379673FbdC3E66243526B40407A3A20", - CustomERC20: "0xaf4BE9aa7cBC4844d99cBdDeA6Ce106E90226E66", - - - //Factory - DVMFactory: "0x5BbfdF91e29D2887E686eF1bEbF5Ca0ea33290E7", - DPPFactory: "0xCAbB86069B37D5055E39f392D0475Cfb7dF52E98", - DSPFactory: "0x4A0a1ECa17323068Ba359B6B42fe7e048d65e982", - UpCpFactory: "0xd08e5cF0551aaEc0dA2f4FC595193F9E6b0295e0", - CrowdPoolingFactory: "0x8515a592Ccd2f9Ab68Fe18DD5a512Bb251Fb5F2a", - ERC20V2Factory: "0xBC205D025f4789Ba5Fd27cE3F9d3C88D086daA56", - //DODOMineV2Factory: "", - DODOMineV3Registry: "0x216D46F1E1aBB5003a6e22E841661c49050Db96c", - - //Approve - DODOApprove: "0x39316EF9747bDDECA1FAAB020A336B83D9F40D9b", - DODOApproveProxy: "0x76e844cee3ce99A42e93Ed7E964444BE0a39C8CF", - - //Adapter - DODOV1Adapter: "0xe2D96eC0e6Aa99Ce724e9c3c4aD5f2D9f5161a5A", - DODOV2Adapter: "0x2f0d3135ea488aEeF7c0Cb2e67f365c06b07377E", - UniAdapter: "0x087eb7221EEee96736Fee8595beeE62EF211A797", - CurveAdapter: "", - - //Proxy - DODOV2Proxy: "0xb6A8Eb18A13c31F8fF608Bbe32AB731048fa1bf5", - DSPProxy: "0x0479cCBc518d257Fb802B4b2ac1139F7b78DC6DE", - CpProxy: "0xf75D4E8EAFc86B47cCB58Af616d7feD3EA4a5496", - DPPProxy: "0x441E595Fed6e2630d62966caeBeF25823cE466ef", - RouteProxy: "0xAAd3c11331Ad1da77C339A96867Efa5f40EDf62e", - DODOMineV3Proxy: "0x8F8b19d148Ed33c9b9bC9ab931CE008f07796A35", - - //Account - multiSigAddress: "0xbC7814de9e42945C9fFd89D2BFff1a45e07Bdb10", - defaultMaintainer: "0xbC7814de9e42945C9fFd89D2BFff1a45e07Bdb10", - } -} \ No newline at end of file diff --git a/config/bsc-config.js b/config/bsc-config.js index 12f4c06..2b38888 100644 --- a/config/bsc-config.js +++ b/config/bsc-config.js @@ -23,7 +23,7 @@ module.exports = { DPP: "0x85351262f7474Ebe23FfAcD633cf20A491F1325D", DSP: "0xE3c91fDCe30DD5Aa95138D6c4d63f43a26e9066e", DPPAdmin: "0x44D5dF24d5Ef52A791D6436Fa45A8D426f6de34e", - CP: "0x5D6e6A0BFB2176AFCc4FB809822D8e009216b245", + CP: "0x6A3c8Ba322F3afe6550fec27fb17b119070F12e5", ERC20MineV3: "0xBA428FC3c5ce457c236869787c26f725Ff5168D8", ERC20: "0x99155E68aC1523B6f461F6427A90607ecCF7bDF5", diff --git a/configAdapter.js b/configAdapter.js index 2b9735e..90a0dae 100755 --- a/configAdapter.js +++ b/configAdapter.js @@ -8,8 +8,8 @@ const { RINKEBY_CONFIG } = require("./config/rinkeby-config"); const { OK_CONFIG } = require("./config/ok-config"); const { AURORA_CONFIG } = require("./config/aurora-config"); const { MOONRIVER_CONFIG } = require("./config/moonriver-config"); -const { BOBA_TEST_CONFIG } = require("./config/boba-test-config"); const { BOBA_CONFIG } = require("./config/boba-config"); +const { AVAX_CONFIG } = require("./config/avax-config"); exports.GetConfig = function (network, accounts) { var CONFIG = {} @@ -41,6 +41,9 @@ exports.GetConfig = function (network, accounts) { case "boba": CONFIG = BOBA_CONFIG break; + case "avax": + CONFIG = AVAX_CONFIG + break; //testnet case "kovan": CONFIG = KOVAN_CONFIG @@ -52,11 +55,6 @@ exports.GetConfig = function (network, accounts) { CONFIG.multiSigAddress = accounts[0] CONFIG.defaultMaintainer = accounts[0] break; - case "boba_test": - CONFIG = BOBA_TEST_CONFIG - CONFIG.multiSigAddress = accounts[0] - CONFIG.defaultMaintainer = accounts[0] - break; } return CONFIG } diff --git a/truffle-config.js b/truffle-config.js index 68597d1..ca0e742 100755 --- a/truffle-config.js +++ b/truffle-config.js @@ -155,16 +155,6 @@ module.exports = { gas: 10000000 }, - oktest: { - provider: () => { - return new HDWalletProvider(privKey, 'https://exchaintest.okexcn.com') - }, - network_id: 65, - confirmations: 10, - timeoutBlocks: 200, - skipDryRun: true - }, - ok: { networkCheckTimeout: 100000, provider: () => { @@ -177,21 +167,6 @@ module.exports = { skipDryRun: true }, - boba_test: { - networkCheckTimeout: 100000, - provider: () => { - return new HDWalletProvider({ - privateKeys: [privKey], - providerOrUrl: 'https://rinkeby.boba.network', - chainId: 28 - }) - }, - network_id: 28, - gasPrice: 0, - timeoutBlocks: 200, - skipDryRun: true - }, - boba: { networkCheckTimeout: 100000, provider: () => { @@ -268,4 +243,4 @@ module.exports = { }, }, }, -}; +}; \ No newline at end of file