Skip to content

Commit

Permalink
Initial Block Endpoint (Currently Without ZkApp Command Info) (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: João Santos Reis <[email protected]>
  • Loading branch information
harrysolovay and joaosreis authored Oct 4, 2024
1 parent 3d48e69 commit 99ac99e
Show file tree
Hide file tree
Showing 39 changed files with 3,633 additions and 154 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DATABASE_URL=postgres://mina:whatever@localhost:5432/archive # TODO: we only need this one during development

MINAMESH_ARCHIVE_DATABASE_URL=postgres://mina:whatever@localhost:5432/archive
MINAMESH_GENESIS_BLOCK_IDENTIFIER_STATE_HASH=3NK4BpDSekaqsG6tx8Nse2zJchRft2JpnbvMiog55WCr5xJZaKeP
MINAMESH_GENESIS_BLOCK_IDENTIFIER_HEIGHT=359605
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}
- name: Setup
run: |
cp .env.example .env
just get-mainnet-archive-db
just pg
just wait-for-pg
- name: Test
run: just test
- name: Tear down
run: just pg-down
run: |
sed "s|postgres://mina:whatever@localhost:5432/archive|$MINAMESH_ARCHIVE_DATABASE_URL|g" .env.example > .env
just test
env:
MINAMESH_ARCHIVE_DATABASE_URL: ${{ secrets.MINAMESH_ARCHIVE_DATABASE_URL }}

rustfmt:
runs-on: ubuntu-latest
Expand Down

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

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

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

Loading

0 comments on commit 99ac99e

Please sign in to comment.