发布新的sepolia测试合约

This commit is contained in:
CounterFire2023 2024-03-04 14:36:51 +08:00
parent cf3bcd96c7
commit 0778267901
7 changed files with 10819 additions and 19217 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -3259,7 +3259,7 @@
}
},
"schemaVersion": "3.4.16",
"updatedAt": "2024-02-27T05:13:36.919Z",
"updatedAt": "2024-03-04T02:52:37.017Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

File diff suppressed because one or more lines are too long

View File

@ -19,13 +19,14 @@ contract BEBadgeV2 is Ownable, ERC721Enumerable, ERC721Burnable {
string memory _symbol,
uint256 _supplyLimt
) ERC721(_name, _symbol) {
require(_supplyLimt > 0, "Supply limit must be greater than 0");
supplyLimit = _supplyLimt;
}
/**
* @dev Safely mints a new token and assigns it to the specified address.
* Only the account with the MINTER_ROLE can call this function.
* Only the account with the minter permission can call this function.
* tokenId begin with 1.
* @param _to The address to which the newly minted token will be assigned.
*/

View File

@ -20,7 +20,7 @@ module.exports = async function (deployer, network, accounts) {
// network,
// });
// await deployer.deploy(NFTClaimer);
// await deployer.deploy(NFTClaimer, nftInstance.address);
// const claimInstance = await NFTClaimer.deployed();
// if (claimInstance) {
// console.log("ClaimToken successfully deployed.");
@ -40,13 +40,13 @@ module.exports = async function (deployer, network, accounts) {
const claimerAddress = cfgs.find((c) => c.name === "NFTClaimer").address
const claimInstance = await NFTClaimer.at(claimerAddress);
await claimInstance.updateTokenSupport(nftInstance.address, true);
console.log("updateTokenSupport successfully deployed.");
await claimInstance.updateSigner(config.admins.admin);
console.log("updateSigner successfully deployed.");
await claimInstance.updateStartTime((Date.now() / 1000 | 0) - 3600 * 24);
await claimInstance.updateEndTime((Date.now() / 1000 | 0) + 3600 * 24 * 10);
console.log("update start time and end time successfully deployed.");
await nftInstance.grantRole(await nftInstance.MINTER_ROLE(), claimInstance.address);
await nftInstance.updateMinters(claimInstance.address, true);
await nftInstance.updateMinters(config.admins.admin, true);
console.log("grantRole successfully deployed.");
};

View File

@ -3,12 +3,12 @@
"name": "BEBadgeV2",
"type": "erc721",
"json": "assets/contracts/BEBadgeV2.json",
"address": "0x09F0dFFA584B1277D7c4E44265a6b5D03303Fc99"
"address": "0x1304E6AA241eE3C9ea44Db9e593e85Ae76eC41F1"
},
{
"name": "NFTClaimer",
"type": "logic",
"json": "assets/contracts/NFTClaimer.json",
"address": "0xe4112A9490765463471a9a73050328153C509B0b"
"address": "0x59e751c2037B710090035B6ea928e0cce80aC03f"
}
]