Import
Global Import
The statement below will import all Solidity objects found in “./MySolidityFile.sol”
MySolidityFile.sol could contain multiple contracts; all of them will be imported.
“Solidity object” to describe any
contract
,library
,interface
, or otherconstant
or variables that you can define at the file level (struct
,enum
, etc.)
Instead, the Solidity docs recommend specifying imported symbols explicitly.
You can specify within the curly braces
{ }
the specific symbols/objects that you want to import and use.
Import Aliases
Global Aliases
Specific Aliases
Last updated