-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement player handles #117
Comments
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? |
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 |
Yes, go for it! |
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).
The text was updated successfully, but these errors were encountered: