Rebrand for grin.us-ea.st deployment

- Point page metadata, API examples, and README at grin.us-ea.st
- Replace github.com/aglkm/grin-explorer references with
  git.pka.world/butler/grin-explorer (footer link, request UA, README)
- Drop upstream-specific Tor onion link and the grincoin.org donate page
  (route, template, and footer link), since neither applies to this fork

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-04 13:03:59 -04:00
parent ba2f464237
commit cf1e3ac612
7 changed files with 24 additions and 72 deletions
+1
View File
@@ -0,0 +1 @@
target/
+3 -3
View File
@@ -1,5 +1,5 @@
# Grincoin.org (GRIN) Blockchain Explorer
Blockchain explorer for Grin cryptocurrency.
# grin.us-ea.st — Grin Blockchain Explorer
Blockchain explorer for Grin cryptocurrency. Fork of [aglkm/grin-explorer](https://github.com/aglkm/grin-explorer) deployed at [grin.us-ea.st](https://grin.us-ea.st), with branding and example endpoints pointed at our node.
## What is Grin?
Grin is the very first, simple and fair MimbleWimble blockchain implementation.
@@ -17,7 +17,7 @@ Grin is the very first, simple and fair MimbleWimble blockchain implementation.
## Installation
1. Clone repository: `git clone https://github.com/aglkm/grin-explorer.git`
1. Clone repository: `git clone https://git.pka.world/butler/grin-explorer.git`
2. Build explorer:
```
cd grin-explorer
+1 -12
View File
@@ -377,17 +377,6 @@ fn emission(dashboard: &State<Arc<Mutex<Dashboard>>>) -> Template {
}
// Rendering Donate page.
#[get("/donate")]
fn donate() -> Template {
Template::render("donate", context! {
route: "donate",
public_api: CONFIG.public_api.clone(),
cg_api: CONFIG.coingecko_api.clone(),
})
}
// Rendering API Overview page.
#[get("/api_overview")]
fn api_overview() -> Template {
@@ -1006,7 +995,7 @@ async fn main() {
soft_supply, production_cost, reward_ratio, breakeven_cost,
last_block_age, block_list_by_height, block_list_index, search, kernel,
output, api_owner, api_foreign, stats, unspent_outputs, kernels,
emission, api_overview, donate, supply_raw, network])
emission, api_overview, supply_raw, network])
.mount("/static", FileServer::from("static"))
.attach(Template::custom(|engines| {engines.tera.register_filter("separate_with_commas", separate_with_commas)}))
.launch()
+1 -1
View File
@@ -244,7 +244,7 @@ pub async fn get_market(dashboard: Arc<Mutex<Dashboard>>) -> Result<(), anyhow::
if CONFIG.coingecko_api == "enabled" && count % 20 == 0 {
client = reqwest::Client::new();
result = client.get("https://api.coingecko.com/api/v3/simple/price?ids=grin&vs_currencies=usd%2Cbtc&include_24hr_vol=true")
.header("User-Agent", "https://github.com/aglkm/grin-explorer")
.header("User-Agent", "https://git.pka.world/butler/grin-explorer")
.send().await?;
val = serde_json::from_str(&result.text().await?)?;
}
+7 -7
View File
@@ -30,7 +30,7 @@
<br>
<div class="card">
<div class="card-body">
<b>Example:</b><br> curl -X POST --data '{"jsonrpc":"2.0","method":"get_tip","params":[],"id":1}' https://grincoin.org/v2/foreign
<b>Example:</b><br> curl -X POST --data '{"jsonrpc":"2.0","method":"get_tip","params":[],"id":1}' https://grin.us-ea.st/v2/foreign
</div>
</div>
<br>
@@ -41,18 +41,18 @@
<br>
<div class="card">
<div class="card-body">
<b>Example:</b><br> curl -X POST --data '{"jsonrpc":"2.0","method":"get_status","params":[],"id":1}' https://grincoin.org/v2/owner
<b>Example:</b><br> curl -X POST --data '{"jsonrpc":"2.0","method":"get_status","params":[],"id":1}' https://grin.us-ea.st/v2/owner
</div>
</div>
<br>
<h5>GET API</h5>
<div>There are also several GET APIs provided by the explorer.</div>
<br>
<a href="https://grincoin.org/rpc/block/latest">https://grincoin.org/rpc/block/latest</a><br>
<a href="https://grincoin.org/rpc/market/supply">https://grincoin.org/rpc/market/supply</a><br>
<a href="https://grincoin.org/rpc/market/supply_raw">https://grincoin.org/rpc/market/supply_raw</a><br>
<a href="https://grincoin.org/rpc/network/hashrate">https://grincoin.org/rpc/network/hashrate</a><br>
<a href="https://grincoin.org/rpc/network/difficulty">https://grincoin.org/rpc/network/difficulty</a><br><br>
<a href="https://grin.us-ea.st/rpc/block/latest">https://grin.us-ea.st/rpc/block/latest</a><br>
<a href="https://grin.us-ea.st/rpc/market/supply">https://grin.us-ea.st/rpc/market/supply</a><br>
<a href="https://grin.us-ea.st/rpc/market/supply_raw">https://grin.us-ea.st/rpc/market/supply_raw</a><br>
<a href="https://grin.us-ea.st/rpc/network/hashrate">https://grin.us-ea.st/rpc/network/hashrate</a><br>
<a href="https://grin.us-ea.st/rpc/network/difficulty">https://grin.us-ea.st/rpc/network/difficulty</a><br><br>
</div>
</div>
+11 -27
View File
@@ -1,13 +1,13 @@
<!doctype html>
<html lang="en" class="h-100">
<head>
<title>Grin Blockchain Explorer</title>
<meta property="og:site_name" content="Grincoin.org (GRIN) Blockchain Explorer" />
<meta property="og:url" content="https://grincoin.org" />
<title>Grin Blockchain Explorer — grin.us-ea.st</title>
<meta property="og:site_name" content="Grin Blockchain Explorer (grin.us-ea.st)" />
<meta property="og:url" content="https://grin.us-ea.st" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Grin Blockchain Explorer" />
<meta property="og:description" content="Grincoin.org website allows you to explore Grin blockchain." />
<meta name="description" content="Grincoin.org website allows you to explore Grin blockchain." />
<meta property="og:description" content="grin.us-ea.st — explore the Grin blockchain." />
<meta name="description" content="grin.us-ea.st — explore the Grin blockchain." />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type= "text/css" href="/static/styles/style.css" />
<link rel= "stylesheet" type= "text/css" href= "/static/styles/bootstrap.css" />
@@ -341,46 +341,30 @@
<div class="d-sm-none"> <!-- Show on < sm screens-->
<div class="row mb-2">
<div class="d-flex justify-content-center">
<a class="text-decoration-none me-2" href="https://github.com/aglkm/grin-explorer">
<span style="color:grey"><i class="bi bi-github me-1"></i>v0.1.8</span>
<a class="text-decoration-none me-2" href="https://git.pka.world/butler/grin-explorer">
<span style="color:grey"><i class="bi bi-git me-1"></i>v0.1.9</span>
</a>
<a class="text-decoration-none me-2" href="/search">
<span style="color:grey"><i class="bi bi-search me-1"></i>Search</span>
</a>
<a class="text-decoration-none me-2" href="/api_overview">
<a class="text-decoration-none" href="/api_overview">
<span style="color:grey"><i class="bi bi-robot me-1"></i>API</span>
</a>
</div>
</div>
<div class="row mb-2">
<div class="d-flex justify-content-center">
<a class="text-decoration-none me-2" href="http://wieo55w5a56itvs73sqbvr5er6rxfukqjgf2rjbrlzxb3pax66rlodid.onion">
<span style="color:grey"><i class="bi bi-shield-check me-1"></i>Onion</span>
</a>
<a class="text-decoration-none" href="/donate">
<span style="color:grey"><i class="bi bi-heart me-1"></i>Donate</span>
</a>
</div>
</div>
</div>
<div class="d-none d-sm-block"> <!-- Show on >= sm screens -->
<div class="row mb-2">
<div class="d-flex justify-content-center">
<a class="text-decoration-none me-2" href="https://github.com/aglkm/grin-explorer">
<span style="color:grey"><i class="bi bi-github me-1"></i>v0.1.9</span>
<a class="text-decoration-none me-2" href="https://git.pka.world/butler/grin-explorer">
<span style="color:grey"><i class="bi bi-git me-1"></i>v0.1.9</span>
</a>
<a class="text-decoration-none me-2" href="/search">
<span style="color:grey"><i class="bi bi-search me-1"></i>Search</span>
</a>
<a class="text-decoration-none me-2" href="/api_overview">
<a class="text-decoration-none" href="/api_overview">
<span style="color:grey"><i class="bi bi-robot me-1"></i>API</span>
</a>
<a class="text-decoration-none me-2" href="http://wieo55w5a56itvs73sqbvr5er6rxfukqjgf2rjbrlzxb3pax66rlodid.onion">
<span style="color:grey"><i class="bi bi-shield-check me-1"></i>Onion</span>
</a>
<a class="text-decoration-none" href="/donate">
<span style="color:grey"><i class="bi bi-heart me-1"></i>Donate</span>
</a>
</div>
</div>
</div>
-22
View File
@@ -1,22 +0,0 @@
{% extends "base" %}
{% block content %}
<code>
<div class="card border-start-0 border-end-0 rounded-0">
<div class="card-body">
<h4><i class="bi bi-heart me-3"></i>Donation</h4>
<div>Slatepack address:</div>
<div>grin1flvd36m67w48zeannqyfmlqp23e2eqtp3x4mz4r5m9fuc3es5t0snufawz</div>
<br>
<div>By donating to Grincoin.org you are supporting its maintenance and development.</div>
<br>
<div>Thank you!</div>
</div>
</div>
</code>
{% endblock %}