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


