-
Notifications
You must be signed in to change notification settings - Fork 4
modify bridging nft to be soulbound and levels based #37
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
Conversation
ETeissonniere
commented
Jun 18, 2024
- change meta
- introduce notion of levels and different token URIs
- move to a soulbound token
- remove unused batch
- holder limitation still allows for level ups
- integrate levels
- update deploy script
| - `N_TOKENS_URI`: URI of NFT metadata. | ||
| - `N_MAX_HOLDERS`: maximum number of participants | ||
| - `N_TOKENS_URI_ROOT`: URI of NFT metadata folder where each level metadata is later presented | ||
| - `N_LEVELS`: number of levels to set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these levels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically depending on how many tokens you bridge you get better looking NFTs. Idea from products.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So perhaps it's better to be called N_AMOUNT_REUQIRED_FOR_RANK_0 or N_AMOUNTS_REQUIRED_FOR_RANKS
| N_LEVELS=3 \ | ||
| N_LEVELS_0=100 \ | ||
| N_LEVELS_1=200 \ | ||
| N_LEVELS_2=300 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems not very hard to have them as
N_LEVELS=100,200,300
then read it through vm.envString and parse it to an array. Just a nice to have suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree but as far as I know this not quite doable without implementing string manipulation functions or using a library. Let me know if you can think of a straightforward way to do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think you would need to manipulate the string which is (processing wise) not bad for a deployment script
Co-authored-by: Alex Sedighi <alex@nodle.com>