Skip to content

Comments

Feature/nft contract implementation#74

Open
ayomideadeniran wants to merge 13 commits intoNFTopia-Foundation:mainfrom
ayomideadeniran:feature/nft-contract-implementation
Open

Feature/nft contract implementation#74
ayomideadeniran wants to merge 13 commits intoNFTopia-Foundation:mainfrom
ayomideadeniran:feature/nft-contract-implementation

Conversation

@ayomideadeniran
Copy link

@ayomideadeniran ayomideadeniran commented Feb 20, 2026

Closes #20


🎯 Goal

Implement a standards-compliant NFT smart contract using the Soroban SDK for the NFTopia ecosystem.


🚀 Changes

  • Project Setup: Configured Cargo.toml and workspace for nft_contract.
  • Core Structures: Added TokenData, TokenAttribute, CollectionConfig, and Role.
  • Storage Layout: Organized instance and persistent storage using DataKey.
  • RBAC: Implemented Admin, Minter, Burner, and Metadata Updater roles with secure access checks.
  • Token Logic: Added mint, burn, transfer, and operator approvals.
  • Metadata: Collection config updates, token URI handling, and metadata freezing.
  • Royalties: On-chain royalty calculation (EIP-2981 equivalent).
  • Batch Ops: Implemented batch_mint and batch_transfer.
  • Testing: Added unit and integration tests covering token workflows and royalty validation.

✅ Verification

  • All tests pass (cargo test)
  • Code formatted (cargo fmt)
  • Implemented across 12 structured commits

@ayomideadeniran
Copy link
Author

Please review this Pr

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.

Implement a comprehensive, standards-compliant NFT contract using Soroban SDK

1 participant