Skip to content

Commit 94b2c51

Browse files
Zk deploy (#538)
* f * deploy on era * deploy on mainnet
1 parent 7b457a1 commit 94b2c51

File tree

30 files changed

+6313
-10
lines changed

30 files changed

+6313
-10
lines changed

.upgradable/zkSync-era.json

Lines changed: 515 additions & 0 deletions
Large diffs are not rendered by default.

.upgradable/zkSync-testnet-sepolia.json

Lines changed: 515 additions & 0 deletions
Large diffs are not rendered by default.

deploy/zksync/strategies/deployEraStrategies.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ export async function deployEraStrategies(
139139
},
140140
);
141141

142-
const hashBytesStrategyName = ethers.keccak256(
143-
new ethers.AbiCoder().encode(["string"], [strategyName + version]),
144-
);
142+
// const hashBytesStrategyName = hre.ethers.keccak256(
143+
// new hre.ethers.AbiCoder().encode(["string"], [strategyName + version]),
144+
// );
145145

146146
const objToWrite = {
147-
id: hashBytesStrategyName,
147+
id: "",
148148
name: strategyName,
149149
version: version,
150150
address: impl.toString(),
@@ -157,7 +157,7 @@ export async function deployEraStrategies(
157157

158158
const validator = await new Validator(strategyName, impl);
159159
await validator.validate("getAllo", [], alloAddress);
160-
await validator.validate("getStrategyId", [], hashBytesStrategyName);
160+
// await validator.validate("getStrategyId", [], hashBytesStrategyName);
161161

162162
return impl.toString();
163163
}
@@ -208,8 +208,14 @@ export async function deployEraStrategyDirectly(
208208

209209
console.log(`${artifact.contractName} was deployed to ${CONTRACT_ADDRESS}`);
210210

211+
// const hashBytesStrategyName = ethers.keccak256(
212+
// new ethers.AbiCoder().encode(["string"], [strategyName + version]),
213+
// );
214+
211215
const objToWrite = {
212-
name: strategyNameWithVersion,
216+
id: "",
217+
name: strategyName,
218+
version: version,
213219
address: instance.target,
214220
deployerAddress: deployerAddress.address,
215221
};

deployments-zk/zkSyncMainnet/.chainId

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0x144

0 commit comments

Comments
 (0)