POSTED 03 May 2018 02:40
Importing Source Files in Solidity
This tutorial will show you how to import local and external files.
The compilation result will also contain contracts implemented in the imported files.
For a detailed explanation of the import keyword see the Solidity documentation
Importing a local file
Importing from GitHub
It is possible to import files directly from github with URLs like http://github.com/<owner>/<repo>/<path to the file>.
Importing from Swarm
Files can be imported using all URLs supported by swarm. If you do not have a swarm node, swarm-gateways.net will be used instead.