This used to be a part of #384, but is arguably a breaking change (alternatively we may call it a bugfix as it would make some intuitive combinations in the hardhat config finally possible).
Cairo 1 functions should not be a part of src/starknet-wrapper.ts, they could be methods of a separate class (actually two child classes of one parent CairoCompilerWrapper: dockerized and non-dockerized), similar to the approach with scarb wrappers in https://github.com/0xSpaceShard/starknet-hardhat-plugin/pull/376
We would resort to dockerized cairo compiler only if nothing else specified (the BREAKING part)
The wrapper would be created only when needed (lazily)
This used to be a part of #384, but is arguably a breaking change (alternatively we may call it a bugfix as it would make some intuitive combinations in the hardhat config finally possible).
src/starknet-wrapper.ts
, they could be methods of a separate class (actually two child classes of one parent CairoCompilerWrapper: dockerized and non-dockerized), similar to the approach with scarb wrappers in https://github.com/0xSpaceShard/starknet-hardhat-plugin/pull/376