- Notifications
You must be signed in to change notification settings - Fork1
mysteryon88/ERC721-SBT
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
In the first case, I override the functions of the libraries to achieve compatibility with the ERC721 standard. I took two libraries as a basis:OpenZeppelin v5.0.1 andSolmate v6.2.0. Added storage URI to Solmate libraries
In the second case, I cut out the code unnecessary for SBT, while maintaining compatibility with ERC721.
Used HardHat test without optimization
OpenZeppelin | Solmate | |||
---|---|---|---|---|
deploy | mint | deploy | mint | |
Cut | 1 916 164 | 118 804 | 1 418 790 | 117 268 |
Overridden | 2 232 228 | 118 874 | 2 018 090 | 117 246 |
Used HardHat test with optimization (200 runs)
OpenZeppelin | Solmate | |||
---|---|---|---|---|
deploy | mint | deploy | mint | |
Cut | 1 051 973 | 117 641 | 738 332 | 116 294 |
Overridden | 1 236 910 | 117 717 | 1 078 246 | 116 272 |
About
ERC-721 Soulbound Token