-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for forkID in the tool 'deployVerifier'
- Loading branch information
Showing
16 changed files
with
2,566 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deploy_verifier_parameters.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Deploy verifier | ||
Script to deploy `verifier` smart contract | ||
|
||
## Install | ||
``` | ||
npm i | ||
``` | ||
|
||
## Setup | ||
- Config file | ||
- `realVerifier`: select between a real or a mock verifer | ||
- `forkID`: Select fork to verifier to be deployed (if a real verfifier is selected) | ||
- `deployerPvtKey`: private key deployer | ||
- First option will load `deployerPvtKey`. Otherwise, `process.env.MNEMONIC` will be loaded from the `.env` file | ||
- `maxFeePerGas`: set custom gas | ||
- `maxPriorityFeePerGas`: set custom gas | ||
- `multiplierGas`: set custom gas | ||
- A network should be selected when running the script | ||
- examples: `-- sepolia` or `--mainnet` | ||
- This uses variables set in `hardhat.config.ts` | ||
- Which uses some nvironment variables that should be set in `.env` | ||
> All paths are from roor repository | ||
## Usage | ||
> All commands are done from root repository. | ||
- Copy configuration file: | ||
``` | ||
cp ./tools/deployVerifier/deploy_verifier_parameters.example ./tools/deployVerifier/deploy_verifier_parameters.json | ||
``` | ||
|
||
- Set your parameters | ||
- Run tool: | ||
``` | ||
npx hardhat run ./tools/addRollupType/deployVerififer.ts --network sepolia | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"realVerifier": true, | ||
"forkID": 10, | ||
"deployerPvtKey": "", | ||
"maxFeePerGas":"", | ||
"maxPriorityFeePerGas":"", | ||
|