Skip to content

Commit

Permalink
feat: move all compiler docs to their repos (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgar2017 authored Jan 13, 2025
1 parent 9c48aa2 commit d901f05
Show file tree
Hide file tree
Showing 27 changed files with 90 additions and 3,421 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ For Solidity versions older than 0.8, only this compilation mode is available an
`fallback_to_optimizing_for_size` option is supported for zksolc compiler version 1.3.21 or higher.
::

### Compiler informations
### Compiler integrations

The zksolc compilers are stored in the cache folder with the path `{cache}/hardhat-nodejs/compilers-v2/zksolc`.
In this location, you can inspect the locally stored compiler versions.
Expand All @@ -157,16 +157,15 @@ This approach is implemented to provide a caching mechanism, avoiding the risk o

### ZKsync Era Solidity compiler

Due to [several codegen limitations](/zksync-protocol/compiler/specification/evmla-translator)
Due to [several codegen limitations](https://matter-labs.github.io/era-compiler-solidity/latest/eravm/02-evm-assembly-translator.html)
of the [upstream Solidity compiler](https://github.com/ethereum/solidity), our team
had to [fork it](%%zk_git_repo_era-solidity%%) in order to effectively address and resolve these constraints.

For usage of EraVM compiler, `eraVersion` should be added inside `solidity` property in the `hardhat.config.ts` file:

```typescript
solidity: {
version: "0.8.17",
eraVersion: "1.0.0" //optional. Compile contracts with EraVM compiler
version: "0.8.28"
},

```
Expand Down Expand Up @@ -232,7 +231,7 @@ To understand what the factory dependencies are, read more about them
#### Error in plugin @matterlabs/hardhat-zksync-solc: Invalid zksolc compiler version

This error is returned when the version defined in the `hardhat.config.ts` file is lower
than the minimal required (versions are defined in file [compilerVersion.json](#compiler-informations)).
than the minimal required (versions are defined in file [compilerVersion.json](#compiler-integrations)).
Update the version to solve the issue.

#### Why is there an `unexpected end of JSON input` compilation error?
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit d901f05

Please sign in to comment.