📔Smart Contracts

We have a repository ink-examplesarrow-up-right, in which you find a number of contracts written in ink!. Some of the most interesting ones:

arrow-up-right

Our "Hello, World!". » view examplearrow-up-right

arrow-up-right

An ERC-20 implementation. » view examplearrow-up-right

arrow-up-right

» view ERC-721arrow-up-right » view ERC-1155arrow-up-right

arrow-up-right

An upgradeable contract. » view examplearrow-up-right

arrow-up-right

A multi-signature wallet. » view examplearrow-up-right

arrow-up-right

Allow runtime access. » view examplearrow-up-right

arrow-up-right

Cross-contract calls. » view examplearrow-up-right

arrow-up-right

Implements an Erc20 trait. » view examplearrow-up-right

arrow-up-right

Simple DomainNameService. » view examplearrow-up-right

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 Contractarrow-up-right section.

Last updated