From 1aaa221ab3bd9b779abf68069af3a3e1b0507fd7 Mon Sep 17 00:00:00 2001 From: wojciech-turek Date: Wed, 4 Oct 2023 12:11:12 +0200 Subject: [PATCH 1/2] Update ipfs hashes --- .../deploy/300_catalyst/301_deploy_catalyst.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/deploy/deploy/300_catalyst/301_deploy_catalyst.ts b/packages/deploy/deploy/300_catalyst/301_deploy_catalyst.ts index a8fa7d26a2..de0618db6b 100644 --- a/packages/deploy/deploy/300_catalyst/301_deploy_catalyst.ts +++ b/packages/deploy/deploy/300_catalyst/301_deploy_catalyst.ts @@ -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 ( From 3a903bdcc5e695b87e5610cc5d1ed9435936b5b2 Mon Sep 17 00:00:00 2001 From: wojciech-turek Date: Wed, 4 Oct 2023 12:11:31 +0200 Subject: [PATCH 2/2] Remove code added for mumbai testing --- .../deploy/300_catalyst/302_catalyst_setup.ts | 44 +------------------ 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/packages/deploy/deploy/300_catalyst/302_catalyst_setup.ts b/packages/deploy/deploy/300_catalyst/302_catalyst_setup.ts index 2ab6aab47f..ea6bc3b3a7 100644 --- a/packages/deploy/deploy/300_catalyst/302_catalyst_setup.ts +++ b/packages/deploy/deploy/300_catalyst/302_catalyst_setup.ts @@ -9,49 +9,7 @@ const func: DeployFunction = async function ( ): Promise { 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');