From d751f02a043173955c686571f9091bcaf1fc606d Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Tue, 15 Sep 2026 19:02:53 +0530 Subject: [PATCH] fix(statics): set Pearl testnet block explorer URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Testnet Pearl (TPRL) transaction detail showed the Transaction Hash as a styled link that did nothing when clicked. bitgo-ui's transferPresenter.explorerUrl() builds the link from getBaseCoin(coin).network.explorerUrl, which was `undefined` for both Pearl and PearlTestnet — a placeholder left over from initial onboarding, not a missing case in bitgo-ui's link-rendering logic. Set PearlTestnet.explorerUrl to Pearl's testnet Blockbook (https://blockbook.testnet.pearlresearch.ai/tx/), matching the ZCash/Dogecoin convention (base URL with trailing slash, tx hash appended directly). Pearl (mainnet) has no launched chain or block explorer yet, so it intentionally stays undefined. Ticket: CECHO-2178 --- modules/statics/src/networks.ts | 3 ++- modules/statics/test/unit/networks.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index 4fdd676700..f5bd93f51d 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -1466,6 +1466,7 @@ class Pearl extends Mainnet implements UtxoNetwork { family = CoinFamily.PEARL; /** wasm-utxo CoinName, not a utxo-lib network - see note above */ utxolibName = 'pearl'; + // No mainnet Pearl block explorer exists yet - the chain has not launched mainnet. explorerUrl = undefined; } @@ -1474,7 +1475,7 @@ class PearlTestnet extends Testnet implements UtxoNetwork { family = CoinFamily.PEARL; /** wasm-utxo CoinName, not a utxo-lib network - see note above */ utxolibName = 'tpearl'; - explorerUrl = undefined; + explorerUrl = 'https://blockbook.testnet.pearlresearch.ai/tx/'; } class Near extends Mainnet implements AccountNetwork { diff --git a/modules/statics/test/unit/networks.ts b/modules/statics/test/unit/networks.ts index 99fe196a20..eb2bbc9c05 100644 --- a/modules/statics/test/unit/networks.ts +++ b/modules/statics/test/unit/networks.ts @@ -89,6 +89,16 @@ Object.entries(Networks).forEach(([category, networks]) => { ); }); }); + + describe('Pearl Network', function () { + it('should have a testnet explorer URL (CECHO-2178)', function () { + Networks.test.pearl.explorerUrl.should.equal('https://blockbook.testnet.pearlresearch.ai/tx/'); + }); + + it('has no mainnet explorer URL yet - Pearl has not launched mainnet', function () { + should(Networks.main.pearl.explorerUrl).be.undefined(); + }); + }); }); });