Open norswap opened 9 months ago
can i hop on this?
Go ham :)
Thanks I'd work on this, for better context, I'd be writing a cairo contract to handle Player Ens/profile and updating the frontend showing their ens right?
No, we're using Solidity on this game as we target an EVM rollup chain. Cairo contracts only work on Starknet.
@faytey have you started working on this? I'd like to take this one if you change your mind and work on something else please.
Just seeing this notification @saimeunt yes you can go ahead. @norswap I’d take up other issues thanks
If this issue is still up, i would love to continue working on it @norswap
Hey I'm no longer actively working on this feel free to pick it @faytey
Hey I'm no longer actively working on this feel free to pick it @faytey
Cool, @norswap is this okay?
Yes, go for it!
Hi Sir @norswap I made a PR to this issue here 117 I need your review and comments sir.
@norswap
Hi Sir @norswap I made a PR to this issue here 117 I need your review and comments sir.
Sorry, things have been hectic these days. I will try to review this as soon as possible, but it might still take a few days!
Two key features:
resolve players ENS if they have one, use https://viem.sh/docs/ens/actions/getEnsName.html
Add a
PlayerHandle
contract where users can register a single handle for their address (they should be able to change it as well)checkHandleValidity
function that restricts names (e.g. only ASCII, minimum 5 characters, maybe not contain dots (to avoid ENS / other name system clashes)checkPlayerEligibility
that can be alwaystrue
for now but down the line will only enable players that have completed some milestones (e.g. minimum amount of matches, minimum spend, ...) to register handles to avoid squatting.The frontend must be modified to display player handles (or ENS).