change sth
This commit is contained in:
parent
b6e6476cab
commit
d83e480ec3
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity 0.8.10;
|
||||
|
||||
import "../core/HasSignature.sol";
|
||||
import "../core/HasSignature712.sol";
|
||||
import "../utils/TimeChecker.sol";
|
||||
|
||||
interface IToken {
|
||||
@ -20,8 +20,8 @@ interface IToken {
|
||||
) external;
|
||||
}
|
||||
|
||||
contract ExecuteRelay is HasSignature, TimeChecker {
|
||||
constructor() HasSignature("ExecuteRelay", "1") {}
|
||||
contract ExecuteRelay is HasSignature712, TimeChecker {
|
||||
constructor() HasSignature712("ExecuteRelay", "1") {}
|
||||
|
||||
address public tokenAddress;
|
||||
|
||||
|
@ -113,7 +113,7 @@ contract MarketPlace is Ownable, HasSignature {
|
||||
values[2]
|
||||
);
|
||||
|
||||
checkSigner712(addresses[0], criteriaMessageHash, signature);
|
||||
checkSigner(addresses[0], criteriaMessageHash, signature);
|
||||
|
||||
// check current ownership
|
||||
IERC721 nft = IERC721(addresses[1]);
|
||||
|
@ -1,38 +1,38 @@
|
||||
const Badge = artifacts.require("tokens/erc721/BEBadge");
|
||||
const Coin = artifacts.require("tokens/erc20/BEUSDT");
|
||||
// const Badge = artifacts.require("tokens/erc721/BEBadge");
|
||||
// const Coin = artifacts.require("tokens/erc20/BEUSDT");
|
||||
const Wallet = artifacts.require("core/BEMultiSigWallet");
|
||||
const Distributor = artifacts.require("logic/NftDistributor");
|
||||
// const Distributor = artifacts.require("logic/NftDistributor");
|
||||
const config = require("../config/config");
|
||||
const base = require("../scripts/base");
|
||||
|
||||
module.exports = async function (deployer, network, accounts) {
|
||||
await deployer.deploy(Badge, "BE Badge", "Badge", "4000");
|
||||
const badgeInstance = await Badge.deployed();
|
||||
if (badgeInstance) {
|
||||
console.log("BEBadge successfully deployed. ");
|
||||
console.log("address: " + badgeInstance.address);
|
||||
}
|
||||
base.updateArray({
|
||||
name: "BEBadge",
|
||||
type: "erc721",
|
||||
json: "assets/contracts/BEBadge.json",
|
||||
address: badgeInstance.address,
|
||||
network,
|
||||
});
|
||||
await badgeInstance.updateBaseURI(config.token.baseTokenURI);
|
||||
await deployer.deploy(Coin, "BE test USDT", "USDT");
|
||||
const coinInstance = await Coin.deployed();
|
||||
if (coinInstance) {
|
||||
console.log("BEUSDT successfully deployed. ");
|
||||
console.log("address: " + coinInstance.address);
|
||||
}
|
||||
base.updateArray({
|
||||
name: "BEUSDT",
|
||||
type: "erc20",
|
||||
json: "assets/contracts/BEUSDT.json",
|
||||
address: coinInstance.address,
|
||||
network,
|
||||
});
|
||||
// await deployer.deploy(Badge, "BE Badge", "Badge", "4000");
|
||||
// const badgeInstance = await Badge.deployed();
|
||||
// if (badgeInstance) {
|
||||
// console.log("BEBadge successfully deployed. ");
|
||||
// console.log("address: " + badgeInstance.address);
|
||||
// }
|
||||
// base.updateArray({
|
||||
// name: "BEBadge",
|
||||
// type: "erc721",
|
||||
// json: "assets/contracts/BEBadge.json",
|
||||
// address: badgeInstance.address,
|
||||
// network,
|
||||
// });
|
||||
// await badgeInstance.updateBaseURI(config.token.baseTokenURI);
|
||||
// await deployer.deploy(Coin, "BE test USDT", "USDT");
|
||||
// const coinInstance = await Coin.deployed();
|
||||
// if (coinInstance) {
|
||||
// console.log("BEUSDT successfully deployed. ");
|
||||
// console.log("address: " + coinInstance.address);
|
||||
// }
|
||||
// base.updateArray({
|
||||
// name: "BEUSDT",
|
||||
// type: "erc20",
|
||||
// json: "assets/contracts/BEUSDT.json",
|
||||
// address: coinInstance.address,
|
||||
// network,
|
||||
// });
|
||||
await deployer.deploy(
|
||||
Wallet,
|
||||
60,
|
||||
@ -53,32 +53,32 @@ module.exports = async function (deployer, network, accounts) {
|
||||
address: walletInstance.address,
|
||||
network,
|
||||
});
|
||||
await badgeInstance.setMintRole(walletInstance.address);
|
||||
console.log("success add wallet to badge's mint role");
|
||||
await coinInstance.setMintRole(walletInstance.address);
|
||||
console.log("success add wallet to usdt's mint role");
|
||||
// await badgeInstance.setMintRole(walletInstance.address);
|
||||
// console.log("success add wallet to badge's mint role");
|
||||
// await coinInstance.setMintRole(walletInstance.address);
|
||||
// console.log("success add wallet to usdt's mint role");
|
||||
|
||||
await deployer.deploy(
|
||||
Distributor,
|
||||
badgeInstance.address,
|
||||
config.admins.executors
|
||||
);
|
||||
const distributorInstance = await Distributor.deployed();
|
||||
if (distributorInstance) {
|
||||
console.log("NftDistributor successfully deployed.");
|
||||
console.log("address: " + distributorInstance.address);
|
||||
}
|
||||
base.updateArray({
|
||||
name: "NftDistributor",
|
||||
type: "logic",
|
||||
json: "assets/contracts/NftDistributor.json",
|
||||
address: distributorInstance.address,
|
||||
network,
|
||||
});
|
||||
await badgeInstance.setMintRole(distributorInstance.address);
|
||||
await distributorInstance.grantRole(
|
||||
"0xa076a07f65bcd51bcb15a0f01a65bc18f2d922acb81bcfd8af4caf5adb557091",
|
||||
walletInstance.address
|
||||
);
|
||||
console.log("success add distributor to badge's mint role");
|
||||
// await deployer.deploy(
|
||||
// Distributor,
|
||||
// badgeInstance.address,
|
||||
// config.admins.executors
|
||||
// );
|
||||
// const distributorInstance = await Distributor.deployed();
|
||||
// if (distributorInstance) {
|
||||
// console.log("NftDistributor successfully deployed.");
|
||||
// console.log("address: " + distributorInstance.address);
|
||||
// }
|
||||
// base.updateArray({
|
||||
// name: "NftDistributor",
|
||||
// type: "logic",
|
||||
// json: "assets/contracts/NftDistributor.json",
|
||||
// address: distributorInstance.address,
|
||||
// network,
|
||||
// });
|
||||
// await badgeInstance.setMintRole(distributorInstance.address);
|
||||
// await distributorInstance.grantRole(
|
||||
// "0xa076a07f65bcd51bcb15a0f01a65bc18f2d922acb81bcfd8af4caf5adb557091",
|
||||
// walletInstance.address
|
||||
// );
|
||||
// console.log("success add distributor to badge's mint role");
|
||||
};
|
||||
|
@ -2,7 +2,8 @@ const config = require("../config/config");
|
||||
const base = require("../scripts/base");
|
||||
|
||||
module.exports = async function (deployer, network, accounts) {
|
||||
const tokens = [{ name: "HERO", desc: "CRYPTO ELITE'S HERO", limit: 0 }];
|
||||
// const tokens = [{ name: "HERO", desc: "CRYPTO ELITE'S HERO", limit: 0 }];
|
||||
const tokens = [{ name: "PLANET", desc: "CF PLANET", limit: 0 }];
|
||||
for (let i = 0, l = tokens.length; i < l; i++) {
|
||||
const { name, desc, limit } = tokens[i];
|
||||
let Nft = artifacts.require("tokens/erc721/NFT");
|
||||
|
Loading…
x
Reference in New Issue
Block a user