Skip to content

Commit

Permalink
Remove imbalances code (#373)
Browse files Browse the repository at this point in the history
This PR removes all code related to phantom transfers and tokem
imbalances on tenderly.

The code for token imbalances is currently not used for computing
slippage. Phantom transfers just count as slippage.

In the future, we will use code from
https://github.com/cowprotocol/token-imbalances.
  • Loading branch information
fhenneke authored Jul 12, 2024
1 parent d3a70f4 commit fd808e1
Show file tree
Hide file tree
Showing 62 changed files with 4 additions and 15,299 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- id: meta_db_migration
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}-db-migration
labels: |
org.opencontainers.image.licenses=MIT OR Apache-2.0
- name: Push DB Migration Image
uses: docker/build-push-action@v3
with:
context: internal_transfers/database
file: internal_transfers/database/Dockerfile
push: true
tags: ${{ steps.meta_db_migration.outputs.tags }}
labels: ${{ steps.meta_db_migration.outputs.labels }}
47 changes: 0 additions & 47 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,50 +29,3 @@ jobs:
env:
# We make a rinkeby request in one unit test
INFURA_KEY: ${{ secrets.INFURA_KEY }}
tenderly-ci:
name: Tenderly Lint & Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: DB Migration
uses: joshuaavalon/[email protected]
with:
url: jdbc:postgresql://postgres:5432/postgres
user: postgres
password: postgres
env:
FLYWAY_LOCATIONS: filesystem:./internal_transfers/database/sql

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16

- name: Install Node.js dependencies
run: npm ci
working-directory: ./internal_transfers/actions

- name: ESLint
run: npm run lint
working-directory: ./internal_transfers/actions

- name: Tests
run: npm run test --silent
working-directory: ./internal_transfers/actions
env:
NODE_URL: ${{ secrets.NODE_URL }}
21 changes: 0 additions & 21 deletions internal_transfers/.env.db_migration

This file was deleted.

52 changes: 0 additions & 52 deletions internal_transfers/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions internal_transfers/actions/.env.sample

This file was deleted.

5 changes: 0 additions & 5 deletions internal_transfers/actions/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions internal_transfers/actions/index.ts

This file was deleted.

6 changes: 0 additions & 6 deletions internal_transfers/actions/jest.config.js

This file was deleted.

Loading

0 comments on commit fd808e1

Please sign in to comment.