update deploy claim script
This commit is contained in:
parent
17b67330eb
commit
f5732486ff
@ -7,31 +7,31 @@ const config = require("../config/config");
|
||||
module.exports = async function (deployer, network, accounts) {
|
||||
const name = "Gacha";
|
||||
const symbol = "GACHA";
|
||||
// await deployer.deploy(Box, name, symbol, 0);
|
||||
await deployer.deploy(Box, name, symbol, 0);
|
||||
const gachaInstance = await Box.deployed();
|
||||
if (gachaInstance) {
|
||||
console.log("claim box successfully deployed.");
|
||||
}
|
||||
// base.updateArray({
|
||||
// name: "Gacha",
|
||||
// type: "erc721",
|
||||
// json: "assets/contracts/BEBadge.json",
|
||||
// address: gachaInstance.address,
|
||||
// network,
|
||||
// });
|
||||
base.updateArray({
|
||||
name: "Gacha",
|
||||
type: "erc721",
|
||||
json: "assets/contracts/BEBadge.json",
|
||||
address: gachaInstance.address,
|
||||
network,
|
||||
});
|
||||
|
||||
// await deployer.deploy(Factory);
|
||||
await deployer.deploy(Factory);
|
||||
const factoryInstance = await Factory.deployed();
|
||||
if (factoryInstance) {
|
||||
console.log("claim box factory successfully deployed.");
|
||||
}
|
||||
// base.updateArray({
|
||||
// name: "ClaimGachaFactory",
|
||||
// type: "logic",
|
||||
// json: "assets/contracts/ClaimBoxFactory.json",
|
||||
// address: factoryInstance.address,
|
||||
// network,
|
||||
// });
|
||||
base.updateArray({
|
||||
name: "ClaimGachaFactory",
|
||||
type: "logic",
|
||||
json: "assets/contracts/ClaimBoxFactory.json",
|
||||
address: factoryInstance.address,
|
||||
network,
|
||||
});
|
||||
|
||||
await deployer.deploy(Metadata);
|
||||
const metadataInstance = await Metadata.deployed();
|
||||
@ -46,16 +46,16 @@ module.exports = async function (deployer, network, accounts) {
|
||||
network,
|
||||
});
|
||||
|
||||
// await gachaInstance.setMintRole(factoryInstance.address);
|
||||
// console.log(
|
||||
// `success set mint role to: ${factoryInstance.address} claim box `
|
||||
// );
|
||||
await gachaInstance.setMintRole(factoryInstance.address);
|
||||
console.log(
|
||||
`success set mint role to: ${factoryInstance.address} claim box `
|
||||
);
|
||||
|
||||
// await factoryInstance.addTokenSupport(gachaInstance.address);
|
||||
// console.log(`success add token support to: ${gachaInstance.address}`);
|
||||
await factoryInstance.addTokenSupport(gachaInstance.address);
|
||||
console.log(`success add token support to: ${gachaInstance.address}`);
|
||||
|
||||
// await factoryInstance.updateExecutor(config.admins.admin);
|
||||
// console.log(`success update executor to: ${config.admins.admin}`);
|
||||
await factoryInstance.updateExecutor(config.admins.admin);
|
||||
console.log(`success update executor to: ${config.admins.admin}`);
|
||||
|
||||
await gachaInstance.updateMetaAddress(metadataInstance.address);
|
||||
console.log(`success update meta address for: ${gachaInstance.address}`);
|
||||
|
@ -47,18 +47,6 @@
|
||||
"json": "assets/contracts/UserMinterFactory.json",
|
||||
"address": "0x1A27515c35a92Fb276c2670fa27C85ffAd75D094"
|
||||
},
|
||||
{
|
||||
"name": "Gacha",
|
||||
"type": "erc721",
|
||||
"json": "assets/contracts/BEBadge.json",
|
||||
"address": "0xE4546FA6DdC15442a1FED835e7A007b001213495"
|
||||
},
|
||||
{
|
||||
"name": "ClaimGachaFactory",
|
||||
"type": "logic",
|
||||
"json": "assets/contracts/ClaimBoxFactory.json",
|
||||
"address": "0x41a7f94f0B3b615F84c7084F45556FEf1bd18A18"
|
||||
},
|
||||
{
|
||||
"name": "BENftMarket",
|
||||
"type": "logic",
|
||||
@ -88,5 +76,23 @@
|
||||
"type": "erc721",
|
||||
"json": "assets/contracts/NFT.json",
|
||||
"address": "0xae37bb7BcA26Bab9a11D8BaE8fdB97f63b82c189"
|
||||
},
|
||||
{
|
||||
"name": "Gacha",
|
||||
"type": "erc721",
|
||||
"json": "assets/contracts/BEBadge.json",
|
||||
"address": "0xEbC170185ad614C05Af38C820020b70E458717F5"
|
||||
},
|
||||
{
|
||||
"name": "ClaimGachaFactory",
|
||||
"type": "logic",
|
||||
"json": "assets/contracts/ClaimBoxFactory.json",
|
||||
"address": "0x52aca1Dd92ac80D230bC47a0c38D3294cFe23D28"
|
||||
},
|
||||
{
|
||||
"name": "JSONMetadata",
|
||||
"type": "logic",
|
||||
"json": "assets/contracts/JSONMetadata.json",
|
||||
"address": "0xfba1F2861718993B94edd5DCe1D06b3Cbe19353d"
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user