becrypto/migrations/7_deploy_market.js
2023-06-21 11:14:48 +08:00

60 lines
1.8 KiB
JavaScript

const BENftMarket = artifacts.require("market/BENftMarket");
const BENftMall = artifacts.require("market/BENftMall");
const GameItemMarket = artifacts.require("market/GameItemMarket");
const GameItemMall = artifacts.require("market/GameItemMall");
const base = require("../scripts/base");
module.exports = async function (deployer, network, accounts) {
// await deployer.deploy(BENftMarket);
// const marketInstance = await BENftMarket.deployed();
// if (marketInstance) {
// console.log("MarketPlace successfully deployed.");
// }
// base.updateArray({
// name: "BENftMarket",
// type: "logic",
// json: "assets/contracts/BENftMarket.json",
// address: marketInstance.address,
// network,
// });
await deployer.deploy(BENftMall);
const nftMallInstance = await BENftMall.deployed();
if (nftMallInstance) {
console.log("BENftMall successfully deployed.");
}
base.updateArray({
name: "BENftMall",
type: "logic",
json: "assets/contracts/BENftMall.json",
address: nftMallInstance.address,
network,
});
// await deployer.deploy(GameItemMarket);
// const gameMarketInstance = await GameItemMarket.deployed();
// if (gameMarketInstance) {
// console.log("GameItemMarket successfully deployed.");
// }
// base.updateArray({
// name: "GameItemMarket",
// type: "logic",
// json: "assets/contracts/GameItemMarket.json",
// address: gameMarketInstance.address,
// network,
// });
// await deployer.deploy(GameItemMall);
// const gameMallInstance = await GameItemMall.deployed();
// if (gameMallInstance) {
// console.log("GameItemMall successfully deployed.");
// }
// base.updateArray({
// name: "GameItemMall",
// type: "logic",
// json: "assets/contracts/GameItemMall.json",
// address: gameMallInstance.address,
// network,
// });
};