deploy on rinkeby
This commit is contained in:
@@ -331,7 +331,7 @@ module.exports = async (deployer, network, accounts) => {
|
||||
logger.log("Init DODOProxyV2 Tx:", tx.tx);
|
||||
|
||||
|
||||
if (network == 'kovan' || network == 'mbtestnet' || network == 'oktest' || network == 'matic' || network == 'arb') {
|
||||
if (network == 'kovan' || network == 'mbtestnet' || network == 'oktest' || network == 'matic' || network == 'arb' || network == 'rinkeby') {
|
||||
|
||||
const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
|
||||
var tx = await DODOApproveProxyInstance.init(multiSigAddress, [DODOProxyV2.address, DODOCpProxy.address, DODODspProxy.address]);
|
||||
|
||||
@@ -19,6 +19,7 @@ const MultiCall = artifacts.require("Multicall");
|
||||
const LockedTokenVault = artifacts.require("LockedTokenVault");
|
||||
const DODORouteProxy = artifacts.require("DODORouteProxy");
|
||||
const DODOCpProxy = artifacts.require("DODOCpProxy");
|
||||
const DODOApproveProxy = artifacts.require("DODOApproveProxy");
|
||||
|
||||
const DspTemplate = artifacts.require("DSP");
|
||||
const DspFactory = artifacts.require("DSPFactory");
|
||||
@@ -385,30 +386,30 @@ module.exports = async (deployer, network, accounts) => {
|
||||
logger.log("Init DODOCirculationHelperAddress Tx:", tx.tx);
|
||||
}
|
||||
|
||||
if (network == 'kovan') {
|
||||
if (network == 'kovan' || network == 'rinkeby') {
|
||||
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);
|
||||
// logger.log("DODOApproveProxy Unlock tx: ", tx.tx);
|
||||
// tx = await DODOApproveProxyInstance.addDODOProxy();
|
||||
// logger.log("DODOApproveProxy add tx: ", tx.tx);
|
||||
const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
|
||||
tx = await DODOApproveProxyInstance.unlockAddProxy(vDODOTokenAddress);
|
||||
logger.log("DODOApproveProxy Unlock tx: ", tx.tx);
|
||||
tx = await DODOApproveProxyInstance.addDODOProxy();
|
||||
logger.log("DODOApproveProxy add tx: ", tx.tx);
|
||||
|
||||
// //Mint DODO first
|
||||
// tx = await vDODOTokenInstance.mint("100000000000000000000000",dodoTeam);
|
||||
// logger.log("vDODOToken first mint tx: ", tx.tx);
|
||||
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);
|
||||
tx = await vDODOTokenInstance.preDepositedBlockReward("10000000000000000000000000");
|
||||
logger.log("vDODOToken injected dodo tx: ", tx.tx);
|
||||
|
||||
// //changePerReward
|
||||
// tx = await vDODOTokenInstance.changePerReward("100000000000000000");
|
||||
// logger.log("vDODOToken changeReward tx: ", tx.tx);
|
||||
tx = await vDODOTokenInstance.changePerReward("10000000000000000");
|
||||
logger.log("vDODOToken changeReward tx: ", tx.tx);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ module.exports = async (deployer, network, accounts) => {
|
||||
logger.log("Init DODONFTProxyAddress Tx:", tx.tx);
|
||||
}
|
||||
|
||||
if (network == 'kovan') {
|
||||
if (network == 'kovan' || network == 'rinkeby') {
|
||||
|
||||
const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
|
||||
var tx = await DODOApproveProxyInstance.unlockAddProxy(DODONFTProxyAddress);
|
||||
|
||||
@@ -38,11 +38,11 @@ module.exports = async (deployer, network, accounts) => {
|
||||
var baseUri = ""
|
||||
var name = "DROPS"
|
||||
var symbol = "DROPS"
|
||||
var buyToken = "0x854b0f89BAa9101e49Bfb357A38071C9db5d0DFa" //Kovan DODO
|
||||
var sellTimeIntervals = [curTime + 60 * 10, curTime + 60 * 60 * 24 * 2, curTime + 60 * 60 * 24 * 7]
|
||||
var buyToken = CONFIG.DODO //DODO
|
||||
var sellTimeIntervals = [curTime + 60 * 60 * 12, curTime + 60 * 60 * 24 * 2, curTime + 60 * 60 * 24 * 4]
|
||||
var sellPrices = ["1000000000000000000", "2000000000000000000", "0"]
|
||||
var sellAmount = [30, 50, 0]
|
||||
var redeemTime = curTime + 60 * 30
|
||||
var redeemTime = curTime + 60 * 60 * 12
|
||||
var probIntervals = [4, 10, 50, 100, 105]
|
||||
var tokenIdMaps = [
|
||||
[0],
|
||||
@@ -136,7 +136,7 @@ module.exports = async (deployer, network, accounts) => {
|
||||
logger.log("Init DODODrops Tx:", tx.tx);
|
||||
|
||||
|
||||
if (network == 'kovan') {
|
||||
if (network == 'kovan' || network == 'rinkeby') {
|
||||
|
||||
const DODOApproveProxyInstance = await DODOApproveProxy.at(DODOApproveProxyAddress);
|
||||
var tx = await DODOApproveProxyInstance.unlockAddProxy(DropsProxyAddress);
|
||||
|
||||
Reference in New Issue
Block a user