Skip to content

Commit

Permalink
minor cleanup: bidarchive website
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Jun 19, 2024
1 parent dd20e00 commit cf37935
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
2 changes: 2 additions & 0 deletions scripts/bidcollect/bids-combine-and-upload-yesterday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ source .env.prod
./scripts/bidcollect/bids-combine-and-upload.sh "/mnt/data/relayscan-bids/$d/"

# update website
echo ""
echo "Updating the file listing website..."
./relayscan service bidcollect --build-website --build-website-upload
10 changes: 10 additions & 0 deletions scripts/bidcollect/bids-combine-and-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ for fn in $(\ls all*); do
tail -n +2 $fn >> $fn_out
done

echo "Lines (all bids):"
wc -l $fn_out

echo "Source types (all bids):"
clickhouse local -q "SELECT source_type, COUNT(source_type) FROM '$fn_out' GROUP BY source_type ORDER BY source_type;"

zip ${fn_out_zip} $fn_out
echo "Wrote ${fn_out_zip}"
rm -f $fn_out
Expand Down Expand Up @@ -67,7 +72,12 @@ for fn in $(\ls top*); do
tail -n +2 $fn >> $fn_out
done

echo "Lines (top bids):"
wc -l $fn_out

echo "Source types (top bids):"
clickhouse local -q "SELECT source_type, COUNT(source_type) FROM '$fn_out' GROUP BY source_type ORDER BY source_type;"

zip ${fn_out_zip} $fn_out
echo "Wrote ${fn_out_zip}"
rm -f $fn_out
Expand Down
20 changes: 10 additions & 10 deletions services/bidcollect/website/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "base" }}

{{ $title:="Relayscan Bidarchive 📚" }}
{{ $title:="Relayscan.io Bid Archive 📚" }}

{{ if ne .Title "" }}
{{ $title = (printf "%v | %v" .Title $title) }}
Expand All @@ -23,22 +23,22 @@

<!-- HTML Meta Tags -->
<title>{{ $title }}</title>
<meta name="description" content="MEV-Boost bid archive across relays, brought to you by Flashbots ⚡️🤖">
<meta name="description" content="Builder bids across MEV-Boost relays, brought to you by Flashbots ⚡️🤖">

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://relayscan-bidarchive.flashbots.net{{ .Path }}">
<meta property="og:url" content="https://bidarchive.relayscan.io{{ .Path }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ $title }}">
<meta property="og:description" content="MEV-Boost bid archive across relays, brought to you by Flashbots ⚡️🤖">
<meta property="og:image" content="https://relayscan-bidarchive.flashbots.net/static/favicon/android-chrome-512x512.png">
<meta property="og:description" content="Builder bids across MEV-Boost relays, brought to you by Flashbots ⚡️🤖">
<meta property="og:image" content="https://bidarchive.relayscan.io/static/favicon/android-chrome-512x512.png">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary">
<meta property="twitter:domain" content="relayscan-bidarchive.flashbots.net">
<meta property="twitter:url" content="https://relayscan-bidarchive.flashbots.net{{ .Path }}">
<meta property="twitter:url" content="https://bidarchive.relayscan.io{{ .Path }}">
<meta name="twitter:title" content="{{ $title }}">
<meta name="twitter:description" content="MEV-Boost bid archive across relays, brought to you by Flashbots ⚡️🤖">
<meta name="twitter:image" content="https://relayscan-bidarchive.flashbots.net/static/favicon/android-chrome-512x512.png">
<meta name="twitter:description" content="Builder bids across MEV-Boost relays, brought to you by Flashbots ⚡️🤖">
<meta name="twitter:image" content="https://bidarchive.relayscan.io/static/favicon/android-chrome-512x512.png">

<style>
body {
Expand Down Expand Up @@ -110,9 +110,9 @@
<a href="https://collective.flashbots.net/">
<img style="float:right; background:white; margin-left: 64px; width: 100px; height: 100px;" src="https://d33wubrfki0l68.cloudfront.net/ae8530415158fbbbbe17fb033855452f792606c7/fe19f/img/logo.png">
</a>
<h1>{{ $title }}</h1>
<h1>{{ $title }} <img src="https://relayscan.io/static/favicon/favicon-32x32.png"></h1>
<p>
<a href="https://github.com/flashbots/relayscan/blob/main/docs/2024-06_bidcollect.md">docs</a> &middot; <a href="https://github.com/flashbots/relayscan">https://github.com/flashbots/relayscan</a>
<a href="https://github.com/flashbots/relayscan/blob/main/docs/2024-06_bidcollect.md">Docs</a> &middot; <a href="https://github.com/flashbots/relayscan">github.com/flashbots/relayscan</a>
</p>
<p><i>Illuminate, Democratize, Distribute</i></p>
</div>
Expand Down

0 comments on commit cf37935

Please sign in to comment.