@@ -21,7 +21,7 @@ import {L1WETHGateway} from "../../src/L1/gateways/L1WETHGateway.sol";
21
21
import {L2GasPriceOracle} from "../../src/L1/rollup/L2GasPriceOracle.sol " ;
22
22
import {MultipleVersionRollupVerifier} from "../../src/L1/rollup/MultipleVersionRollupVerifier.sol " ;
23
23
import {ScrollChain} from "../../src/L1/rollup/ScrollChain.sol " ;
24
- import {ZkEvmVerifierV1 } from "../../src/libraries/verifier/ZkEvmVerifierV1 .sol " ;
24
+ import {ZkEvmVerifierV2 } from "../../src/libraries/verifier/ZkEvmVerifierV2 .sol " ;
25
25
import {GasTokenExample} from "../../src/alternative-gas-token/GasTokenExample.sol " ;
26
26
import {L1ScrollMessengerNonETH} from "../../src/alternative-gas-token/L1ScrollMessengerNonETH.sol " ;
27
27
import {L1GasTokenGateway} from "../../src/alternative-gas-token/L1GasTokenGateway.sol " ;
@@ -132,7 +132,7 @@ contract DeployScroll is DeterminsticDeployment {
132
132
address internal L1_WETH_GATEWAY_IMPLEMENTATION_ADDR;
133
133
address internal L1_WETH_GATEWAY_PROXY_ADDR;
134
134
address internal L1_WHITELIST_ADDR;
135
- address internal L1_ZKEVM_VERIFIER_V1_ADDR ;
135
+ address internal L1_ZKEVM_VERIFIER_V2_ADDR ;
136
136
address internal L2_GAS_PRICE_ORACLE_IMPLEMENTATION_ADDR;
137
137
address internal L2_GAS_PRICE_ORACLE_PROXY_ADDR;
138
138
address internal L1_GAS_TOKEN_ADDR;
@@ -349,7 +349,7 @@ contract DeployScroll is DeterminsticDeployment {
349
349
deployL1ScrollChainProxy ();
350
350
deployL1ScrollMessengerProxy ();
351
351
deployL1EnforcedTxGateway ();
352
- deployL1ZkEvmVerifierV1 ();
352
+ deployL1ZkEvmVerifier ();
353
353
deployL1MultipleVersionRollupVerifier ();
354
354
deployL1MessageQueue ();
355
355
deployL1ScrollChain ();
@@ -550,16 +550,18 @@ contract DeployScroll is DeterminsticDeployment {
550
550
);
551
551
}
552
552
553
- function deployL1ZkEvmVerifierV1 () private {
554
- bytes memory args = abi.encode (notnull (L1_PLONK_VERIFIER_ADDR));
555
- L1_ZKEVM_VERIFIER_V1_ADDR = deploy ("L1_ZKEVM_VERIFIER_V1 " , type (ZkEvmVerifierV1 ).creationCode, args);
553
+ function deployL1ZkEvmVerifier () private {
554
+ bytes memory args = abi.encode (notnull (L1_PLONK_VERIFIER_ADDR), V4_VERIFIER_DIGEST );
555
+ L1_ZKEVM_VERIFIER_V2_ADDR = deploy ("L1_ZKEVM_VERIFIER_V2 " , type (ZkEvmVerifierV2 ).creationCode, args);
556
556
}
557
557
558
558
function deployL1MultipleVersionRollupVerifier () private {
559
559
uint256 [] memory _versions = new uint256 [](1 );
560
560
address [] memory _verifiers = new address [](1 );
561
- _versions[0 ] = 1 ;
562
- _verifiers[0 ] = notnull (L1_ZKEVM_VERIFIER_V1_ADDR);
561
+
562
+ // register V4 verifier: DarwinV2 upgrade, plonk verifier v0.13.1
563
+ _versions[0 ] = 4 ;
564
+ _verifiers[0 ] = notnull (L1_ZKEVM_VERIFIER_V2_ADDR);
563
565
564
566
bytes memory args = abi.encode (DEPLOYER_ADDR, _versions, _verifiers);
565
567
0 commit comments