Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
CW721 Metadata Onchain
NFT creators may want to store their NFT metadata on-chain so other contracts are able to interact with it.
With CW721-Base in CosmWasm, we allow you to store any data on chain you wish, using a generic extension: T.
In order to support on-chain metadata, and to demonstrate how to use the extension ability, we have created this simple contract.
There is no business logic here, but looking at lib.rs will show you how do define custom data that is included when minting and
available in all queries.
In particular, here we define:
pub type Extension = ;
In particular, the fields defined conform to the properties supported in the OpenSea Metadata Standard.
This means when you query NftInfo{name: "Enterprise"}, you will get something like:
Please look at the test code for an example usage in Rust.
Notice
Feel free to use this contract out of the box, or as inspiration for further customization of cw721-base. We will not be adding new features or business logic here.