The Polywrap project folder
Once you have your project set up, the folder tree should look something like this:
polywrap.yaml is a manifest file describing the layout of a Polywrap Wasm wrapper.
Each wrapper project has a Wrapper Schema. The schema defines the wrapper's dependencies, methods, and custom types. In short, it's an interface describing how to use the wrapper.
index.ts file exports the wrapper's method's implementations, which contain the wrapper's logic.
src/contracts directory contains our protocol's Ethereum-based smart contracts.
We'll be using this functionality further down in this guide with the
polywrap run command, allowing us to easily send test queries against our API.
We've defined some simple build & deployment scripts for our Solidity smart contracts. These are basic utilities, and can be replaced entirely by a Truffle or Hardhat project.
In the next section, we'll build this example Wasm wrapper and see what gets outputted in the build folder!