diff --git a/modules/statics/CHANGELOG.md b/modules/statics/CHANGELOG.md index ca530236e4..a42c28c50b 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 6deba319f8..3968f32f0d 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 8c713cb570..bf5917247f 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'],