Merge pull request #31 from DODOEX/feat/deploy-linea
deploy to linea, base and scroll-sepolia
This commit is contained in:
4
.env
4
.env
@@ -1,4 +0,0 @@
|
||||
RPC_NODE_URI=http://127.0.0.1:8545
|
||||
RESET_SNAPSHOT_ID=0x2
|
||||
NETWORK_ID=5777
|
||||
GAS_PRICE=1
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
.coverage*
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env
|
||||
.idea
|
||||
|
||||
build/
|
||||
|
||||
101
config/base-config.js
Normal file
101
config/base-config.js
Normal file
@@ -0,0 +1,101 @@
|
||||
module.exports = {
|
||||
BASE_CONFIG: {
|
||||
//TOKEN
|
||||
WETH: "0x4200000000000000000000000000000000000006",
|
||||
CHI: "",
|
||||
DODO: "",
|
||||
|
||||
//Helper
|
||||
DODOSellHelper: "0x8eA40e8Da3ae64Bad5E77a5f7DB346499F543baC",
|
||||
DODOCalleeHelper: "0x44023441f2Bad375b6b5C6354B03c3E9AD01E269",
|
||||
DODOV1PmmHelper: "0x17644d3B366273faC75A07996E2F90A99A2946a7",
|
||||
DODOV2RouteHelper: "0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2",
|
||||
ERC20Helper: "0xB5c7BA1EAde74800cD6cf5F56b1c4562De373780",
|
||||
DODOSwapCalcHelper: "0xbcd2FDC3B884Cf0dfD932f55Ec2Fe1fB7e8c62Da",
|
||||
MultiCall: "0xf5Ec1a19e1570bDf0A3AaA6585274f27027270b1",
|
||||
CurveSample: "",
|
||||
|
||||
//Template
|
||||
CloneFactory: "0x628E5081bA93b1c4F58E54e7175088B1ACe58852",
|
||||
FeeRateModel: "0x7B07164ecFaF0F0D85DFC062Bc205a4674c75Aa0",
|
||||
FeeRateDIP3Impl: "0x4aAe1d041C01078725dB016BA4D4F72455CaF931",
|
||||
UserQuota: "0x65934e2f228Fde069A6255F46E6A15Bc9DE38545",
|
||||
PermissionManager: "0xa1609A1fa7DC16c025feA194c02b2822441b8c10",
|
||||
DVM: "0x5fe43C0EbfE66b83C10A9A37AD1E4aC640AAAA65",
|
||||
DPP: "",
|
||||
DSP: "0xe7979E2F3e77196Bb2AB206eaa67Ea278A3E33A2",
|
||||
DPPAdmin: "",
|
||||
DPPAdvanced: "0x1fC8EC204549C865a17b4059A57decA66A4Bd4cC",
|
||||
DPPAdvancedAdmin: "0x6a9De0C6235bDD14B52eeA53F5a08Ff7D4183b3e",
|
||||
CP: "0x297da061D1dE0132D241Fafed224288B34d81005",
|
||||
ERC20MineV2: "0xEAC4BFef7D1c872Ed705B01856af7f9802adC596",
|
||||
ERC20MineV3: "0x04f7BaE2A4c05cd567F762E33450deBCebdC89EA",
|
||||
ERC20: "0xCD536b4DECFD2fa0443666B6becD145F8aDe2E48",
|
||||
CustomERC20: "0x3dD629473A2eD7f3C6299FFD9F3e0C283d073f11",
|
||||
CustomMintableERC20: "0x8414560d69650bC0c915d5d4385e1714a23cbe81",
|
||||
|
||||
//Factory
|
||||
DVMFactory: "0x0226fCE8c969604C3A0AD19c37d1FAFac73e13c2",
|
||||
DPPFactory: "0xc0F9553Df63De5a97Fe64422c8578D0657C360f7",
|
||||
DSPFactory: "0x200D866Edf41070DE251Ef92715a6Ea825A5Eb80",
|
||||
CrowdPoolingFactory: "0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83",
|
||||
ERC20Factory: "",
|
||||
ERC20V2Factory: "",
|
||||
ERC20V3Factory: "0xCb3dC90E800C961d4a206BeAAFd92A6d2E06495e",
|
||||
DODOMineV2Factory: "0xFD2b7994f91c08aAa5e013E899334A2DBb500DF1",
|
||||
DODOMineV3Registry: "0x8dD0Fea5FA2f7df535F87f312641Cc15d8B151BA",
|
||||
|
||||
//Approve
|
||||
DODOApprove: "0x89872650fA1A391f58B4E144222bB02e44db7e3B",
|
||||
DODOApproveProxy: "0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1",
|
||||
|
||||
//Periphery
|
||||
DODOIncentive: "",
|
||||
|
||||
//Adpater
|
||||
DODOV1Adapter: "0x46AF6b152F2cb02a3cFcc74014C2617BC4F6cD5C",
|
||||
DODOV2Adapter: "0x66c45FF040e86DC613F239123A5E21FFdC3A3fEC",
|
||||
UniAdapter: "0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99",
|
||||
CurveAdapter: "",
|
||||
|
||||
//Proxy
|
||||
DODOV2Proxy: "0x4CAD0052524648A7Fa2cfE279997b00239295F33",
|
||||
DSPProxy: "0x49186E32fEd50fd6B5604A2618c7B0b03Cd41414",
|
||||
CpProxy: "0x6B9577b87666af89bd0e144b9b64e8Ed166E303d",
|
||||
DPPProxy: "0x0B1467f71c082D8d410aF4376C685D9A6893cF36",
|
||||
RouteProxy: "",
|
||||
FeeRouteProxy1: "0x987bFBE33c9cF18cAA665B792Db66339a9c16D32",
|
||||
FeeRouteProxy2: "0xA376762070F7fCE8f3646AAe90e6e375e6daF128",
|
||||
DODOMineV3Proxy: "0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3",
|
||||
|
||||
//vDODO
|
||||
DODOCirculationHelper: "",
|
||||
Governance: "",
|
||||
dodoTeam: "",
|
||||
vDODOToken: "",
|
||||
|
||||
//Account
|
||||
multiSigAddress: "0x409DAaCf501288AEfdc366Ccc0BF1FEd76c066E2",
|
||||
defaultMaintainer: "0x409DAaCf501288AEfdc366Ccc0BF1FEd76c066E2",
|
||||
|
||||
//================== NFT ====================
|
||||
BuyoutModel: "",
|
||||
Fragment: "",
|
||||
NFTCollateralVault: "",
|
||||
DODONFTRouteHelper: "",
|
||||
|
||||
DodoNftErc721: "",
|
||||
DodoNftErc1155: "",
|
||||
|
||||
DODONFTRegistry: "",
|
||||
DODONFTProxy: "",
|
||||
|
||||
//=================== NFTPool ==================
|
||||
DODONFTApprove: "",
|
||||
DODONFTPoolProxy: "",
|
||||
FilterAdmin: "",
|
||||
FilterERC721V1: "",
|
||||
FilterERC1155V1: "",
|
||||
NFTPoolController: ""
|
||||
}
|
||||
}
|
||||
101
config/linea-config.js
Normal file
101
config/linea-config.js
Normal file
@@ -0,0 +1,101 @@
|
||||
module.exports = {
|
||||
LINEA_CONFIG: {
|
||||
//TOKEN
|
||||
WETH: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
|
||||
CHI: "",
|
||||
DODO: "",
|
||||
|
||||
//Helper
|
||||
DODOSellHelper: "0xf5Ec1a19e1570bDf0A3AaA6585274f27027270b1",
|
||||
DODOCalleeHelper: "0xB5c7BA1EAde74800cD6cf5F56b1c4562De373780",
|
||||
DODOV1PmmHelper: "0x44023441f2Bad375b6b5C6354B03c3E9AD01E269",
|
||||
DODOV2RouteHelper: "0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2",
|
||||
ERC20Helper: "0xbcd2FDC3B884Cf0dfD932f55Ec2Fe1fB7e8c62Da",
|
||||
DODOSwapCalcHelper: "0x8eA40e8Da3ae64Bad5E77a5f7DB346499F543baC",
|
||||
MultiCall: "0xa7b9C3a116b20bEDDdBE4d90ff97157f67F0bD97",
|
||||
CurveSample: "",
|
||||
|
||||
//Template
|
||||
CloneFactory: "0x17644d3b366273fac75a07996e2f90a99a2946a7",
|
||||
FeeRateModel: "0x628E5081bA93b1c4F58E54e7175088B1ACe58852",
|
||||
FeeRateDIP3Impl: "0x65934e2f228Fde069A6255F46E6A15Bc9DE38545",
|
||||
UserQuota: "0x7B07164ecFaF0F0D85DFC062Bc205a4674c75Aa0",
|
||||
PermissionManager: "0xa1609A1fa7DC16c025feA194c02b2822441b8c10",
|
||||
DVM: "0x0fcB5237A1997C4700Ffa2BB4522EA38d4F851Fc",
|
||||
DPP: "",
|
||||
DSP: "0x200D866Edf41070DE251Ef92715a6Ea825A5Eb80",
|
||||
DPPAdmin: "",
|
||||
DPPAdvanced: "0x6a9de0c6235bdd14b52eea53f5a08ff7d4183b3e",
|
||||
DPPAdvancedAdmin: "0x297da061D1dE0132D241Fafed224288B34d81005",
|
||||
CP: "0xCD536b4DECFD2fa0443666B6becD145F8aDe2E48",
|
||||
ERC20MineV2: "0x04f7BaE2A4c05cd567F762E33450deBCebdC89EA",
|
||||
ERC20MineV3: "0x89872650fA1A391f58B4E144222bB02e44db7e3B",
|
||||
ERC20: "0x3dD629473A2eD7f3C6299FFD9F3e0C283d073f11",
|
||||
CustomERC20: "0x8414560d69650bC0c915d5d4385e1714a23cbe81",
|
||||
CustomMintableERC20: "0xEAC4BFef7D1c872Ed705B01856af7f9802adC596",
|
||||
|
||||
//Factory
|
||||
DVMFactory: "0xc0F9553Df63De5a97Fe64422c8578D0657C360f7",
|
||||
DPPFactory: "0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83",
|
||||
DSPFactory: "0x2933c0374089D7D98BA0C71c5E02E1A0e09deBEE",
|
||||
CrowdPoolingFactory: "0x6B9577b87666af89bd0e144b9b64e8Ed166E303d",
|
||||
ERC20Factory: "",
|
||||
ERC20V2Factory: "",
|
||||
ERC20V3Factory: "0x0226fCE8c969604C3A0AD19c37d1FAFac73e13c2",
|
||||
DODOMineV2Factory: "0xFD2b7994f91c08aAa5e013E899334A2DBb500DF1",
|
||||
DODOMineV3Registry: "0x8dD0Fea5FA2f7df535F87f312641Cc15d8B151BA",
|
||||
|
||||
//Approve
|
||||
DODOApprove: "0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1",
|
||||
DODOApproveProxy: "0xCb3dC90E800C961d4a206BeAAFd92A6d2E06495e",
|
||||
|
||||
//Periphery
|
||||
DODOIncentive: "",
|
||||
|
||||
//Adpater
|
||||
DODOV1Adapter: "0x46AF6b152F2cb02a3cFcc74014C2617BC4F6cD5C",
|
||||
DODOV2Adapter: "0x66c45FF040e86DC613F239123A5E21FFdC3A3fEC",
|
||||
UniAdapter: "0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99",
|
||||
CurveAdapter: "",
|
||||
|
||||
//Proxy
|
||||
DODOV2Proxy: "0x4CAD0052524648A7Fa2cfE279997b00239295F33",
|
||||
DSPProxy: "0x6D3bd005A8a75d6522C9cFE7d309BB1Cf9650e03",
|
||||
CpProxy: "0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3",
|
||||
DPPProxy: "0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897",
|
||||
RouteProxy: "",
|
||||
FeeRouteProxy1: "0x03e89fC55A5ad0531576E5a502c4CA52c8bf391B", // for front-end
|
||||
FeeRouteProxy2: "0x70B9C57E1fF24761C1C3ced57Ddae9A3F3570698", // for widget
|
||||
DODOMineV3Proxy: "0xA6d0066328Edbcf3220cf8F61e8527e589DD9719",
|
||||
|
||||
//vDODO
|
||||
DODOCirculationHelper: "",
|
||||
Governance: "",
|
||||
dodoTeam: "",
|
||||
vDODOToken: "",
|
||||
|
||||
//Account
|
||||
multiSigAddress: "0x6292e8f7647b3b9dDf5795b1Fb77D0187e30E0F9",
|
||||
defaultMaintainer: "0x6292e8f7647b3b9dDf5795b1Fb77D0187e30E0F9",
|
||||
|
||||
//================== NFT ====================
|
||||
BuyoutModel: "",
|
||||
Fragment: "",
|
||||
NFTCollateralVault: "",
|
||||
DODONFTRouteHelper: "",
|
||||
|
||||
DodoNftErc721: "",
|
||||
DodoNftErc1155: "",
|
||||
|
||||
DODONFTRegistry: "",
|
||||
DODONFTProxy: "",
|
||||
|
||||
//=================== NFTPool ==================
|
||||
DODONFTApprove: "",
|
||||
DODONFTPoolProxy: "",
|
||||
FilterAdmin: "",
|
||||
FilterERC721V1: "",
|
||||
FilterERC1155V1: "",
|
||||
NFTPoolController: ""
|
||||
}
|
||||
}
|
||||
101
config/scroll-sepolia-config.js
Normal file
101
config/scroll-sepolia-config.js
Normal file
@@ -0,0 +1,101 @@
|
||||
module.exports = {
|
||||
SCROLL_SEPOLIA_CONFIG: {
|
||||
//TOKEN
|
||||
WETH: "0xa7b9C3a116b20bEDDdBE4d90ff97157f67F0bD97",
|
||||
CHI: "",
|
||||
DODO: "",
|
||||
|
||||
//Helper
|
||||
DODOSellHelper: "0x8eA40e8Da3ae64Bad5E77a5f7DB346499F543baC",
|
||||
DODOCalleeHelper: "0x44023441f2Bad375b6b5C6354B03c3E9AD01E269",
|
||||
DODOV1PmmHelper: "0x17644d3B366273faC75A07996E2F90A99A2946a7",
|
||||
DODOV2RouteHelper: "0x6B9577b87666af89bd0e144b9b64e8Ed166E303d",
|
||||
ERC20Helper: "0xB5c7BA1EAde74800cD6cf5F56b1c4562De373780",
|
||||
DODOSwapCalcHelper: "0xbcd2FDC3B884Cf0dfD932f55Ec2Fe1fB7e8c62Da",
|
||||
MultiCall: "0xf5Ec1a19e1570bDf0A3AaA6585274f27027270b1",
|
||||
CurveSample: "",
|
||||
|
||||
//Template
|
||||
CloneFactory: "0x628E5081bA93b1c4F58E54e7175088B1ACe58852",
|
||||
FeeRateModel: "0x7B07164ecFaF0F0D85DFC062Bc205a4674c75Aa0",
|
||||
FeeRateDIP3Impl: "0xa1609A1fa7DC16c025feA194c02b2822441b8c10",
|
||||
UserQuota: "",
|
||||
PermissionManager: "0x0fcB5237A1997C4700Ffa2BB4522EA38d4F851Fc",
|
||||
DVM: "0x6a9De0C6235bDD14B52eeA53F5a08Ff7D4183b3e",
|
||||
DPP: "",
|
||||
DSP: "0x89872650fA1A391f58B4E144222bB02e44db7e3B",
|
||||
DPPAdmin: "",
|
||||
DPPAdvanced: "0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1",
|
||||
DPPAdvancedAdmin: "0x3dD629473A2eD7f3C6299FFD9F3e0C283d073f11",
|
||||
CP: "0x8414560d69650bC0c915d5d4385e1714a23cbe81",
|
||||
ERC20MineV2: "0x0226fCE8c969604C3A0AD19c37d1FAFac73e13c2",
|
||||
ERC20MineV3: "0xa23137871C4A4ce8514f581EE82262CD1A49EEAE",
|
||||
ERC20: "0xEAC4BFef7D1c872Ed705B01856af7f9802adC596",
|
||||
CustomERC20: "0x04f7BaE2A4c05cd567F762E33450deBCebdC89EA",
|
||||
CustomMintableERC20: "0xCb3dC90E800C961d4a206BeAAFd92A6d2E06495e",
|
||||
|
||||
//Factory
|
||||
DVMFactory: "0xa71415675F68f29259ddD63215E5518d2735bf0a",
|
||||
DPPFactory: "0xFD2b7994f91c08aAa5e013E899334A2DBb500DF1",
|
||||
DSPFactory: "0x46AF6b152F2cb02a3cFcc74014C2617BC4F6cD5C",
|
||||
CrowdPoolingFactory: "0x29C7718e8B606cEF1c44Fe6e43e07aF9D0875DE1",
|
||||
ERC20Factory: "",
|
||||
ERC20V2Factory: "",
|
||||
ERC20V3Factory: "0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83",
|
||||
DODOMineV2Factory: "0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99",
|
||||
DODOMineV3Registry: "0x4CAD0052524648A7Fa2cfE279997b00239295F33",
|
||||
|
||||
//Approve
|
||||
DODOApprove: "0xc0F9553Df63De5a97Fe64422c8578D0657C360f7",
|
||||
DODOApproveProxy: "0x4A81Aa47722E1cF27A8726F247E68a766bE58d8e",
|
||||
|
||||
//Periphery
|
||||
DODOIncentive: "",
|
||||
|
||||
//Adpater
|
||||
DODOV1Adapter: "0x0B1467f71c082D8d410aF4376C685D9A6893cF36",
|
||||
DODOV2Adapter: "0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3",
|
||||
UniAdapter: "0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897",
|
||||
CurveAdapter: "",
|
||||
|
||||
//Proxy
|
||||
DODOV2Proxy: "0xA6d0066328Edbcf3220cf8F61e8527e589DD9719",
|
||||
DSPProxy: "0x200D866Edf41070DE251Ef92715a6Ea825A5Eb80",
|
||||
CpProxy: "0x2933c0374089D7D98BA0C71c5E02E1A0e09deBEE",
|
||||
DPPProxy: "0x49186E32fEd50fd6B5604A2618c7B0b03Cd41414",
|
||||
RouteProxy: "",
|
||||
FeeRouteProxy1: "0x03e89fC55A5ad0531576E5a502c4CA52c8bf391B", // for front-end
|
||||
FeeRouteProxy2: "0x70B9C57E1fF24761C1C3ced57Ddae9A3F3570698", // for widget
|
||||
DODOMineV3Proxy: "0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2",
|
||||
|
||||
//vDODO
|
||||
DODOCirculationHelper: "",
|
||||
Governance: "",
|
||||
dodoTeam: "",
|
||||
vDODOToken: "",
|
||||
|
||||
//Account
|
||||
multiSigAddress: "0xb37136B338C6cC0E459A35fe9Aa036f6b5A147c0",
|
||||
defaultMaintainer: "0xb37136B338C6cC0E459A35fe9Aa036f6b5A147c0",
|
||||
|
||||
//================== NFT ====================
|
||||
BuyoutModel: "",
|
||||
Fragment: "",
|
||||
NFTCollateralVault: "",
|
||||
DODONFTRouteHelper: "",
|
||||
|
||||
DodoNftErc721: "",
|
||||
DodoNftErc1155: "",
|
||||
|
||||
DODONFTRegistry: "",
|
||||
DODONFTProxy: "",
|
||||
|
||||
//=================== NFTPool ==================
|
||||
DODONFTApprove: "",
|
||||
DODONFTPoolProxy: "",
|
||||
FilterAdmin: "",
|
||||
FilterERC721V1: "",
|
||||
FilterERC1155V1: "",
|
||||
NFTPoolController: ""
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,9 @@ const { BOBA_CONFIG } = require("./config/boba-config");
|
||||
const { AVAX_CONFIG } = require("./config/avax-config");
|
||||
const { DASHBOARD_CONFIG } = require("./config/dashboard-config");
|
||||
const {CFX_CONFIG} = require("./config/cfx-config.js");
|
||||
const { LINEA_CONFIG } = require("./config/linea-config");
|
||||
const { BASE_CONFIG } = require("./config/base-config");
|
||||
const { SCROLL_SEPOLIA_CONFIG } = require("./config/scroll-sepolia-config");
|
||||
|
||||
exports.GetConfig = function (network, accounts) {
|
||||
var CONFIG = {}
|
||||
@@ -46,9 +49,18 @@ exports.GetConfig = function (network, accounts) {
|
||||
case "avax":
|
||||
CONFIG = AVAX_CONFIG
|
||||
break;
|
||||
case "dashboard":
|
||||
case "cfx":
|
||||
CONFIG = CFX_CONFIG
|
||||
break;
|
||||
case "linea":
|
||||
CONFIG = LINEA_CONFIG
|
||||
break;
|
||||
case "base":
|
||||
CONFIG = BASE_CONFIG
|
||||
break;
|
||||
case "dashboard":
|
||||
CONFIG = SCROLL_SEPOLIA_CONFIG
|
||||
break;
|
||||
//testnet
|
||||
case "kovan":
|
||||
CONFIG = KOVAN_CONFIG
|
||||
@@ -60,8 +72,8 @@ exports.GetConfig = function (network, accounts) {
|
||||
CONFIG.multiSigAddress = accounts[0]
|
||||
CONFIG.defaultMaintainer = accounts[0]
|
||||
break;
|
||||
case "cfx":
|
||||
CONFIG = CFX_CONFIG
|
||||
case "scroll-sepolia":
|
||||
CONFIG = SCROLL_SEPOLIA_CONFIG
|
||||
break;
|
||||
}
|
||||
return CONFIG
|
||||
|
||||
@@ -7,7 +7,7 @@ const { GetConfig } = require("../configAdapter.js")
|
||||
const CloneFactory = artifacts.require("CloneFactory");
|
||||
const FeeRateModelTemplate = artifacts.require("FeeRateModel");
|
||||
const UserQuota = artifacts.require("UserQuota");
|
||||
const FeeRateImpl = artifacts.require("FeeRateImpl");
|
||||
// const FeeRateImpl = artifacts.require("FeeRateImpl");
|
||||
const FeeRateDIP3 = artifacts.require("FeeRateDIP3Impl")
|
||||
const PermissionManagerTemplate = artifacts.require("PermissionManager");
|
||||
const DODOSellHelper = artifacts.require("DODOSellHelper");
|
||||
@@ -20,8 +20,8 @@ const DODOCalleeHelper = artifacts.require("DODOCalleeHelper");
|
||||
|
||||
const DvmTemplate = artifacts.require("DVM");
|
||||
const DspTemplate = artifacts.require("DSP");
|
||||
const DppTemplate = artifacts.require("DPP");
|
||||
const DppAdminTemplate = artifacts.require("DPPAdmin");
|
||||
// const DppTemplate = artifacts.require("DPP");
|
||||
// const DppAdminTemplate = artifacts.require("DPPAdmin");
|
||||
const DppAdvancedTemplate = artifacts.require("DPPAdvanced");
|
||||
const DppAdvancedAdminTemplate = artifacts.require("DPPAdvancedAdmin");
|
||||
const CpTemplate = artifacts.require("CP");
|
||||
@@ -31,13 +31,13 @@ const CustomMintableERC20Template = artifacts.require("CustomMintableERC20");
|
||||
const ERC20MineV2 = artifacts.require("ERC20Mine");
|
||||
const ERC20MineV3 = artifacts.require("ERC20MineV3");
|
||||
|
||||
const ERC20V2Factory = artifacts.require("ERC20V2Factory");
|
||||
// const ERC20V2Factory = artifacts.require("ERC20V2Factory");
|
||||
const ERC20V3Factory = artifacts.require("ERC20V3Factory");
|
||||
const DvmFactory = artifacts.require("DVMFactory");
|
||||
const DppFactory = artifacts.require("DPPFactory");
|
||||
const DspFactory = artifacts.require("DSPFactory");
|
||||
const CpFactory = artifacts.require("CrowdPoolingFactory");
|
||||
const UpCpFactory = artifacts.require("UpCrowdPoolingFactory");
|
||||
// const UpCpFactory = artifacts.require("UpCrowdPoolingFactory");
|
||||
const MineV3Registry = artifacts.require("DODOMineV3Registry");
|
||||
const MineV2Factory = artifacts.require("DODOMineV2Factory");
|
||||
|
||||
@@ -47,7 +47,7 @@ const DODOApproveProxy = artifacts.require("DODOApproveProxy");
|
||||
const DODODspProxy = artifacts.require("DODODspProxy");
|
||||
const DODOCpProxy = artifacts.require("DODOCpProxy");
|
||||
const DODODppProxy = artifacts.require("DODODppProxy");
|
||||
const DODORouteProxy = artifacts.require("DODORouteProxy");
|
||||
// const DODORouteProxy = artifacts.require("DODORouteProxy");
|
||||
const DODOMineV3Proxy = artifacts.require("DODOMineV3Proxy");
|
||||
const DODOProxyV2 = artifacts.require("DODOV2Proxy02");
|
||||
|
||||
@@ -97,7 +97,7 @@ module.exports = async (deployer, network, accounts) => {
|
||||
let DspFactoryAddress = CONFIG.DSPFactory;
|
||||
let DppFactoryAddress = CONFIG.DPPFactory;
|
||||
let CpFactoryAddress = CONFIG.CrowdPoolingFactory;
|
||||
let CpV2FactoryAddress = CONFIG.CrowdPoolingFactoryV2;
|
||||
let CpV2FactoryAddress = CONFIG.CrowdPoolingFactory;
|
||||
let UpCpFactoryAddress = CONFIG.UpCpFactory;
|
||||
let ERC20V2FactoryAddress = CONFIG.ERC20V2Factory;
|
||||
let ERC20V3FactoryAddress = CONFIG.ERC20V3Factory;
|
||||
@@ -120,6 +120,8 @@ module.exports = async (deployer, network, accounts) => {
|
||||
let DODODppProxyAddress = CONFIG.DPPProxy;
|
||||
let DODOMineV3ProxyAddress = CONFIG.DODOMineV3Proxy;
|
||||
let DODORouteProxyAddress = CONFIG.RouteProxy;
|
||||
let DODOFeeRouteProxy1Address = CONFIG.FeeRouteProxy1;
|
||||
let DODOFeeRouteProxy2Address = CONFIG.FeeRouteProxy2;
|
||||
|
||||
|
||||
//Account
|
||||
@@ -185,11 +187,12 @@ module.exports = async (deployer, network, accounts) => {
|
||||
logger.log("Init DefaultMtFeeRateAddress Tx:", tx.tx);
|
||||
}
|
||||
|
||||
if (UserQuotaAddress == "") {
|
||||
await deployer.deploy(UserQuota);
|
||||
UserQuotaAddress = UserQuota.address;
|
||||
logger.log("UserQuotaAddress: ", UserQuotaAddress);
|
||||
}
|
||||
|
||||
// if (UserQuotaAddress == "") {
|
||||
// await deployer.deploy(UserQuota);
|
||||
// UserQuotaAddress = UserQuota.address;
|
||||
// logger.log("UserQuotaAddress: ", UserQuotaAddress);
|
||||
// }
|
||||
|
||||
|
||||
/*
|
||||
@@ -312,7 +315,6 @@ module.exports = async (deployer, network, accounts) => {
|
||||
|
||||
//Factory
|
||||
/*
|
||||
疑似废弃
|
||||
if (ERC20V2FactoryAddress == "") {
|
||||
await deployer.deploy(
|
||||
ERC20V2Factory,
|
||||
@@ -569,14 +571,15 @@ module.exports = async (deployer, network, accounts) => {
|
||||
if (network == 'kovan' || network == 'rinkeby' ||network == "boba_test" || network == "dashboard") {
|
||||
var tx;
|
||||
|
||||
//ApproveProxy init以及添加ProxyList
|
||||
//ApproveProxy init
|
||||
console.log("DODOApproveProxy init")
|
||||
const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
|
||||
tx = await DODOApproveProxyInstance.init(multiSigAddress, [DODOV2ProxyAddress, DODODspProxyAddress, DODOCpProxyAddress, DODODppProxyAddress, DODOMineV3ProxyAddress, DODORouteProxyAddress]);
|
||||
tx = await DODOApproveProxyInstance.init(multiSigAddress, [DODOV2ProxyAddress, DODODspProxyAddress, DODOCpProxyAddress, DODODppProxyAddress, DODOMineV3ProxyAddress, DODOFeeRouteProxy1Address, DODOFeeRouteProxy2Address]);
|
||||
logger.log("DODOApproveProxy Init tx: ", tx.tx);
|
||||
|
||||
//Approve init
|
||||
const DODOApproveInstance = await DODOApprove.at(DODOApproveAddress);
|
||||
tx = await DODOApproveInstance.init(multiSigAddress, DODOApproveProxy.address);
|
||||
tx = await DODOApproveInstance.init(multiSigAddress, DODOApproveProxyAddress);
|
||||
logger.log("DODOApprove Init tx: ", tx.tx);
|
||||
|
||||
|
||||
@@ -585,12 +588,12 @@ module.exports = async (deployer, network, accounts) => {
|
||||
tx = await FeeRateModelInstance.setFeeProxy(FeeRateDIP3ImplAddress);
|
||||
logger.log("Set FeeRateImpl tx: ", tx.tx);
|
||||
|
||||
//ERC20V3Factory 设置fee
|
||||
const ERC20V3FactoryInstance = await ERC20V3Factory.at(ERC20V3FactoryAddress);
|
||||
tx = await ERC20V3FactoryInstance.changeCreateFee("100000000000000000");
|
||||
logger.log("Set ERC20V3 fee tx: ", tx.tx);
|
||||
//ERC20V3Factory set fee
|
||||
// const ERC20V3FactoryInstance = await ERC20V3Factory.at(ERC20V3FactoryAddress);
|
||||
// tx = await ERC20V3FactoryInstance.changeCreateFee("100000000000000000");
|
||||
// logger.log("Set ERC20V3 fee tx: ", tx.tx);
|
||||
|
||||
//DODOMineV2Factory 设置个人账户为owner
|
||||
//DODOMineV2Factory set owner
|
||||
const dodoMineV2FactoryInstance = await DODOMineV2Factory.at(DODOMineV2FactoryAddress);
|
||||
var tx = await dodoMineV2FactoryInstance.initOwner(multiSigAddress);
|
||||
logger.log("Init DODOMineV2Factory Tx:", tx.tx);
|
||||
|
||||
20214
package-lock.json
generated
20214
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -55,6 +55,7 @@
|
||||
"prettier": "^2.0.5",
|
||||
"prettier-plugin-solidity": "^1.0.0-alpha.52",
|
||||
"solidity-coverage": "^0.7.7",
|
||||
"truffle-assertions": "^0.9.2"
|
||||
"truffle-assertions": "^0.9.2",
|
||||
"truffle-plugin-verify": "^0.6.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ var infuraId = process.env.infuraId;
|
||||
require("ts-node/register"); // eslint-disable-line
|
||||
require("dotenv-flow").config(); // eslint-disable-line
|
||||
|
||||
const { LINEASCAN_API_KEY, BASESCAN_API_KEY } = process.env;
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Networks define how you connect to your ethereum client and let you set the
|
||||
@@ -74,6 +76,12 @@ module.exports = {
|
||||
port: 24012,
|
||||
},
|
||||
|
||||
api_keys: {
|
||||
lineascan: LINEASCAN_API_KEY,
|
||||
basescan: BASESCAN_API_KEY,
|
||||
scroll: "fakekey",
|
||||
},
|
||||
|
||||
networks: {
|
||||
// Useful for testing. The `development` name is special - truffle uses it by default
|
||||
// if it's defined here and no other network is specified at the command line.
|
||||
@@ -265,7 +273,7 @@ module.exports = {
|
||||
mocha: {
|
||||
timeout: false,
|
||||
},
|
||||
plugins: ["solidity-coverage"],
|
||||
plugins: ["solidity-coverage", "truffle-plugin-verify"],
|
||||
// Configure your compilers
|
||||
compilers: {
|
||||
solc: {
|
||||
|
||||
Reference in New Issue
Block a user