From 709af9f09928959cd184f2d062bee61a873cf795 Mon Sep 17 00:00:00 2001 From: bitgobot Date: Fri, 6 Nov 2026 08:10:13 +0000 Subject: [PATCH] fix(statics): correct FLRP transaction explorer URL Point mainnet FLRP transaction links at the Flare P-Chain Explorer so customers can open the correct transaction instead of Flarescan. Add a transaction-link regression and document the correction. Ticket: CECHO-2694 Session-Id: 8218b461-62c0-4e6d-b832-f7a0eff2f031 Task-Id: 6cf7a3c4-c07b-4627-aa5e-a145b83203ec --- modules/statics/CHANGELOG.md | 6 ++++++ modules/statics/src/networks.ts | 2 +- modules/statics/test/unit/networks.ts | 11 ++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/statics/CHANGELOG.md b/modules/statics/CHANGELOG.md index ca530236e44..a42c28c50bc 100644 --- a/modules/statics/CHANGELOG.md +++ b/modules/statics/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## Unreleased + +### Bug Fixes + +* **statics:** direct FLRP transaction links to the Flare P-Chain Explorer. + # [59.28.0](https://github.com/BitGo/BitGoJS/compare/%40bitgo%2Fstatics%4059.27.0...%40bitgo%2Fstatics%4059.28.0) (2026-11-03) ### Bug Fixes diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index 6deba319f85..3968f32f0d9 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -2447,7 +2447,7 @@ export class FlareP extends Mainnet implements FlareNetwork { assetId = '2MxKSeEWXViLdYyDhW1SQ46AECZEbE2bnVRZptv42JrxqyUX5k'; name = 'FlareP'; family = CoinFamily.FLRP; - explorerUrl = 'https://flarescan.com/blockchain/pvm/tx/'; + explorerUrl = 'https://flare.space/dapp/p-chain-explorer/tx/'; accountExplorerUrl = 'https://flarescan.com/blockchain/pvm/address/'; blockchainID = '11111111111111111111111111111111LpoYY'; cChainBlockchainID = 'umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c'; diff --git a/modules/statics/test/unit/networks.ts b/modules/statics/test/unit/networks.ts index 8c713cb5700..bf5917247f8 100644 --- a/modules/statics/test/unit/networks.ts +++ b/modules/statics/test/unit/networks.ts @@ -1,4 +1,5 @@ import 'should'; +import { coins } from '../../src/coins'; import { AccountNetwork, BaseNetwork, @@ -82,7 +83,6 @@ Object.entries(Networks).forEach(([category, networks]) => { describe('FlareP Network', function () { it('should have correct explorer URLs', function () { - Networks.main.flrP.explorerUrl.should.equal('https://flarescan.com/blockchain/pvm/tx/'); Networks.main.flrP.accountExplorerUrl.should.equal('https://flarescan.com/blockchain/pvm/address/'); Networks.test.flrP.explorerUrl.should.equal('https://coston2.testnet.flarescan.com/blockchain/pvm/tx/'); Networks.test.flrP.accountExplorerUrl.should.equal( @@ -103,6 +103,15 @@ Object.entries(Networks).forEach(([category, networks]) => { }); }); +describe('FLRP transaction explorer', function () { + it('links a transaction to the P-Chain Explorer', function () { + const txId = 'LsGTBjN4hq8yxSpSTY62Jn9SUJVNoi2BLyxnJbhXnEPrD59mh'; + `${coins.get('flrp').network.explorerUrl}${txId}`.should.equal( + 'https://flare.space/dapp/p-chain-explorer/tx/LsGTBjN4hq8yxSpSTY62Jn9SUJVNoi2BLyxnJbhXnEPrD59mh' + ); + }); +}); + describe('Cosmos-family addressPrefix', function () { const cases: Array<[string, AccountNetwork, string]> = [ ['main.atom', Networks.main.atom, 'cosmos'],