Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

feat: revised model, detection schemes and more #59

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
5f30fa6
refactor: drop new method for zero sized type
mattsse Apr 2, 2021
b63e535
feat: exten evaluation model and add database helpers
mattsse Apr 2, 2021
237fd44
feat: add database migration and models
mattsse Apr 2, 2021
109e918
feat: initial work on sandwich trade detection
mattsse Apr 2, 2021
0e3707c
chore(deps): cargo upgrade
mattsse Apr 2, 2021
59e29fa
test: make tests compile again
mattsse Apr 2, 2021
fcca75c
ci: integrate postgres service
mattsse Apr 2, 2021
2ac0085
style: add fromsql helper trait
mattsse Apr 3, 2021
d2b8695
feat: add more abi contracts
mattsse Apr 4, 2021
a3a63b1
feat: initial support for DefiProtocol
mattsse Apr 4, 2021
838eae7
refactor: update schema
mattsse Apr 4, 2021
4add25b
fix: ethers api change
mattsse Apr 4, 2021
f098d17
feat: update defiprotocol trait
mattsse Apr 4, 2021
70d5a6d
fix: update model changes
mattsse Apr 4, 2021
a5e2594
refactor: update db model and classification of internal calls
mattsse Apr 4, 2021
e7066a3
update models
mattsse Apr 5, 2021
352b65d
extend defiprotocol trait
mattsse Apr 5, 2021
cce6d6e
chore(clippy): make clippy happy
mattsse Apr 5, 2021
7046feb
draft on new reducer api
mattsse Apr 5, 2021
c20e4ba
chore: rm new constructors
mattsse May 14, 2021
d5ebfdd
chore(deps): cargo upgrade
mattsse May 15, 2021
174ba45
feat: add uni v3 pool&router abi
mattsse May 15, 2021
7a255b6
refactor: make action functions more concise
mattsse May 16, 2021
0c68010
refactor: use ethers RawLog
mattsse May 16, 2021
1a4fd7a
work on tx model
mattsse May 18, 2021
306cef8
feat: redesign inspector trait
mattsse May 19, 2021
f590112
feat: add log and call filters
mattsse May 20, 2021
5011d3f
test: fix failing tests
mattsse May 20, 2021
1464bac
feat: implement call decoding
mattsse May 20, 2021
d8652ad
feat: impl transactiondata create
mattsse May 21, 2021
8cd4091
feat: new reducer trait and arbitrage impl
mattsse May 21, 2021
424d85b
feat: update tx reducer
mattsse May 21, 2021
9d80705
feat: update tx trade reducer
mattsse May 21, 2021
9670add
feat: impl proto for erc20
mattsse May 21, 2021
a859804
misc: get all logs for examaple transactions
mattsse May 22, 2021
8843f0d
fix: tx ordering bug
mattsse May 22, 2021
366d998
feat: extend api
mattsse May 23, 2021
0fc221b
refactor: revise protocol and trade detection
mattsse May 24, 2021
eb16401
test: update all inspector tests
mattsse May 24, 2021
e46b4dc
chore: cargo upgrade
mattsse May 24, 2021
c83d136
chore(clippy): make clippy happy
mattsse May 24, 2021
caa9efc
feat: use new protocol type
mattsse May 24, 2021
b0293c1
feat: include swap trades
mattsse May 26, 2021
d58826d
feat: comply with old matching rules
mattsse May 26, 2021
970aaa2
fix: correctly decode add liquidity
mattsse May 26, 2021
f58b7bd
test: update tests
mattsse May 26, 2021
0e74f06
feat: add helper funs
mattsse May 26, 2021
a97dcfb
chore: cleanup
mattsse May 29, 2021
c8b7e0a
feat: from and to sql implementations
mattsse May 29, 2021
cb8f29e
feat: add sql select helpers
mattsse May 29, 2021
a9f1ed5
refactor: db model naming
mattsse May 29, 2021
7051290
test: add postgres tests
mattsse May 29, 2021
a65306d
chore: update mevdb api
mattsse May 29, 2021
16850d5
ci: use postgres db env
mattsse May 29, 2021
6124c6d
feat: return evals grouped by blocks
mattsse May 30, 2021
571e342
feat: add basic sandwich detection routines
mattsse May 30, 2021
d494847
chore(clippy): make clippy happy
mattsse May 30, 2021
30db9cf
fix: from sql for logs an internal calls
mattsse May 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: use postgres db env
mattsse committed May 29, 2021
commit 16850d50968a668450a7d40427eb0086b02035ec
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -8,17 +8,18 @@ jobs:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_DB: mev_inspections_test
POSTGRES_USER: postgres
ports:
- 5432:5432
# 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: Checkout sources
uses: actions/checkout@v2