Skip to content

Commit

Permalink
⬆️ Upgrade to solidity 0.8.23
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Dec 29, 2023
1 parent 021f388 commit 86351dc
Show file tree
Hide file tree
Showing 54 changed files with 96 additions and 93 deletions.
50 changes: 25 additions & 25 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
ContentPoolTest:test_addReward_InvalidReward_ko() (gas: 28972)
ContentPoolTest:test_addReward_InvalidRole_ko() (gas: 17640)
ContentPoolTest:test_addReward_ok() (gas: 66202)
ContentPoolTest:test_canBeDeployedAndInit_ok() (gas: 2820972)
ContentPoolTest:test_getRewardStates_ok() (gas: 223662)
ContentPoolTest:test_canBeDeployedAndInit_ok() (gas: 2821772)
ContentPoolTest:test_getRewardStates_ok() (gas: 223663)
ContentPoolTest:test_initialize_InitTwice_ko() (gas: 17982)
ContentPoolTest:test_participantStates_ok() (gas: 220752)
ContentPoolTest:test_updateUserAndPool_WithRewardBeforeState_ok() (gas: 428709)
ContentPoolTest:test_updateUserAndPool_ok() (gas: 325512)
ContentPoolTest:test_updateUser_MultiTokenTransfer_ok() (gas: 539500)
ContentPoolTest:test_updateUser_WithRewardBeforeStateChange_ok() (gas: 713307)
ContentPoolTest:test_updateUser_ok() (gas: 400284)
FrakTeasuryWalletTest:test_canBeDeployedAndInit_ok() (gas: 1773426)
ContentPoolTest:test_participantStates_ok() (gas: 220753)
ContentPoolTest:test_updateUserAndPool_WithRewardBeforeState_ok() (gas: 428712)
ContentPoolTest:test_updateUserAndPool_ok() (gas: 325513)
ContentPoolTest:test_updateUser_MultiTokenTransfer_ok() (gas: 539394)
ContentPoolTest:test_updateUser_WithRewardBeforeStateChange_ok() (gas: 713311)
ContentPoolTest:test_updateUser_ok() (gas: 400285)
FrakTeasuryWalletTest:test_canBeDeployedAndInit_ok() (gas: 1773826)
FrakTeasuryWalletTest:test_initialize_InitTwice_ko() (gas: 17937)
FrakTeasuryWalletTest:test_transferBatch_InvalidArray_ko() (gas: 28753)
FrakTeasuryWalletTest:test_transferBatch_NoReward_ko() (gas: 34416)
Expand All @@ -24,9 +24,9 @@ FrakTeasuryWalletTest:test_transfer_NotEnoughTreasury_ko() (gas: 11321404)
FrakTeasuryWalletTest:test_transfer_NotMinter_ko() (gas: 17684)
FrakTeasuryWalletTest:test_transfer_RewardTooLarge_ko() (gas: 20534)
FrakTeasuryWalletTest:test_transfer_ok() (gas: 136126)
FrakTokenTest:invariant_cap_lt_supply() (runs: 256, calls: 3840, reverts: 3497)
FrakTokenTest:invariant_cap_lt_supply() (runs: 256, calls: 3840, reverts: 3443)
FrakTokenTest:test_burn_ok() (gas: 53321)
FrakTokenTest:test_canBeDeployedAndInit_ok() (gas: 4949212)
FrakTokenTest:test_canBeDeployedAndInit_ok() (gas: 4950012)
FrakTokenTest:test_cap_ok() (gas: 10366)
FrakTokenTest:test_decimals_ok() (gas: 10426)
FrakTokenTest:test_initialize_InitTwice_ko() (gas: 15759)
Expand All @@ -49,23 +49,23 @@ FraktionTokensTest:test_addContent_SupplyUpdateNotAllowed_ko() (gas: 75241)
FraktionTokensTest:test_addContent_ok() (gas: 330174)
FraktionTokensTest:test_batchBalance_ok() (gas: 59879)
FraktionTokensTest:test_burn_ok() (gas: 49614)
FraktionTokensTest:test_canBeDeployedAndInit_ok() (gas: 7339660)
FraktionTokensTest:test_canBeDeployedAndInit_ok() (gas: 7337660)
FraktionTokensTest:test_initialize_InitTwice_ko() (gas: 16030)
FraktionTokensTest:test_ownerOf_ok() (gas: 16910)
FraktionTokensTest:test_permitTransferAll_DelayExpired_ko() (gas: 27984)
FraktionTokensTest:test_permitTransferAll_InvalidNonce_ko() (gas: 50430)
FraktionTokensTest:test_permitTransferAll_InvalidSigner_ko() (gas: 53829)
FraktionTokensTest:test_permitTransferAll_ok() (gas: 77652)
FraktionTokensTest:test_setUpTransferCallback_ok() (gas: 367202)
FraktionTokensTest:test_setUpTransferCallback_ok() (gas: 368003)
FraktionTokensTest:test_supply_InvalidRole_ko() (gas: 53455)
FraktionTokensTest:test_supply_SupplyUpdateNotAllowed_ko() (gas: 45998)
FraktionTokensTest:test_supply_ok() (gas: 87798)
FraktionTokensTest:test_transferAllFrom_ok() (gas: 189678)
FraktionTokensTest:test_transferAllFrom_ok() (gas: 189442)
MinterTest:test_addContent_InvalidRole_ko() (gas: 17786)
MinterTest:test_addContent_InvalidSupply_ko() (gas: 62349)
MinterTest:test_addContent_ok() (gas: 194511)
MinterTest:test_benchmarkAddContent_ok() (gas: 695493)
MinterTest:test_canBeDeployedAndInit_ok() (gas: 2460978)
MinterTest:test_canBeDeployedAndInit_ok() (gas: 2461778)
MinterTest:test_increaseSupply_InvalidRole_ko() (gas: 62426)
MinterTest:test_increaseSupply_ok() (gas: 75960)
MinterTest:test_initialize_InitTwice_ko() (gas: 22408)
Expand Down Expand Up @@ -107,7 +107,7 @@ MultiVestingWalletsTest:test_transfer_InvalidUser_ko() (gas: 209500)
MultiVestingWalletsTest:test_transfer_ok() (gas: 226492)
ReferralPoolTest:test_canBeDeployedAndInit_ok() (gas: 1690025)
ReferralPoolTest:test_initialize_InitTwice_ko() (gas: 17881)
RewarderConfigTest:test_canBeDeployedAndInit_ok() (gas: 2533292)
RewarderConfigTest:test_canBeDeployedAndInit_ok() (gas: 2534102)
RewarderConfigTest:test_initialize_InitTwice_ko() (gas: 26774)
RewarderConfigTest:test_updateContentBadge_BadgeTooLarge_ko() (gas: 20191)
RewarderConfigTest:test_updateContentBadge_InvalidRole_ko() (gas: 17630)
Expand All @@ -123,18 +123,18 @@ RewarderTest:test_pay_InvalidAddress_ko() (gas: 21620)
RewarderTest:test_pay_InvalidArray_ko() (gas: 38041)
RewarderTest:test_pay_InvalidContent_ko() (gas: 56871)
RewarderTest:test_pay_InvalidRoles_ko() (gas: 21259)
RewarderTest:test_pay_PayedFraktions_LargeListenCounts_ok() (gas: 367557)
RewarderTest:test_pay_PayedFraktions_TooMuchListenCounts_ko() (gas: 167427)
RewarderTest:test_pay_PayedFraktions_ok() (gas: 405426)
RewarderTest:test_pay_TooLargeReward_ko() (gas: 231010)
RewarderTest:test_pay_PayedFraktions_LargeListenCounts_ok() (gas: 367049)
RewarderTest:test_pay_PayedFraktions_TooMuchListenCounts_ko() (gas: 166919)
RewarderTest:test_pay_PayedFraktions_ok() (gas: 404918)
RewarderTest:test_pay_TooLargeReward_ko() (gas: 230502)
VestingWalletFactoryTest:test_canBeDeployedAndInit_ok() (gas: 2093328)
VestingWalletFactoryTest:test_initialize_InitTwice_ko() (gas: 17926)
WalletMigratorTest:test_claimAllFoundsForUser_ok() (gas: 359120)
WalletMigratorTest:test_claimAllFounds_ok() (gas: 359246)
WalletMigratorTest:test_fullMigrationForUserDirect_ok() (gas: 568197)
WalletMigratorTest:test_fullMigrationForUser_ok() (gas: 634824)
WalletMigratorTest:test_fullMigration_ok() (gas: 634148)
WalletMigratorTest:test_migrateFrationsForUser_ok() (gas: 269287)
WalletMigratorTest:test_migrateFrations_ok() (gas: 269401)
WalletMigratorTest:test_fullMigrationForUserDirect_ok() (gas: 567961)
WalletMigratorTest:test_fullMigrationForUser_ok() (gas: 634588)
WalletMigratorTest:test_fullMigration_ok() (gas: 633912)
WalletMigratorTest:test_migrateFrationsForUser_ok() (gas: 269098)
WalletMigratorTest:test_migrateFrations_ok() (gas: 269212)
WalletMigratorTest:test_migrateFrkForUser_ok() (gas: 144729)
WalletMigratorTest:test_migrateFrk_ok() (gas: 144949)
2 changes: 1 addition & 1 deletion contracts/fraktions/FraktionTokens.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { ERC1155Upgradeable } from "@oz-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";
import { FraktionTransferCallback } from "./FraktionTransferCallback.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/fraktions/FraktionTransferCallback.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FraktionId } from "../libs/FraktionId.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libs/ArrayLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FraktionId } from "./FraktionId.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libs/ContentId.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FraktionId } from "./FraktionId.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libs/FraktionId.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

/// @dev Define the FraktionId type
type FraktionId is uint256;
Expand Down
2 changes: 1 addition & 1 deletion contracts/minter/IMinter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { ContentId } from "../libs/ContentId.sol";
import { FraktionId } from "../libs/FraktionId.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/minter/Minter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { IMinter } from "./IMinter.sol";
import { FraktionCostBadges } from "./badges/FraktionCostBadges.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/minter/badges/FraktionCostBadges.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FraktionId } from "../../libs/FraktionId.sol";
import { ContentIdLib } from "../../libs/ContentId.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/IRewarder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { ContentId } from "../libs/ContentId.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/RewardAccounter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

/// @dev Struct representing the accounter for the reward
struct RewardAccounter {
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/Rewarder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { IRewarder } from "./IRewarder.sol";
import { ContentBadges } from "./badges/ContentBadges.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/badges/ContentBadges.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { ContentId } from "../../libs/ContentId.sol";
import { BadgeTooLarge } from "../../utils/FrakErrors.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/badges/ListenerBadges.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { BadgeTooLarge } from "../../utils/FrakErrors.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/contentPool/ContentPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FraktionId } from "../../libs/FraktionId.sol";
import { ContentId, ContentIdLib } from "../../libs/ContentId.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/contentPool/IContentPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FraktionTransferCallback } from "../../fraktions/FraktionTransferCallback.sol";
import { ContentId } from "../../libs/ContentId.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/referralPool/IReferralPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

/// @author @KONFeature
/// @title IReferralPool
Expand Down
2 changes: 1 addition & 1 deletion contracts/reward/referralPool/ReferralPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { FrakRoles } from "../../roles/FrakRoles.sol";
import { PushPullReward } from "../../utils/PushPullReward.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/FrakAccessControlUpgradeable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { Initializable } from "@oz-upgradeable/proxy/utils/Initializable.sol";
import { UUPSUpgradeable } from "@oz-upgradeable/proxy/utils/UUPSUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/FrakRoles.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

/// @author @KONFeature
/// @title FrakRoles
Expand Down
2 changes: 1 addition & 1 deletion contracts/tokens/FrakToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { ERC20Upgradeable } from "@oz-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import { FrakRoles } from "../roles/FrakRoles.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/tokens/IFrakToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { IERC20Upgradeable } from "@oz-upgradeable/token/ERC20/IERC20Upgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/EIP712Diamond.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { Initializable } from "@oz-upgradeable/proxy/utils/Initializable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/FrakErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

// Access control error (when accessing unauthorized method, or renouncing role that he havn't go)
error RenounceForCallerOnly();
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/IPushPullReward.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

/// @author @KONFeature
/// @title IPushPullReward
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/PushPullReward.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { Initializable } from "@oz-upgradeable/proxy/utils/Initializable.sol";
import { NoReward, InvalidAddress, RewardTooLarge } from "./FrakErrors.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/wallets/FrakTreasuryWallet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { IFrakToken } from "../tokens/IFrakToken.sol";
import { FrakAccessControlUpgradeable } from "../roles/FrakAccessControlUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/wallets/MultiVestingWallets.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { EnumerableSet } from "openzeppelin/utils/structs/EnumerableSet.sol";
import { FrakAccessControlUpgradeable } from "../roles/FrakAccessControlUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/wallets/VestingWalletFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { MultiVestingWallets } from "./MultiVestingWallets.sol";
import { FrakAccessControlUpgradeable } from "../roles/FrakAccessControlUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/wallets/WalletMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity 0.8.23;

import { IFrakToken } from "../tokens/IFrakToken.sol";
import { FraktionTokens } from "../fraktions/FraktionTokens.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/AddMaticToLiquidityPool.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeploySwapPool.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
10 changes: 5 additions & 5 deletions script/DeployWalletMigrator.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down Expand Up @@ -28,10 +28,10 @@ contract DeployWalletMigrator is UpgradeScript {
{
// Build the wallet migrator we will test
return new WalletMigrator(
addresses.frakToken,
addresses.fraktionTokens,
addresses.rewarder,
addresses.contentPool,
addresses.frakToken,
addresses.fraktionTokens,
addresses.rewarder,
addresses.contentPool,
addresses.referralPool
);
}
Expand Down
2 changes: 1 addition & 1 deletion script/PerformMaticFrkSwap.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/RemoveLiquidityPoolPosition.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/UpdateAll.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import { UpgradeScript } from "./utils/UpgradeScript.s.sol";
Expand Down
13 changes: 10 additions & 3 deletions script/UpdateFeeReceiver.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.21;
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import { UpgradeScript } from "./utils/UpgradeScript.s.sol";
Expand All @@ -22,7 +22,7 @@ contract UpdateAllScript is UpgradeScript {
// Get the frk labs & foundation address
address labsWallet;
address foundationWallet;
if(block.chainid == 137) {
if (block.chainid == 137) {
labsWallet = 0x9d92de42aB5BbB59d6c39fdabB55B998c83Da97c;
foundationWallet = 0x11D2fF1540F2c275EE199500320Af58a97E9Da33;
} else {
Expand All @@ -41,7 +41,14 @@ contract UpdateAllScript is UpgradeScript {
}

/// @dev Update every contracts
function _updateRewarderAndMinter(UpgradeScript.ContractProxyAddresses memory addresses, bytes memory rewarderUpdateData, bytes memory minterUpdateData) internal deployerBroadcast {
function _updateRewarderAndMinter(
UpgradeScript.ContractProxyAddresses memory addresses,
bytes memory rewarderUpdateData,
bytes memory minterUpdateData
)
internal
deployerBroadcast
{
// Deploy the new rewarder & minter
Rewarder rewarder = new Rewarder();
Minter minter = new Minter();
Expand Down
Loading

0 comments on commit 86351dc

Please sign in to comment.