Commit f287ffd
committed
feat: Add error handling library and signature utilities for staking
- Introduced ErrorsLib for centralized error management in staking contracts.
- Implemented SignatureUtils for message signing and verification related to staking.
- Added AdvancedStrings library for enhanced string manipulation, including address to string conversion.
- Created Erc191TestBuilder for building ERC191 messages for testing purposes.
- Developed SignatureRecover library for signature recovery and verification.1 parent ec18d86 commit f287ffd
7 files changed
Lines changed: 599 additions & 160 deletions
File tree
- src
- contracts/staking/lib
- library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments