-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply guidelines, improve tests and docs, support solo staker migrati…
…on (#24) * Extend readme * Extend readme, fix RewardPaid event topic * Allow customizing LST name and symbol * Assert owner is not one of the stakers used in the tests * Display the liquid staking token symbol in the scripts * Mention the bash scripts in the readme * Replace occurances of localhost url from bash scripts * Add assertions to test reward calculation * Implement functions requested by staking portal * Implement migration of solo stakers to staking pools * Apply linter changes, rename forge scripts * Ensure compatibility with deposit v3 * Restructure the readme, add more solhint rules * Get rid of compiler warnings * Minor fixes requested by the reviewer
- Loading branch information
1 parent
a23f9e4
commit 7ca62a5
Showing
30 changed files
with
1,189 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"plugins": [], | ||
"rules": { | ||
"no-inline-assembly": "off", | ||
"avoid-low-level-calls": "off", | ||
"reason-string": ["warn", {"maxLength": 70}], | ||
"func-visibility": ["warn", {"ignoreConstructors": true}], | ||
"gas-custom-errors": "off", | ||
"no-empty-blocks": "off", | ||
"no-complex-fallback": "off", | ||
"interface-starts-with-i": "warn", | ||
"func-param-name-mixedcase": "warn", | ||
"modifier-name-mixedcase": "warn", | ||
"gas-calldata-parameters": "warn", | ||
"gas-indexed-events": "warn", | ||
"gas-length-in-loops": "warn", | ||
"comprehensive-interface": "warn", | ||
"gas-increment-by-one": "off", | ||
"private-vars-leading-underscore": ["off", {"strict": false}], | ||
"named-parameters-mapping": "off", | ||
"foundry-test-functions": ["off"], | ||
"imports-order": "off", | ||
"max-line-length": ["off", 120] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
script/commission_Delegation.s.sol → script/ManageCommission.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
script/stakeRewards_Delegation.s.sol → script/StakeRewards.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
script/withdrawRewards_Delegation.s.sol → script/WithdrawRewards.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.