Skip to content

Commit

Permalink
Merge branch 'main' into indexer_refactoring_constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Oct 29, 2024
2 parents 752881b + 6714e35 commit af61f0c
Show file tree
Hide file tree
Showing 57 changed files with 1,052 additions and 781 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ docs/*
rpc-call-examples/*
.github/*
.vscode/*
.env.example
target/*
Dockerfile
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MONGO_CONNECTION_STRING=mongodb+srv://
MONGO_DATABASE_NAME=Kakarot-Testnet-0

# Starknet Environment
STARKNET_NETWORK=
STARKNET_NETWORK=katana
## Katana specific configurations
KATANA_ACCOUNT_ADDRESS=0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e5828ca
KATANA_PRIVATE_KEY=0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Runs `cargo update` periodically.

name: Update Dependencies

on:
schedule:
# Run weekly
- cron: 0 0 * * MON
workflow_dispatch:
# Needed so we can run it manually

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: cargo-update
TITLE: "chore(deps): weekly `cargo update`"
BODY: |
Automation to keep dependencies in `Cargo.lock` current.
<details><summary><strong>cargo update log</strong></summary>
<p>
```log
$cargo_update_log
```
</p>
</details>
permissions:
checks: write
contents: write
pull-requests: write

jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly

- name: Cargo update
# Remove first line that always just says "Updating crates.io index"
run: |
cargo update --color never 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
- name: Craft commit message and PR body
id: msg
run: |
export cargo_update_log="$(cat cargo_update.log)"
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
printf "$TITLE\n\n$cargo_update_log\n" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" | envsubst >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- uses: actions/create-github-app-token@v1
id: github_token
with:
app-id: ${{ secrets.KAKAROT_BOT_APP_ID }}
private-key: ${{ secrets.KAKAROT_BOT_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.github_token.outputs.token }}
add-paths: ./Cargo.lock
commit-message: ${{ steps.msg.outputs.commit_message }}
title: ${{ env.TITLE }}
body: ${{ steps.msg.outputs.body }}
branch: ${{ env.BRANCH }}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"files.exclude": {
"**/.git": false
},
"rust-analyzer.check.command": "clippy",
"rust-analyzer.check.command": "check",
"rust-analyzer.checkOnSave": false,
"rust-analyzer.cargo.features": "all",
"deno.enable": true,
"deno.suggest.imports.autoDiscover": true,
Expand Down
153 changes: 142 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af61f0c

Please sign in to comment.