Warp - Bringing Solidity to Starknet at warp speed. Warp is a Solidity to Cairo Compiler, this allows teams to write/migrate Solidity to Cairo for easy onboarding into the StarkNet ecosystem.
Change the imports writer to be compatible with Cairo1
The path to the imports in the CairoImportFunctionDefinition node changed to be an array of strings instead of a raw string
There is a new file src/utils/importFuncs that contains the definitions for all the import paths. This way, if an import needs to be changed, it is only necessary to change it here and not in the entire code.
Issues:
Warplib generated functions imports were not fixed, even though they are not compatible with cairo1, because warplib functions need to be modified as well, which is a different task.
All of the parsing to get the implicits of warplib functions was also not changed, as implicits are probably being removed
Changes addressed in this PR:
CairoImportFunctionDefinition
node changed to be an array of strings instead of a raw stringsrc/utils/importFuncs
that contains the definitions for all the import paths. This way, if an import needs to be changed, it is only necessary to change it here and not in the entire code.Issues: