Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.08 KB

examples.rst

File metadata and controls

38 lines (25 loc) · 1.08 KB

Solang Solidity Examples

Here are two examples of Solidity contracts.

General examples

Flipper

This is the ink! flipper example written in Solidity:


Example

A few simple arithmetic functions.


Solana examples

NFT example

There is an example on Solana's integration tests for a Solidity contract that manages an NFT. The contract is supposed to be the NFT itself. It can mint itself and transfer ownership. It also stores on chain information about itself, such as its URI. Please, check simple_collectible.sol for the Solidity contract and simple_collectible.spec.ts for the Typescript code that interacts with Solidity.