Content pfp
Content
@
0 reply
0 recast
0 reaction

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
Solidity devs: How possible is it to store a large array to hold a leaderboard onchain? It would need to be updated as it changes and shifted around. My gut reaction as that this would be too expensive to make happen. Is on a layer2 at least. Or are there any better solutions?
7 replies
0 recast
5 reactions

Varun Srinivasan pfp
Varun Srinivasan
@v
Do you need the sorting onchain? Or just the scores?
1 reply
0 recast
0 reaction

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
Would want sorting onchain so that onchain logic changes based on your relation to other players on the leaderboard. "who are the 5 above you and 5 below you" Kind of thing.
1 reply
0 recast
0 reaction