deploy arbtest

This commit is contained in:
owen05
2021-04-05 23:12:23 +08:00
parent 5c75888e78
commit 62c085f873
7 changed files with 301 additions and 0 deletions

58
config/arbtest-config.js Normal file
View File

@@ -0,0 +1,58 @@
module.exports = {
ARBTEST_CONFIG: {
//TOKEN
WETH: "0x1e0D4043C0CD3ed15F3c2AfE60B0F213c9b5E30d",
CHI: "0x0000000000000000000000000000000000000000",
DODO: "0x67ee3Cb086F8a16f34beE3ca72FAD36F7Db929e2",
//Helper
DODOSellHelper: "0x313fcb27BD83607C33998AA60E409C79Fb2251fd",
DODOCalleeHelper: "0x1ddD02f6d31C1eF04cFA0a1AA811406B5B2884E7",
DODOV1PmmHelper: "0xD56281EF996B6B29874C77D2e1464216E8043127",
DODOV2RouteHelper: "",
//Template
CloneFactory: "0x61b21603A527b487C4a3A80a69224b87751D0F6a",
FeeRateModel: "0x4EfF1D851366b8cc51d553a87e2d12dA8Da46F2a",
PermissionManager: "0x97f0153E7F5749640aDF3Ff9CFC518b79D6Fe53b",
DVM: "0x1565666CD77bB6DDE193e1D37Ad7b07900e6f4c0",
DPP: "0x1dc8D1f1600B7C1D39e6b60FBC7b021Bc4F9C993",
DPPAdmin: "0x8F8Dd7DB1bDA5eD3da8C9daf3bfa471c12d58486",
CP: "0x70eFB31271C0796833f80dA4E6538d05B2AFA72C",
ERC20: "0x77106d0f8c5B8ADF95a7feaae5bea130b1D2D748",
MintableERC20: "0xa952f8716a753D9e094c4041FEBd163e38B21eDB",
//Factory
DVMFactory: "0xCFea63e3DE31De53D68780Dd65675F169439e470",
DPPFactory: "0xb7865a5ceE051d35B09A48b624D7057d3362655a",
UpCpFactory: "",
CrowdPoolingFactory: "0xCDFD45f965De9932367833Ca7187e4c9C43A2380",
ERC20Factory: "0x01f9BfAC04E6184e90bD7eaFD51999CE430Cc750",
//Approve
DODOApprove: "0x1c31c6d0032768463EaBABe1A47D04c6470d31fE",
DODOApproveProxy: "0x8Fc0d51915D631Ff6B8b70dEEAE789cE5c792a62",
//Periphery
DODOIncentive: "0x3a60A76aCAe8feeC74D6B5b665d4DBaab2abC406",
//Adapter
DODOV1Adapter: "0x3a343F2e4e142412c5dD130359edb765a6054965",
DODOV2Adapter: "0x2cD18557E14aF72DAA8090BcAA95b231ffC9ea26",
UniAdapter: "0xeCEaDe494FD5F913Fd937C5CAc4577236395Dc32",
//Proxy
DODOV2Proxy: "0x3bde3f150EAED3A506740EEfcbBB1BB4393600a9",
//vDODO
DODOCirculationHelper: "",
Governance: "",
dodoTeam: "",
vDODOToken: "",
//Account
multiSigAddress: "",
defaultMaintainer: "",
}
}

View File

@@ -4,6 +4,7 @@ const { HECO_CONFIG } = require("./config/heco-config");
const { KOVAN_CONFIG } = require("./config/kovan-config");
const { MBTEST_CONFIG } = require("./config/mbtest-config");
const { OKTEST_CONFIG } = require("./config/oktest-config");
const { ARBTEST_CONFIG } = require("./config/arbtest-config");
exports.GetConfig = function (network, accounts) {
var CONFIG = {}
@@ -32,6 +33,11 @@ exports.GetConfig = function (network, accounts) {
CONFIG.multiSigAddress = accounts[0]
CONFIG.defaultMaintainer = accounts[0]
break;
case "arbtest":
CONFIG = ARBTEST_CONFIG
CONFIG.multiSigAddress = accounts[0]
CONFIG.defaultMaintainer = accounts[0]
break;
}
return CONFIG
}

View File

@@ -298,3 +298,17 @@ Deploy time: 2021/3/18 下午5:50:20
Deploy type: DODOToken
DODOTokenAddress: 0x19DA73be23Cea6bFA804Ec020041b8F3971BC522
MultiCallAddress: 0x1Cc229Ac0ef9ba932e4dEbB898C77901C9AFB694
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:16:44
Deploy type: WETH9
WETH9Address: 0x1e0D4043C0CD3ed15F3c2AfE60B0F213c9b5E30d
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:22:11
Deploy type: DODOToken
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:24:48
Deploy type: DODOToken
DODOTokenAddress: 0x67ee3Cb086F8a16f34beE3ca72FAD36F7Db929e2

View File

@@ -721,3 +721,164 @@ Deploy type: V2 - Adapter
DODOV1Adapter Address: 0xa432E1ace51eB849d7a1664e5c60ce965B1fE6E4
DODOV2Adapter Address: 0xC2aA2C0175e376E63cFb0bd1CAB1196DDc9a7076
UniAdapter Address: 0x03E2427859119E497EB856a166F616a2Ce5f8c88
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:27:07
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DODOSellHelper Address: 0x313fcb27BD83607C33998AA60E409C79Fb2251fd
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:31:06
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:32:35
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DODOCalleeHelperAddress: 0x1ddD02f6d31C1eF04cFA0a1AA811406B5B2884E7
DODOV1RouterHelper Address: 0xD56281EF996B6B29874C77D2e1464216E8043127
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:35:57
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
CloneFactoryAddress: 0x61b21603A527b487C4a3A80a69224b87751D0F6a
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:38:16
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:40:06
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DefaultMtFeeRateAddress: 0x4EfF1D851366b8cc51d553a87e2d12dA8Da46F2a
Init DefaultMtFeeRateAddress Tx: 0xfc59c5af3257e02c44eaca448a7813d6b835b6f7304fb546c81fc149ff4aca11
DefaultPermissionAddress: 0x97f0153E7F5749640aDF3Ff9CFC518b79D6Fe53b
Init DefaultPermissionAddress Tx: 0x16e408cf7ba3e109e91a0ca0c5c0c7aab45b049ec69269f8c7d7f6b5dac070ce
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:43:59
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:46:07
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DvmTemplateAddress: 0x1565666CD77bB6DDE193e1D37Ad7b07900e6f4c0
DppTemplateAddress: 0x1dc8D1f1600B7C1D39e6b60FBC7b021Bc4F9C993
DppAdminTemplateAddress: 0x8F8Dd7DB1bDA5eD3da8C9daf3bfa471c12d58486
CpTemplateAddress: 0x70eFB31271C0796833f80dA4E6538d05B2AFA72C
ERC20TemplateAddress: 0x77106d0f8c5B8ADF95a7feaae5bea130b1D2D748
MintableERC20TemplateAddress: 0xa952f8716a753D9e094c4041FEBd163e38B21eDB
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:54:11
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
ERC20FactoryAddress: 0x01f9BfAC04E6184e90bD7eaFD51999CE430Cc750
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午9:56:58
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:00:34
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:06:16
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:18:56
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:28:04
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DODOApprove Address: 0x1c31c6d0032768463EaBABe1A47D04c6470d31fE
DODOApproveProxy Address: 0x8Fc0d51915D631Ff6B8b70dEEAE789cE5c792a62
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:31:30
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DODOIncentiveAddress: 0x3a60A76aCAe8feeC74D6B5b665d4DBaab2abC406
DODOIncentive Init tx: 0x7dcd6d1f14c50c2d8ca9369dfb86d933a6277cc9123631247b1483cf00cad753
DvmFactoryAddress: 0xCFea63e3DE31De53D68780Dd65675F169439e470
Init DvmFactory Tx: 0xab3f6be8d20d1b730c37e61caed2b5bf361289f9b1d01750a495fe3ebee6b3f4
DppFactoryAddress: 0xb7865a5ceE051d35B09A48b624D7057d3362655a
Init DppFactory Tx: 0x20f0f23cccdf641653eeed070f1c4aa7ece73f4a219f460f6036ad341a2f11c0
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:39:00
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:40:12
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:42:05
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
CpFactoryAddress: 0xCDFD45f965De9932367833Ca7187e4c9C43A2380
Init CpFactory Tx: 0xcbeb5fc276756004ca7565f13946ea67eede733b10c515395eaa84308c87ee0d
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:45:20
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:49:05
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:54:47
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午10:56:39
Deploy type: V2
multiSigAddress: 0x7081685Ff3ff16FB6c0dF08AC93bdB7299EEEfc9
DODOV2RouteHelper Address: 0x69f52AC40185A2A005D49114F0B77b7bA856F0a0
DODOV2Proxy02 Address: 0x3bde3f150EAED3A506740EEfcbBB1BB4393600a9
Init DODOProxyV2 Tx: 0x93ce40a126c12335ba505dd186fce1aca1cc0e57b728db1326e6ac36a789c0f1
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午11:01:11
Deploy type: V2 - Adapter
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午11:02:53
Deploy type: V2 - Adapter
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午11:04:56
Deploy type: V2 - Adapter
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午11:06:23
Deploy type: V2 - Adapter
====================================================
network type: arbtest
Deploy time: 2021/4/5 下午11:08:19
Deploy type: V2 - Adapter
DODOV1Adapter Address: 0x3a343F2e4e142412c5dD130359edb765a6054965
DODOV2Adapter Address: 0x2cD18557E14aF72DAA8090BcAA95b231ffC9ea26
UniAdapter Address: 0xeCEaDe494FD5F913Fd937C5CAc4577236395Dc32

49
package-lock.json generated
View File

@@ -1433,6 +1433,15 @@
"normalize-path": "^2.0.0"
}
},
"arb-ethers-web3-bridge": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/arb-ethers-web3-bridge/-/arb-ethers-web3-bridge-0.7.3.tgz",
"integrity": "sha512-dmnys5OU2RyLrVckNzC+NPR/BZDr38svO45vEaZ1oz2cEacKiVaU1g1bgjvJBQbM0jHaXVk7r7JL1U7xVcaA3A==",
"requires": {
"ethers-providers": "^2.1.19",
"ethers-utils": "^2.1.11"
}
},
"arg": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
@@ -3716,6 +3725,46 @@
}
}
},
"ethers-providers": {
"version": "2.1.19",
"resolved": "https://registry.npmjs.org/ethers-providers/-/ethers-providers-2.1.19.tgz",
"integrity": "sha512-usjJ5qyGO84kMmIYImwGhJo12nnG5uzqpZlViYQFEfwBzqoj7b9e55xnc7fP6XWcnPrrbMqIa0KrW8BKy9bYpg==",
"requires": {
"ethers-utils": "^2.1.0",
"inherits": "2.0.1",
"xmlhttprequest": "1.8.0"
},
"dependencies": {
"inherits": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
"integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE="
}
}
},
"ethers-utils": {
"version": "2.1.11",
"resolved": "https://registry.npmjs.org/ethers-utils/-/ethers-utils-2.1.11.tgz",
"integrity": "sha512-BfkGStBmmLjhTldmp5lifiwUeDjx/yowoWfmUnnvPNsix5PFE8IXQdY5VT/Qo1SXMgxzCe8m0Z8ysUw6Q9OmAw==",
"requires": {
"bn.js": "^4.4.0",
"hash.js": "^1.0.0",
"js-sha3": "0.5.7",
"xmlhttprequest": "1.8.0"
},
"dependencies": {
"bn.js": {
"version": "4.12.0",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
"integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
},
"js-sha3": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz",
"integrity": "sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc="
}
}
},
"ethjs": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/ethjs/-/ethjs-0.4.0.tgz",

View File

@@ -28,6 +28,7 @@
"@types/es6-promisify": "^6.0.0",
"@types/ethereumjs-abi": "^0.6.3",
"@types/mocha": "^7.0.2",
"arb-ethers-web3-bridge": "^0.7.3",
"assert": "^2.0.0",
"axios": "^0.20.0",
"babel-cli": "^6.26.0",

View File

@@ -19,6 +19,7 @@
*/
var HDWalletProvider = require("truffle-hdwallet-provider");
var wrapProvider = require('arb-ethers-web3-bridge').wrapProvider;
var privKey = process.env.privKey;
var infuraId = process.env.infuraId;
//
@@ -127,6 +128,17 @@ module.exports = {
timeoutBlocks: 200,
skipDryRun: true
},
arbtest: {
provider: function () {
return wrapProvider(
new HDWalletProvider(privKey, "https://kovan4.arbitrum.io/rpc")
)
},
network_id: '212984383488152',
gas: 1000000000,
gasPrice: 0,
},
coverage: {
host: "127.0.0.1",