更新英雄和金砖的地址
This commit is contained in:
parent
0cb0cadc67
commit
5e6e4f30eb
@ -21,9 +21,10 @@ const admins = {
|
||||
};
|
||||
|
||||
const token = {
|
||||
baseTokenURI: "https://market.cebg.games/api/nft/info/",
|
||||
contractURI: 'https://market.cebg.games/api/nft/info/',
|
||||
baseTokenURIHero: "https://nft-test.kingsome.cn/hero/meta/13473/",
|
||||
contractURI: 'https://nft-test.kingsome.cn/hero/meta/13473/',
|
||||
royaltyReceiver: '0x5Ab03Aa79Ab91B7420b5CFF134a4188388888888',
|
||||
baseTokenURIGold: "https://nft-test.kingsome.cn/gold_bullion/meta/13473/",
|
||||
royaltyFee: 5,
|
||||
};
|
||||
|
||||
|
@ -8,21 +8,49 @@ const deployNFTForGame: DeployFunction =
|
||||
const from = await (await provider.getSigner()).getAddress();
|
||||
const config = require(`../config/config_${hre.network.name}`);
|
||||
console.log(config);
|
||||
let { operatorAllowlist } = config.imtbl;
|
||||
if (hre.network.name == 'imtbl_test') {
|
||||
// const allowListRet = await hre.deployments.deploy('OperatorAllowlist', {
|
||||
// from,
|
||||
// args: [from],
|
||||
// log: true,
|
||||
// });
|
||||
// console.log("==OperatorAllowlist addr=", allowListRet.address);
|
||||
// operatorAllowlist = allowListRet.address;
|
||||
operatorAllowlist = '0x3c5991E9A0e6c713163cD0a91f246dc61f18d918'
|
||||
}
|
||||
|
||||
const owner = from;
|
||||
const name = "CFHero";
|
||||
const symbol = "CFH";
|
||||
// testnet: 0x6b969FD89dE634d8DE3271EbE97734FEFfcd58eE
|
||||
// mainnet: 0x5F5EBa8133f68ea22D712b0926e2803E78D89221
|
||||
const { operatorAllowlist } = config.imtbl;
|
||||
const { royaltyReceiver, feeNumerator, baseURI, contractURI } = config.token;
|
||||
// testnet_CF: 0x3c5991E9A0e6c713163cD0a91f246dc61f18d918
|
||||
const { royaltyReceiver, royaltyFee, baseTokenURIHero, baseTokenURIGold, contractURI } = config.token;
|
||||
console.log(owner, name, symbol, baseTokenURIHero, contractURI, operatorAllowlist, royaltyReceiver, royaltyFee)
|
||||
// const ret = await hre.deployments.deploy("CFNFTGame", {
|
||||
// from,
|
||||
// args: [owner, name, symbol, baseTokenURIHero, contractURI, operatorAllowlist, royaltyReceiver, royaltyFee],
|
||||
// log: true,
|
||||
// });
|
||||
// console.log("==CFNFTGame addr=", ret.address);
|
||||
// updateArray({
|
||||
// name: "CFHero",
|
||||
// type: "erc721",
|
||||
// json: "assets/contracts/CFNFTGame.json",
|
||||
// address: ret.address,
|
||||
// network: hre.network.name,
|
||||
// });
|
||||
const nameGold = "CFGold brick";
|
||||
const symbolGold = "CFG";
|
||||
const ret = await hre.deployments.deploy("CFNFTGame", {
|
||||
from,
|
||||
args: [owner, name, symbol, baseURI, contractURI, operatorAllowlist, royaltyReceiver, feeNumerator],
|
||||
args: [owner, nameGold, symbolGold, baseTokenURIGold, contractURI, operatorAllowlist, royaltyReceiver, royaltyFee],
|
||||
log: true,
|
||||
});
|
||||
console.log("==CFNFTGame addr=", ret.address);
|
||||
updateArray({
|
||||
name: "CFHero",
|
||||
name: "GoldBrick",
|
||||
type: "erc721",
|
||||
json: "assets/contracts/CFNFTGame.json",
|
||||
address: ret.address,
|
||||
|
2146
deployments/imtbl_test/CFNFTGame.json
Normal file
2146
deployments/imtbl_test/CFNFTGame.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,10 +1,4 @@
|
||||
[
|
||||
{
|
||||
"name": "CFHero",
|
||||
"type": "erc721",
|
||||
"json": "assets/contracts/CFNFTGame.json",
|
||||
"address": "0xaa34B79A0Ab433eaC900fB3CB9f191F5Cd27501D"
|
||||
},
|
||||
{
|
||||
"name": "TestToken",
|
||||
"type": "erc20",
|
||||
@ -22,5 +16,17 @@
|
||||
"type": "logic",
|
||||
"json": "assets/contracts/NFTLock.json",
|
||||
"address": "0x59e751c2037B710090035B6ea928e0cce80aC03f"
|
||||
},
|
||||
{
|
||||
"name": "CFHero",
|
||||
"type": "erc721",
|
||||
"json": "assets/contracts/CFNFTGame.json",
|
||||
"address": "0x23e7Ef7D6F9bc3305E8EF0Fa1e5e12C1D5a4b06B"
|
||||
},
|
||||
{
|
||||
"name": "GoldBrick",
|
||||
"type": "erc721",
|
||||
"json": "assets/contracts/CFNFTGame.json",
|
||||
"address": "0x2036A0708AC2F17F67b08357d8b4A7d47cF49c29"
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user