From cf1e3ac6129c22369749d609b777d0d530c83114 Mon Sep 17 00:00:00 2001 From: butler Date: Mon, 4 May 2026 13:03:59 -0400 Subject: [PATCH] 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) --- .gitignore | 1 + README.md | 6 ++--- src/main.rs | 13 +---------- src/requests.rs | 2 +- templates/api_overview.html.tera | 14 ++++++------ templates/base.html.tera | 38 +++++++++----------------------- templates/donate.html.tera | 22 ------------------ 7 files changed, 24 insertions(+), 72 deletions(-) create mode 100644 .gitignore delete mode 100644 templates/donate.html.tera diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f7896d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/README.md b/README.md index e92cb1e..2610dc9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/main.rs b/src/main.rs index 9b9680b..51e3315 100644 --- a/src/main.rs +++ b/src/main.rs @@ -377,17 +377,6 @@ fn emission(dashboard: &State>>) -> 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() diff --git a/src/requests.rs b/src/requests.rs index e69a5c5..9e2cd01 100644 --- a/src/requests.rs +++ b/src/requests.rs @@ -244,7 +244,7 @@ pub async fn get_market(dashboard: Arc>) -> 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?)?; } diff --git a/templates/api_overview.html.tera b/templates/api_overview.html.tera index 0d11f44..42a1fc2 100644 --- a/templates/api_overview.html.tera +++ b/templates/api_overview.html.tera @@ -30,7 +30,7 @@
- Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"get_tip","params":[],"id":1}' https://grincoin.org/v2/foreign + Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"get_tip","params":[],"id":1}' https://grin.us-ea.st/v2/foreign

@@ -41,18 +41,18 @@
- Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"get_status","params":[],"id":1}' https://grincoin.org/v2/owner + Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"get_status","params":[],"id":1}' https://grin.us-ea.st/v2/owner

GET API
There are also several GET APIs provided by the explorer.

- https://grincoin.org/rpc/block/latest
- https://grincoin.org/rpc/market/supply
- https://grincoin.org/rpc/market/supply_raw
- https://grincoin.org/rpc/network/hashrate
- https://grincoin.org/rpc/network/difficulty

+ https://grin.us-ea.st/rpc/block/latest
+ https://grin.us-ea.st/rpc/market/supply
+ https://grin.us-ea.st/rpc/market/supply_raw
+ https://grin.us-ea.st/rpc/network/hashrate
+ https://grin.us-ea.st/rpc/network/difficulty

diff --git a/templates/base.html.tera b/templates/base.html.tera index 10eed8a..b77a4ee 100644 --- a/templates/base.html.tera +++ b/templates/base.html.tera @@ -1,13 +1,13 @@ - Grin Blockchain Explorer - - + Grin Blockchain Explorer — grin.us-ea.st + + - - + + @@ -341,46 +341,30 @@ diff --git a/templates/donate.html.tera b/templates/donate.html.tera deleted file mode 100644 index dd58e0c..0000000 --- a/templates/donate.html.tera +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "base" %} - -{% block content %} - - - -
-
-

Donation

-
Slatepack address:
-
grin1flvd36m67w48zeannqyfmlqp23e2eqtp3x4mz4r5m9fuc3es5t0snufawz
-
-
By donating to Grincoin.org you are supporting its maintenance and development.
-
-
Thank you!
-
-
- -
- -{% endblock %} -