Skip to content

Commit 72ec8dc

Browse files
committed
adds dencun / cancun info and precompile limits
1 parent bc4dfa4 commit 72ec8dc

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/content/docs/en/developers/developer-quickstart.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ Use the table below to configure your Ethereum tools to the Scroll Sepolia Testn
8383
Contracts](/developers/verifying-smart-contracts).
8484
</Aside>
8585

86+
<Aside type="danger" title="">
87+
Features from the Dencun upgrade are not yet available on Scroll. Please use `shanghai` as your EVM target and avoid using a Solidity version higher than `0.8.23`.
88+
</Aside>
89+
8690
### Hardhat
8791

8892
Modify your Hardhat config file `hardhat.config.ts` to point at the Scroll Sepolia Testnet public RPC.

src/content/docs/en/developers/ethereum-and-scroll-differences.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ For open-source contributors and infrastructure builders, please contact our tea
2020

2121
## EVM Opcodes
2222

23+
2324
| Opcode | Solidity equivalent | Scroll Behavior |
2425
| --------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------- |
2526
| `BLOCKHASH` | `block.blockhash` | Returns `keccak(chain_id \|\| block_number)` for the last 256 blocks. |
@@ -28,6 +29,10 @@ For open-source contributors and infrastructure builders, please contact our tea
2829
| `BASEFEE` | `block.basefee` | Disabled.[^eip1559] If the opcode is encountered, the transaction will be reverted. |
2930
| `SELFDESTRUCT` | `selfdestruct` | Disabled. If the opcode is encountered, the transaction will be reverted.[^willadpot] |
3031

32+
<Aside type="caution" title="">
33+
Opcodes from the Cancun upgrade are not yet available on Scroll, including `MCOPY`, `TSTORE`, `TLOAD`, and `BLOBBASEFEE`. Additionally, [EIP-4788](https://eips.ethereum.org/EIPS/eip-4788) for accessing the Beacon Chain block root is not supported. We recommend using `shanghai` as your EVM target and avoiding using a Solidity version higher than `0.8.23`.
34+
</Aside>
35+
3136
[^eip1559]: We have currently disabled EIP-1559 on Scroll.
3237
[^willadpot]: Will change to adopt Ethereum’s solution in the future.
3338

@@ -41,6 +46,20 @@ The `ecPairing` precompile is supported, but the number of points(sets, pairs) i
4146

4247
The other EVM precompiles are all supported: `ecRecover`, `identity`, `ecAdd`, `ecMul`.
4348

49+
### Precompile Limits
50+
51+
Because of a bounded size of the zkEVM circuits, there is an upper limit on the number of calls that can be made for some precompiles. These transactions will not revert, but simply be skipped by the sequencer if they cannot fit into the space of the circuit. Read more about the [Circuit Capacity Checker](/en/technology/sequencer/execution-node#circuit-capacity-checker).
52+
53+
| Precompile / Opcode | Limit |
54+
| ------------------- | ----- |
55+
| `keccak256` | 3157 |
56+
| `ecRecover` | 119 |
57+
| `modexp` | 23 |
58+
| `ecAdd` | 50 |
59+
| `ecMul` | 50 |
60+
| `ecPairing` | 2 |
61+
62+
4463
## State Account
4564

4665
### **Additional Fields**

src/content/docs/en/technology/chain/differences.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ permalink: "technology/chain/differences"
77
whatsnext: { "Bridge": "/technology/bridge/cross-domain-messaging/" }
88
---
99

10+
import Aside from "../../../../components/Aside.astro"
11+
1012
## Opcodes
1113

1214
| Opcode | Scroll Behavior |
@@ -44,3 +46,8 @@ EIPs imported from the Shanghai fork:
4446
- [EIP-3651](https://eips.ethereum.org/EIPS/eip-3651): Warm `COINBASE`
4547
- [EIP-3855](https://eips.ethereum.org/EIPS/eip-3855): `PUSH0` instruction
4648
- [EIP-3860](https://eips.ethereum.org/EIPS/eip-3860): Limit and meter initcode
49+
50+
51+
<Aside type="tip" title="">
52+
Opcodes from the Cancun upgrade are not yet available on Scroll, including `MCOPY`, `TSTORE`, `TLOAD`, and `BLOBBASEFEE`. Additionally, [EIP-4788](https://eips.ethereum.org/EIPS/eip-4788) for accessing the Beacon Chain block root is not supported.
53+
</Aside>

0 commit comments

Comments
 (0)