diff --git a/packages/deploy/deploy/100_claim/100_multi_claim.ts b/packages/deploy/deploy/100_claim/100_multi_claim.ts index 0e0e832fdb..0588e8f704 100644 --- a/packages/deploy/deploy/100_claim/100_multi_claim.ts +++ b/packages/deploy/deploy/100_claim/100_multi_claim.ts @@ -7,7 +7,7 @@ const func: DeployFunction = async function ( const {deployments, getNamedAccounts} = hre; const {deployer, upgradeAdmin, sandAdmin} = await getNamedAccounts(); const TRUSTED_FORWARDER = await deployments.get('TRUSTED_FORWARDER_V2'); - await deployments.deploy('MultiGiveawayV1', { + await deployments.deploy('SignedMultiGiveaway', { from: deployer, contract: '@sandbox-smart-contracts/giveaway/contracts/SignedMultiGiveaway.sol:SignedMultiGiveaway', @@ -26,5 +26,5 @@ const func: DeployFunction = async function ( }; export default func; -func.tags = ['MultiGiveawayV1', 'MultiGiveawayV1_deploy', 'L2']; +func.tags = ['SignedMultiGiveaway', 'SignedMultiGiveaway_deploy', 'L2']; func.dependencies = ['TRUSTED_FORWARDER_V2']; diff --git a/packages/deploy/deploy/100_claim/200_multi_claim_role_setup.ts b/packages/deploy/deploy/100_claim/200_multi_claim_role_setup.ts index 9db2390e5d..59e2a13727 100644 --- a/packages/deploy/deploy/100_claim/200_multi_claim_role_setup.ts +++ b/packages/deploy/deploy/100_claim/200_multi_claim_role_setup.ts @@ -7,10 +7,10 @@ const func: DeployFunction = async function ( const {deployments, getNamedAccounts} = hre; const {execute, read, catchUnknownSigner} = deployments; const {sandAdmin, backendCashbackWallet} = await getNamedAccounts(); - const signerRole = await read('MultiGiveawayV1', 'SIGNER_ROLE'); + const signerRole = await read('SignedMultiGiveaway', 'SIGNER_ROLE'); if ( !(await read( - 'MultiGiveawayV1', + 'SignedMultiGiveaway', 'hasRole', signerRole, backendCashbackWallet @@ -18,7 +18,7 @@ const func: DeployFunction = async function ( ) { await catchUnknownSigner( execute( - 'MultiGiveawayV1', + 'SignedMultiGiveaway', {from: sandAdmin, log: true}, 'grantRole', signerRole, @@ -29,5 +29,5 @@ const func: DeployFunction = async function ( }; export default func; -func.tags = ['MultiGiveawayV1', 'MultiGiveawayV1_role_setup', 'L2']; -func.dependencies = ['MultiGiveawayV1_deploy']; +func.tags = ['SignedMultiGiveaway', 'SignedMultiGiveaway_role_setup', 'L2']; +func.dependencies = ['SignedMultiGiveaway_deploy']; diff --git a/packages/deploy/deployments/mumbai/MultiGiveawayV1.json b/packages/deploy/deployments/mumbai/SignedMultiGiveaway.json similarity index 100% rename from packages/deploy/deployments/mumbai/MultiGiveawayV1.json rename to packages/deploy/deployments/mumbai/SignedMultiGiveaway.json diff --git a/packages/deploy/deployments/mumbai/MultiGiveawayV1_Implementation.json b/packages/deploy/deployments/mumbai/SignedMultiGiveaway_Implementation.json similarity index 100% rename from packages/deploy/deployments/mumbai/MultiGiveawayV1_Implementation.json rename to packages/deploy/deployments/mumbai/SignedMultiGiveaway_Implementation.json diff --git a/packages/deploy/deployments/mumbai/MultiGiveawayV1_Proxy.json b/packages/deploy/deployments/mumbai/SignedMultiGiveaway_Proxy.json similarity index 100% rename from packages/deploy/deployments/mumbai/MultiGiveawayV1_Proxy.json rename to packages/deploy/deployments/mumbai/SignedMultiGiveaway_Proxy.json diff --git a/packages/deploy/test/multiGiveaway/multiGiveaway.test.ts b/packages/deploy/test/multiGiveaway/multiGiveaway.test.ts index 91ffd9ae3c..7452e12914 100644 --- a/packages/deploy/test/multiGiveaway/multiGiveaway.test.ts +++ b/packages/deploy/test/multiGiveaway/multiGiveaway.test.ts @@ -1,16 +1,16 @@ import {getContract, withSnapshot} from '../../utils/testUtils'; import {expect} from 'chai'; -const setupTest = withSnapshot(['MultiGiveawayV1'], async (hre) => { +const setupTest = withSnapshot(['SignedMultiGiveaway'], async (hre) => { const namedAccount = await hre.getNamedAccounts(); - const contract = await getContract(hre, 'MultiGiveawayV1'); + const contract = await getContract(hre, 'SignedMultiGiveaway'); return { contract, namedAccount, }; }); -describe('MultiGiveawayV1', function () { +describe('SignedMultiGiveaway', function () { describe('check roles', function () { it('admin', async function () { const fixtures = await setupTest();