Skip to content

Commit 98300b5

Browse files
committed
chore: update project structure and add execution and selector modules
- Added new execution modules: Router, Swap0x, SwapCow, SwapParaswap with mocked logic for trade execution. - Introduced selector modules: AlloraPredictor with API integration and fallback logic, and LLMOverlay for trade vetoing. - Updated .gitignore to include environment files and coverage directories. - Modified docker-compose.yml to include new services for alphadrift and driftbrain.
1 parent 0263862 commit 98300b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+311
-2715
lines changed

.github/workflows/docker.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker Compose CI
2+
on:
3+
push:
4+
paths:
5+
- 'docker-compose.yml'
6+
- 'python-quant/**'
7+
- 'src/**'
8+
pull_request:
9+
paths:
10+
- 'docker-compose.yml'
11+
- 'python-quant/**'
12+
- 'src/**'
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v2
20+
- name: Build and run services
21+
run: |
22+
docker compose up --build -d
23+
sleep 10
24+
docker compose ps
25+
- name: Check DriftBrain health
26+
run: |
27+
curl --fail http://localhost:8000/health

.github/workflows/node.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node CI
2+
on:
3+
push:
4+
paths:
5+
- 'src/**'
6+
- 'package.json'
7+
- 'tsconfig.json'
8+
- 'jest.config.js'
9+
- '__tests__/**'
10+
pull_request:
11+
paths:
12+
- 'src/**'
13+
- 'package.json'
14+
- 'tsconfig.json'
15+
- 'jest.config.js'
16+
- '__tests__/**'
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: pnpm/action-setup@v2
23+
with:
24+
version: 8
25+
- name: Install deps
26+
run: pnpm install
27+
- name: Lint
28+
run: pnpm lint
29+
- name: Test
30+
run: pnpm test -- --coverage

.github/workflows/python.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Python CI
2+
on:
3+
push:
4+
paths:
5+
- 'python-quant/**'
6+
pull_request:
7+
paths:
8+
- 'python-quant/**'
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.11'
18+
- name: Install dependencies
19+
run: |
20+
cd python-quant
21+
pip install --no-cache-dir -r requirements.txt
22+
- name: Test
23+
run: |
24+
cd python-quant
25+
pytest --maxfail=1 --disable-warnings --tb=short

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
11
node_modules
2+
.env
3+
.env.*
4+
coverage/
5+
.DS_Store
6+
*.log
7+
*.tsbuildinfo
8+
.cursor/
9+
# Python (for M2+)
10+
__pycache__/
11+
*.pyc
12+
python-quant/.venv/

coverage/clover.xml

Lines changed: 0 additions & 60 deletions
This file was deleted.

coverage/coverage-final.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

coverage/lcov-report/arb.ts.html

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)