Skip to content

Commit 14f24ce

Browse files
committed
chore: update solhint
1 parent 9986127 commit 14f24ce

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

contracts/core/HookRegistry.sol

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity 0.8.26;
3+
14
// IAccessHook with preset rules of access for holders account or assets
25
// eg: holder can set if under some conditions the user can access
36
// - time locked free access => access to my content for the first 7 days if not already accessed

contracts/core/interfaces/base/IBalanceOperator.sol

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ interface IBalanceOperator is
2020
IBalanceReservable,
2121
IBalanceVerifiable,
2222
ILedgerVerifiable
23-
{
24-
25-
}
23+
{}

contracts/core/primitives/upgradeable/BalanceOperatorUpgradeable.sol

-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ abstract contract BalanceOperatorUpgradeable is Initializable, LedgerUpgradeable
101101
}
102102

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

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

127125
/// @notice Retrieves the reserved balance for a specific relationship and currency.
128-
/// @dev Returns the value stored in the `_reserved` mapping for the given `from` and `to` relationship and `currency`.
129126
/// @param from The address of the account from which the funds are reserved.
130127
/// @param to The address of the account for which the funds are reserved.
131128
/// @param currency The address of the currency to check the reserved balance for.

contracts/financial/LedgerVault.sol

-4
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ contract LedgerVault is
107107
}
108108

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

121119
/// @notice Collects a specific amount of previously reserved funds.
122-
/// @dev Deducts the reserved amount from the `from` address for the caller and credits it to the caller's ledger balance.
123-
/// Emits a `FundsCollected` event upon successful collection.
124120
/// @param from The address of the account from which the reserved funds are being collected.
125121
/// @param amount The amount of funds to collect.
126122
/// @param currency The address of the ERC20 token to collect. Use `address(0)` for native tokens.

package-lock.json

+14-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"devDependencies": {
66
"dotenv": "^16.4.5",
77
"prettier-plugin-solidity": "^1.4.1",
8-
"solhint": "^5.0.1",
8+
"solhint": "^5.0.4",
99
"solhint-plugin-prettier": "^0.1.0"
1010
},
1111
"peerDependencies": {

0 commit comments

Comments
 (0)