Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: env, cli #149

Open
wants to merge 40 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1a540c7
chore: ci to just file
rkdud007 Sep 3, 2024
f202761
wip
rkdud007 Sep 3, 2024
e21940b
wip
rkdud007 Sep 3, 2024
bc8d548
works!
rkdud007 Sep 3, 2024
7a50917
rm :dummy file
rkdud007 Sep 3, 2024
4a0949d
chore: minor edit
rkdud007 Sep 4, 2024
6b39d6f
Merge pull request #138 from HerodotusDev/starknet
rkdud007 Sep 4, 2024
e969a9a
test case for storage proof
rkdud007 Sep 5, 2024
53a2d65
test with storage
rkdud007 Sep 5, 2024
0722b49
is this works?
rkdud007 Sep 11, 2024
7fbb98c
Merge pull request #142 from HerodotusDev/workflow
rkdud007 Sep 12, 2024
3cb3263
git pull issue
rkdud007 Sep 12, 2024
c3a4410
Merge pull request #144 from HerodotusDev/fix/workflow
rkdud007 Sep 12, 2024
e562327
update
rkdud007 Sep 12, 2024
146e2d3
Merge pull request #145 from HerodotusDev/fix/workflow
rkdud007 Sep 12, 2024
d22fd0d
wip, huge refactor needed
rkdud007 Sep 12, 2024
b1f5278
input update
rkdud007 Sep 12, 2024
cb07d56
mmr id temp fix
rkdud007 Sep 12, 2024
79ed345
clone issue
rkdud007 Sep 12, 2024
a4f7447
Merge branch 'fix/workflow' into feat/input-format
rkdud007 Sep 12, 2024
eeeeb96
Merge pull request #146 from HerodotusDev/fix/workflow
rkdud007 Sep 12, 2024
d8ce15b
update, also temp
rkdud007 Sep 12, 2024
ba91c3a
fix: beneficiary
rkdud007 Sep 12, 2024
314b45a
rm trait
rkdud007 Sep 13, 2024
9b130c4
refact: handle multi chain
rkdud007 Sep 13, 2024
0b070c0
fix: ci
rkdud007 Sep 13, 2024
f72a163
update header merge logic
rkdud007 Sep 13, 2024
cc02d15
rm input
rkdud007 Sep 13, 2024
a00269c
Merge pull request #143 from HerodotusDev/feat/input-format
rkdud007 Sep 13, 2024
36a0fc5
Merge branch 'dev' into starknet
rkdud007 Sep 13, 2024
826e44a
Merge pull request #140 from HerodotusDev/starknet
rkdud007 Sep 13, 2024
abf790c
chore: some cleanups
rkdud007 Sep 15, 2024
42d15fb
chore: consume value on from
rkdud007 Sep 15, 2024
cbcf5a0
chore:
rkdud007 Sep 15, 2024
96fb67f
chore: more cleanup
rkdud007 Sep 15, 2024
0a6164e
cargo doc
rkdud007 Sep 15, 2024
4ccd4f5
Merge pull request #147 from HerodotusDev/refactor/trait
rkdud007 Sep 15, 2024
23f9c3e
chore: `Felt`
rkdud007 Sep 16, 2024
6f02adb
Merge pull request #148 from HerodotusDev/dependency-fix
rkdud007 Sep 17, 2024
aca40fd
chore: env, cli
rkdud007 Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Note that RPC_URL_{CHAIN_ID} is required for fetch data
RPC_URL_ETHEREUM_SEPOLIA=https://goerli.infura.io/v3/your-infura-api-key
# Note that PROVIDER_URL_{CHAIN_ID} is required for fetch data
PROVIDER_URL_ETHEREUM_SEPOLIA=https://goerli.infura.io/v3/your-infura-api-key
# this value is optional
RPC_CHUNK_SIZE_ETHEREUM_SEPOLIA=2000
PROVIDER_CHUNK_SIZE_ETHEREUM_SEPOLIA=2000

PROVIDER_URL_STARKNET_SEPOLIA=# if it's starknet make sure to use pathfinder

# Optional
DRY_RUN_CAIRO_PATH= # path for dry run cairo
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
run: |
rustup component add clippy
rustup component add rustfmt
- name: Install cargo-make
run: cargo install --debug cargo-make
- uses: taiki-e/install-action@just
- name: Run clippy and formatter checks
run: cargo make run-ci-flow
run: just run-ci-flow
85 changes: 85 additions & 0 deletions .github/workflows/fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Generate and Merge Fixtures

on:
workflow_dispatch:
push:
branches:
- dev

jobs:
generate_fixtures:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Install CLI binary
run: |
cargo install --locked -f --path cli/

- name: Clone hdp-test repository
run: |
git clone -b ${{ github.ref_name }} https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/HerodotusDev/hdp-test.git hdp-test || git clone https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/HerodotusDev/hdp-test.git hdp-test
cd hdp-test
git checkout -b ${{ github.ref_name }} || git checkout ${{ github.ref_name }}
git config user.name github-actions
git config user.email [email protected]

- name: Generate .env file
run: |
cd hdp-test
cat << EOF > .env
RPC_URL_ETHEREUM_SEPOLIA=${{ secrets.RPC_URL_ETHEREUM_SEPOLIA }}
RPC_CHUNK_SIZE_ETHEREUM_SEPOLIA=${{ secrets.RPC_CHUNK_SIZE_ETHEREUM_SEPOLIA }}
DRY_RUN_CAIRO_PATH=${{ secrets.DRY_RUN_CAIRO_PATH }}
SOUND_RUN_CAIRO_PATH=${{ secrets.SOUND_RUN_CAIRO_PATH }}
SAVE_FETCH_KEYS_FILE=${{ secrets.SAVE_FETCH_KEYS_FILE }}
EOF

- name: Set up and generate fixtures
run: |
cd hdp-test
make cleanup
make setup
source venv/bin/activate
make generate

- name: Commit and push new fixtures
run: |
cd hdp-test
git add .
git commit -m "Update fixtures"
git push origin ${{ github.ref_name }}

merge_to_main:
needs: generate_fixtures
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
steps:
- name: Checkout hdp-test repository
uses: actions/checkout@v4
with:
repository: HerodotusDev/hdp-test
token: ${{ secrets.REPO_ACCESS_TOKEN }}
fetch-depth: 0

- name: Merge fixtures to main
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch origin
git checkout main
git merge --no-ff origin/${{ github.ref_name }} -m "Merge ${{ github.ref_name }} into main"
git push origin main
Loading
Loading