Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mejango committed Aug 23, 2024
1 parent 2bdcc3e commit b1dd0d2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/JB721TiersHook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/JB721TiersHookStore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 (
Expand Down
12 changes: 9 additions & 3 deletions src/abstract/JB721Hook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/libraries/JB721TiersRulesetMetadataResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b1dd0d2

Please sign in to comment.