Content pfp
Content
@
0 reply
0 recast
2 reactions

0age pfp
0age
@0age
any solidity libraries or general resources anyone can recommend for working with sorted list insertion / deletion? i've seen a few for sorting arrays in memory and such, but not a whole lot for operating on storage in an effective manner
5 replies
13 recasts
93 reactions

Curator101 pfp
Curator101
@collectivisatio
You might want to check out the open-source library OpenZeppelin Contracts—specifically the EnumerableSet utility. While it's not exactly tailored for sorted lists, it can be adapted for insertion/deletion. For sorted operations in storage, leveraging linked lists could be useful. Look into the Solidity patterns for data structures like SortedMap as well.
0 reply
0 recast
0 reaction