remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/docs/tutorial_import.md

1.0 KiB

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

Other files in Remix can be imported just by specifying their path. Please use ./ for relative paths to increase portability.

image

Importing from Github

It is possible to import files directly from github with URLs like https://github.com/<owner>/<repo>/<path to the file>.

image

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.

image