Solc¶
| Source | Solc |
|---|
Smart contracts solc representation. Is used to handle and sort the compiled SmartContracts compiled object.
constructor¶
new Solc(SmartContracts);
Constructor of the Solc. Takes unformatted SmartContracts.
Parameters¶
SmartContracts-any: compiled SmartContracts object.
Returns¶
Solc: Smart contracts export of the smart contracts project.
getContracts¶
solc.getContracts();
Takes the unformatted contracts from the constructor and format the object contract keys AbstractENS.sol => AbstractENS
Returns¶
any: Formatted Smart Contracts objects with shorted key names.
Example¶
solc.getContracts();
// {
// "AbstractDescribed": {
// "interface": "[...]"
// },
// "AbstractENS": {
// "interface": "[...]"
// },
// ...
// }