diff --git a/frontend/custom-strategy-config.json b/frontend/custom-strategy-config.json new file mode 100644 index 000000000..a06f1d32c --- /dev/null +++ b/frontend/custom-strategy-config.json @@ -0,0 +1,42 @@ +{ + "theme": "wiz", + "enterprise": "strategy", + "branding": { + "name": "strategy", + "title": "strategy", + "site_id": 22, + "header_img": "/resources/strategylogo.svg", + "footer_img": "/resources/strategylogo.svg" + }, + "dashboard": { + "widgets": [ + { + "component": "fees", + "mobileOrder": 1 + }, + { + "component": "difficulty", + "mobileOrder": 4 + }, + { + "component": "twitter", + "mobileOrder": 2, + "props": { + "handle": "MicroStrategy" + } + }, + { + "component": "goggles", + "mobileOrder": 3 + }, + { + "component": "blocks", + "mobileOrder": 5 + }, + { + "component": "transactions", + "mobileOrder": 6 + } + ] + } +} \ No newline at end of file diff --git a/frontend/src/index.mempool.strategy.html b/frontend/src/index.mempool.strategy.html new file mode 100644 index 000000000..c0d57580d --- /dev/null +++ b/frontend/src/index.mempool.strategy.html @@ -0,0 +1,45 @@ + + + + + + Strategy | The world's first and largest Bitcoin Treasury Company + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/resources/strategy/favicons/android-chrome-192x192.png b/frontend/src/resources/strategy/favicons/android-chrome-192x192.png new file mode 100644 index 000000000..364971248 Binary files /dev/null and b/frontend/src/resources/strategy/favicons/android-chrome-192x192.png differ diff --git a/frontend/src/resources/strategy/favicons/android-chrome-512x512.png b/frontend/src/resources/strategy/favicons/android-chrome-512x512.png new file mode 100644 index 000000000..c6b800ada Binary files /dev/null and b/frontend/src/resources/strategy/favicons/android-chrome-512x512.png differ diff --git a/frontend/src/resources/strategy/favicons/apple-touch-icon.png b/frontend/src/resources/strategy/favicons/apple-touch-icon.png new file mode 100644 index 000000000..dd9e1bdfc Binary files /dev/null and b/frontend/src/resources/strategy/favicons/apple-touch-icon.png differ diff --git a/frontend/src/resources/strategy/favicons/favicon-16x16.png b/frontend/src/resources/strategy/favicons/favicon-16x16.png new file mode 100644 index 000000000..c01de5c3a Binary files /dev/null and b/frontend/src/resources/strategy/favicons/favicon-16x16.png differ diff --git a/frontend/src/resources/strategy/favicons/favicon-32x32.png b/frontend/src/resources/strategy/favicons/favicon-32x32.png new file mode 100644 index 000000000..8dd48037d Binary files /dev/null and b/frontend/src/resources/strategy/favicons/favicon-32x32.png differ diff --git a/frontend/src/resources/strategy/favicons/favicon.ico b/frontend/src/resources/strategy/favicons/favicon.ico new file mode 100644 index 000000000..083692ec8 Binary files /dev/null and b/frontend/src/resources/strategy/favicons/favicon.ico differ diff --git a/frontend/src/resources/strategy/favicons/site.webmanifest b/frontend/src/resources/strategy/favicons/site.webmanifest new file mode 100644 index 000000000..45dc8a206 --- /dev/null +++ b/frontend/src/resources/strategy/favicons/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/frontend/src/resources/strategy/strategy-preview.png b/frontend/src/resources/strategy/strategy-preview.png new file mode 100644 index 000000000..83e4b3d04 Binary files /dev/null and b/frontend/src/resources/strategy/strategy-preview.png differ diff --git a/frontend/src/resources/strategylogo.png b/frontend/src/resources/strategylogo.png new file mode 100644 index 000000000..a5b06bd1c Binary files /dev/null and b/frontend/src/resources/strategylogo.png differ diff --git a/production/mempool-build-all b/production/mempool-build-all index 3b42c08d9..204da4f92 100755 --- a/production/mempool-build-all +++ b/production/mempool-build-all @@ -131,7 +131,7 @@ export NVM_DIR="${HOME}/.nvm" source "${NVM_DIR}/nvm.sh" # what to look for -frontends=(mainnet liquid onbtc bitb meta river) +frontends=(mainnet liquid onbtc bitb meta river strategy) backends=(mainnet testnet testnet4 signet liquid liquidtestnet onbtc bitb) frontend_repos=() backend_repos=() diff --git a/production/mempool-frontend-config.strategy.json b/production/mempool-frontend-config.strategy.json new file mode 100644 index 000000000..7ca10da80 --- /dev/null +++ b/production/mempool-frontend-config.strategy.json @@ -0,0 +1,19 @@ +{ + "OFFICIAL_MEMPOOL_SPACE": true, + "TESTNET_ENABLED": true, + "TESTNET4_ENABLED": true, + "LIQUID_ENABLED": true, + "LIQUID_TESTNET_ENABLED": true, + "BISQ_ENABLED": true, + "BISQ_SEPARATE_BACKEND": true, + "SIGNET_ENABLED": true, + "MEMPOOL_WEBSITE_URL": "https://mempool.space", + "LIQUID_WEBSITE_URL": "https://liquid.network", + "BISQ_WEBSITE_URL": "https://bisq.markets", + "ITEMS_PER_PAGE": 25, + "LIGHTNING": true, + "ACCELERATOR": true, + "PUBLIC_ACCELERATIONS": true, + "AUDIT": true, + "CUSTOMIZATION": "custom-strategy-config.json" +} diff --git a/production/mempool-start-all b/production/mempool-start-all index acf2ca990..3d7f425ab 100755 --- a/production/mempool-start-all +++ b/production/mempool-start-all @@ -16,7 +16,7 @@ screen -dmS x startx sleep 3 # start unfurlers for each frontend -for site in mainnet liquid onbtc bitb meta river;do +for site in mainnet liquid onbtc bitb meta river strategy;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/production/unfurler-config.strategy.json b/production/unfurler-config.strategy.json new file mode 100644 index 000000000..e2c7dbd89 --- /dev/null +++ b/production/unfurler-config.strategy.json @@ -0,0 +1,17 @@ +{ + "SERVER": { + "HOST": "https://strategy.tk7.mempool.space", + "HTTP_PORT": 8008 + }, + "MEMPOOL": { + "HTTP_HOST": "http://127.0.0.1", + "HTTP_PORT": 88, + "NETWORK": "strategy" + }, + "PUPPETEER": { + "CLUSTER_SIZE": 8, + "EXEC_PATH": "/usr/local/bin/chrome", + "MAX_PAGE_AGE": 86400, + "RENDER_TIMEOUT": 3000 + } +} diff --git a/unfurler/src/routes.ts b/unfurler/src/routes.ts index 9bf8faa2b..76d104d63 100644 --- a/unfurler/src/routes.ts +++ b/unfurler/src/routes.ts @@ -355,6 +355,28 @@ export const networks = { routes: routes.lightning.routes, } } + }, + strategy: { + networkName: 'Strategy', + title: 'Strategy | The world\'s first and largest Bitcoin Treasury Company', + description: 'The world\'s first and largest Bitcoin Treasury Company', + fallbackImg: '/resources/strategy/strategy-preview.jpg', + routes: { // only dynamic routes supported + block: routes.block, + address: routes.address, + wallet: routes.wallet, + tx: routes.tx, + mining: { + title: "Mining", + routes: { + pool: routes.mining.routes.pool, + } + }, + lightning: { + title: "Lightning", + routes: routes.lightning.routes, + } + } } };