diff --git a/.gitmodules b/.gitmodules index 47c6f8014..a5c0bea60 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,8 @@ [submodule "etc/system-contracts"] path = etc/system-contracts -url = https://github.com/matter-labs/era-system-contracts.git +url = https://github.com/cronos-labs/era-system-contracts.git +branch = testnet [submodule "contracts"] path = contracts -url = https://github.com/matter-labs/era-contracts.git +url = https://github.com/cronos-labs/era-contracts.git +branch = custom-gas-token diff --git a/contracts b/contracts index 3e2bee96e..ba1360875 160000 --- a/contracts +++ b/contracts @@ -1 +1 @@ -Subproject commit 3e2bee96e412bac7c0a58c4b919837b59e9af36e +Subproject commit ba13608757536f87cc4e52b848c0828d1927ad9d diff --git a/etc/contracts-test-data/hardhat.config.ts b/etc/contracts-test-data/hardhat.config.ts index 1828a5547..417d4a0d6 100644 --- a/etc/contracts-test-data/hardhat.config.ts +++ b/etc/contracts-test-data/hardhat.config.ts @@ -2,7 +2,7 @@ import '@matterlabs/hardhat-zksync-solc'; export default { zksolc: { - version: '1.3.7', + version: '1.3.16', compilerSource: 'binary', settings: { isSystem: true diff --git a/etc/system-contracts b/etc/system-contracts index a00ab9a11..0547c835e 160000 --- a/etc/system-contracts +++ b/etc/system-contracts @@ -1 +1 @@ -Subproject commit a00ab9a11643f3a918ed95cdf8a04edff5499d92 +Subproject commit 0547c835ed261cf9b612ffb794295b8bb4269214 diff --git a/infrastructure/zk/src/contract.ts b/infrastructure/zk/src/contract.ts index 510372592..cb280a42b 100644 --- a/infrastructure/zk/src/contract.ts +++ b/infrastructure/zk/src/contract.ts @@ -143,7 +143,8 @@ export async function deployL1(args: any[]) { 'CONTRACTS_L1_WETH_BRIDGE_IMPL_ADDR', 'CONTRACTS_L1_WETH_BRIDGE_PROXY_ADDR', 'CONTRACTS_L1_ALLOW_LIST_ADDR', - 'CONTRACTS_L1_MULTICALL3_ADDR' + 'CONTRACTS_L1_MULTICALL3_ADDR', + 'CONTRACTS_L1_CRO_TOKEN_ADDR' ]; const updatedContracts = updateContractsEnv(deployLog, envVars); diff --git a/infrastructure/zk/src/init.ts b/infrastructure/zk/src/init.ts index 0fe3c1137..2ea9636aa 100644 --- a/infrastructure/zk/src/init.ts +++ b/infrastructure/zk/src/init.ts @@ -69,8 +69,7 @@ export async function init(initArgs: InitArgs = DEFAULT_ARGS) { await announced( 'Initializing governance', contract.initializeGovernance([ - ...governorPrivateKeyArgs, - !deployerL2ContractInput.includeL2WETH ? ['--skip-weth-bridge'] : [] + ...governorPrivateKeyArgs ]) ); } @@ -167,7 +166,7 @@ const DEFAULT_ARGS: InitArgs = { skipEnvSetup: false, skipPlonkStep: false, governorPrivateKeyArgs: [], - deployerL2ContractInput: { args: [], includePaymaster: true, includeL2WETH: true }, + deployerL2ContractInput: { args: [], includePaymaster: true, includeL2WETH: false }, testTokens: { deploy: true, args: [] } }; @@ -181,7 +180,7 @@ export const initCommand = new Command('init') skipEnvSetup: cmd.skipEnvSetup, skipPlonkStep: false, governorPrivateKeyArgs: [], - deployerL2ContractInput: { args: [], includePaymaster: true, includeL2WETH: true }, + deployerL2ContractInput: { args: [], includePaymaster: true, includeL2WETH: false }, testTokens: { deploy: true, args: [] } }; await init(initArgs); diff --git a/infrastructure/zk/src/run/run.ts b/infrastructure/zk/src/run/run.ts index 3e13bd5a2..b2c9dd1bb 100644 --- a/infrastructure/zk/src/run/run.ts +++ b/infrastructure/zk/src/run/run.ts @@ -39,10 +39,10 @@ export async function deployERC20( { "name": "BATL", "symbol": "BATW", "decimals": 18 }, { "name": "GNTL", "symbol": "GNTW", "decimals": 18 }, { "name": "MLTTL", "symbol": "MLTTW", "decimals": 18 }, - { "name": "Wrapped Ether", "symbol": "WETH", "decimals": 18, "implementation": "WETH9"} + { "name": "CronosTestnet", "symbol": "TCRO", "decimals": 18, "implementation": "CronosTestnet"} ]' ${args.join(' ')} > ./etc/tokens/${destinationFile}.json`); - const WETH = getTokens(destinationFile).find((token) => token.symbol === 'WETH')!; - env.modify('CONTRACTS_L1_WETH_TOKEN_ADDR', `CONTRACTS_L1_WETH_TOKEN_ADDR=${WETH.address}`); + const CRO = getTokens(destinationFile).find((token) => token.symbol === 'TCRO')!; + env.modify('CONTRACTS_L1_CRO_TOKEN_ADDR', `CONTRACTS_L1_CRO_TOKEN_ADDR=${CRO.address}`); } else if (command == 'new') { await utils.spawn( `yarn --silent --cwd contracts/ethereum deploy-erc20 add --token-name ${name} --symbol ${symbol} --decimals ${decimals}`