What Are All These Files
So we now have our contract open in our preferred editor. Let's talk about the file structure.
cw-721-tutorials/ # Root
│ └── config # Configuration for cargo commands such as cargo wasm, cargo schema, etc.
│ └── schema.rs # Rust file to generate JSON schema via cargo schema. Outputs to schema/
├── schema # Output folder for JSON schema
├── scripts # This folder contains some bash scripts used to build contract, deploy contract, execute function.
├── src/ # Where our smart contract rust files are located
│ ├── contract.rs # Main contract logic, instantiate, execute, query
│ ├── error.rs # Where we define our contract errors
│ ├── lib.rs # The default library, where we define the modules
│ ├── msg.rs # Where we define our message types
│ └── state.rs # Where we define any state variables
├── Cargo.toml # The manifest, it contains all of the metadata that Cargo needs to compile source code