-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove era-test-node submodule * Update README.md * Update Makefile Added node commands and update repo installation * Fix era-test-node path * Add .gitignore * Remove useless commands * Fix CI * Add EOL * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Debug CI * Debug CI * Debug CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Rename ModExp precompile file --------- Co-authored-by: Ivan Litteri <[email protected]>
- Loading branch information
Showing
6 changed files
with
46 additions
and
25 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
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,2 @@ | ||
era_test_node.log | ||
submodules/era_test_node |
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,7 +1,3 @@ | ||
[submodule "submodules/eth-tests"] | ||
path = submodules/eth-tests | ||
url = https://www.github.com/ethereum/tests.git | ||
[submodule "submodules/era-test-node"] | ||
path = submodules/era-test-node | ||
url = https://www.github.com/lambdaclass/era-test-node.git | ||
branch = yul-console-log-vm-fixes |
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,24 +1,42 @@ | ||
.PHONY: setup update run test docs | ||
.PHONY: install run copy-precompiles build-precompiles download-node build-node setup-node update-node run-node run-node-light test docs clean | ||
|
||
setup: | ||
git submodule update --init && \ | ||
# Main commands | ||
|
||
install: setup-node | ||
cp -r precompiles/ submodules/era-test-node/etc/system-contracts/contracts/precompiles && \ | ||
cd submodules/era-test-node && \ | ||
make build-contracts | ||
|
||
update: | ||
git submodule update | ||
# Precompiles commands | ||
|
||
.PHONY: copy-precompiles | ||
copy-precompiles: | ||
cp precompiles/*.yul submodules/era-test-node/etc/system-contracts/contracts/precompiles/ | ||
|
||
.PHONY: build-precompiles | ||
build-precompiles: copy-precompiles | ||
cd submodules/era-test-node && make build-precompiles | ||
cd submodules/era-test-node && \ | ||
make build-contracts | ||
|
||
# Node Commands | ||
|
||
download-node: | ||
cd submodules && \ | ||
[ -d "./era-test-node" ] || git clone [email protected]:LambdaClass/era-test-node.git --branch lambdaclasss_precompiles | ||
|
||
build-node: | ||
cd submodules/era-test-node && make rust-build && make build-contracts | ||
|
||
setup-node: download-node build-node | ||
|
||
update-node: | ||
cd submodules/era-test-node && git pull && make rust-build | ||
|
||
run-node: | ||
./submodules/era-test-node/target/release/era_test_node --show-calls=all --resolve-hashes --show-gas-details=all run | ||
|
||
run-node-light: | ||
./submodules/era-test-node/target/release/era_test_node run | ||
|
||
run: build-precompiles | ||
cd submodules/era-test-node && cargo +nightly run -- --show-calls=all --resolve-hashes --show-gas-details=all run | ||
# Other commands | ||
|
||
test: | ||
cd tests && \ | ||
|
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
File renamed without changes.