examples.rst 473 B

123456789101112131415161718192021
  1. Solang Solidity Examples
  2. ========================
  3. Here are two examples of Solidity contracts.
  4. Flipper
  5. -------
  6. This is the `ink! flipper example <https://substrate.dev/substrate-contracts-workshop/#/0/creating-an-ink-project>`_
  7. written in Solidity:
  8. .. include:: ../examples/flipper.sol
  9. :code: javascript
  10. Full Example
  11. ------------
  12. This example exists to show the language features that Solang supports.
  13. .. include:: ../examples/full_example.sol
  14. :code: javascript