Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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 {
Expand Down
10 changes: 10 additions & 0 deletions modules/statics/test/unit/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
});
});

Expand Down
Loading