Skip to content

feat: add NFT minting and distribution logic for rewards (#330)#377

Open
karanjadavi wants to merge 1 commit into
ShadeProtocol:mainfrom
karanjadavi:main
Open

feat: add NFT minting and distribution logic for rewards (#330)#377
karanjadavi wants to merge 1 commit into
ShadeProtocol:mainfrom
karanjadavi:main

Conversation

@karanjadavi

Copy link
Copy Markdown
  • Add NftCollection, Nft, NftStatus structs and DataKey variants in types.rs
  • Add NftError variant to ContractError in errors.rs
  • Implement nft.rs component: create_nft_collection, mint_nft, batch_mint_nfts, transfer_nft, burn_nft, claim_nft_reward, deactivate_nft_collection, getters
  • Add NFT event publish functions in events.rs using env.events().publish()
  • Expose all NFT functions via ShadeTrait interface and shade.rs impl
  • Add pub mod nft to components/mod.rs

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Test improvements
  • Other (please describe):

Related Issues

Fixes #

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • All existing tests pass locally
  • I have tested this manually

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

close #330

…ol#330)

- Add NftCollection, Nft, NftStatus structs and DataKey variants in types.rs
- Add NftError variant to ContractError in errors.rs
- Implement nft.rs component: create_nft_collection, mint_nft, batch_mint_nfts,
  transfer_nft, burn_nft, claim_nft_reward, deactivate_nft_collection, getters
- Add NFT event publish functions in events.rs using env.events().publish()
- Expose all NFT functions via ShadeTrait interface and shade.rs impl
- Add pub mod nft to components/mod.rs
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@karanjadavi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add NFT Minting and Distribution Logic for Rewards

1 participant