38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
const Badge = artifacts.require("tokens/erc721/BEBadge");
|
|
const Coin = artifacts.require("tokens/erc20/BEUSDT");
|
|
const Wallet = artifacts.require("tokens/erc721/BEMultiSigWallet");
|
|
const config = require("../config/config");
|
|
|
|
module.exports = async function (deployer, network, accounts) {
|
|
// await deployer.deploy(Badge, "BE Badge", "Badge", "0");
|
|
// const badgeInstance = await Badge.deployed();
|
|
// if (badgeInstance) {
|
|
// console.log("BEBadge successfully deployed. ");
|
|
// console.log("address: " + badgeInstance.address);
|
|
// }
|
|
// 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);
|
|
// }
|
|
await deployer.deploy(
|
|
Wallet,
|
|
60,
|
|
1,
|
|
config.admins.proposers,
|
|
config.admins.confirmers,
|
|
config.admins.executors
|
|
);
|
|
const walletInstance = await Wallet.deployed();
|
|
if (walletInstance) {
|
|
console.log("BEMultiSigWallet successfully deployed.");
|
|
console.log("address: " + walletInstance.address);
|
|
}
|
|
// 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");
|
|
};
|