From 59cefc2b4bec922a4120bb794a60eb1804998483 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 26 Jul 2024 14:14:00 +0000 Subject: [PATCH 1/2] update unfurler and build config --- production/mempool-build-all | 4 ++-- production/mempool-start-all | 2 +- unfurler/src/routes.ts | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/production/mempool-build-all b/production/mempool-build-all index 782ed056a..377deb316 100755 --- a/production/mempool-build-all +++ b/production/mempool-build-all @@ -131,8 +131,8 @@ export NVM_DIR="${HOME}/.nvm" source "${NVM_DIR}/nvm.sh" # what to look for -frontends=(mainnet liquid onbtc meta) -backends=(mainnet testnet testnet4 signet liquid liquidtestnet onbtc) +frontends=(mainnet liquid onbtc bitb meta) +backends=(mainnet testnet testnet4 signet liquid liquidtestnet onbtc bitb) frontend_repos=() backend_repos=() diff --git a/production/mempool-start-all b/production/mempool-start-all index 136e984f0..27b12813e 100755 --- a/production/mempool-start-all +++ b/production/mempool-start-all @@ -15,7 +15,7 @@ screen -dmS x startx sleep 3 # start unfurlers for each frontend -for site in mainnet liquid onbtc meta;do +for site in mainnet liquid onbtc bitb meta;do cd "$HOME/${site}/unfurler" && \ echo "starting mempool unfurler: ${site}" && \ screen -dmS "unfurler-${site}" sh -c 'while true;do npm run unfurler;sleep 2;done' diff --git a/unfurler/src/routes.ts b/unfurler/src/routes.ts index 4e0b28e3e..2150f87f3 100644 --- a/unfurler/src/routes.ts +++ b/unfurler/src/routes.ts @@ -282,6 +282,26 @@ export const networks = { } } }, + bitb: { + title: 'BITB | Bitwise Bitcoin ETF', + description: 'BITB provides low-cost access to bitcoin through a professionally managed fund', + fallbackImg: '/resources/bitb/bitb-preview.jpg', + routes: { // only dynamic routes supported + block: routes.block, + address: routes.address, + tx: routes.tx, + mining: { + title: "Mining", + routes: { + pool: routes.mining.routes.pool, + } + }, + lightning: { + title: "Lightning", + routes: routes.lightning.routes, + } + } + }, meta: { title: 'Metaplanet Inc.', description: 'Secure the Future with Bitcoin', From 522b4d914f0a11359f9b7c518261dc1d37e960d2 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 9 Dec 2024 17:20:34 +0000 Subject: [PATCH 2/2] add missing unfurler config file --- production/unfurler-config.bitb.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 production/unfurler-config.bitb.json diff --git a/production/unfurler-config.bitb.json b/production/unfurler-config.bitb.json new file mode 100644 index 000000000..8a4f14448 --- /dev/null +++ b/production/unfurler-config.bitb.json @@ -0,0 +1,17 @@ +{ + "SERVER": { + "HOST": "https://bitb.tk7.mempool.space", + "HTTP_PORT": 8006 + }, + "MEMPOOL": { + "HTTP_HOST": "http://127.0.0.1", + "HTTP_PORT": 86, + "NETWORK": "bitb" + }, + "PUPPETEER": { + "CLUSTER_SIZE": 8, + "EXEC_PATH": "/usr/local/bin/chrome", + "MAX_PAGE_AGE": 86400, + "RENDER_TIMEOUT": 3000 + } +}