-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix bugs and add annotation for error msgs
- Loading branch information
1 parent
7b0e0be
commit 997e02e
Showing
24 changed files
with
2,287 additions
and
97 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ contracts/flattened/*.sol | |
lib/forge-std/ | ||
|
||
.env | ||
**/.bak |
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 |
---|---|---|
|
@@ -16,9 +16,11 @@ foundryup | |
forge install --no-git --no-commit foundry-rs/[email protected] | ||
``` | ||
|
||
Please make sure your dependency version is as follows: | ||
|
||
Node: v12.18.3 | ||
Install poetry: | ||
```shell script | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
poetry install | ||
``` | ||
|
||
Tips: You can manage multi version of Node: | ||
```Shell | ||
|
@@ -59,20 +61,11 @@ All system contracts will be flattened and output into `${workspace}/contracts/f | |
|
||
## How to generate mainnet/testnet/QA/local genesis file | ||
|
||
You may need install some python dependencies firstly. | ||
Save the following content to `requirements.txt` file, and run `pip install -r requirements.txt` to install them. | ||
```txt | ||
Jinja2==3.1.2 | ||
typer==0.9.0 | ||
``` | ||
|
||
|
||
Then: | ||
```shell | ||
python scripts/generate.py ${network} | ||
poetry run python -m scripts.generate ${network} | ||
``` | ||
Check the `genesis.json` file, and you can get the exact compiled bytecode for different network. | ||
(`python scripts/generate.py --help` for more details) | ||
(`poetry run python -m scripts.generate --help ` for more details) | ||
|
||
## How to update contract interface for test | ||
|
||
|
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
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
Oops, something went wrong.