From 778fa68b087f3943724fd950de4e2d16dd9888e7 Mon Sep 17 00:00:00 2001 From: RITANKAR SAHA Date: Tue, 1 Jul 2025 16:14:22 +0530 Subject: [PATCH 1/3] (feat): angor enabled for all liquid conf files --- production/mempool-config.liquid.json | 3 +++ production/mempool-config.liquidtestnet.json | 3 +++ production/mempool-frontend-config.liquid.json | 1 + 3 files changed, 7 insertions(+) diff --git a/production/mempool-config.liquid.json b/production/mempool-config.liquid.json index 9051bba741..6d3cedee1f 100644 --- a/production/mempool-config.liquid.json +++ b/production/mempool-config.liquid.json @@ -79,5 +79,8 @@ "STATISTICS": { "ENABLED": true, "TX_PER_SECOND_SAMPLE_PERIOD": 150 + }, + "ANGOR": { + "ENABLED": true } } diff --git a/production/mempool-config.liquidtestnet.json b/production/mempool-config.liquidtestnet.json index ae6d7b1ac4..61a3fc497e 100644 --- a/production/mempool-config.liquidtestnet.json +++ b/production/mempool-config.liquidtestnet.json @@ -79,5 +79,8 @@ "STATISTICS": { "ENABLED": true, "TX_PER_SECOND_SAMPLE_PERIOD": 150 + }, + "ANGOR": { + "ENABLED": true } } diff --git a/production/mempool-frontend-config.liquid.json b/production/mempool-frontend-config.liquid.json index 09bde34a65..c51f12b187 100644 --- a/production/mempool-frontend-config.liquid.json +++ b/production/mempool-frontend-config.liquid.json @@ -8,6 +8,7 @@ "BISQ_ENABLED": true, "BISQ_SEPARATE_BACKEND": true, "SIGNET_ENABLED": true, + "ANGOR_ENABLED": true, "MEMPOOL_WEBSITE_URL": "https://mempool.space", "LIQUID_WEBSITE_URL": "https://liquid.network", "BISQ_WEBSITE_URL": "https://bisq.markets", From 7a185f60b7d998fb97621ac8231d4a4acbdc1f9d Mon Sep 17 00:00:00 2001 From: RITANKAR SAHA Date: Tue, 1 Jul 2025 16:15:01 +0530 Subject: [PATCH 2/3] (feat): scripts for firing the liquid properly --- frontend/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index af84167511..e4fa970d28 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -59,7 +59,9 @@ "cypress:open:ci": "node update-config.js TESTNET_ENABLED=true TESTNET4_ENABLED=true SIGNET_ENABLED=true LIQUID_ENABLED=true ITEMS_PER_PAGE=25 && npm run generate-config && start-server-and-test serve:local-prod 4200 cypress:open", "cypress:run:ci": "node update-config.js TESTNET_ENABLED=true TESTNET4_ENABLED=true SIGNET_ENABLED=true LIQUID_ENABLED=true ITEMS_PER_PAGE=25 && npm run generate-config && start-server-and-test serve:local-prod 4200 cypress:run:record", "cypress:open:ci:staging": "node update-config.js TESTNET_ENABLED=true TESTNET4_ENABLED=true SIGNET_ENABLED=true LIQUID_ENABLED=true ITEMS_PER_PAGE=25 && npm run generate-config && start-server-and-test serve:local-staging 4200 cypress:open", - "cypress:run:ci:staging": "node update-config.js TESTNET_ENABLED=true TESTNET4_ENABLED=true SIGNET_ENABLED=true LIQUID_ENABLED=true ITEMS_PER_PAGE=25 && npm run generate-config && start-server-and-test serve:local-staging 4200 cypress:run:record" + "cypress:run:ci:staging": "node update-config.js TESTNET_ENABLED=true TESTNET4_ENABLED=true SIGNET_ENABLED=true LIQUID_ENABLED=true ITEMS_PER_PAGE=25 && npm run generate-config && start-server-and-test serve:local-staging 4200 cypress:run:record", + "serve:local": "ng serve --proxy-config proxy.conf.js --host 0.0.0.0 --port 4200", + "serve:local-liquid": "npm run config:defaults:liquid && ng serve --proxy-config proxy.conf.js --host 0.0.0.0 --port 4200" }, "dependencies": { "@angular-devkit/build-angular": "^17.3.1", From f617933e0a9bf890a38fddb9870be2eccd335b0f Mon Sep 17 00:00:00 2001 From: RITANKAR SAHA Date: Tue, 1 Jul 2025 16:21:15 +0530 Subject: [PATCH 3/3] (feat): sample proxy.conf.js file for liquid, after deploying the indexer needs to be adjusted in the main file --- frontend/proxy-liquid.conf.js | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 frontend/proxy-liquid.conf.js diff --git a/frontend/proxy-liquid.conf.js b/frontend/proxy-liquid.conf.js new file mode 100644 index 0000000000..76743edda3 --- /dev/null +++ b/frontend/proxy-liquid.conf.js @@ -0,0 +1,64 @@ +// Simplified proxy configuration without external config file dependency +const PROXY_CONFIG = [ + { + context: [ + '/api/**', '!/api/v1/ws', + '!/liquid', '!/liquid/**', '!/liquid/', + '!/liquidtestnet', '!/liquidtestnet/**', '!/liquidtestnet/' + ], + target: "http://localhost:8999", + ws: true, + secure: false, + changeOrigin: true, + logLevel: 'debug' + }, + { + context: ['/api/v1/ws'], + target: "http://localhost:8999", + ws: true, + secure: false, + changeOrigin: true, + logLevel: 'debug' + }, + { + context: ['/api/liquid**', '/liquid/api/**'], + target: "http://localhost:8999", + pathRewrite: { + "^/api/liquid/": "/api/v1/" + }, + ws: true, + secure: false, + changeOrigin: true, + logLevel: 'debug' + }, + { + context: ['/api/liquidtestnet**', '/liquidtestnet/api/**'], + target: "http://localhost:8999", + pathRewrite: { + "^/api/liquidtestnet/": "/api/v1/", + "^/liquidtestnet/api/": "/api/v1/" + }, + ws: true, + secure: false, + changeOrigin: true, + logLevel: 'debug' + }, + { + context: ['/resources/mining-pools/**'], + target: "https://mempool.space", + secure: false, + changeOrigin: true + }, + // Assets for liquid (since we're using liquid testnet) + { + context: [ + '/resources/assets.json', '/resources/assets.minimal.json', + '/resources/assets-testnet.json', '/resources/assets-testnet.minimal.json' + ], + target: "https://liquid.network", + secure: false, + changeOrigin: true, + } +]; + +module.exports = PROXY_CONFIG; \ No newline at end of file