Skip to content

mysteryon88/ERC721-SBT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soulbound token (ERC721)

  • 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 and Solmate 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.

Gas used

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