Skip to content
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

feat: implement verify_default #71

Merged
merged 2 commits into from
Aug 22, 2023
Merged

Conversation

irisdv
Copy link
Collaborator

@irisdv irisdv commented Aug 22, 2023

This PR updates verify_default endpoint so it can check that a user own a specific number of NFTs, it :

  • adds contract addresses in config file,
  • adds a function get_args returning contract address and NFT limit to fulfil the achievement,
  • adds a function execute_has_nft which fetches Starkscan API to check how many NFTs a user owns.

It also adds :

  • id in UserAchievement model
  • category_img_url in UserAchievements model

@Th0rgal Th0rgal self-requested a review August 22, 2023 10:48
Copy link
Member

@Th0rgal Th0rgal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Th0rgal Th0rgal merged commit cc49507 into master Aug 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants