Commit eb8b7936 authored by yann300's avatar yann300

tuto import keyword

parent e91956ab
......@@ -18,3 +18,4 @@ Tutorial
tutorial_mist.rst
tutorial_debug.rst
tutorial_import.rst
Using the Solidity ``import``
=======================
.. _tutorial-import:
This tutorial will show how to import local file and external file.
The compilation result will contain contracts implemented in imported file.
For a detailed explanation of the ``import`` keyword. see the ``Solidity`` `documentation <http://solidity.readthedocs.io/en/develop/layout-of-source-files.html?highlight=import#importing-other-source-files>`_
Importing a local file
----------------------
That is the common way.
.. image:: tuto_basicimport.png
Importing from Github
----------------------
.. image:: tuto_importgit.png
the URL should be like: ``http://github.com/<owner>/<repo>/<path to the file>``
Importing from Swarm
--------------------
.. image:: tuto_importswarm.png
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment