Skip to content

Commit

Permalink
rename tool createGenesis -> upgradePreEtrogGenesis
Browse files Browse the repository at this point in the history
  • Loading branch information
laisolizq committed Jan 30, 2025
1 parent 5c9b600 commit 7ee9608
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tools/deployVerifier/deployVerifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main() {
// Load provider
let currentProvider = ethers.provider;
if (deployParameters.multiplierGas || deployParameters.maxFeePerGas) {
if (process.env.HARDHAT_NETWORK !== "hardhat" && process.env.HARDHAT_NETWORK !== "zkevmDevnet") {
if (process.env.HARDHAT_NETWORK !== "hardhat") {
currentProvider = ethers.getDefaultProvider(
`https://${process.env.HARDHAT_NETWORK}.infura.io/v3/${process.env.INFURA_PROJECT_ID}`
) as any;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Generate Genesis
Script to generate new genesis
# Upgrade pre etrog genesis
Script to migrate a non-LxLY genesis (previous genesis) to an LxLY genesis (etrog fork).

## Install
```
npm i
```

## Setup
- Config file `genesis_parameters.json`:
- Config file `upgrade_pre_etrog_genesis.json`:
- `test`: bool, Indicate if it's a test deployment, which will fund the deployer address with pre minted ether and will give more powers to the deployer address to make easier the flow.
- `timelockAdminAddress`: address, Timelock owner address, able to send start an upgradeability process via timelock
- `minDelayTimelock`: number, Minimum timelock delay,
Expand All @@ -21,12 +21,12 @@ npm i

- Copy configuration file:
```
cp ./tools/createGenesis/genesis_parameters.json.example ./tools/createGenesis/genesis_parameters.json
cp ./tools/upgradePreEtrogGenesis/upgrade_pre_etrog_genesis.json.example ./tools/upgradePreEtrogGenesis/upgrade_pre_etrog_genesis.json
```
- Set your parameters
- Run tool:
```
npx hardhat run ./tools/createGenesis/generateGenesis.ts
npx hardhat run ./tools/upgradePreEtrogGenesis/upgradePreEtrogGenesis.ts
```

- Output: `new_genesis.json`
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7ee9608

Please sign in to comment.