This commit is contained in:
owen05
2021-06-22 11:24:41 +08:00
parent 0e45da2c4d
commit 62794dc9cc
3 changed files with 10 additions and 10 deletions

View File

@@ -74,8 +74,8 @@ module.exports = async (deployer, network, accounts) => {
logger.log("MysteryBoxV1Address: ", MysteryBoxV1Address); logger.log("MysteryBoxV1Address: ", MysteryBoxV1Address);
const MysteryBoxV1Instance = await DODODropsV1.at(MysteryBoxV1Address); const MysteryBoxV1Instance = await DODODropsV1.at(MysteryBoxV1Address);
var tx = await MysteryBoxV1Instance.init( var tx = await MysteryBoxV1Instance.init(
"Fear", "DODOTest",
"Fear", "DODOTest",
"", "",
multiSigAddress, multiSigAddress,
RandomGeneratorAddress RandomGeneratorAddress

View File

@@ -35,15 +35,15 @@ module.exports = async (deployer, network, accounts) => {
var isProb = false; var isProb = false;
var isReveal = false; var isReveal = false;
var curTime = Math.floor(new Date().getTime() / 1000) var curTime = Math.floor(new Date().getTime() / 1000)
var baseUri = "https://ipfs.io/ipfs/QmTTdGzUGkhQwZX8F6v3GEw9cJP3feaP69tuk41ZN2gqfR/" var baseUri = "ipfs://QmTpcX9YE13EcBrU4dg8GNcKXVXTvJaH9MoQzHZYrQtdjk/"
var name = "DROPS" var name = "DROPS"
var symbol = "DROPS" var symbol = "DROPS"
// var buyToken = CONFIG.DODO //DODO // var buyToken = CONFIG.DODO //DODO
var buyToken = "0x0aDCBAE18580120667f7Ff6c6451A426B13c67B7" //USDT Rinkeby var buyToken = "0x0aDCBAE18580120667f7Ff6c6451A426B13c67B7" //USDT Rinkeby
var sellTimeIntervals = [curTime + 60 * 60 * 0.1, curTime + 60 * 60 * 24 * 10, curTime + 60 * 60 * 24 * 20] var sellTimeIntervals = [curTime + 60 * 60, curTime + 60 * 60 * 24 * 15, curTime + 60 * 60 * 24 * 25]
var sellPrices = ["1000000", "3000000", "0"] var sellPrices = ["1000000", "5000000", "0"]
var sellAmount = [500, 626, 0] var sellAmount = [500, 606, 0]
var redeemTime = curTime + 60 * 60 * 0.1 var redeemTime = curTime + 60 * 60
var probIntervals = [4, 10, 50, 100, 105] var probIntervals = [4, 10, 50, 100, 105]
var tokenIdMaps = [ var tokenIdMaps = [
@@ -175,7 +175,7 @@ module.exports = async (deployer, network, accounts) => {
} }
await DODODropsInstance.addFixedAmountInfo(tokenIdList); await DODODropsInstance.addFixedAmountInfo(tokenIdList);
tokenIdList = [] tokenIdList = []
for (var i = 901; i <= 1126; i++) { for (var i = 901; i <= 1106; i++) {
tokenIdList.push(i); tokenIdList.push(i);
} }
await DODODropsInstance.addFixedAmountInfo(tokenIdList); await DODODropsInstance.addFixedAmountInfo(tokenIdList);

View File

@@ -63,7 +63,7 @@ module.exports = {
DEPLOY_NFT: false, DEPLOY_NFT: false,
COLLECTIONS: false, COLLECTIONS: false,
MYSTERYBOX_V1: false, MYSTERYBOX_V1: false,
Drops_V2: false, Drops_V2: true,
}, },
networks: { networks: {
@@ -96,7 +96,7 @@ module.exports = {
networkCheckTimeout: 100000, networkCheckTimeout: 100000,
provider: function () { provider: function () {
return new HDWalletProvider(privKey, "https://rinkeby.infura.io/v3/" + infuraId); return new HDWalletProvider(privKey, "https://rinkeby.infura.io/v3/" + infuraId);
// return new HDWalletProvider(privKey, "https://eth-rinkeby.dodoex.io/"); // return new HDWalletProvider(privKey, "https://eth-rinkeby.dodoex.io");
}, },
gas: 10000000, gas: 10000000,
gasPrice: 1500000000, gasPrice: 1500000000,