Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cat polygon deployment #1198

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions packages/deploy/deploy/300_catalyst/301_deploy_catalyst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import {HardhatRuntimeEnvironment} from 'hardhat/types';

export const CATALYST_BASE_URI = 'ipfs://';

// TODO: update for polygon-mainnet deployment
export const CATALYST_IPFS_CID_PER_TIER = [
'bafybeiecnz7snx763tcxwbsitbucltcxp7ma5siqbgda35bl3tsfeeti4m', // TSB Exclusive
'bafkreib5tky3dgsc7zy637dfunb4zwwnpzo3w3i5tepbfee42eq3srwnwq', // Common
'bafkreiegevvim5q3ati4htsncxwsejfc3lbkzb7wn2a2fzthc6tsof7v7m', // Uncommon
'bafkreifhtkou5a32xrtktdvfqrvgh4mp2ohvlyqdsih5xk4kgcfywtxefi', // Rare
'bafkreigqpb7qo3iqka4243oah3nka6agx3nmvwzauxze2jznotx3zwozqe', // Epic
'bafkreih3itsiwkn2urzfvg26mby3ssgfshvdr6zfabr6rxxrlzhedqil4e', // Legendary
'bafkreibmngauozzidz2eevyyb3umf2ew7zexing3ghup6l7io2ao522mvy', // Mythic
'bafkreieg56vikzi3kq3dqrrdjgetx6zf32btyh2f3gto3x6252yyqxzt4i', // Common
'bafkreidh2ar2he4gynkmelfwreu66v6il5ttxnzvfwpjblk63qg7nzelhy', // Uncommon
'bafkreifipzgz26f54wbmtcf6w2t2cy54nszys64vah7lnppf2v3am2spkm', // Rare
'bafkreihjwavnyuyzoiynzqul6b3ssfmydwfgjzokj6hmsv54gxsylfmpvq', // Epic
'bafkreiccvcwddfpyfmyam3fz2yokseitqsgyooudoh4vhkdx7ziahz7goa', // Legendary
'bafkreidzh2gvadeuvw4x4xdgrb6uhkyfgn4sk5d47hffro6lrrapjcajn4', // Mythic
];

const func: DeployFunction = async function (
Expand Down
44 changes: 1 addition & 43 deletions packages/deploy/deploy/300_catalyst/302_catalyst_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,7 @@ const func: DeployFunction = async function (
): Promise<void> {
const {deployments, getNamedAccounts} = hre;
const {execute, read, catchUnknownSigner, log} = deployments;
const {catalystAdmin, contractRoyaltySetter} = await getNamedAccounts();

// TODO Remove below before mainnet deployment
const minterRole = await read('Catalyst', 'MINTER_ROLE');
if (
!(await read(
'Catalyst',
'hasRole',
minterRole,
'0xf41671100948bcb80CB9eFbD3fba16c2898d9ef7' // Diego's mumbai wallet
))
) {
await catchUnknownSigner(
execute(
'Catalyst',
{from: catalystAdmin, log: true},
'grantRole',
minterRole,
'0xf41671100948bcb80CB9eFbD3fba16c2898d9ef7'
)
);
log(`MINTER_ROLE granted to 0xf41671100948bcb80CB9eFbD3fba16c2898d9ef7`);
}
if (
!(await read(
'Catalyst',
'hasRole',
minterRole,
'0x803E1522e136121c058dc9541E7B3164957c200e' // Seba's mumbai wallet
))
) {
await catchUnknownSigner(
execute(
'Catalyst',
{from: catalystAdmin, log: true},
'grantRole',
minterRole,
'0x803E1522e136121c058dc9541E7B3164957c200e'
)
);
log(`MINTER_ROLE granted to 0x803E1522e136121c058dc9541E7B3164957c200e`);
}
// TODO END
const {contractRoyaltySetter} = await getNamedAccounts();

// set catalyst on Royalty Manager
const catalyst = await deployments.get('Catalyst');
Expand Down
Loading