📔Smart Contracts
We have a repository ink-examples
, in which you find a number of contracts written in ink!. Some of the most interesting ones:
Our "Hello, World!". » view example
An ERC-20 implementation. » view example
» view ERC-721 » view ERC-1155
An upgradeable contract. » view example
A multi-signature wallet. » view example
Allow runtime access. » view example
Cross-contract calls. » view example
Implements an Erc20
trait.
» view example
Simple DomainNameService
.
» view example
If not noted otherwise in the readme, to build a single example navigate to the root of the example and run:
As a result you'll get a file target/<example-name>.wasm
file, a <example-name>.json
file and a <example-name>.contract
file in the target/
folder of your contract. The .contract
file combines the Wasm and metadata into one file and needs to be used when deploying the contract.
For further information, please have a look at the Deploy your Contract section.
Last updated