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

Add query/mutation for SanR NFT Subscription #4374

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

IvanIvanoff
Copy link
Member

@IvanIvanoff IvanIvanoff commented Aug 8, 2024

Changes

  • Support addresses with multiple SanR NFTs
  • Add query and mutation related to SanR NFT subscriptions

Add a query that returns boolean whether the user is eligible for obtaining
SanR NFT subscription. Returns true if the user has an address that holds a valid NFT:

{
  checkSanrNftSubscriptionEligibility
}

Add a mutation that will obtain a SanR NFT subscription, if possible.
It performs the check for eligibility and if it passes - creates the subscription.

mutation{
  obtainSanrNftSubscription {
    type
  }
}

Ticket

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have tried to find clearer solution before commenting hard-to-understand parts of code
  • I have added tests that prove my fix is effective or that my feature works

@IvanIvanoff IvanIvanoff merged commit ace9b68 into master Aug 8, 2024
4 checks passed
@IvanIvanoff IvanIvanoff changed the title improve sanr subscription Add query/mutation for SanR NFT Subscription Aug 9, 2024
@IvanIvanoff IvanIvanoff deleted the improve-sanr-subscription branch August 9, 2024 08:35
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.

1 participant