arkprotocol / templates

0 stars 0 forks source link

Feature/4 simple cw721 extension example #11

Closed taitruong closed 2 years ago

taitruong commented 2 years ago

README.md explains it all :).

taitruong commented 2 years ago

@japarjam please review. This is assignment 1 for contracts/cw721-extension. Check also root's README file:

This is based on: https://github.com/CosmWasm/cw-nfts/tree/main/contracts/cw721-metadata-onchain

Simple cw712 contract with metadata as extension stored on chain. Look here:

  • state.rs: defines metadata and adds it to Cw721Contract
  • execute.rs and query.rs: entry endpoints are dispatched through Cw721MetadataContract.

Have a look at unit tests showing how to:

  • instantiate a new NFT collection
  • mint an NFT for this instantiated collection
  • transfer an NFT to another address
taitruong commented 2 years ago

@javierjmc, @japarjam this is the PR for assignment1. Check Readme: https://github.com/arkprotocol/templates/blob/main/README.md#cw721-extension-examples Contract is here: https://github.com/arkprotocol/templates/tree/main/contracts/cw721-extension