Skip to content

Commit

Permalink
Update solhint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Sep 2, 2024
1 parent 9cbfd56 commit 0af909c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"event-name-camelcase": "error",
"explicit-types": ["error", "explicit"],
"foundry-test-functions": "off",
"func-name-mixedcase": "error",
"func-named-parameters": ["error", 11],
"func-name-mixedcase": "off",
"func-named-parameters": ["error", 12],
"func-param-name-mixedcase": "error",
"func-visibility": ["error", { "ignoreConstructors": true }],
"function-max-lines": ["error", 75],
Expand All @@ -46,7 +46,7 @@
"payable-fallback": "error",
"private-vars-leading-underscore": "off",
"quotes": ["error", "double"],
"reason-string": ["error", { "maxLength": 76 }],
"reason-string": ["error", { "maxLength": 80 }],
"reentrancy": "error",
"state-visibility": "error",
"use-forbidden-name": "error",
Expand Down
12 changes: 4 additions & 8 deletions contracts/interfaces/IValidatorShare.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,23 @@ interface IValidatorShare {
external
returns (uint256);

// solhint-disable-next-line func-name-mixedcase
function sellVoucher_new(uint256 claimAmount, uint256 maximumSharesToBurn)
function sellVoucher_new(uint256 _claimAmount, uint256 _maximumSharesToBurn)
external;

// solhint-disable-next-line func-name-mixedcase
function sellVoucher_newPOL(uint256 claimAmount, uint256 maximumSharesToBurn)
function sellVoucher_newPOL(uint256 _claimAmount, uint256 _maximumSharesToBurn)
external;

// solhint-disable-next-line func-name-mixedcase
function unstakeClaimTokens_new(uint256 unbondNonce) external;
function unstakeClaimTokens_new(uint256 _unbondNonce) external;

function restake() external returns (uint256, uint256);

function withdrawRewards() external;

function getTotalStake(address user)
function getTotalStake(address _user)
external
view
returns (uint256, uint256);

// solhint-disable-next-line func-name-mixedcase
function unbonds_new(address _address, uint256 _unbondNonce)
external
view
Expand Down

0 comments on commit 0af909c

Please sign in to comment.