Content
@
0 reply
0 recast
0 reaction
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
Apex777
@apex777.eth
Sorting is the hard part here... Could store this onchain but keep a smaller mapping of the top 10?
1 reply
0 recast
1 reaction
Noah Bragg 🔥
@nbragg
Well I'm wanting it 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.
0 reply
0 recast
0 reaction