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

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,