From b1dd0d207133b3ef5561ba7a7a81107e0aed3cc4 Mon Sep 17 00:00:00 2001 From: mejango Date: Fri, 23 Aug 2024 19:15:46 -0300 Subject: [PATCH] fmt --- src/JB721TiersHook.sol | 4 +++- src/JB721TiersHookStore.sol | 8 ++++++-- src/abstract/JB721Hook.sol | 12 +++++++++--- src/libraries/JB721TiersRulesetMetadataResolver.sol | 4 +++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/JB721TiersHook.sol b/src/JB721TiersHook.sol index 1c5bf951..8b60b25f 100644 --- a/src/JB721TiersHook.sol +++ b/src/JB721TiersHook.sol @@ -268,7 +268,9 @@ contract JB721TiersHook is JBOwnable, ERC2771Context, JB721Hook, IJB721TiersHook /// @notice The combined redemption weight of all outstanding NFTs. /// @dev An NFT's redemption weight is its price. /// @return weight The total redemption weight. - function totalRedemptionWeight(JBBeforeRedeemRecordedContext calldata) + function totalRedemptionWeight( + JBBeforeRedeemRecordedContext calldata + ) public view virtual diff --git a/src/JB721TiersHookStore.sol b/src/JB721TiersHookStore.sol index 7b5622d7..1855a9c9 100644 --- a/src/JB721TiersHookStore.sol +++ b/src/JB721TiersHookStore.sol @@ -537,7 +537,9 @@ contract JB721TiersHookStore is IJB721TiersHookStore { /// @notice Record newly added tiers. /// @param tiersToAdd The tiers to add. /// @return tierIds The IDs of the tiers being added. - function recordAddTiers(JB721TierConfig[] calldata tiersToAdd) + function recordAddTiers( + JB721TierConfig[] calldata tiersToAdd + ) external override returns (uint256[] memory tierIds) @@ -1195,7 +1197,9 @@ contract JB721TiersHookStore is IJB721TiersHookStore { /// @param useVotingUnits Whether or not custom voting unit amounts are allowed in new tiers. /// @param cannotBeRemoved Whether or not the tier can be removed once added. /// @param cannotIncreaseDiscountPercent Whether or not the discount percent cannot be increased. - function _unpackBools(uint8 packed) + function _unpackBools( + uint8 packed + ) internal pure returns ( diff --git a/src/abstract/JB721Hook.sol b/src/abstract/JB721Hook.sol index 06591482..1bf5bd85 100644 --- a/src/abstract/JB721Hook.sol +++ b/src/abstract/JB721Hook.sol @@ -76,7 +76,9 @@ abstract contract JB721Hook is ERC721, IJB721Hook, IJBRulesetDataHook, IJBPayHoo /// @return weight The new `weight` to use, overriding the ruleset's `weight`. /// @return hookSpecifications The amount and data to send to pay hooks (this contract) instead of adding to the /// terminal's balance. - function beforePayRecordedWith(JBBeforePayRecordedContext calldata context) + function beforePayRecordedWith( + JBBeforePayRecordedContext calldata context + ) public view virtual @@ -100,7 +102,9 @@ abstract contract JB721Hook is ERC721, IJB721Hook, IJBRulesetDataHook, IJBPayHoo /// @return totalSupply The total amount of tokens that are considered to be existing. /// @return hookSpecifications The amount and data to send to redeem hooks (this contract) instead of returning to /// the beneficiary. - function beforeRedeemRecordedWith(JBBeforeRedeemRecordedContext calldata context) + function beforeRedeemRecordedWith( + JBBeforeRedeemRecordedContext calldata context + ) public view virtual @@ -178,7 +182,9 @@ abstract contract JB721Hook is ERC721, IJB721Hook, IJBRulesetDataHook, IJBPayHoo /// @notice Calculates the cumulative redemption weight of all NFT token IDs. /// @param context The redemption context passed to this contract by the `redeemTokensOf(...)` function. /// @return The total cumulative redemption weight of all NFT token IDs. - function totalRedemptionWeight(JBBeforeRedeemRecordedContext calldata context) + function totalRedemptionWeight( + JBBeforeRedeemRecordedContext calldata context + ) public view virtual diff --git a/src/libraries/JB721TiersRulesetMetadataResolver.sol b/src/libraries/JB721TiersRulesetMetadataResolver.sol index cd62b2d6..5775eae0 100644 --- a/src/libraries/JB721TiersRulesetMetadataResolver.sol +++ b/src/libraries/JB721TiersRulesetMetadataResolver.sol @@ -18,7 +18,9 @@ library JB721TiersRulesetMetadataResolver { /// @notice Pack the ruleset metadata for the 721 hook into a single `uint256`. /// @param metadata The metadata to validate and pack. /// @return packed A `uint256` containing the packed metadata for the 721 hook. - function pack721TiersRulesetMetadata(JB721TiersRulesetMetadata memory metadata) + function pack721TiersRulesetMetadata( + JB721TiersRulesetMetadata memory metadata + ) internal pure returns (uint256 packed)