132 Commits

Author SHA1 Message Date
Luke Van Seters
fc67f9e349 Simplify arbitrage code 2021-08-05 12:26:20 -04:00
Luke Van Seters
9077ff6b74 Also remove constants 2021-08-05 12:26:20 -04:00
Luke Van Seters
bc0f7396ae Break out swap functions 2021-08-05 12:26:20 -04:00
Luke Van Seters
c73c4af901 Break out transfer and trace functions 2021-08-05 12:26:20 -04:00
Luke Van Seters
5f4c018066 Break out child trace check to traces.py. Remove unused nested code 2021-08-05 12:26:20 -04:00
Luke Van Seters
1e5c82eac1 Move objects to schemas 2021-08-05 12:26:20 -04:00
Luke Van Seters
374ceeb098 Parse arbitrages from swaps 2021-08-05 12:26:20 -04:00
Luke Van Seters
1555c260a3 Whoops 2021-08-05 12:26:20 -04:00
Luke Van Seters
eb1881d390 Remove some duplication 2021-08-05 12:26:20 -04:00
Luke Van Seters
37d61a6614 Get uniswap v2 working more generally 2021-08-05 12:26:20 -04:00
Luke Van Seters
1b22a67616 Add support for UniswapV3 swaps 2021-08-05 12:26:20 -04:00
Luke Van Seters
a865534187 Break out v2 into a function. Handle sender parameter 2021-08-05 12:26:20 -04:00
Luke Van Seters
ea07eb3a8f More clean up. Support ERC transfers with UniswapV2 2021-08-05 12:26:19 -04:00
Luke Van Seters
cde6bcaf3d Save progress before switching directions 2021-08-05 12:26:19 -04:00
Luke Van Seters
14469268d3 Add WETH ABI 2021-08-05 12:26:16 -04:00
Luke Van Seters
d33179d267 Change NestedTrace to use ClassifiedTraces 2021-08-05 12:25:13 -04:00
Luke Van Seters
9bb79f7001 Add the skeleton 2021-08-05 12:25:13 -04:00
Luke Van Seters
f903fff3c9
Merge pull request #43 from flashbots/on-duplicate-update-classified-traces
Replace existing traces when inspecting a block
2021-08-03 16:35:54 -04:00
Robert Miller
1a5524e6f3
Merge pull request #41 from flashbots/swap-abis
Add ABIs and specs for Uniswap V3
2021-07-30 14:27:09 -04:00
Luke Van Seters
0d2d651f60 Forgot to install pre-commit 2021-07-30 14:18:27 -04:00
Luke Van Seters
127debab18 Use spread instead for classified specs list 2021-07-30 14:17:06 -04:00
Luke Van Seters
369570affc Add index on block number to make delete quick 2021-07-30 13:40:45 -04:00
Luke Van Seters
0a09fd4efa Delete all traces for a block before writing in the script 2021-07-30 13:36:46 -04:00
Luke Van Seters
40529a34bf Compare against lowercase addresses 2021-07-30 13:06:50 -04:00
Robert Miller
4a1b69fbc9
Merge pull request #33 from milancermak/small-fixes
Small fixes
2021-07-30 00:09:05 -04:00
Luke Van Seters
c64bc3e2c2 Hope everyone's having a great day 2021-07-29 16:08:04 -04:00
Luke Van Seters
d4621182cf Just saying hi to the channel 👋 2021-07-29 16:07:25 -04:00
Luke Van Seters
1ccd076881 Add ABIs for Uniswap V3. Move abis to hierarchy 2021-07-29 16:04:21 -04:00
Robert Miller
654b416336
Merge pull request #39 from pmdaly/scripts-clean
Scripts clean
2021-07-29 09:47:04 -04:00
Patrick Daly
598c2bf313 typo 2021-07-29 06:09:17 -07:00
Patrick Daly
7f26c600dc moved all scripts to ./scripts and added some arg shorthands 2021-07-28 21:03:33 -07:00
Patrick Daly
b557031358 Merge branch 'flashbots-main' into block-data 2021-07-28 20:36:32 -07:00
Patrick Daly
5586e8ff76 Merge branch 'main' of https://github.com/flashbots/mev-inspect-py into flashbots-main 2021-07-28 20:30:49 -07:00
Robert Miller
6632130c9a
Merge pull request #37 from lukevs/classified-traces-implementation
Implement Trace Classifier and write to DB
2021-07-28 22:52:57 -04:00
Robert Miller
43beb13d93
Merge pull request #36 from lukevs/classified-traces-migration
Classified traces table
2021-07-28 19:23:50 -04:00
Luke Van Seters
f72049a4df connection => session 2021-07-27 19:02:29 -04:00
Luke Van Seters
e38f1384ef Add inspect command 2021-07-27 18:58:13 -04:00
Luke Van Seters
d7f2d120dd Create trace classifier. Use in general run script. Write to the DB 2021-07-27 18:58:13 -04:00
Luke Van Seters
6ca00ff3ba Move ABIs to a folder 2021-07-27 18:58:13 -04:00
Luke Van Seters
49e047e9b6 Add classified traces table 2021-07-27 18:57:58 -04:00
Luke Van Seters
f060039f95
Merge pull request #31 from lukevs/db-migrations
Add alembic
2021-07-27 18:55:03 -04:00
Luke Van Seters
4945a2e025
Delete requirements.txt 2021-07-27 18:37:02 -04:00
Luke Van Seters
0e5ba9c323 Add alembic to deps and readme. Also add generalized exec function 2021-07-27 18:20:55 -04:00
Luke Van Seters
148e0a82c2 Add alembic to pyproject 2021-07-27 17:29:39 -04:00
Luke Van Seters
5abb478f16 Add alembic migrations 2021-07-27 17:28:04 -04:00
Luke Van Seters
e41de5e45b
Merge pull request #30 from pmdaly/add-poetry
Add poetry
2021-07-27 09:01:13 -04:00
Luke Van Seters
570d40bc97
Exclude --all-files in pre-commit with poetry 2021-07-26 22:04:54 -04:00
Luke Van Seters
c075327f1d
Remove --all-files from poetry run 2021-07-26 22:01:37 -04:00
Luke Van Seters
a9580e3aa9
Update github-actions.yml 2021-07-26 21:58:44 -04:00
Patrick Daly
278a75caed adding poetry and caching to actions build 2021-07-26 17:58:43 -07:00