feat: update analysis launch to use generic pod id (#26)

Signed-off-by: Luca Georges Francois <luca@quartz.technology>

Signed-off-by: Luca Georges Francois <luca@quartz.technology>
This commit is contained in:
Luca G.F 2023-01-17 23:51:07 -08:00 committed by GitHub
parent bfbf1cc379
commit 30895e5694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,10 @@
#!/bin/bash
# This is a script to analyze MEV profits
# Input the pool Id of mev-inspect (can be found on your TILT interface)
# TODO: How to extract the mev-inspect pool id to copy the csv files?
mevInspectPoolId="mev-inspect-759f8dc6f7-2nnzl"
# Input the pool Id of mev-inspect (can also be found on your TILT interface)
mevInspectPoolId=$(kubectl get pods | sed -n -e '/^mev-inspect-/p' | sed '/^mev-inspect-workers/d' | awk '{print $1}')
# Input the starting and ending blocks you want to run the profit analysis for
blockFrom=$((34500000))
blockTo=$((34800000))
blockTo=$((34500100))
window=$((100))
reps=$(((${blockTo}-${blockFrom})/${window}))
echo "${reps}"