Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 770 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 770 Bytes

cw-nfts-simple

cw-nfts-simple-base is a base contract for easy extension but not compilable itself.
It is based on function-oriented style different from original cw721-base.

This repository contains:

  • packages/cw721-simple-base: base codes to extend custom cw721 based nfts
  • contracts/*: example contracts using cw721-simple

I suggest three options to extend the base contract:

  1. Implement Custom messages whose entry point has generic parameters -> cw721-simple-metadata
  2. Wrap base messages with user-defined message -> cw721-simple-metadata-without-custom-msg
  3. Convert local message into original type(i.g Cw721ExecuteMsg, Cw721QueryMsg) -> https://github.com/D3LAB-DAO/cosmonaut-contract/blob/main/contracts/cosmonaut-cw20/src/msg.rs