In our examples folder you find a number of examples written in ink!.
Some of the most interesting ones:
delegator‒ Implements cross-contract calling.
trait-erc20‒ Defines a trait for
Erc20contracts and implements it.
erc721‒ An exemplary implementation of
dns‒ A simple
- …and more, just rummage through the folder 🙃.
To build a single example navigate to the root of the example and run:
cargo contract build
As a result you'll get a file
target/flipper.wasm file, a
metadata.json file and a
<contract-name>.contract file in the
target/ folder of your contract.
.contract file combines the Wasm and metadata into one file and needs to be used when deploying the contract.