From 2403081ca542459324d221468f58f6a769d48b0d Mon Sep 17 00:00:00 2001 From: owen05 Date: Fri, 2 Jul 2021 16:37:46 +0800 Subject: [PATCH] deploy erc20V2 --- config/arb-config.js | 6 +++--- config/bsc-config.js | 6 +++--- config/eth-config.js | 6 +++--- config/heco-config.js | 6 +++--- config/matic-config.js | 6 +++--- deploy-detail-periphery.txt | 32 ++++++++++++++++++++++++++++++++ truffle-config.js | 16 +++++++++------- 7 files changed, 56 insertions(+), 22 deletions(-) diff --git a/config/arb-config.js b/config/arb-config.js index c74bb2d..0fd60ac 100644 --- a/config/arb-config.js +++ b/config/arb-config.js @@ -21,9 +21,9 @@ module.exports = { DPPAdmin: "0x1dc8D1f1600B7C1D39e6b60FBC7b021Bc4F9C993", CP: "0x8F8Dd7DB1bDA5eD3da8C9daf3bfa471c12d58486", - ERC20: "0xC3528D128CC227fd60793007b5e3FdF7c2945282", + ERC20: "0xBb245F54569841906eC7eDFFf72a910557B81378", MintableERC20: "0x70eFB31271C0796833f80dA4E6538d05B2AFA72C", - CustomERC20: "", + CustomERC20: "0xcE2a934933465E187c95AcAce60BC650a06aD373", //Factory DVMFactory: "0xb0C7cB15b52b0093130487209e96CFeC0Ba4Ff66", @@ -32,7 +32,7 @@ module.exports = { UpCpFactory: "0x69f52AC40185A2A005D49114F0B77b7bA856F0a0", CrowdPoolingFactory: "0x884E3EE9e25896c57E7d8d6FAACef22B02BCD6bE", ERC20Factory: "0x141b4497a298340E8B451ac4eeE947B00aDbe07A", - ERC20V2Factory: "", + ERC20V2Factory: "0xE3c91fDCe30DD5Aa95138D6c4d63f43a26e9066e", //Approve DODOApprove: "0xCDFD45f965De9932367833Ca7187e4c9C43A2380", diff --git a/config/bsc-config.js b/config/bsc-config.js index 46cbed7..ae537f8 100644 --- a/config/bsc-config.js +++ b/config/bsc-config.js @@ -20,9 +20,9 @@ module.exports = { DSP: "0xE3c91fDCe30DD5Aa95138D6c4d63f43a26e9066e", DPPAdmin: "0x44D5dF24d5Ef52A791D6436Fa45A8D426f6de34e", CP: "0x5D6e6A0BFB2176AFCc4FB809822D8e009216b245", - ERC20: "0xef49a6dba1c8df859e49c17e9a485b439c7689d3", + ERC20: "0x99155E68aC1523B6f461F6427A90607ecCF7bDF5", MintableERC20: "0x6373ceb657c83c91088d328622573fb766064ac4", - CustomERC20: "", + CustomERC20: "0x4777A6f28c8Bb260D9a945dddeFabB942aE10f1f", //Factory DVMFactory: "0x790B4A80Fb1094589A3c0eFC8740aA9b0C1733fB", @@ -31,7 +31,7 @@ module.exports = { UpCpFactory: "0x4F57F6929E58AE564F6AB090fE0AEEcb39B0f270", CrowdPoolingFactory: "0x778DF5B12170e8af8dF94356BfC864E57CE185DC", ERC20Factory: "0x5e84190a270333aCe5B9202a3F4ceBf11b81bB01", - ERC20V2Factory: "", + ERC20V2Factory: "0x652C09785c15db4adAce871eD8874b8968A19A4D", //Approve DODOApprove: "0xa128Ba44B2738A558A1fdC06d6303d52D3Cef8c1", diff --git a/config/eth-config.js b/config/eth-config.js index 0e02d7d..4609862 100644 --- a/config/eth-config.js +++ b/config/eth-config.js @@ -20,9 +20,9 @@ module.exports = { DSP: "0x8735AAd3BEae15487a017EE32cb11d8fd593e036", DPPAdmin: "0x5515363c0412AdD5c72d3E302fE1bD7dCBCF93Fe", CP: "0x327344B382EE1b44FB0a72945fCDCC7243200dD7", - ERC20: "0x85351262f7474ebe23ffacd633cf20a491f1325d", + ERC20: "0x8443a5bD91C8f68582F90dD3354f750900C5E8Cc", MintableERC20: "0x0596908263ef2724fbfbcafa1c983fcd7a629038", - CustomERC20: "", + CustomERC20: "0x9Cd85f012050FE030271dCB7c0a0C1e2043Ce4a9", //Factory DVMFactory: "0x72d220cE168C4f361dD4deE5D826a01AD8598f6C", @@ -31,7 +31,7 @@ module.exports = { UpCpFactory: "0x78D338F9d54E9e41872E68cB1c01d9499d87eE52", CrowdPoolingFactory: "0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25", ERC20Factory: "0x44D5dF24d5Ef52A791D6436Fa45A8D426f6de34e", - ERC20V2Factory: "", + ERC20V2Factory: "0xAA810cd0363d3378F0a13e327EC2Aee7051aDa73", //Approve DODOApprove: "0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149", diff --git a/config/heco-config.js b/config/heco-config.js index f0764d8..d246125 100644 --- a/config/heco-config.js +++ b/config/heco-config.js @@ -20,9 +20,9 @@ module.exports = { DSP: "0xEB5470DfCF2BA5CDdC108E8B65A7ED2A77EA3c2D", DPPAdmin: "0x3232fd648997F89E614A021fdAc756d61F9030A1", CP: "0x5B67cF070ce4303Ff4d450f21Cc371F9f0549335", - ERC20: "0x62e1622a47c9fe74b2cf0bade5ecb8669ff9bfbf", + ERC20: "0x2870fB656C7D245dc74afbA34B0d453FA67Ce4fA", MintableERC20: "0xdd9de5ed7a11b1ed3314cd7f754f27a15dedc63f", - CustomERC20: "", + CustomERC20: "0x2cE80F95eD3d2a76694896843F18413ae83baF40", //Factory DVMFactory: "0xd8c77CF0F01222b07B8343A681C46eFA3faEa985", @@ -31,7 +31,7 @@ module.exports = { UpCpFactory: "0xF7c3467786efAA9BD4022941ecd5a00C61b17FA9", CrowdPoolingFactory: "0x56133d0b63abf7A15D5697dD2dB9e04730f1A9C2", ERC20Factory: "0x2cCDF6F742afBe813B68Ec6bb421C1BEa74fBd46", - ERC20V2Factory: "", + ERC20V2Factory: "0x1297264617bd34270B77c2fFD3aA110D3fd2f7aF", //Approve DODOApprove: "0x68b6c06Ac8Aa359868393724d25D871921E97293", diff --git a/config/matic-config.js b/config/matic-config.js index b56ff7b..e9cd0a7 100644 --- a/config/matic-config.js +++ b/config/matic-config.js @@ -21,9 +21,9 @@ module.exports = { DPPAdmin: "0xB5Dc5E183c2aCf02aB879A8569aB4EDAf147d537", CP: "0xf50BDc9E90B7a1c138cb7935071b85c417C4cb8e", - ERC20: "0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25", + ERC20: "0x34b9Dc29AaDc313F2BF828B7Be1e0DEe393D28e3", MintableERC20: "0x7737fd30535c69545deeEa54AB8Dd590ccaEBD3c", - CustomERC20: "", + CustomERC20: "0xaF49DBAaf177beE57f84731260a9eb8819d25eff", //Factory DVMFactory: "0xbAb9F4ff4A19a0e8EEBC56b06750253228ffAc6E", @@ -32,7 +32,7 @@ module.exports = { UpCpFactory: "0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619", CrowdPoolingFactory: "0x85351262f7474Ebe23FfAcD633cf20A491F1325D", ERC20Factory: "0xaeB5CF31b97dce6134e416129845e01106fFB177", - ERC20V2Factory: "", + ERC20V2Factory: "0x8e2f666F316b614c76676215F16F0A9746f96a90", //Approve DODOApprove: "0x9aE501385Bc7996A2A4a1FBb00c8d3820611BCB5", diff --git a/deploy-detail-periphery.txt b/deploy-detail-periphery.txt index f5c86be..4ceffb1 100644 --- a/deploy-detail-periphery.txt +++ b/deploy-detail-periphery.txt @@ -531,3 +531,35 @@ Deploy type: ERC20V2Factory network type: rinkeby Deploy time: 2021/6/30 下午4:32:54 Deploy type: ERC20V2Factory +==================================================== +network type: bsclive +Deploy time: 2021/7/1 下午12:24:28 +Deploy type: ERC20V2Factory +ERC20Address: 0x99155E68aC1523B6f461F6427A90607ecCF7bDF5 +CustomERC20Address: 0x4777A6f28c8Bb260D9a945dddeFabB942aE10f1f +ERC20V2FactoryAddress: 0x652C09785c15db4adAce871eD8874b8968A19A4D +Init ERC20V2Factory Tx: 0x48d9f612f6d30fef0b3a00900a93b6c046bffa012a2feb12e5a8850b29fbd777 +==================================================== +network type: matic +Deploy time: 2021/7/1 下午1:07:14 +Deploy type: ERC20V2Factory +==================================================== +network type: live +Deploy time: 2021/7/1 下午1:14:05 +Deploy type: ERC20V2Factory +ERC20Address: 0x8443a5bD91C8f68582F90dD3354f750900C5E8Cc +CustomERC20Address: 0x9Cd85f012050FE030271dCB7c0a0C1e2043Ce4a9 +ERC20V2FactoryAddress: 0xAA810cd0363d3378F0a13e327EC2Aee7051aDa73 +Init ERC20V2Factory Tx: 0x33cbdea04ff59f06e52aa100383a5222798e9ccc269407474d05fbcfea4a13bb +==================================================== +network type: heco +Deploy time: 2021/7/1 下午1:21:21 +Deploy type: ERC20V2Factory +==================================================== +network type: heco +Deploy time: 2021/7/1 下午1:23:07 +Deploy type: ERC20V2Factory +ERC20Address: 0x2870fB656C7D245dc74afbA34B0d453FA67Ce4fA +CustomERC20Address: 0x2cE80F95eD3d2a76694896843F18413ae83baF40 +ERC20V2FactoryAddress: 0x1297264617bd34270B77c2fFD3aA110D3fd2f7aF +Init ERC20V2Factory Tx: 0x0b056fb56d6982dcc0f38b3a4b4a4fddc4d4d83fd1fa876db5121076013bafa8 diff --git a/truffle-config.js b/truffle-config.js index aa5bed1..dc4bcbc 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -106,7 +106,7 @@ module.exports = { return new HDWalletProvider(privKey, "https://mainnet.infura.io/v3/" + infuraId); }, gas: 6000000, - gasPrice: 25000000000, + gasPrice: 18000000000, network_id: 1, skipDryRun: true }, @@ -126,7 +126,7 @@ module.exports = { provider: function () { return new HDWalletProvider(privKey, "https://http-mainnet.hecochain.com"); }, - gasPrice: 1000000000, + gasPrice: 3000000000, network_id: 128 }, @@ -177,13 +177,15 @@ module.exports = { }, matic: { + networkCheckTimeout: 1000000, provider: () => { - return new HDWalletProvider(privKey, 'https://rpc-mainnet.matic.network') + return new HDWalletProvider(privKey, 'https://polygon-mainnet.infura.io/v3/' + infuraId) }, - network_id: '137', - gasPrice: 2000000000, - confirmations: 2, - timeoutBlocks: 200, + network_id: 137, + gas: 6000000, + gasPrice: 3000000000, + // confirmations: 2, + // timeoutBlocks: 200, skipDryRun: true },