index.rst 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. .. image:: hl_solang_horizontal-color.svg
  2. :width: 75%
  3. :alt: Hyperledger Solang Logo
  4. :align: center
  5. :target: https://github.com/hyperledger-solang/solang
  6. |
  7. Solang Solidity Compiler
  8. ========================
  9. Welcome to the Solang Solidity Compiler. Using Solang, you can compile smart contracts written in
  10. `Solidity <https://en.wikipedia.org/wiki/Solidity>`_ for
  11. `Solana <https://www.solana.com/>`_ and
  12. `Polkadot <https://substrate.io/>`_. It uses the
  13. `llvm <https://www.llvm.org/>`_ compiler framework to produce WebAssembly
  14. (WASM) or Solana SBF contract code. As result, the output is highly optimized, which saves you in gas costs
  15. or compute units.
  16. Solang aims for source file compatibility with the Ethereum EVM Solidity compiler,
  17. version 0.8. Where differences exist, this is noted in the language documentation.
  18. The source code repository can be found on `github <https://github.com/hyperledger-solang/solang>`_
  19. and we have solang channels on `Hyperledger Discord <https://discord.gg/hyperledger>`_.
  20. Contents
  21. ========
  22. .. toctree::
  23. :maxdepth: 3
  24. :caption: Using Solang
  25. installing
  26. running
  27. aqd
  28. extension
  29. examples
  30. .. toctree::
  31. :maxdepth: 3
  32. :caption: Targets
  33. targets/solana.rst
  34. targets/polkadot.rst
  35. targets/soroban.rst
  36. .. toctree::
  37. :maxdepth: 3
  38. :caption: Solidity language
  39. language/introduction.rst
  40. language/file_structure.rst
  41. language/imports.rst
  42. language/pragmas.rst
  43. language/types.rst
  44. language/expressions.rst
  45. language/statements.rst
  46. language/constants.rst
  47. language/using.rst
  48. language/contracts.rst
  49. language/contract_storage.rst
  50. language/interface_libraries.rst
  51. language/events.rst
  52. language/functions.rst
  53. language/managing_values.rst
  54. language/builtins.rst
  55. language/tags.rst
  56. language/inline_assembly.rst
  57. .. toctree::
  58. :maxdepth: 3
  59. :caption: Yul language
  60. yul_language/yul.rst
  61. yul_language/statements.rst
  62. yul_language/types.rst
  63. yul_language/functions.rst
  64. yul_language/builtins.rst
  65. .. toctree::
  66. :maxdepth: 3
  67. :caption: Extras
  68. code_gen_options
  69. testing
  70. contributing