update deploy script

This commit is contained in:
owen05
2021-03-03 23:08:41 +08:00
parent d1d815b6f4
commit 8b341c3236
16 changed files with 646 additions and 763 deletions

57
config/bsc-config.js Normal file
View File

@@ -0,0 +1,57 @@
module.exports = {
BSC_CONFIG: {
//TOKEN
WETH: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
CHI: "0x0000000000000000000000000000000000000000",
DODO: "0x67ee3Cb086F8a16f34beE3ca72FAD36F7Db929e2",
//Helper
DODOSellHelper: "0x0F859706AeE7FcF61D5A8939E8CB9dBB6c1EDA33",
DODOCalleeHelper: "0xaaffAd1017D6a13E026A00121BF258C616B25f7C",
DODOV1PmmHelper: "0x2BBD66fC4898242BDBD2583BBe1d76E8b8f71445",
DODOV2RouteHelper: "0x1dc8D1f1600B7C1D39e6b60FBC7b021Bc4F9C993",
//Template
CloneFactory: "0x03E2427859119E497EB856a166F616a2Ce5f8c88",
FeeRateModel: "0x18DFdE99F578A0735410797e949E8D3e2AFCB9D2",
PermissionManager: "0x729f7f44bf64Ce814716b6261e267DbE6cdf021c",
DVM: "0xC3BeD579CaB3EC29B22D9AB99F4E586af42496b9",
DPP: "0x85351262f7474Ebe23FfAcD633cf20A491F1325D",
DPPAdmin: "0x44D5dF24d5Ef52A791D6436Fa45A8D426f6de34e",
CP: "0x041ABa00c57Dd47abC37A2931dF569a2A2cc57Be",
ERC20: "0xef49a6dba1c8df859e49c17e9a485b439c7689d3",
MintableERC20: "0x6373ceb657c83c91088d328622573fb766064ac4",
//Factory
DVMFactory: "0x790B4A80Fb1094589A3c0eFC8740aA9b0C1733fB",
DPPFactory: "0xAfe0A75DFFb395eaaBd0a7E1BBbd0b11f8609eeF",
CrowdPoolingFactory: "0x778DF5B12170e8af8dF94356BfC864E57CE185DC",
ERC20Factory: "0x5e84190a270333aCe5B9202a3F4ceBf11b81bB01",
//Approve
DODOApprove: "0xa128Ba44B2738A558A1fdC06d6303d52D3Cef8c1",
DODOApproveProxy: "0xB76de21f04F677f07D9881174a1D8E624276314C",
//Periphery
DODOIncentive: "0x4EE6398898F7FC3e648b3f6bA458310ac29cD352",
//Adapter
DODOV1Adapter: "0x0596908263Ef2724fBfBcAfA1c983FCD7a629038",
DODOV2Adapter: "0xAB623fBcaeb522046185051911209F5b2C2a2e1f",
UniAdapter: "0x5e530cD60931d9DE694a86827e76BB24493A1520",
//Proxy
DODOV2Proxy: "0x8F8Dd7DB1bDA5eD3da8C9daf3bfa471c12d58486",
//vDODO
DODOCirculationHelper: "",
Governance: "",
dodoTeam: "",
vDODOToken: "",
//Account
multiSigAddress: "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b",
defaultMaintainer: "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b",
}
}

56
config/eth-config.js Normal file
View File

@@ -0,0 +1,56 @@
module.exports = {
ETH_CONFIG: {
//TOKEN
WETH: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
CHI: "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c",
DODO: "0x43Dfc4159D86F3A37A5A4B3D4580b888ad7d4DDd",
//Helper
DODOSellHelper: "0x533da777aedce766ceae696bf90f8541a4ba80eb",
DODOCalleeHelper: "0xef49a6DBa1C8DF859E49c17E9A485B439c7689d3",
DODOV1PmmHelper: "0x6373ceB657C83C91088d328622573FB766064Ac4",
DODOV2RouteHelper: "0xbe9a66e49503e84ae59a4d0545365AABedf33b40",
//Template
CloneFactory: "0x5e5a7b76462e4bdf83aa98795644281bdba80b88",
FeeRateModel: "0x5e84190a270333aCe5B9202a3F4ceBf11b81bB01",
PermissionManager: "0x6B208E08dcF6BD51F50C5Da09d15B2D8E5C46Cf2",
DVM: "0x2BBD66fC4898242BDBD2583BBe1d76E8b8f71445",
DPP: "0xB76de21f04F677f07D9881174a1D8E624276314C",
DPPAdmin: "0x5515363c0412AdD5c72d3E302fE1bD7dCBCF93Fe",
CP: "0x18b0bD918b55f995Fd404B872404378A62cb403b",
ERC20: "0x85351262f7474ebe23ffacd633cf20a491f1325d",
MintableERC20: "0x0596908263ef2724fbfbcafa1c983fcd7a629038",
//Factory
DVMFactory: "0x72d220cE168C4f361dD4deE5D826a01AD8598f6C",
DPPFactory: "0x6B4Fa0bc61Eddc928e0Df9c7f01e407BfcD3e5EF",
CrowdPoolingFactory: "0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25",
ERC20Factory: "0x44D5dF24d5Ef52A791D6436Fa45A8D426f6de34e",
//Approve
DODOApprove: "0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149",
DODOApproveProxy: "0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619",
//Periphery
DODOIncentive: "0x989DcAA95801C527C5B73AA65d3962dF9aCe1b0C",
//Adpater
DODOV1Adapter: "0x9B64c81ba54eA51e1f6B7fefb3cfF8AA6F1e2A09",
DODOV2Adapter: "0xE55154D09265b18aC7CDAC6E646672A5460389a1",
UniAdapter: "0x043957f7554275b90c5178872faE851dcfC1089D",
//Proxy
DODOV2Proxy: "0xa356867fDCEa8e71AEaF87805808803806231FdC",
//vDODO
DODOCirculationHelper: "0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11",
Governance: "0x0000000000000000000000000000000000000000",
dodoTeam: "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0",
vDODOToken: "0xc4436fBAE6eBa5d95bf7d53Ae515F8A707Bd402A",
//Account
multiSigAddress: "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0",
defaultMaintainer: "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0",
}
}

56
config/heco-config.js Normal file
View File

@@ -0,0 +1,56 @@
module.exports = {
HECO_CONFIG: {
//TOKEN
WETH: "0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f",
CHI: "0x0000000000000000000000000000000000000000",
DODO: "0x7d5DF05F987f9B9dD2a13deF1793f943Ad2A5e93",
//Helper
DODOSellHelper: "0xA0Bb1FbC23a547a8D448C7c8a2336F69A9dBa1AF",
DODOCalleeHelper: "0xbd5cc9cf41a7dedaa7dfa6da189d3a522fe262d1",
DODOV1PmmHelper: "0xFB973C79C665C0AC69E74C67be90D4C7A6f23c59",
DODOV2RouteHelper: "0x01330a505D1A5EA2d91EA50f3f2742150fba93da",
//Template
CloneFactory: "0x5dCEAe50CF8C3B885430E0E79226C513Db0318f2",
FeeRateModel: "0x07911226E710dd0b9B1c4a2Dd3c85DeFd821D492",
PermissionManager: "0xC142FBA5948c372f49aDa159748EA224de6cC9AA",
DVM: "0x13742E431830980c59Ca8d8eC4D001F64C0D0f09",
DPP: "0x824083c29f99cd1E31D4A6bD859b1B5C2F0EA3EE",
DPPAdmin: "0x3232fd648997F89E614A021fdAc756d61F9030A1",
CP: "0x02869989ecc2D310C360861Ec2779f7027F65190",
ERC20: "0x62e1622a47c9fe74b2cf0bade5ecb8669ff9bfbf",
MintableERC20: "0xdd9de5ed7a11b1ed3314cd7f754f27a15dedc63f",
//Factory
DVMFactory: "0x496F9267054106Ea74F44BEFc2E3ea88126EB08f",
DPPFactory: "0xc18dd66CD9C9D1D8540ADbDe46C9a238C2713ff1",
CrowdPoolingFactory: "0x5949a2840865f5d9DdB37c2419060663473f3392",
ERC20Factory: "0x8476DE046e1923adD9002A73133230B9e5BE4127",
//Approve
DODOApprove: "0x67E849C7BC9735BFC8f6399171A94EA3BD80A19F",
DODOApproveProxy: "0x053b27B5b93f6F213084d8e2e1c9317D4B4Ffb28",
//Periphery
DODOIncentive: "0x94290Bf438697Fa684d8CE0aC07c09f0e82D4f74",
//Adpater
DODOV1Adapter: "0x9B63602c1FEd8292b76fb611B5de66a8fB7F8a77",
DODOV2Adapter: "0xF68a04C267e492A21F0818C357f83c665230C5ad",
UniAdapter: "0xDfa10eC79CE97689a7FeD409aEc3174681EF9602",
//Proxy
DODOV2Proxy: "0x9c7300731971d083FA640b12ef0BCbFD6D8DB232",
//vDODO
DODOCirculationHelper: "",
Governance: "",
dodoTeam: "",
vDODOToken: "",
//Account
multiSigAddress: "0xD93c8D2429a6b0269527f148F3A0e5D187B0b1Ca",
defaultMaintainer: "0xD93c8D2429a6b0269527f148F3A0e5D187B0b1Ca",
}
}

56
config/kovan-config.js Normal file
View File

@@ -0,0 +1,56 @@
module.exports = {
KOVAN_CONFIG: {
//TOKEN
WETH: "0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b",
CHI: "0x0000000000004946c0e9f43f4dee607b0ef1fa1c",
DODO: "0x854b0f89BAa9101e49Bfb357A38071C9db5d0DFa",
//Helper
DODOSellHelper: "0xbdEae617F2616b45DCB69B287D52940a76035Fe3",
DODOCalleeHelper: "0x36ce1831941d35c3588759B2D084E240a094ad4A",
DODOV1PmmHelper: "0xC972069473a686b1c11Bd9347D719c87e6745d39",
DODOV2RouteHelper: "0xcB3b6cdBe2e57D3e37feba0C55584992Cc1B973F",
//Template
CloneFactory: "0xf7959fe661124C49F96CF30Da33729201aEE1b27",
FeeRateModel: "0x57e5b46e400c0C31cA174C8E199fB5fE650DB18a",
PermissionManager: "0x82C87c5EB912762676E7a87Aad67D916317c7D0e",
DVM: "0x268EA583bc954678DeD93D4832F147604142aDaD",
DPP: "0xEAdc4943329Cb8139Ee3c8575f6a9B3659cd0591",
DPPAdmin: "0xf63e41A459D9AEcaE4bAE1278ef0ae84F7F2DE56",
CP: "0x973bEbaE41E79c2B4d9EaEE14c2aB85f43673dc3",
ERC20: "0x77d2e257241e6971688b08bda9f658f065d7bb41",
MintableERC20: "0xa45a64daba80757432fa4d654df12f65f020c13c",
//Factory
DVMFactory: "0x322F8014C125Da09314d3a68d4d9F427823F17FD",
DPPFactory: "0xC65F8087288aa0a118aa6F3228Ef9ecc8187F4b6",
CrowdPoolingFactory: "0x9e6E8985D52E91eDf1671f28Ca73bc4F3E219b72",
ERC20Factory: "0xCb1A2f64EfB02803276BFB5a8D511C4D950282a0",
//Approve
DODOApprove: "0xa375b128e139ae54EF7F189BC8fEb4624f1c2Afa",
DODOApproveProxy: "0xE2bf3e72E126f0AD4Aec07AdfA6cc345EEF43bDe",
//Periphery
DODOIncentive: "0x5cFCc14f7C8be8B138D9fDF7438391b0BFe0589F",
//Adpater
DODOV1Adapter: "0xfbA45094b82AAdA3297712073Ee0920b4090cd7c",
DODOV2Adapter: "0x0C652e999457DB6FD1842857C3a83867457176cB",
UniAdapter: "0x92FC2498B36d1b0Ad3F5315026Dd2529bE05a4Aa",
//Proxy
DODOV2Proxy: "0x85CAA68ae47f047aa01C48BCaA711CA70a950fFb",
//vDODO
DODOCirculationHelper: "",
Governance: "",
dodoTeam: "",
vDODOToken: "",
//Account
multiSigAddress: "",
defaultMaintainer: "",
}
}

56
config/mblocal-config.js Normal file
View File

@@ -0,0 +1,56 @@
module.exports = {
MBLOCAL_CONFIG: {
//TOKEN
WETH: "0x42e2EE7Ba8975c473157634Ac2AF4098190fc741",
CHI: "0x0000000000000000000000000000000000000000",
DODO: "0x5c4242beB94dE30b922f57241f1D02f36e906915",
//Helper
DODOSellHelper: "0xF8cef78E923919054037a1D03662bBD884fF4edf",
DODOCalleeHelper: "0xe573BCA813c741229ffB2488F7856C6cAa841041",
DODOV1PmmHelper: "0xBb0CC0fb3e0c06725c67167501f850B4900D6DB5",
DODOV2RouteHelper: "0x8e66867Ff57250AF985Da3a81eE480fb6889EA9B",
//Template
CloneFactory: "0xfE5D3c52F7ee9aa32a69b96Bfbb088Ba0bCd8EfC",
FeeRateModel: "0x92496871560a01551E1B4fD04540D7A519D5C19e",
PermissionManager: "0xDc552396caEc809752fED0c5E23fd3983766e758",
DVM: "0xD81C7319c85fcd6e1F0893b3988BeBab6247Adbc",
DPP: "0x596fB37d99bd679d1af76fBCB658f7a1a31A1205",
DPPAdmin: "0x4d6942683D051FF95804B08EF11F98A7F41C1b44",
CP: "0x79885EBC79783C9174faC36Ed99cD9467CB8cDbE",
ERC20: "0xe9CC152481642D7a3Ea207E3930067B19663770F",
MintableERC20: "0x0484C33Bad127FA77CC64d6475aDD6483c70BbB9",
//Factory
DVMFactory: "0x8d9c0eAc2AF186035b18c479E2261fF893283f83",
DPPFactory: "0xBF1fdCb2A1CAf1CA5662222417f0351043EEc19A",
CrowdPoolingFactory: "0x7f78c83A10b9AcDaB1572bC76FD44FF51feDdafE",
ERC20Factory: "0x4FBb399fB0E360e11DFF274090650C7e588F1af1",
//Approve
DODOApprove: "0xC7430D8919b54F85a723810FBceF2114482EC5D1",
DODOApproveProxy: "0xC683516e791c5E2b8e913dE0670d499927f54CEc",
//Periphery
DODOIncentive: "0x1bc238EAd60bdF5e94BB8f7205b6e75ACabACbC0",
//Adpater
DODOV1Adapter: "",
DODOV2Adapter: "",
UniAdapter: "",
//Proxy
DODOV2Proxy: "0x750C200d7c7C426da169742f705CA5268e1736b4",
//vDODO
DODOCirculationHelper: "",
Governance: "",
dodoTeam: "",
vDODOToken: "",
//Account
multiSigAddress: "",
defaultMaintainer: "",
}
}

56
config/mbtest-config.js Normal file
View File

@@ -0,0 +1,56 @@
module.exports = {
MBTEST_CONFIG: {
//TOKEN
WETH: "0x0e1630bd2bc047fF6338F78Dc45410e1c0Fc32a0",
CHI: "0x0000000000000000000000000000000000000000",
DODO: "0x1E7727eDad5a2ef47C5AB95a20FEd515735591B2",
//Helper
DODOSellHelper: "0xb61c30c1612504d334b39E5172D8215cb5Ad576C",
DODOCalleeHelper: "0x6211feD3b4f22e23Ac77EeB4F31562D17f5A352E",
DODOV1PmmHelper: "0x4D73053013F876e319f07B27B59158Cca01A64C5",
DODOV2RouteHelper: "0xC679Fe3200D0d3c53Ba5cd3dC8e7111eC2DF939b",
//Template
CloneFactory: "0x24B7AB1C9f099f00BCE536d8E3605B53C226623E",
FeeRateModel: "0xfFC36c9F7de34d793e431F784724bC6CB8449CaE",
PermissionManager: "0xB79b78C29756D820895774BfF84A447fEfAd373e",
DVM: "0x85913c7CF9F8624A7f2b2CD34149A214768233d7",
DPP: "0xc04dF41F6382A5dB5752533E0DC93123DaACeD8E",
DPPAdmin: "0x514c9Ae51a8Bf85F4f656F7226bD208F4995247c",
CP: "0x0AE9df8B24E2F3903441F84d632f655B6B93b9dF",
ERC20: "",
MintableERC20: "",
//Factory
DVMFactory: "0x3d1AF1F66Ee4800a1db87321C9B23ed971eEc2e2",
DPPFactory: "0xBAA57Ff6A08E183917746C999C3FF1dE95eE01fb",
CrowdPoolingFactory: "0x9557b4E0Fe6bd94544E4D43E52C5c8f8F771535b",
ERC20Factory: "",
//Approve
DODOApprove: "0x667A1d5947B2f81D56BFd872285F93BFBc73c632",
DODOApproveProxy: "0x7525A017EAa0feAaF8bA047d37062E03b2492312",
//Periphery
DODOIncentive: "0x9f871a98413C5fa0D72d0f2AB88C1d9cD58C3383",
//Adpater
DODOV1Adapter: "",
DODOV2Adapter: "",
UniAdapter: "",
//Proxy
DODOV2Proxy: "0x50d634E43F5aD7748cf2860760b887655524B593",
//vDODO
DODOCirculationHelper: "",
Governance: "",
dodoTeam: "",
vDODOToken: "",
//Account
multiSigAddress: "",
defaultMaintainer: "",
}
}

37
configAdapter.js Normal file
View File

@@ -0,0 +1,37 @@
const { ETH_CONFIG } = require("./config/eth-config");
const { BSC_CONFIG } = require("./config/bsc-config");
const { HECO_CONFIG } = require("./config/heco-config");
const { KOVAN_CONFIG } = require("./config/kovan-config");
const { MBTEST_CONFIG } = require("./config/mbtest-config");
const { MBLOCAL_CONFIG } = require("./config/mblocal-config");
exports.GetConfig = function (network, accounts) {
var CONFIG = {}
switch (network) {
case "kovan":
CONFIG = KOVAN_CONFIG
CONFIG.multiSigAddress = accounts[0]
CONFIG.defaultMaintainer = accounts[0]
break;
case "live":
CONFIG = ETH_CONFIG
break;
case "bsclive":
CONFIG = BSC_CONFIG
break;
case "heco":
CONFIG = HECO_CONFIG
break;
case "mbtestnet":
CONFIG = MBTEST_CONFIG
CONFIG.multiSigAddress = accounts[0]
CONFIG.defaultMaintainer = accounts[0]
break;
case "mbdev":
CONFIG = MBLOCAL_CONFIG
CONFIG.multiSigAddress = accounts[0]
CONFIG.defaultMaintainer = accounts[0]
break;
}
return CONFIG
}

View File

@@ -136,3 +136,45 @@ Deploy type: DODOMine
DODOMineAddress: 0x01f9BfAC04E6184e90bD7eaFD51999CE430Cc750
Add DODO Tx: 0x8d3491ce942c125d2c0541f5eb1d784e7ab6960a0218b9bd94dcbe23c7457f65
Set blockReward Tx: 0x2ad01291228653755cd000acd27b5283e5cefe7f7741a4f5934474ab2b0e69db
====================================================
network type: bsclive
Deploy time: 2021/3/1 下午9:36:19
Deploy type: FeeRateImpl
FeeRateImplAddress: 0x2b0d94Eb7A63B8a2909dE1CB3951ecF7Ae76D2fE
Init feeRateImpl Tx: 0xa068d42bf27fceebee49b4e16209190c37f06b898caf5fe5fc89e791a432a285
====================================================
network type: live
Deploy time: 2021/3/1 下午10:01:43
Deploy type: FeeRateImpl
FeeRateImplAddress: 0x4775b1858f1e417C9609D455C3Ad8751ec01daC4
Init feeRateImpl Tx: 0x315beb6888ca62d957bd4f84bca3452ba19e55179e1e55b7d40a3f1a83b3a438
====================================================
network type: mbtestnet
Deploy time: 2021/3/2 下午5:49:07
Deploy type: FeeRateImpl
FeeRateImplAddress: 0x1a3fa978909d86dF1244216b02733136b438D83E
====================================================
network type: mbtestnet
Deploy time: 2021/3/2 下午9:34:32
Deploy type: WETH9
WETH9Address: 0x0e1630bd2bc047fF6338F78Dc45410e1c0Fc32a0
====================================================
network type: mbtestnet
Deploy time: 2021/3/2 下午9:41:03
Deploy type: DODOToken
DODOTokenAddress: 0x1E7727eDad5a2ef47C5AB95a20FEd515735591B2
====================================================
network type: mbdev
Deploy time: 2021/3/3 上午8:59:59
Deploy type: DODOToken
DODOTokenAddress: 0xC2Bf5F29a4384b1aB0C063e1c666f02121B6084a
====================================================
network type: mbdev
Deploy time: 2021/3/3 下午11:02:11
Deploy type: DODOToken
DODOTokenAddress: 0x5c4242beB94dE30b922f57241f1D02f36e906915
====================================================
network type: mbdev
Deploy time: 2021/3/3 下午11:03:01
Deploy type: WETH9
WETH9Address: 0x42e2EE7Ba8975c473157634Ac2AF4098190fc741

View File

@@ -1,122 +0,0 @@
====================================================
network type: kovan
Deploy time: 2020/12/9 下午10:11:50
DODOSwapCalcHelper Address: 0x096b90D15AB8319f6829C96E7062556b74806988
====================================================
network type: bsclive
Deploy time: 2020/12/9 下午10:14:15
DODOSwapCalcHelper Address: 0xED3Ac3335a24331F1704df8CB456C88dCA282782
====================================================
network type: live
Deploy time: 2020/12/9 下午10:16:19
DODOSwapCalcHelper Address: 0x22C1a736DBE8200E6DF2f3D8F97c0D5749c1E257
====================================================
network type: live
Deploy time: 2020/12/12 下午12:29:38
Deploy type: Proxy
DODOApprove Address: 0x2B03B0B40C91808981915A1704BCC086ECC956dB
DODOProxyV1 Address: 0xf1AD611399eDD53f5729178853e00856D01f381E
DODOApprove setProxy tx: 0xb00c07780c0a6a6d2cd03430ae0cc69590b9aebb581bbb3556d2fb929ab115b6
AddWhiteList tx1: 0xb3e5cbd55c0de94916820a4cccfe4e72d48faeeb73a922f07e088c3634a37c54
AddWhiteList tx2: 0xc078005b280677d1da032c69adba7d95b28500492b447334bb77151b595a171b
AddWhiteList tx3: 0xe80dbdfc8855677c6bc94cc810e16e36a707c6ca0fd9a56abc625d0940d927a7
====================================================
network type: kovan
Deploy time: 2020/12/14 下午6:09:05
Deploy type: Proxy
DODOApprove Address: 0xdD666863E8eF7E9a3d2F47B5336F07d104040951
Set DODOApprove Owner tx: 0x94c841208b277e3cbd39a347da8a91cb5c26a884c801c085725057b6a22bcc66
DODOProxyV1 Address: 0x6720Aa404ce9dbf2fE1b6aB1A259663eB21Ce625
Set DODOProxyV1 Owner tx: 0xa7db5a8fef91b614304ea10e897b1eb4ca2eaf410da1b39d749427cba894ed93
DODOApprove unlockSetProxy tx: 0x0d33567cda1cf322090efcfb7e247be8069ac3f7090ae449dab35a8e2718b2fa
DODOApprove triggerSetProxy tx: 0xb3bb062ade1c0174dcd71934cff3fb666fb7ba0c678ce99900d87dad87fdf4c4
====================================================
network type: kovan
Deploy time: 2020/12/14 下午6:41:46
Deploy type: Proxy
DODOApprove Address: 0x7Ef9DCE3EB7CE03de5E98dB0AA7Da70B71B15ff7
DODOProxyV1 Address: 0x69dD38A07e50F4E4F571b89EAB12Ef2745aF8670
Set DODOProxyV1 Owner tx: 0xb5124a76363d999fe265e9e9dfab99f04052de613bd32d22b3fee1725f429abd
Set DODOApprove Owner And Init Set Proxy tx: 0x19d9f159b1a676bfa00a7c9edb1e251300d1d7319ec61d6fbb074ceae9a28c73
====================================================
network type: live
Deploy time: 2020/12/14 下午8:38:36
Deploy type: Proxy
DODOApprove Address: 0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149
DODOProxyV1 Address: 0xd0678Ec59d1337e29D1E1B1b6338f3E85D311F5e
Set DODOProxyV1 Owner tx: 0xb8bc4d84d39159c34c885b53fd345c935dc82214979e5885f9f9bc3ff59a3524
Set DODOApprove Owner And Init Set Proxy tx: 0x2199c008304d2c2a7ddfd18b26dbe4dd480aa7cd064a5ff85b87a9679b078702
====================================================
network type: live
Deploy time: 2020/12/15 下午6:05:56
Deploy type: Proxy
DODOSwapCalcHelperAddress: 0x7B9e97C4E3F008E854CF210E6948A0E40f70461B
====================================================
network type: live
Deploy time: 2020/12/15 下午6:31:06
Deploy type: Proxy
DODOSwapCalcHelperAddress: 0x3C02477f1B3C70D692be95a6e3805E02bba71206
====================================================
network type: kovan
Deploy time: 2020/12/15 下午6:44:08
Deploy type: Proxy
DODOSwapCalcHelperAddress: 0x0473FFd7039435F1FC794281F2a05830A1a0108a
====================================================
network type: bsclive
Deploy time: 2020/12/15 下午6:45:35
Deploy type: Proxy
DODOSwapCalcHelperAddress: 0xb0199C2c8ADF1E6c1e41De60A62E993406Cb8C02
====================================================
network type: bsclive
Deploy time: 2020/12/16 上午10:40:39
Deploy type: Proxy
DODOApprove Address: 0xa128Ba44B2738A558A1fdC06d6303d52D3Cef8c1
DODOProxyV1 Address: 0x0cA2d4BC266B1ad7a0787409AD7a0331D78Eea90
Set DODOProxyV1 Owner tx: 0x35c8405b4b4dfbac83971c622f4e086dc0f850ade69da408792eb9a835a683f4
Set DODOApprove Owner And Init Set Proxy tx: 0xb381ac8a87a834a6ab8cc63064153dd2c65261e7c43e5d1a504bcae11fb42a10
====================================================
network type: kovan
Deploy time: 2021/1/6 下午6:53:44
Deploy type: Proxy
DODOApprove Address: 0xE0eE1f72c0Ce4097F204beBD3B7fF508fb26292D
DODOProxyV1 Address: 0xf63baBc984ff05374dBCF0367Eaa2333663f2262
Set DODOProxyV1 Owner tx: 0x2d00a39ad1904a34b8baa7d6a69bc634ea2bc2cff0038bec79e922b7d0687e76
Set DODOApprove Owner And Init Set Proxy tx: 0xf368e47b184b3f0db035fa7a0838eabc46e6f24d98bc44cb0b1b1b8c73e31561
====================================================
network type: live
Deploy time: 2021/1/11 上午10:23:58
Deploy type: Proxy
DODOProxyV2 Address: 0x6ed3fd491F5B10384787B3fb162A72227FaFBf63
Set DODOProxyV2 Owner tx: 0x438ba2bfcee92e641a3e48709de31bd0e2fcb9866d30f6d73be837e3b42bd551
====================================================
network type: bsclive
Deploy time: 2021/1/15 上午12:16:50
Deploy type: Proxy
DODOProxyV2 Address: 0x66EEdd38f757d8F9A0b7B4f47d3f74A09C7a1F37
Set DODOProxyV2 Owner tx: 0x832e2f880fc6798d87ea1aa8f56fd8f6cdd14a9dde62278fd5a1716c073dcb7a
====================================================
network type: live
Deploy time: 2021/1/20 上午10:58:55
Deploy type: Proxy
DODOV1Proxy03 Address: 0x9A9942458754bDf65dCbCd0B6B4B842a7D4031AB
Set DODOProxy Owner tx: 0x2fd5f1abb016536e4557d609bdf52e2b790cbac85dead5097128e77b4357252d
====================================================
network type: bsclive
Deploy time: 2021/1/26 下午5:28:55
Deploy type: Proxy
DODOV1Proxy04 Address: 0xbe9a66e49503e84ae59a4d0545365AABedf33b40
Set DODOProxy Owner tx: 0xe5dd7a963446bb6a826c89a0c987baf0db463a649f3949fce6ef39b4d9649808
====================================================
network type: live
Deploy time: 2021/1/26 下午5:41:41
Deploy type: Proxy
DODOV1Proxy04 Address: 0xa2CB66EBB947D217f61510882096F6e95c1DE97D
Set DODOProxy Owner tx: 0xe49234c67bc710a7f4797aacbb2ef26fac458832f101e856d8113cc21721cd81
====================================================
network type: kovan
Deploy time: 2021/2/1 下午11:07:47
Deploy type: Proxy
====================================================
network type: kovan
Deploy time: 2021/2/1 下午11:08:57
Deploy type: Proxy

View File

@@ -1,176 +1,5 @@
====================================================
network type: kovan
Deploy time: 2020/12/7 下午3:15:53
Deploy type: V2
CloneFactoryAddress: 0xf7959fe661124C49F96CF30Da33729201aEE1b27
FeeRateModelTemplateAddress: 0xEF3137780B387313c5889B999D03BdCf9aeEa892
PermissionManagerTemplateAddress: 0x5D2Da09501d97a7bf0A8F192D2eb2F9Aa80d3241
ExternalValueTemplateAddress: 0xe0f813951dE2BB012f7Feb981669F9a7b5250A57
DefaultGasSourceAddress: 0xE0c0df0e0be7ec4f579503304a6C186cA4365407
DvmTemplateAddress: 0x460Ada67279Ff2ce8c87cb88F99070c6520Aa624
DvmAdminTemplateAddress: 0xbB9F79f6ac9e577B658E3B2E1340838d8965986B
DppTemplateAddress: 0x577c2cE26B8b5C8b3f7c57826Bf351ac7c21a441
DppAdminTemplateAddress: 0x402ace5a3e6Aa71FB942d309341F8867afcde302
DODOCalleeHelperAddress: 0x507EBbb195CF54E0aF147A2b269C08a38EA36989
DvmFactoryAddress: 0xaeF2cce5678e6e29f7a7C2A6f5d2Ce26df600dc1
DppFactoryAddress: 0x5935a606383Ba43C61FcE5E632357744a95e9dC3
DODOProxyV2 Address: 0xD4b15Ab0e1F06373dA7ccd9f01D5e9776674DB9e
DODOApprovce setProxy tx: 0x67c5c5b1883950baec753a99bff5e1c20bfb92f876cdcd03c90ae2aa0053d891
====================================================
network type: kovan
Deploy time: 2020/12/15 上午11:11:05
Deploy type: V2
ConstFeeRateModelTemplateAddress: 0x2ec9579Cf7ae77B4e538F56274501f518ABFeA2e
DefaultMtFeeRateAddress: 0xEfdE4225AC747136289979e29f1236527b2E4DB1
Init DefaultMtFeeRate Tx: 0x8f2f522627c9e98a51ebaf7cadf66a88c79bcece4bfb96da538299fc811c291f
DefaultPermissionAddress: 0xACc7E23368261e1E02103c4e5ae672E7D01f5797
Init DefaultPermissionAddress Tx: 0x40115ee57da686fddadc635a9048af0ba139b5fdd93f34a5ba79399a01b50c60
DvmTemplateAddress: 0x176a7DBbcC3Fb9EB1F04bfA806a6615A7C1De766
DvmAdminTemplateAddress: 0x210eF5260E1AcF26526b9CFe40b6fc7CD3D8b6B3
DppTemplateAddress: 0x6E3bF8eC796c52d6e25FBB3f116795397a239BA4
DppAdminTemplateAddress: 0x86366913A4ee1F6f01022aD42554EEAf4c5AC490
CpTemplateAddress: 0x967b6A116e882E3d2F940f3ae2f44fd842BbF189
DODOApprove Address: 0xC38ad4314bb44EE84cC2D4B2B1BBa4644550f172
DvmFactoryAddress: 0x545ba2178c5581f836D4d10BDa208288dD1a8Bf8
Init DvmFactory Tx: 0xd9412acda8972cd589c6e16fcabc9ede61e2737bc0076bf6a1ada3f771b2b525
UnownedDvmFactoryAddress: 0x564F5B6614Afa50BB61B9d0694f3326446Bd24EF
DppFactoryAddress: 0x6F050dAc0CC28E2cD227536deFD40fe2A1505a13
Init DppFactory Tx: 0xc7b27b3d0240a5938448ddf2be00df6f1ac93c1eaaf5bbb1eff28d188543ed83
CpFactoryAddress: 0xCE0fD3600E9dD81A6fB7E1d5Eed0F93a90Da184D
DODOProxyV2 Address: 0x7102A9AA2146557EA60a6319EB40e8C8d856e628
Init DODOProxyV2 Tx: 0xfd80f2545d8cb0d102bd8a9064bbc802e44aa16e23128256745e2f305b6da64a
DODOApprovce Init tx: 0x87e950811171b325701e0e94aae346614b5361ac0a0285f15383626709063e63
====================================================
network type: kovan
Deploy time: 2020/12/19 上午11:54:52
Deploy type: V2
DvmTemplateAddress: 0xb509d7BdbC9847a7bc4B73e96F92Ecf4058E3bc0
DvmAdminTemplateAddress: 0x45f455d7E233403F10b7AFCB0d0d0c0d775AFf63
DppTemplateAddress: 0xDaF105aCc7F83ac66dB7085D37123e047D1999c4
DppAdminTemplateAddress: 0xDfdd9e1693C3A6AF25307c9dA561021f9e685878
CpTemplateAddress: 0x59652F06fEdDe7780E8fa5C88CE850F67F26F0Fc
DvmFactoryAddress: 0x03db1C1C1Adf27A73DFe9BDc3B21D4c569c2D41e
Init DvmFactory Tx: 0xce8971eb6532857db32acd7d77f281a081544051dfa30e8c06c885c91b1fcfe3
UnownedDvmFactoryAddress: 0xc8A53F0fE35106762420E3b69866547BB4f389c2
DppFactoryAddress: 0x1B3Ce1Ac27C1C2d05743CE237aAF3406372049b1
Init DppFactory Tx: 0x26b70c5f33ee43141c95e70b6419fe193a25d38cbf9c69e8a16dbf76f6363078
CpFactoryAddress: 0x9F90AD19C15d7aF4291EB17b637DF78EaC639EA3
DODOProxyV2 Address: 0xB759D9b5451E186D3d9027fc3E5d1AD1415709Ac
Init DODOProxyV2 Tx: 0xfd68ccf19b77a2318ce30db8fec2edb99f8eab961f386b8c635e602eeab2379b
====================================================
network type: kovan
Deploy time: 2020/12/19 下午12:01:31
Deploy type: V2
DODOApprove Address: 0xa7Beb077e2A44243F1215F80dBb133Aa98A2143d
DODOProxyV2 Address: 0x852AF3De06Daaf5bBcb2B2B7a19D2b4Df15e488F
Init DODOProxyV2 Tx: 0x9420d8236486c0b8d46cf3155f52acd78ff71beba6456c3e7a6a65d47e9d3f7f
DODOApprove Init tx: 0x38c5ace45ae99654f94baf328d53f293320ec70b13093e8e645d6e858d9a85f1
====================================================
network type: kovan
Deploy time: 2020/12/22 上午10:30:38
Deploy type: HELPER V2
====================================================
network type: kovan
Deploy time: 2020/12/22 上午10:33:24
Deploy type: HELPER V2
DODOV2RouteHelper Address: 0xFb6B765d741AD6658C355Bec345F1718b7955763
====================================================
network type: kovan
Deploy time: 2020/12/22 上午11:25:38
Deploy type: V2
DvmTemplateAddress: 0xcD08659418F6C4315b9e6cE574e7a5159BED6D82
DppTemplateAddress: 0xa587a93e4d6c0586661DdD228EbaE41558F58589
DODOApprove Address: 0x2Cb248324dd52b2cF351d35F2a49E013f75607a3
DvmFactoryAddress: 0x029871152358F4f15b63064765960e358305Cd2c
Init DvmFactory Tx: 0xaaa9b96cfa6f84b1e20f39dcbb0e74444a7614302df4d4f86c5a8a7be7d69d30
UnownedDvmFactoryAddress: 0x91C63C9C60B53E7ab885e184bAA902eD30c44F98
DppFactoryAddress: 0x6D768bDe6eb51B1551d0d95c2909DDD370a61552
Init DppFactory Tx: 0x87da4b7f02c63970ecfb35028fd3c4fa0d5694e587c6d532d9c99fdf7d609b57
DODOProxyV2 Address: 0x4E9dC77254e0907873A349Ea273cc5E89d5A2d47
Init DODOProxyV2 Tx: 0x32c1ba330c40e91e492bbe73d8fef9c578d220e7bdf40e3c136a7e92700f7f2e
DODOApprove Init tx: 0x77ad672800fadedfc481445b95e14b5286e0f9f17370533fbcfa3ed3ab6cfafb
====================================================
network type: kovan
Deploy time: 2020/12/22 下午12:41:37
Deploy type: V2
DvmTemplateAddress: 0x0723d8FD20Cc802323877146e7cB6B88eF5bd1F0
DppTemplateAddress: 0xAfD2c1Eef42A490B5a98ACb7B814bA00D62843af
DODOApprove Address: 0x6eA356EA3c1780c02873591d93451Ed3f4509bEa
DvmFactoryAddress: 0x577481Bde7327e732f78e9f6AF44632CB8DDe80e
Init DvmFactory Tx: 0xa3d488cc0a17cd13bdf92cac43e447f46684921ccbe90125778a8af0d4920beb
UnownedDvmFactoryAddress: 0xc0184A5dBbe41d9e5F9B414Bf80F4a27b5446f4A
DppFactoryAddress: 0xC510D9c58aa226c698F56b22b86A3031b8cBf551
Init DppFactory Tx: 0x34bfb9de6c7b729ec87c6a2a0cfe3087897d282ce5a8000970b772b7d9d00bdc
DODOProxyV2 Address: 0xfEC85D8ea0E85ABa5b35aca959845878113BE108
Init DODOProxyV2 Tx: 0x71013c65158545383d36f62214ab58148e6a7e9ca2a7196679c6846d125aad93
DODOApprove Init tx: 0xe8fed4488058710fe5ad07cf62f5c41381af1946e7243a8053de9b1b177a7031
====================================================
network type: kovan
Deploy time: 2020/12/22 下午1:09:32
Deploy type: HELPER V2
DODOV2RouteHelper Address: 0xA5A1699FeDc110606AEF85BD05C961A54686306e
====================================================
network type: kovan
Deploy time: 2020/12/23 下午12:14:58
Deploy type: HELPER V2
DODOV2RouteHelper Address: 0xBABB5D327A38120B093878C5Dd809cb0f325bfFd
====================================================
network type: kovan
Deploy time: 2020/12/23 下午9:54:47
Deploy type: V2
DvmTemplateAddress: 0x35755759Eb9FCDeA6005e5967e732d67eea68EcF
DppTemplateAddress: 0x302A19bD1951a828264527FaAbEC8ec2f9de7024
DODOApprove Address: 0x99821c1a7C32D7A53B81098e20cc0fE07cC44601
DvmFactoryAddress: 0x6cbAE38DF513356878cF8e859A33E0eA92BfE023
Init DvmFactory Tx: 0xdbb4374216cd207617596eb991ad26a3fc7a47ba6563adf93b874ea10cd6be39
UnownedDvmFactoryAddress: 0x392F73cA7C6ec09B0C06B8a55e1490e3399ba3C2
DppFactoryAddress: 0x92fE64e923d3B2A2479fACfFF7DAE8a3056Dc4E1
Init DppFactory Tx: 0x407fec4324df2808358852b22f7ec6037d92bdb1e9b880a811e90a334cd6db4e
DODOProxyV2 Address: 0xdaE7617994772B6B1E3D74c907F7881FE86c7239
Init DODOProxyV2 Tx: 0x39321c35ccde44b24edc380b3cfba860694624708fa1de34a3c0ff31b7757e72
DODOApprove Init tx: 0xb02f340245a8a7c5fdd4f5c64e9137793cf238bfda348039eb97d8e2dabaf1ab
====================================================
network type: kovan
Deploy time: 2020/12/23 下午10:02:35
Deploy type: HELPER V2
DODOV2RouteHelper Address: 0x2255ca84C5Bc2df159d002d1839f0C018D2BAd63
====================================================
network type: kovan
Deploy time: 2020/12/24 上午11:39:38
Deploy type: V2
DvmTemplateAddress: 0x9d37C6BB2e3D62263099faAF2940C0De67a4FD6F
DppTemplateAddress: 0x75CC454c9771A7f1AF4848C4c3775C98b601563E
CpTemplateAddress: 0x60580b981f2670C872AF0119b21C6596Ad7C5D51
DODOApprove Address: 0x9F332B3a07536A2b0caaB3E3b9D2a5dFD6173c6c
DvmFactoryAddress: 0xF2a62693FB14b326C3719e5aeEF28e8e66dC954e
Init DvmFactory Tx: 0x111defacfa6730734bcc9fad7a095d1c1f3c058995ebaee7c6cae7545134c56a
DppFactoryAddress: 0x58Bc8D248AcbE95CE29CF893C6666D58AF92d941
Init DppFactory Tx: 0xe5d4f8149977021327e90bf5bd9a7857bb524f7fcd882f1bb00ded1652df6370
CpFactoryAddress: 0xD2d3c70C75E4Bb10eE366C8f54A06cCdDF5F3906
DODOV2RouteHelper Address: 0x3249f48a507588740d291c154a6b607521e4cDED
DODOProxyV2 Address: 0xd5C27770E8e2F43B959484971472a0019b17fA56
Init DODOProxyV2 Tx: 0xdb70bb4355e71060803df0fb9833e03a4e4e657af2afbf1e732cf996614ca8c2
DODOApprove Init tx: 0x10e6bc3c71ac60145c599acbcfeb7571173445b02756a7d98c7d4e6dbe6f4ecd
====================================================
network type: kovan
Deploy time: 2020/12/29 上午11:08:34
Deploy type: HELPER V2
DODOV2RouteHelper Address: 0x3aAfE7c2643807718EFE35D6D529A74255cA4319
====================================================
network type: kovan
Deploy time: 2020/12/29 下午3:32:59
Deploy type: HELPER V2
DODOV2RouteHelper Address: 0x3579B9f85B83C06B227CAAe5F22fC05afA223552
====================================================
network type: kovan
Deploy time: 2020/12/29 下午3:33:16
Deploy type: V2
DODOApprove Address: 0xeEA9F08eBfde6915AB1C0051F3eB2612DbA95d5D
DODOProxyV2 Address: 0x97B779AD504bbd5b1BFB50e57584a876Dc65171a
Init DODOProxyV2 Tx: 0xd04c400fb46a0dd1e30ac04e9bce3e353869ffcb8ab7de622e2a936a3344d7b0
DODOApprove Init tx: 0xa78fe0b42e29489c1395e4574531902e1bc7348268bb102b001e4f3ffd47e83a
====================================================
network type: kovan
Deploy time: 2021/1/8 下午8:28:05
Deploy type: V2
DvmTemplateAddress: 0xB13662Fcb9140dD573e74D76BACF2085A853C779
@@ -377,17 +206,6 @@ DODOApprove Init tx: 0x637222ffb3b5a2554430c4c260edb4264cf77643868324f7ff4a1fa3
DODOIncentive ChangeProxy tx: 0xc998dfbe92fecd5c884310b172aa512517f14c3b7f7ea9f5bafcb5a7044f3569
DODOIncentive OpenSwitch tx: 0xda77ec50379c7e18b7646bdf2efcdd461789484f3045ba3e548f86402a04c8b5
====================================================
network type: bsclive
Deploy time: 2021/1/22 上午10:56:25
====================================================
network type: kovan
Deploy time: 2021/1/22 下午12:09:47
Deploy type: V2 - Callee
====================================================
network type: kovan
Deploy time: 2021/1/22 下午12:10:43
Deploy type: V2 - Callee
====================================================
network type: kovan
Deploy time: 2021/1/22 下午12:12:05
Deploy type: V2 - Callee
@@ -537,12 +355,6 @@ DODOV2RouteHelper Address: 0xbe9a66e49503e84ae59a4d0545365AABedf33b40
DODOV2Proxy02 Address: 0xa356867fDCEa8e71AEaF87805808803806231FdC
Init DODOProxyV2 Tx: 0xf8e511f50c2f27836ace72e65d8a10e6253f5d5094a9e1f2e5fa5181d3c05f08
====================================================
network type: bsclive
Deploy time: 2021/1/26 下午5:29:51
====================================================
network type: live
Deploy time: 2021/1/26 下午5:42:23
====================================================
network type: kovan
Deploy time: 2021/2/1 下午11:09:38
Deploy type: V2
@@ -555,9 +367,6 @@ DODOApprove Init tx: 0x26d3f4be069eccf94b0b6d3ee1db07a534cadc98c4dd2b96fd5921d0
DODOIncentive ChangeProxy tx: 0x9564307e19b26aed9980d9ac007dc88b789450893540426618de4f1039f5584f
====================================================
network type: kovan
Deploy time: 2021/2/2 下午2:28:36
====================================================
network type: kovan
Deploy time: 2021/2/2 下午2:38:26
Deploy type: V2
DppTemplateAddress: 0x6b9Db3908ddFD853AD2A42Ab75b5de3f22f137a5
@@ -693,5 +502,66 @@ DODOV1Adapter Address: 0x9B63602c1FEd8292b76fb611B5de66a8fB7F8a77
DODOV2Adapter Address: 0xF68a04C267e492A21F0818C357f83c665230C5ad
UniAdapter Address: 0xDfa10eC79CE97689a7FeD409aEc3174681EF9602
====================================================
network type: heco
Deploy time: 2021/2/25 下午12:09:54
Deploy time: 2021/3/2 下午9:43:39
Deploy type: V2
DODOSellHelper Address: 0xb61c30c1612504d334b39E5172D8215cb5Ad576C
DODOCalleeHelperAddress: 0x6211feD3b4f22e23Ac77EeB4F31562D17f5A352E
DODOV1RouterHelper Address: 0x4D73053013F876e319f07B27B59158Cca01A64C5
CloneFactoryAddress: 0x24B7AB1C9f099f00BCE536d8E3605B53C226623E
DefaultMtFeeRateAddress: 0xfFC36c9F7de34d793e431F784724bC6CB8449CaE
Init DefaultMtFeeRateAddress Tx: 0x02cc538d236ab39be3cf9c6714e71fd5a2b99104db68a923c5eb02116112db9d
DefaultPermissionAddress: 0xB79b78C29756D820895774BfF84A447fEfAd373e
Init DefaultPermissionAddress Tx: 0x7cb14b506aae2c1f34d00d31416ef6a48f8f060fb7823f2f06aa6d41e758bc86
DvmTemplateAddress: 0x85913c7CF9F8624A7f2b2CD34149A214768233d7
DppTemplateAddress: 0xc04dF41F6382A5dB5752533E0DC93123DaACeD8E
DppAdminTemplateAddress: 0x514c9Ae51a8Bf85F4f656F7226bD208F4995247c
CpTemplateAddress: 0x0AE9df8B24E2F3903441F84d632f655B6B93b9dF
DODOApprove Address: 0x667A1d5947B2f81D56BFd872285F93BFBc73c632
DODOApproveProxy Address: 0x7525A017EAa0feAaF8bA047d37062E03b2492312
DODOIncentiveAddress: 0x9f871a98413C5fa0D72d0f2AB88C1d9cD58C3383
DODOIncentive Init tx: 0xa39806d2399266e223b088c307525423c052046be9874c6daf9141ad49f48ca5
DvmFactoryAddress: 0x3d1AF1F66Ee4800a1db87321C9B23ed971eEc2e2
Init DvmFactory Tx: 0x29b055a4506c79f2168cd267ecdb6f2a49ab493561f83ec3ce47fb681ecdeb33
DppFactoryAddress: 0xBAA57Ff6A08E183917746C999C3FF1dE95eE01fb
Init DppFactory Tx: 0x6e206ff457359e810f8c956b92c817924eeffb88cbe542fa2735acc49fbe55c6
CpFactoryAddress: 0x9557b4E0Fe6bd94544E4D43E52C5c8f8F771535b
Init CpFactory Tx: 0x47bb88c64e0a051c9bb2834c0bd68cfab7e5a0683dcd5191306864bf245d06bd
DODOV2RouteHelper Address: 0xC679Fe3200D0d3c53Ba5cd3dC8e7111eC2DF939b
DODOV2Proxy02 Address: 0x50d634E43F5aD7748cf2860760b887655524B593
Init DODOProxyV2 Tx: 0x2d435d5d6d605e2d6d4f7f896764df2bf14b5f67fb7e983835a3faf832005215
====================================================
network type: mbdev
Deploy time: 2021/3/3 下午11:03:38
Deploy type: V2
DODOSellHelper Address: 0xF8cef78E923919054037a1D03662bBD884fF4edf
DODOCalleeHelperAddress: 0xe573BCA813c741229ffB2488F7856C6cAa841041
DODOV1RouterHelper Address: 0xBb0CC0fb3e0c06725c67167501f850B4900D6DB5
CloneFactoryAddress: 0xfE5D3c52F7ee9aa32a69b96Bfbb088Ba0bCd8EfC
DefaultMtFeeRateAddress: 0x92496871560a01551E1B4fD04540D7A519D5C19e
Init DefaultMtFeeRateAddress Tx: 0xb1acc65600ba045845f1668d5a6d928e761b58e594185f388c456d95bcb849d2
DefaultPermissionAddress: 0xDc552396caEc809752fED0c5E23fd3983766e758
Init DefaultPermissionAddress Tx: 0xe71176be329c3ed57cf80b3e331a44dbfffc43cee34f5411294fcc45630f446b
DvmTemplateAddress: 0xD81C7319c85fcd6e1F0893b3988BeBab6247Adbc
DppTemplateAddress: 0x596fB37d99bd679d1af76fBCB658f7a1a31A1205
DppAdminTemplateAddress: 0x4d6942683D051FF95804B08EF11F98A7F41C1b44
CpTemplateAddress: 0x79885EBC79783C9174faC36Ed99cD9467CB8cDbE
ERC20TemplateAddress: 0xe9CC152481642D7a3Ea207E3930067B19663770F
MintableERC20TemplateAddress: 0x0484C33Bad127FA77CC64d6475aDD6483c70BbB9
====================================================
network type: mbdev
Deploy time: 2021/3/3 下午11:05:53
Deploy type: V2
ERC20FactoryAddress: 0x4FBb399fB0E360e11DFF274090650C7e588F1af1
DODOApprove Address: 0xC7430D8919b54F85a723810FBceF2114482EC5D1
DODOApproveProxy Address: 0xC683516e791c5E2b8e913dE0670d499927f54CEc
DODOIncentiveAddress: 0x1bc238EAd60bdF5e94BB8f7205b6e75ACabACbC0
DODOIncentive Init tx: 0xc866edfd1beb35c51c0081759297b358c486802fafdbb1020b76992e008a25fa
DvmFactoryAddress: 0x8d9c0eAc2AF186035b18c479E2261fF893283f83
Init DvmFactory Tx: 0x7150847e18fb8c2a4cf0781b227bdbc834b007a87f33318339699c1f6727d798
DppFactoryAddress: 0xBF1fdCb2A1CAf1CA5662222417f0351043EEc19A
Init DppFactory Tx: 0x5f861753b0481785db6b27b7bf9f126f4faae690a972344b1ecbe44e6818e445
CpFactoryAddress: 0x7f78c83A10b9AcDaB1572bC76FD44FF51feDdafE
Init CpFactory Tx: 0x93e987f7a665ff36e22275af6f399d5cbb88509107f7b223b8b7db353ba3e3f4
DODOV2RouteHelper Address: 0x8e66867Ff57250AF985Da3a81eE480fb6889EA9B
DODOV2Proxy02 Address: 0x750C200d7c7C426da169742f705CA5268e1736b4
Init DODOProxyV2 Tx: 0x47f86534b348ac846c8fe2014f7debe91a763ff708bb377774933985d5105a6c

View File

@@ -520,4 +520,4 @@ Deploy time: 2021/2/25 下午12:09:59
Mock TOKEN Tx: V2
ERC20TemplateAddress: 0x62E1622a47C9Fe74B2cF0BaDe5Ecb8669ff9bFBF
MintableERC20TemplateAddress: 0xdd9dE5eD7A11b1Ed3314CD7f754f27A15DeDC63f
ERC20FactoryAddress: 0x8476DE046e1923adD9002A73133230B9e5BE4127
ERC20FactoryAddress: 0x8476DE046e1923adD9002A73133230B9e5BE4127

View File

@@ -1,85 +0,0 @@
const fs = require("fs");
const { deploySwitch } = require('../truffle-config.js')
const file = fs.createWriteStream("../deploy-detail-v1.5.txt", { 'flags': 'a' });
let logger = new console.Console(file, file);
const DODOApproveProxy = artifacts.require("DODOApproveProxy");
const DODOV1Proxy04 = artifacts.require("DODOV1Proxy04");
const DODOSellHelper = artifacts.require("DODOSellHelper");
const DODOSwapCalcHelper = artifacts.require("DODOSwapCalcHelper");
module.exports = async (deployer, network, accounts) => {
let DODOSellHelperAddress = "";
let WETHAddress = "";
let DODOApproveProxyAddress = "";
let chiAddress = "";
let DODOSwapCalcHelperAddress = "";
let ownerAddress = ""
if (network == "kovan") {
DODOSellHelperAddress = "0xbdEae617F2616b45DCB69B287D52940a76035Fe3";
WETHAddress = "0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b";
DODOSwapCalcHelperAddress = "0x0473FFd7039435F1FC794281F2a05830A1a0108a";
DODOApproveProxyAddress = "";
chiAddress = "0x0000000000004946c0e9f43f4dee607b0ef1fa1c";
ownerAddress = accounts[0];
} else if (network == "live") {
DODOSellHelperAddress = "0x533da777aedce766ceae696bf90f8541a4ba80eb";
WETHAddress = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";
DODOApproveProxyAddress = "0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619";
chiAddress = "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c";
DODOSwapCalcHelperAddress = "0x3C02477f1B3C70D692be95a6e3805E02bba71206";
ownerAddress = "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0";
} else if (network == "bsclive") {
DODOSellHelperAddress = "0x0F859706AeE7FcF61D5A8939E8CB9dBB6c1EDA33";
WETHAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
DODOApproveProxyAddress = "0xB76de21f04F677f07D9881174a1D8E624276314C";
chiAddress = "0x0000000000000000000000000000000000000000";
DODOSwapCalcHelperAddress = "0xb0199C2c8ADF1E6c1e41De60A62E993406Cb8C02";
ownerAddress = "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b";
} else return;
if (deploySwitch.DEPLOY_V1) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
var tx;
logger.log("Deploy type: Proxy");
if (DODOApproveProxyAddress == "") {
await deployer.deploy(DODOApproveProxy);
DODOApproveProxyAddress = DODOApproveProxy.address;
logger.log("DODOApproveProxy Address: ", DODOApproveDODOApproveProxyAddressAddress);
}
if (DODOSellHelperAddress == "") {
await deployer.deploy(DODOSellHelper);
DODOSellHelperAddress = DODOSellHelper.address;
}
if (DODOSwapCalcHelperAddress == "") {
await deployer.deploy(DODOSwapCalcHelper, DODOSellHelperAddress);
DODOSwapCalcHelperAddress = DODOSwapCalcHelper.address;
logger.log("DODOSwapCalcHelperAddress: ", DODOSwapCalcHelperAddress);
}
await deployer.deploy(
DODOV1Proxy04,
DODOApproveProxyAddress,
DODOSellHelperAddress,
WETHAddress,
chiAddress
);
logger.log("DODOV1Proxy04 Address: ", DODOV1Proxy04.address);
const DODOProxyInstance = await DODOV1Proxy04.at(DODOV1Proxy04.address);
tx = await DODOProxyInstance.initOwner(ownerAddress);
logger.log("Set DODOProxy Owner tx: ", tx.tx);
// const DODOApproveInstance = await DODOApprove.at(DODOApproveAddress);
// tx = await DODOApproveInstance.init(ownerAddress, DODOProxyV1.address);
// logger.log("Set DODOApprove Owner And Init Set Proxy tx: ", tx.tx);
// var tx1 = await DODOProxyV1Instance.addWhiteList("0x111111125434b319222cdbf8c261674adb56f3ae");
// var tx2 = await DODOProxyV1Instance.addWhiteList("0xdef1c0ded9bec7f1a1670819833240f027b25eff");
// logger.log("AddWhiteList tx1: ", tx1.tx);
// logger.log("AddWhiteList tx2: ", tx2.tx);
}
};

View File

@@ -2,6 +2,7 @@ const fs = require("fs");
const { deploySwitch } = require('../truffle-config.js')
const file = fs.createWriteStream("../deploy-detail-v2.0.txt", { 'flags': 'a' });
let logger = new console.Console(file, file);
const { GetConfig } = require("../configAdapter.js")
const CloneFactory = artifacts.require("CloneFactory");
const FeeRateModelTemplate = artifacts.require("FeeRateModel");
@@ -35,173 +36,54 @@ const UniAdapter = artifacts.require("UniAdapter");
module.exports = async (deployer, network, accounts) => {
//Helper And Common
let DODOSellHelperAddress = "";
let WETHAddress = "";
let chiAddress = "";
let DODOCalleeHelperAddress = "";
let DODORouteV2HelperAddress = "";
let DODOV1PmmHelperAddress = "";
let CONFIG = GetConfig(network, accounts)
if (CONFIG == null) return;
//TOKEN
let WETHAddress = CONFIG.WETH;
let chiAddress = CONFIG.CHI;
let DODOTokenAddress = CONFIG.DODO;
//Helper
let DODOSellHelperAddress = CONFIG.DODOSellHelper;
let DODOCalleeHelperAddress = CONFIG.DODOCalleeHelper;
let DODORouteV2HelperAddress = CONFIG.DODOV2RouteHelper;
let DODOV1PmmHelperAddress = CONFIG.DODOV1PmmHelper;
//Template
let CloneFactoryAddress = "";
let DefaultMtFeeRateAddress = "";
let DefaultPermissionAddress = "";
let CloneFactoryAddress = CONFIG.CloneFactory;
let DefaultMtFeeRateAddress = CONFIG.FeeRateModel;
let DefaultPermissionAddress = CONFIG.PermissionManager;
let DvmTemplateAddress = CONFIG.DVM;
let DppTemplateAddress = CONFIG.DPP;
let DppAdminTemplateAddress = CONFIG.DPPAdmin;
let CpTemplateAddress = CONFIG.CP;
let ERC20TemplateAddress = CONFIG.ERC20;
let MintableERC20TemplateAddress = CONFIG.MintableERC20;
let DvmTemplateAddress = "";
let DppTemplateAddress = "";
let DppAdminTemplateAddress = "";
let CpTemplateAddress = "";
//Facotry
let DvmFactoryAddress = "";
let DppFactoryAddress = "";
let CpFactoryAddress = "";
let DvmFactoryAddress = CONFIG.DVMFactory;
let DppFactoryAddress = CONFIG.DPPFactory;
let CpFactoryAddress = CONFIG.CrowdPoolingFactory;
let ERC20FactoryAddress = CONFIG.ERC20Factory;
//Approve
let DODOApproveAddress = "";
let DODOApproveProxyAddress = "";
//Incentive
let DODOIncentiveAddress = "";
let DODOTokenAddress = "";
let DODOApproveAddress = CONFIG.DODOApprove;
let DODOApproveProxyAddress = CONFIG.DODOApproveProxy;
//Periphery
let DODOIncentiveAddress = CONFIG.DODOIncentive;
//Account
let multiSigAddress = "";
let defaultMaintainer = "";
let multiSigAddress = CONFIG.multiSigAddress;
let defaultMaintainer = CONFIG.defaultMaintainer;
//ERC20
let ERC20TemplateAddress = "";
let MintableERC20TemplateAddress = "";
let ERC20FactoryAddress = "";
if (network == "kovan") {
//Helper
DODOSellHelperAddress = "0xbdEae617F2616b45DCB69B287D52940a76035Fe3";
WETHAddress = "0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b";
chiAddress = "0x0000000000004946c0e9f43f4dee607b0ef1fa1c";
DODOCalleeHelperAddress = "0x36ce1831941d35c3588759B2D084E240a094ad4A";
DODOV1PmmHelperAddress = "0xC972069473a686b1c11Bd9347D719c87e6745d39";
DODORouteV2HelperAddress = "0xcB3b6cdBe2e57D3e37feba0C55584992Cc1B973F";
//Template
CloneFactoryAddress = "0xf7959fe661124C49F96CF30Da33729201aEE1b27";
DefaultMtFeeRateAddress = "0x57e5b46e400c0C31cA174C8E199fB5fE650DB18a";
DefaultPermissionAddress = "0x82C87c5EB912762676E7a87Aad67D916317c7D0e";
DvmTemplateAddress = "0x268EA583bc954678DeD93D4832F147604142aDaD";
DppTemplateAddress = "0xEAdc4943329Cb8139Ee3c8575f6a9B3659cd0591";
DppAdminTemplateAddress = "0xf63e41A459D9AEcaE4bAE1278ef0ae84F7F2DE56";
CpTemplateAddress = "0x973bEbaE41E79c2B4d9EaEE14c2aB85f43673dc3";
//Factory
DvmFactoryAddress = "0x322F8014C125Da09314d3a68d4d9F427823F17FD";
DppFactoryAddress = "0xC65F8087288aa0a118aa6F3228Ef9ecc8187F4b6";
CpFactoryAddress = "0x9e6E8985D52E91eDf1671f28Ca73bc4F3E219b72";
//Approve
DODOApproveAddress = "0xa375b128e139ae54EF7F189BC8fEb4624f1c2Afa";
DODOApproveProxyAddress = "0xE2bf3e72E126f0AD4Aec07AdfA6cc345EEF43bDe";
DODOIncentiveAddress = "0x5cFCc14f7C8be8B138D9fDF7438391b0BFe0589F";
DODOTokenAddress = "0x854b0f89BAa9101e49Bfb357A38071C9db5d0DFa";
//Account
multiSigAddress = accounts[0];
defaultMaintainer = accounts[0];
} else if (network == "live") {
//Helper
DODOSellHelperAddress = "0x533da777aedce766ceae696bf90f8541a4ba80eb";
WETHAddress = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";
chiAddress = "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c";
DODOCalleeHelperAddress = "0xef49a6DBa1C8DF859E49c17E9A485B439c7689d3";
DODORouteV2HelperAddress = "";
DODOV1PmmHelperAddress = "0x6373ceB657C83C91088d328622573FB766064Ac4";
//Template
CloneFactoryAddress = "0x5e5a7b76462e4bdf83aa98795644281bdba80b88";
DefaultMtFeeRateAddress = "0x5e84190a270333aCe5B9202a3F4ceBf11b81bB01";
DefaultPermissionAddress = "0x6B208E08dcF6BD51F50C5Da09d15B2D8E5C46Cf2";
DvmTemplateAddress = "0x2BBD66fC4898242BDBD2583BBe1d76E8b8f71445";
DppTemplateAddress = "0xB76de21f04F677f07D9881174a1D8E624276314C";
DppAdminTemplateAddress = "";
CpTemplateAddress = "0x18b0bD918b55f995Fd404B872404378A62cb403b";
//Factory
DvmFactoryAddress = "0x72d220cE168C4f361dD4deE5D826a01AD8598f6C";
DppFactoryAddress = "";
CpFactoryAddress = "0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25";
//Proxy
DODOApproveAddress = "0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149";
DODOApproveProxyAddress = "";
DODOIncentiveAddress = "0x989DcAA95801C527C5B73AA65d3962dF9aCe1b0C";
DODOTokenAddress = "0x43Dfc4159D86F3A37A5A4B3D4580b888ad7d4DDd";
//Account
multiSigAddress = "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0";
defaultMaintainer = "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0";
} else if (network == "bsclive") {
//Helper
DODOSellHelperAddress = "0x0F859706AeE7FcF61D5A8939E8CB9dBB6c1EDA33";
WETHAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
chiAddress = "0x0000000000000000000000000000000000000000";
DODOCalleeHelperAddress = "0xaaffAd1017D6a13E026A00121BF258C616B25f7C";
DODORouteV2HelperAddress = "0x1dc8D1f1600B7C1D39e6b60FBC7b021Bc4F9C993";
DODOV1PmmHelperAddress = "0x2BBD66fC4898242BDBD2583BBe1d76E8b8f71445";
//Template
CloneFactoryAddress = "0x03E2427859119E497EB856a166F616a2Ce5f8c88";
DefaultMtFeeRateAddress = "0x18DFdE99F578A0735410797e949E8D3e2AFCB9D2";
DefaultPermissionAddress = "0x729f7f44bf64Ce814716b6261e267DbE6cdf021c";
DvmTemplateAddress = "0xC3BeD579CaB3EC29B22D9AB99F4E586af42496b9";
DppTemplateAddress = "0x85351262f7474Ebe23FfAcD633cf20A491F1325D";
DppAdminTemplateAddress = "0x44D5dF24d5Ef52A791D6436Fa45A8D426f6de34e";
CpTemplateAddress = "0x041ABa00c57Dd47abC37A2931dF569a2A2cc57Be";
//Factory
DvmFactoryAddress = "0x790B4A80Fb1094589A3c0eFC8740aA9b0C1733fB";
DppFactoryAddress = "0xAfe0A75DFFb395eaaBd0a7E1BBbd0b11f8609eeF";
CpFactoryAddress = "0x778DF5B12170e8af8dF94356BfC864E57CE185DC";
//Proxy
DODOApproveAddress = "0xa128Ba44B2738A558A1fdC06d6303d52D3Cef8c1";
DODOApproveProxyAddress = "0xB76de21f04F677f07D9881174a1D8E624276314C";
DODOIncentiveAddress = "0x4EE6398898F7FC3e648b3f6bA458310ac29cD352";
DODOTokenAddress = "0x67ee3Cb086F8a16f34beE3ca72FAD36F7Db929e2";
//Account
multiSigAddress = "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b";
defaultMaintainer = "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b";
} else if (network == 'heco') {
//Helper
DODOSellHelperAddress = "0xA0Bb1FbC23a547a8D448C7c8a2336F69A9dBa1AF";
WETHAddress = "0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f";
chiAddress = "0x0000000000000000000000000000000000000000";
DODOCalleeHelperAddress = "0xbd5cc9cf41a7dedaa7dfa6da189d3a522fe262d1";
DODORouteV2HelperAddress = "";
DODOV1PmmHelperAddress = "0xFB973C79C665C0AC69E74C67be90D4C7A6f23c59";
//Template
CloneFactoryAddress = "0x5dCEAe50CF8C3B885430E0E79226C513Db0318f2";
DefaultMtFeeRateAddress = "0x07911226E710dd0b9B1c4a2Dd3c85DeFd821D492";
DefaultPermissionAddress = "0xC142FBA5948c372f49aDa159748EA224de6cC9AA";
DvmTemplateAddress = "0x13742E431830980c59Ca8d8eC4D001F64C0D0f09";
DppTemplateAddress = "";
DppAdminTemplateAddress = "0x3232fd648997F89E614A021fdAc756d61F9030A1";
CpTemplateAddress = "0x02869989ecc2D310C360861Ec2779f7027F65190";
//Factory
DvmFactoryAddress = "";
DppFactoryAddress = "";
CpFactoryAddress = "";
//Proxy
DODOApproveAddress = "";
DODOApproveProxyAddress = "";
DODOIncentiveAddress = "0x94290Bf438697Fa684d8CE0aC07c09f0e82D4f74";
DODOTokenAddress = "0x7d5DF05F987f9B9dD2a13deF1793f943Ad2A5e93";
//Account
// multiSigAddress = "0xD93c8D2429a6b0269527f148F3A0e5D187B0b1Ca";
multiSigAddress = accounts[0];
defaultMaintainer = accounts[0];
} else return;
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
if (deploySwitch.CALLEE) {
await deployer.deploy(DODOCalleeHelper, WETHAddress);
DODOCalleeHelperAddress = DODOCalleeHelper.address;
logger.log("DODOCalleeHelperAddress: ", DODOCalleeHelperAddress);
}
if (deploySwitch.ADAPTER) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: V2 - Adapter");
await deployer.deploy(DODOV1Adapter, DODOSellHelperAddress)
logger.log("DODOV1Adapter Address: ", DODOV1Adapter.address);
await deployer.deploy(DODOV2Adapter)
@@ -210,33 +92,12 @@ module.exports = async (deployer, network, accounts) => {
logger.log("UniAdapter Address: ", UniAdapter.address);
}
if (deploySwitch.ERC20) {
logger.log("Deploy type: V2 - ERC20 Factory");
if (ERC20TemplateAddress == "") {
await deployer.deploy(ERC20Template);
ERC20TemplateAddress = ERC20Template.address;
logger.log("ERC20TemplateAddress: ", ERC20TemplateAddress);
}
if (MintableERC20TemplateAddress == "") {
await deployer.deploy(MintableERC20Template);
MintableERC20TemplateAddress = MintableERC20Template.address;
logger.log("MintableERC20TemplateAddress: ", MintableERC20TemplateAddress);
}
if (ERC20FactoryAddress == "") {
await deployer.deploy(
ERC20Factory,
CloneFactoryAddress,
ERC20TemplateAddress,
MintableERC20TemplateAddress
);
ERC20FactoryAddress = ERC20Factory.address;
logger.log("ERC20FactoryAddress: ", ERC20FactoryAddress);
}
}
if (deploySwitch.DEPLOY_V2) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: V2");
if (DODOTokenAddress == "") return;
//Helper
if (DODOSellHelperAddress == "") {
@@ -302,6 +163,28 @@ module.exports = async (deployer, network, accounts) => {
logger.log("CpTemplateAddress: ", CpTemplateAddress);
}
if (ERC20TemplateAddress == "") {
await deployer.deploy(ERC20Template);
ERC20TemplateAddress = ERC20Template.address;
logger.log("ERC20TemplateAddress: ", ERC20TemplateAddress);
}
if (MintableERC20TemplateAddress == "") {
await deployer.deploy(MintableERC20Template);
MintableERC20TemplateAddress = MintableERC20Template.address;
logger.log("MintableERC20TemplateAddress: ", MintableERC20TemplateAddress);
}
if (ERC20FactoryAddress == "") {
await deployer.deploy(
ERC20Factory,
CloneFactoryAddress,
ERC20TemplateAddress,
MintableERC20TemplateAddress
);
ERC20FactoryAddress = ERC20Factory.address;
logger.log("ERC20FactoryAddress: ", ERC20FactoryAddress);
}
//Approve
if (DODOApproveAddress == "") {
await deployer.deploy(DODOApprove);

View File

@@ -3,12 +3,13 @@ const Web3 = require('web3');
const { deploySwitch } = require('../truffle-config.js')
const file = fs.createWriteStream("../kovan-mock-v2.0.txt", { 'flags': 'a' });
let logger = new console.Console(file, file);
const { GetConfig } = require("../configAdapter.js")
const CloneFactory = artifacts.require("CloneFactory");
const ERC20Template = artifacts.require("InitializableERC20");
const MintableERC20Template = artifacts.require("InitializableMintableERC20");
const ERC20Factory = artifacts.require("ERC20Factory");
const DODOProxyV2 = artifacts.require("DODOV2Proxy01");
const DODOProxyV2 = artifacts.require("DODOV2Proxy02");
const DVMFactory = artifacts.require("DVMFactory");
const DPPFactory = artifacts.require("DPPFactory");
@@ -58,32 +59,18 @@ const POOL_PARAM = [
];
module.exports = async (deployer, network, accounts) => {
// if (network != "kovan") return;
let CloneFactoryAddress = "";
let ERC20TemplateAddress = "";
let MintableERC20TemplateAddress = "";
let ERC20FactoryAddress = "";
if (network != "kovan") return;
let CONFIG = GetConfig(network, accounts)
let CloneFactoryAddress = CONFIG.CloneFactory;
let ERC20TemplateAddress = CONFIG.ERC20;
let MintableERC20TemplateAddress = CONFIG.MintableERC20;
let ERC20FactoryAddress = CONFIG.ERC20Factory;
let DPPFactoryAddress = "";
let DVMFactoryAddress = "";
let DODOApproveAddress = "";
let DODOProxyV2Address = "";
if (network == "kovan") {
CloneFactoryAddress = "0xf7959fe661124C49F96CF30Da33729201aEE1b27";
ERC20TemplateAddress = "0x77d2e257241e6971688b08bdA9F658F065d7bb41";
MintableERC20TemplateAddress = "0xA45a64DAba80757432fA4d654Df12f65f020C13C";
ERC20FactoryAddress = "0xCb1A2f64EfB02803276BFB5a8D511C4D950282a0";
let DPPFactoryAddress = CONFIG.DPPFactory;
let DVMFactoryAddress = CONFIG.DVMFactory;
let DODOApproveAddress = CONFIG.DODOApprove;
let DODOProxyV2Address = CONFIG.DODOV2Proxy;
DPPFactoryAddress = "0x9fA487762d4329eBDD83a00a82C8a02719Fdf512";
DVMFactoryAddress = "0x322F8014C125Da09314d3a68d4d9F427823F17FD";
DODOApproveAddress = "0x4A354b8d0DDb7083f066bDaC1f50d23DE221B01C";
DODOProxyV2Address = "0x5b3faEAa344F8134a7E0A269a9dFb3C7898b090D";
} else if (network == "heco") {
CloneFactoryAddress = "0x5dCEAe50CF8C3B885430E0E79226C513Db0318f2";
ERC20TemplateAddress = "";
MintableERC20TemplateAddress = "";
ERC20FactoryAddress = "";
}
const provider = new Web3.providers.HttpProvider("https://kovan.infura.io/v3/22d4a3b2df0e47b78d458f43fe50a199");
@@ -93,74 +80,11 @@ module.exports = async (deployer, network, accounts) => {
const web3 = new Web3(provider)
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
if (deploySwitch.MOCK_TARGET_POOL) {
logger.log("Manual add target Pool: V2");
var tx;
const token0Addr = "0xCcf0733cA7B6299D59b1Bddf87f3a8AAaD87461F";
const quote0Addr = "0x43688f367eb83697c3ca5d03c5055b6bd6f6ac4b";
const token0 = await ERC20Template.at(token0Addr);
const quote0 = await ERC20Template.at(quote0Addr);
tx = await token0.approve(DODOApproveAddress, "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
logger.log("Approve:" + token0Addr + " Tx:", tx.tx);
tx = await quote0.approve(DODOApproveAddress, "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
logger.log("Approve:" + quote0Addr + " Tx:", tx.tx);
const DODOProxyV2Instance = await DODOProxyV2.at(DODOProxyV2Address);
const DPPFactoryInstance = await DPPFactory.at(DPPFactoryAddress);
const baseInAmount = web3.utils.toWei("0", 'ether');
const quoteInAmount = web3.utils.toWei("0", 'mwei');
const deadline = Math.floor(new Date().getTime() / 1000 + 60 * 10);
//DPP Pool
tx = await DODOProxyV2Instance.createDODOPrivatePool(
token0Addr,
quote0Addr,
baseInAmount,
quoteInAmount,
'0',
'1000000',
'1000000000000000000',
false,
deadline
);
var poolAddress = await DPPFactoryInstance._REGISTRY_(token0Addr, quote0Addr, 0);
logger.log("Create DPP: " + token0Addr + "-" + quote0Addr + " Pool:" + poolAddress + " Tx:", tx.tx);
}
if (deploySwitch.MANUAL_ADD_POOL) {
logger.log("Manual add Pool: V2");
const DPPFactoryInstance = await DPPFactory.at(DPPFactoryAddress);
var tx = await DPPFactoryInstance.addPoolByAdmin(
"0x7e83d9d94837ee82f0cc18a691da6f42f03f1d86",
"0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b",
"0x69c8a7fc6e05d7aa36114b3e35f62deca8e11f6e",
"0x5e6e4B49bd79B76850650DB670Ca470ccC19d854"
);
logger.log("Manual add Pool Tx:" + tx.tx);
}
if (deploySwitch.MOCK_V2_SWAP) {
logger.log("Mock SWAP Tx: V2");
const DODOProxyV2Instance = await DODOProxyV2.at(DODOProxyV2Address);
var tx = await DODOProxyV2Instance.dodoSwapV2TokenToToken(
accounts[0],
"0x43688f367eb83697c3ca5d03c5055b6bd6f6ac4b",
"0xd8C30a4E866B188F16aD266dC3333BD47F34ebaE",
web3.utils.toWei("10", 'mwei'),
0,
['0x1d4f55C99BEF84ED889699Be64A691c6651F847E'],
[1],
Math.floor(new Date().getTime() / 1000 + 60 * 10)
);
logger.log("Swap Tx:" + tx.tx);
}
if (deploySwitch.MOCK_V2_POOL) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Mock POOL Tx: V2");
var tx;
{//Approve when change DODOApprove Address
@@ -245,6 +169,9 @@ module.exports = async (deployer, network, accounts) => {
}
if (deploySwitch.MOCK_TOKEN) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Mock TOKEN Tx: V2");
if (CloneFactoryAddress == "") {
await deployer.deploy(CloneFactory);

View File

@@ -2,56 +2,35 @@ const fs = require("fs");
const { deploySwitch } = require('../truffle-config.js')
const file = fs.createWriteStream("../deploy-detail-periphery.txt", { 'flags': 'a' });
let logger = new console.Console(file, file);
const { GetConfig } = require("../configAdapter.js")
const DODOBscToken = artifacts.require("DODOBscToken");
const DODORecharge = artifacts.require("DODORecharge");
const DODOMigrationBSC = artifacts.require("DODOMigrationBSC");
const vDODOToken = artifacts.require("vDODOToken");
const DODOCirculationHelper = artifacts.require("DODOCirculationHelper");
const DODOApproveProxy = artifacts.require("DODOApproveProxy");
const DODOMine = artifacts.require("DODOMine");
const FeeRateImpl = artifacts.require("FeeRateImpl");
const WETH9 = artifacts.require("WETH9");
const DODOToken = artifacts.require("DODOToken");
module.exports = async (deployer, network, accounts) => {
let CONFIG = GetConfig(network, accounts)
if (CONFIG == null) return;
let DODOTokenAddress = "";
let DODOApproveProxyAddress = "";
let DODOTokenAddress = CONFIG.DODO;
let DODOApproveProxyAddress = CONFIG.DODOApproveProxy;
let DODOCirculationHelperAddress = "";
let GovernanceAddress = "";
let vDODOTokenAddress = "";
let dodoTeam = "";
let DODOCirculationHelperAddress = CONFIG.DODOCirculationHelper;
let GovernanceAddress = CONFIG.Governance;
let vDODOTokenAddress = CONFIG.vDODOToken;
let dodoTeam = CONFIG.dodoTeam;
if (network == "kovan") {
DODOTokenAddress = "0x854b0f89BAa9101e49Bfb357A38071C9db5d0DFa";
DODOApproveProxyAddress = "0xE2bf3e72E126f0AD4Aec07AdfA6cc345EEF43bDe";
DODOCirculationHelperAddress = "";
vDODOTokenAddress = "0xf7119Bf8bE41Dd9080Bd0A9AB04788B5EcA140d5";
GovernanceAddress = "0x0000000000000000000000000000000000000000";
//Account
multiSigAddress = accounts[0];
dodoTeam = "0xaac153c1344cA14497A5dd22b1F70C28793625aa";
} else if (network == "live") {
DODOTokenAddress = "0x43dfc4159d86f3a37a5a4b3d4580b888ad7d4ddd";
DODOApproveProxyAddress = "0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619";
DODOCirculationHelperAddress = "";
vDODOTokenAddress = "0xc4436fBAE6eBa5d95bf7d53Ae515F8A707Bd402A";
GovernanceAddress = "0x0000000000000000000000000000000000000000";
//Account
multiSigAddress = "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0";
dodoTeam = "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0";
} else if (network == "bsclive") {
DODOTokenAddress = "0x67ee3Cb086F8a16f34beE3ca72FAD36F7Db929e2";
DODOApproveProxyAddress = "0xB76de21f04F677f07D9881174a1D8E624276314C";
//Account
multiSigAddress = "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b";
} else return;
let multiSigAddress = CONFIG.multiSigAddress;
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
if(deploySwitch.FEERATEIMPL) {
if (deploySwitch.FEERATEIMPL) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: FeeRateImpl");
await deployer.deploy(FeeRateImpl);
var FeeRateImplAddress = FeeRateImpl.address;
@@ -60,15 +39,37 @@ module.exports = async (deployer, network, accounts) => {
var tx = await feeRateImplInstance.initOwner(multiSigAddress);
logger.log("Init feeRateImpl Tx:", tx.tx);
}
if (deploySwitch.DODO) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: DODOToken");
await deployer.deploy(DODOToken);
logger.log("DODOTokenAddress: ", DODOToken.address);
}
if (deploySwitch.WETH) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: WETH9");
await deployer.deploy(WETH9);
var WETH9Address = WETH9.address;
logger.log("WETH9Address: ", WETH9Address);
}
if (deploySwitch.MINE) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: DODOMine");
await deployer.deploy(DODOMine, DODOTokenAddress, 5008500);
DODOMineAddress = DODOMine.address;
logger.log("DODOMineAddress: ", DODOMineAddress);
const dodoMineInstance = await DODOMine.at(DODOMineAddress);
//Add dodo
var tx = await dodoMineInstance.addLpToken(DODOTokenAddress,"3000000000000000000000",true);
var tx = await dodoMineInstance.addLpToken(DODOTokenAddress, "3000000000000000000000", true);
logger.log("Add DODO Tx:", tx.tx);
//set BLockReward
tx = await dodoMineInstance.setReward("1000000000000000", true);
@@ -78,9 +79,12 @@ module.exports = async (deployer, network, accounts) => {
//transfer owner
}
if (deploySwitch.DODORecharge) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: DODORecharge");
await deployer.deploy(DODORecharge, DODOTokenAddress, DODOApproveProxyAddress);
DODORechargeAddress = DODORecharge.address;
@@ -90,36 +94,11 @@ module.exports = async (deployer, network, accounts) => {
logger.log("Init DODORechargeAddress Tx:", tx.tx);
}
if (deploySwitch.DODOBscToken && (network == "bsclive")) {
logger.log("Deploy type: DODOBscToken");
await deployer.deploy(DODOBscToken);
DODOBscTokenAddress = DODOBscToken.address;
logger.log("DODOBscTokenAddress: ", DODOBscTokenAddress);
const dodoBscTokenInstance = await DODOBscToken.at(DODOBscTokenAddress);
var tx = await dodoBscTokenInstance.initOwner("0x9c59990ec0177d87ED7D60A56F584E6b06C639a2");
logger.log("Init DODOBscTokenAddress Tx:", tx.tx);
}
if (deploySwitch.BSCMigration && (network !== "bsclive")) {
logger.log("Deploy type: DODOMigrationBSC");
await deployer.deploy(DODOMigrationBSC, DODOTokenAddress, DODOApproveProxyAddress);
DODOMigrationBSCAddress = DODOMigrationBSC.address;
logger.log("DODOMigrationBSCAddress: ", DODOMigrationBSCAddress);
const dodoMigrationBscInstance = await DODOMigrationBSC.at(DODOMigrationBSCAddress);
var tx = await dodoMigrationBscInstance.initOwner(multiSigAddress);
logger.log("Init DODOMigrationBSCAddress Tx:", tx.tx);
if (network == 'kovan') {
//ApproveProxy add
const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
tx = await DODOApproveProxyInstance.unlockAddProxy(DODOMigrationBSCAddress);
logger.log("DODOApproveProxy Unlock tx: ", tx.tx);
tx = await DODOApproveProxyInstance.addDODOProxy();
logger.log("DODOApproveProxy add tx: ", tx.tx);
}
}
if (deploySwitch.vDODOToken) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: vDODOToken");
if (vDODOTokenAddress == "") {
@@ -146,12 +125,12 @@ module.exports = async (deployer, network, accounts) => {
logger.log("Init DODOCirculationHelperAddress Tx:", tx.tx);
}
if(network == 'kovan') {
if (network == 'kovan') {
const vDODOTokenInstance = await vDODOToken.at(vDODOTokenAddress);
//updateDODOCirculationHelper
var tx = await vDODOTokenInstance.updateDODOCirculationHelper(DODOCirculationHelperAddress);
logger.log("vDODOToken setDODOCirculationHelper tx: ", tx.tx);
//ApproveProxy add
// const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
// tx = await DODOApproveProxyInstance.unlockAddProxy(vDODOTokenAddress);
@@ -162,7 +141,7 @@ module.exports = async (deployer, network, accounts) => {
// //Mint DODO first
// tx = await vDODOTokenInstance.mint("100000000000000000000000",dodoTeam);
// logger.log("vDODOToken first mint tx: ", tx.tx);
// //preDepositedBlockReward
// tx = await vDODOTokenInstance.preDepositedBlockReward("100000000000000000000000");
// logger.log("vDODOToken injected dodo tx: ", tx.tx);

View File

@@ -38,21 +38,17 @@ module.exports = {
* $ truffle test --network <network-name>
*/
deploySwitch: {
DEPLOY_V1: false,
DEPLOY_V2: false,
ADAPTER: false,
MOCK_TOKEN: true,
MOCK_V2_POOL: false,
MOCK_V2_SWAP: false,
MANUAL_ADD_POOL: false,
MOCK_TARGET_POOL: false,
BSCMigration: false,
DODOBscToken: false,
vDODOToken: false,
CALLEE: false,
DODORecharge: false,
MINE: false,
FEERATEIMPL: false
DEPLOY_V1: false,
DEPLOY_V2: false,
ADAPTER: false,
MOCK_TOKEN: false,
MOCK_V2_POOL: false,
vDODOToken: false,
DODORecharge: false,
MINE: false,
FEERATEIMPL: false,
WETH: false,
DODO: false
},
networks: {
@@ -69,6 +65,7 @@ module.exports = {
gas: 1000000000,
gasPrice: 1,
},
kovan: {
networkCheckTimeout: 100000,
provider: function () {
@@ -79,16 +76,18 @@ module.exports = {
network_id: 42,
skipDryRun: true
},
live: {
networkCheckTimeout: 100000,
provider: function () {
return new HDWalletProvider(privKey, "https://mainnet.infura.io/v3/" + infuraId);
},
gas: 6000000,
gasPrice: 115000000000,
gasPrice: 120000000000,
network_id: 1,
skipDryRun: true
},
bsclive: {
provider: function () {
return new HDWalletProvider(privKey, "https://bsc-dataseed1.binance.org");
@@ -98,6 +97,7 @@ module.exports = {
timeoutBlocks: 200,
skipDryRun: true
},
heco: {
provider: function () {
return new HDWalletProvider(privKey, "https://http-mainnet.hecochain.com");
@@ -105,6 +105,21 @@ module.exports = {
gasPrice: 1500000000,
network_id: 128
},
mbtestnet: {
provider: () => {
return new HDWalletProvider(privKey, 'https://rpc.testnet.moonbeam.network');
},
network_id: 1287,
},
mbdev: {
provider: () => {
return new HDWalletProvider(privKey, 'http://localhost:9933/')
},
network_id: 1281,
},
coverage: {
host: "127.0.0.1",
port: 6545,