tuto import keyword

pull/7/head
yann300 8 years ago
parent e91956abbd
commit eb8b793606
  1. 1
      docs/index.rst
  2. BIN
      docs/tuto_basicimport.png
  3. BIN
      docs/tuto_importgit.png
  4. BIN
      docs/tuto_importswarm.png
  5. 31
      docs/tutorial_import.rst

@ -18,3 +18,4 @@ Tutorial
tutorial_mist.rst
tutorial_debug.rst
tutorial_import.rst

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

@ -0,0 +1,31 @@
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
Loading…
Cancel
Save