> For the complete documentation index, see [llms.txt](https://lunes-labs.gitbook.io/dao-lunes-labs-pt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lunes-labs.gitbook.io/dao-lunes-labs-pt/developers/para-desenvolvedores/smart-contract-ink-4.x/examples/smart-contracts.md).

# Smart Contracts

We have a repository [`ink-examples`](https://github.com/paritytech/ink-examples/tree/main), in which you find a number of contracts written in ink!. Some of the most interesting ones:

[![](https://use.ink/img/icons/flipper.svg)](https://github.com/paritytech/ink-examples/tree/main/flipper)

Our "Hello, World!".\
[» view example](https://github.com/paritytech/ink-examples/tree/main/flipper)

[![](https://use.ink/img/icons/erc20.svg)](https://github.com/paritytech/ink-examples/tree/main/erc20)

An ERC-20 implementation.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/erc20)

[![](https://use.ink/img/icons/nft.svg)](https://github.com/paritytech/ink-examples/tree/main/erc721)

[» view ERC-721](https://github.com/paritytech/ink-examples/tree/main/erc721)\
[» view ERC-1155](https://github.com/paritytech/ink-examples/tree/main/erc1155)

\
[![](https://use.ink/img/icons/upgradable.svg)](https://github.com/paritytech/ink-examples/tree/main/upgradeable-contracts)

An upgradeable contract.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/upgradeable-contracts)

[![](https://use.ink/img/icons/multisig.svg)](https://github.com/paritytech/ink-examples/tree/main/multisig)

A multi-signature wallet.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/multisig)

[![](https://use.ink/img/icons/rand-extension.svg)](https://github.com/paritytech/ink-examples/tree/main/rand-extension)

Allow runtime access.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/rand-extension)

\
[![](https://use.ink/img/icons/delegator.svg)](https://github.com/paritytech/ink-examples/tree/main/delegator)

Cross-contract calls.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/delegator)

[![](https://use.ink/img/icons/trait-erc20.svg)](https://github.com/paritytech/ink-examples/tree/main/trait-erc20)

Implements an `Erc20` trait.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/trait-erc20)

[![](https://use.ink/img/icons/dns.svg)](https://github.com/paritytech/ink-examples/tree/main/dns)

Simple `DomainNameService`.\
[» view example](https://github.com/paritytech/ink-examples/tree/main/dns)

<br>

If not noted otherwise in the readme, to build a single example navigate to the root of the example and run:

```rust
cargo contract build
```

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](https://use.ink/getting-started/deploy-your-contract) section.
