Skip to content

Commit

Permalink
Initial FastNear indexer integration (#321)
Browse files Browse the repository at this point in the history
- Integrated FastNear indexer into main NFFL codebase. It works with manual tests, both the integration test and docker-compose test are in progress due to complexities with nearcore setup in docker-compose environment and will be shipped as separate PR
- Added support for a new configuration options `channel_width` and `fastnear_address` in command-line arguments.
- Upgraded nearcore to v.2.4.0-rc1.
  • Loading branch information
Fly-Style authored Nov 30, 2024
1 parent 5a2c458 commit 2f1defd
Show file tree
Hide file tree
Showing 25 changed files with 1,473 additions and 707 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/compose-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Compose Test
name: Docker Compose Test

on:
push:
Expand Down Expand Up @@ -31,6 +31,9 @@ jobs:
tags: nffl-indexer
cache-from: type=gha,scope=indexer
cache-to: type=gha,mode=max,scope=indexer
build-args: |
- TARGET="debug"
- COMPILATION_MODE=""
- name: Build relayer container
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -65,8 +68,8 @@ jobs:
- name: Build and start Docker Compose services
run: docker-compose -f ./docker-compose.yml up --build -d

- name: Wait for 5 minutes
run: sleep 300
- name: Wait for a 3 minutes
run: sleep 180

- name: List running containers
run: |
Expand All @@ -84,7 +87,7 @@ jobs:
"rollup0-relayer"
"nffl-indexer"
"nffl-aggregator"
"nffl_agreator-health_1"
"nffl_aggregator-health_1"
"mainnet-anvil"
"prometheus"
"rollup0-anvil"
Expand All @@ -107,7 +110,7 @@ jobs:
services=(
"nffl_operator1-health_1"
"nffl_operator0-health_1"
"nffl_agreator-health_1"
"nffl_aggregator-health_1"
"rollup1-anvil"
"rollup0-anvil"
"mainnet-anvil"
Expand All @@ -125,4 +128,4 @@ jobs:
done
- name: Tear down Docker Compose services
run: docker-compose -f ./docker-compose.yml down
run: docker-compose -f ./docker-compose.yml down
3 changes: 3 additions & 0 deletions .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
pull_request:
paths:
- 'bindings/**'
- 'contracts/**'

jobs:
Test:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- main
paths:
- 'docs/**'

jobs:
test-deploy:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Go Integration Test
run: make tests-integration

- name: Rust Integration Test
run: cargo test --features it-tests
working-directory: ./tests/e2e/e2e_tests
- name: Rust Fastnear Integration Test
run: cargo test --features it_tests
working-directory: ./indexer

10 changes: 9 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
branches:
- main
pull_request:
paths:
- 'aggregator/**'
- 'core/**'
- 'indexer/**'
- 'offchain/**'
- 'operator/**'
- 'plugin/**'
- 'relayer/**'

jobs:
go_test:
Expand Down Expand Up @@ -32,4 +40,4 @@ jobs:
- 'offchain/**'
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.filter.outputs.rust == 'true'
- run: cargo test --all-features
- run: RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo test # Allow 'dead code' since most containers are not used in unit tests
Loading

0 comments on commit 2f1defd

Please sign in to comment.