Skip to content

Commit

Permalink
Feat/madara bootstrapper v0.0.2 (#14)
Browse files Browse the repository at this point in the history
* updated starknet version, made it compatible with madara

* formatting and linting

* lint: removing print statements

* formatting and cleaning

* legacy class seperated from utils, mostly cleaning

* formatting and linting

* support added for native token, config hash updated, withdrawal functionality uncommented

* madara function call updated

* feat : updated file core_contract.rs

* feat : temp push (to remove 11th block config)

* feat : updated imports

* refactor code

* refactor

* remove bootstrapper.json

* remove not needed files

* refactor: refactoring tests

* refactor: tests working now

* formatting and linting

* refactor: removed extras

* refactor: removed extra enter input

* refactor: tests refactor to run madara inside code

* refactor: yml file added

* refactor: binary removed and yaml updated to build madara on the fly

* workflow updated to trigger ci

* workflow updated to trigger ci

* refactor: workflow updated to build cairo

* runner updated to ubuntu

* runner updated to ubuntu

* refactor: workflow updated to run after anvil

* refactor: updated logs, l1 and l2 mods added

* feat: print added for bootstraper outputs

* doc: comment added regarding tests

* refactor: bin location updated, yml filed fix

* fix: devnet.yml file location fixed

* fix: file extension updated

* fix: updating devnet.yaml file's location

* fix: location of devnet.yaml updated

* resloved: comments

* resolved: comments

* resolved: comments

* refactor: removed cli params and taking input from json file

* feat: config added as file, commit updated for madara

* refactor: checking tests and using defaul

* fix: port of madara fixed in default

* fix: amount in test fixed

* fix: convert to u256 function fixed

---------

Co-authored-by: mohiiit <[email protected]>
Co-authored-by: Arun Jangra <[email protected]>
Co-authored-by: apoorvsadana <[email protected]>
  • Loading branch information
4 people authored Nov 4, 2024
1 parent 883622c commit f717bf1
Show file tree
Hide file tree
Showing 30 changed files with 2,020 additions and 776 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/test-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
test_bridge:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -25,15 +25,41 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run anvil
- name: Setup build deps
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler
- uses: rui314/setup-mold@v1
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.2"
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- 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: |
anvil </dev/null &>/dev/null &
ls
mv configs/presets/devnet.yaml ../bin/devnet.yaml
- name: Run madara
- name: Build Madara
working-directory: madara
run: |
cargo build
mv target/debug/madara ../bin/madara
cd ..
- name: Run anvil
run: |
cd bin
echo "Running madara...."
./run_madara.sh
anvil &
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/target
.idea
.env
addresses.json
addresses.json
/bin/madara
/bin/devnet.yaml
Loading

0 comments on commit f717bf1

Please sign in to comment.