-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : code update as per zaun (#18)
* feat : code update as per zaun * feat : updated workflows * feat : updated workflows * feat : updated workflows * feat : updated workflows * feat : updated workflows * feat : updated workflows * zaun deps update * Remove artifacts from git tracking * dep update * update * feat : updated and refactored the code * fix : deps and lint * feat : config fix * feat : updated upgrade code for tests * feat : updated braavos code and added upgrade functionality * ci debug * feat : added debug logs * feat : updated madara spwan process in tests * feat : updated build process for madara and spawn process * feat : updated build process * resolved comments 1 * fix : test and bridge * feat : refactor * feat : resolved comments 2
- Loading branch information
Showing
49 changed files
with
1,293 additions
and
385,337 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 |
---|---|---|
|
@@ -15,9 +15,49 @@ jobs: | |
# before the plugin, as the cache uses the current rustc version as its cache key | ||
- run: rustup show | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install Ganache | ||
run: | | ||
npm install -g [email protected] | ||
ganache --version | ||
- name: Install Solc | ||
run: | | ||
pip install solc-select | ||
solc-select install 0.8.19 | ||
solc-select use 0.8.19 | ||
solc --version | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
# --------------------------------------------------- | ||
# workaround : https://github.com/asdf-vm/actions/issues/562 | ||
# asdf installation | ||
- name: Detect ASDF .tool-versions file in repo | ||
shell: bash | ||
id: detect_tool_versions_file | ||
run: | | ||
if [ -s .tool-versions ]; then | ||
echo "exists=1" >> $GITHUB_OUTPUT | ||
fi | ||
- name: ASDF install tools | ||
if: ${{ steps.detect_tool_versions_file.outputs.exists == '1' }} | ||
uses: asdf-vm/actions/install@6a442392015fbbdd8b48696d41e0051b2698b2e4 | ||
# --------------------------------------------------- | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
- name: Format and clippy | ||
run: | | ||
git submodule update --init --recursive | ||
make artifacts-linux | ||
cargo fmt -- --check | ||
cargo clippy --no-deps -- -D warnings | ||
cargo clippy --tests --no-deps -- -D warnings |
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 |
---|---|---|
|
@@ -17,6 +17,46 @@ jobs: | |
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install Ganache | ||
run: | | ||
npm install -g [email protected] | ||
ganache --version | ||
- name: Install Solc | ||
run: | | ||
pip install solc-select | ||
solc-select install 0.8.19 | ||
solc-select use 0.8.19 | ||
solc --version | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
# --------------------------------------------------- | ||
# workaround : https://github.com/asdf-vm/actions/issues/562 | ||
# asdf installation | ||
- name: Detect ASDF .tool-versions file in repo | ||
shell: bash | ||
id: detect_tool_versions_file | ||
run: | | ||
if [ -s .tool-versions ]; then | ||
echo "exists=1" >> $GITHUB_OUTPUT | ||
fi | ||
- name: ASDF install tools | ||
if: ${{ steps.detect_tool_versions_file.outputs.exists == '1' }} | ||
uses: asdf-vm/actions/install@6a442392015fbbdd8b48696d41e0051b2698b2e4 | ||
# --------------------------------------------------- | ||
|
||
- name: Build the project | ||
run: | | ||
git submodule update --init --recursive | ||
make artifacts-linux | ||
cargo build --release --workspace |
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 |
---|---|---|
|
@@ -25,6 +25,22 @@ jobs: | |
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
# --------------------------------------------------- | ||
# workaround : https://github.com/asdf-vm/actions/issues/562 | ||
# asdf installation | ||
- name: Detect ASDF .tool-versions file in repo | ||
shell: bash | ||
id: detect_tool_versions_file | ||
run: | | ||
if [ -s .tool-versions ]; then | ||
echo "exists=1" >> $GITHUB_OUTPUT | ||
fi | ||
- name: ASDF install tools | ||
if: ${{ steps.detect_tool_versions_file.outputs.exists == '1' }} | ||
uses: asdf-vm/actions/install@6a442392015fbbdd8b48696d41e0051b2698b2e4 | ||
# --------------------------------------------------- | ||
|
||
- name: Setup build deps | ||
run: | | ||
sudo apt-get update | ||
|
@@ -37,26 +53,30 @@ jobs: | |
with: | ||
version: nightly | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install Ganache | ||
run: | | ||
npm install -g [email protected] | ||
ganache --version | ||
- name: Install Solc | ||
run: | | ||
pip install solc-select | ||
solc-select install 0.8.19 | ||
solc-select use 0.8.19 | ||
solc --version | ||
- name: Checkout Madara | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: madara-alliance/madara | ||
ref: "d188aa91efa78bcc54f92aa1035295fd50e068d2" | ||
path: madara | ||
|
||
- name: Move Madara Devnet config | ||
working-directory: madara | ||
run: | | ||
ls | ||
mv configs/presets/devnet.yaml ../bin/devnet.yaml | ||
- name: Build Madara | ||
working-directory: madara | ||
run: | | ||
cargo build | ||
mv target/debug/madara ../bin/madara | ||
cd .. | ||
- name: Run anvil | ||
run: | | ||
anvil & | ||
|
@@ -70,6 +90,8 @@ jobs: | |
- name: Run llvm-cov | ||
run: | | ||
git submodule update --init --recursive | ||
make artifacts-linux | ||
cargo llvm-cov nextest --release --lcov --output-path lcov.info | ||
- name: Coveralls | ||
|
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 |
---|---|---|
|
@@ -3,4 +3,8 @@ | |
.env | ||
addresses.json | ||
/bin/madara | ||
/bin/devnet.yaml | ||
/bin/devnet.yaml | ||
.cairo | ||
/artifacts | ||
madara-dbs | ||
madara/ |
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,8 +1,16 @@ | ||
[submodule "starkgate contracts 2.0.1"] | ||
path = starkgate-contracts-2-0-1 | ||
url = https://github.com/starknet-io/starkgate-contracts | ||
branch = cairo-1 | ||
[submodule "starkgate contracts 0.9.0"] | ||
path = starkgate-contracts | ||
url = https://github.com/starknet-io/starkgate-contracts | ||
branch = update-cairo-0.9.0 | ||
[submodule "lib/argent-contracts-starknet"] | ||
path = lib/argent-contracts-starknet | ||
url = https://github.com/argentlabs/argent-contracts-starknet | ||
[submodule "lib/braavos-account-cairo"] | ||
path = lib/braavos-account-cairo | ||
url = https://github.com/myBraavos/braavos-account-cairo | ||
[submodule "lib/starkgate-contracts-old"] | ||
path = lib/starkgate-contracts-old | ||
url = https://github.com/starknet-io/starkgate-contracts | ||
branch = update-cairo-0.9.0 | ||
[submodule "lib/starkgate-contracts-latest"] | ||
path = lib/starkgate-contracts-latest | ||
url = https://github.com/starknet-io/starkgate-contracts | ||
[submodule "lib/starkgate-contracts-82e651f"] | ||
path = lib/starkgate-contracts-82e651f | ||
url = https://github.com/starknet-io/starkgate-contracts.git |
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 @@ | ||
scarb 2.8.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.