Skip to content

Commit

Permalink
chore: update solhint
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Jan 6, 2025
1 parent 9986127 commit 14f24ce
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
3 changes: 3 additions & 0 deletions contracts/core/HookRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

// IAccessHook with preset rules of access for holders account or assets
// eg: holder can set if under some conditions the user can access
// - time locked free access => access to my content for the first 7 days if not already accessed
Expand Down
4 changes: 1 addition & 3 deletions contracts/core/interfaces/base/IBalanceOperator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ interface IBalanceOperator is
IBalanceReservable,
IBalanceVerifiable,
ILedgerVerifiable
{

}
{}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ abstract contract BalanceOperatorUpgradeable is Initializable, LedgerUpgradeable
}

/// @notice Reduces the reserved funds for a specific relationship and currency.
/// @dev Deducts the specified `amount` from the `_reserved` mapping for the given `from` and `to` relationship and `currency`.
/// @param from The address of the account from which the funds were reserved.
/// @param to The address of the account for which the funds were reserved.
/// @param amount The amount to subtract from the reserved balance.
Expand All @@ -113,7 +112,6 @@ abstract contract BalanceOperatorUpgradeable is Initializable, LedgerUpgradeable
}

/// @notice Increases the reserved funds for a specific relationship and currency.
/// @dev Adds the specified `amount` to the `_reserved` mapping for the given `from` and `to` relationship and `currency`.
/// @param from The address of the account from which the funds are reserved.
/// @param to The address of the account for which the funds are reserved.
/// @param amount The amount to add to the reserved balance.
Expand All @@ -125,7 +123,6 @@ abstract contract BalanceOperatorUpgradeable is Initializable, LedgerUpgradeable
}

/// @notice Retrieves the reserved balance for a specific relationship and currency.
/// @dev Returns the value stored in the `_reserved` mapping for the given `from` and `to` relationship and `currency`.
/// @param from The address of the account from which the funds are reserved.
/// @param to The address of the account for which the funds are reserved.
/// @param currency The address of the currency to check the reserved balance for.
Expand Down
4 changes: 0 additions & 4 deletions contracts/financial/LedgerVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ contract LedgerVault is
}

/// @notice Reserves a specific amount of funds from the caller's balance for a recipient.
/// @dev Deducts the specified `amount` from the caller's ledger balance and marks it as reserved for the `to` address.
/// Emits a `FundsReserved` event upon successful reservation.
/// @param to The address of the recipient for whom the funds are being reserved.
/// @param amount The amount of funds to reserve.
/// @param currency The address of the ERC20 token to reserve. Use `address(0)` for native tokens.
Expand All @@ -119,8 +117,6 @@ contract LedgerVault is
}

/// @notice Collects a specific amount of previously reserved funds.
/// @dev Deducts the reserved amount from the `from` address for the caller and credits it to the caller's ledger balance.
/// Emits a `FundsCollected` event upon successful collection.
/// @param from The address of the account from which the reserved funds are being collected.
/// @param amount The amount of funds to collect.
/// @param currency The address of the ERC20 token to collect. Use `address(0)` for native tokens.
Expand Down
20 changes: 14 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"devDependencies": {
"dotenv": "^16.4.5",
"prettier-plugin-solidity": "^1.4.1",
"solhint": "^5.0.1",
"solhint": "^5.0.4",
"solhint-plugin-prettier": "^0.1.0"
},
"peerDependencies": {
Expand Down

0 comments on commit 14f24ce

Please sign in to comment.