Skip to content

Commit 3def0df

Browse files
authored
Merge pull request #8620 from BitGo/fix/statics-near-account-explorer-url
fix(statics): add account explorer url for near
2 parents cc474ce + 761f39c commit 3def0df

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

modules/statics/src/networks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ class Near extends Mainnet implements AccountNetwork {
13501350
name = 'Near';
13511351
family = CoinFamily.NEAR;
13521352
explorerUrl = 'https://nearblocks.io/txns/';
1353+
accountExplorerUrl = 'https://nearblocks.io/address/';
13531354
feeReserve = '50000000000000000000000';
13541355
storageReserve = '2000000000000000000000'; // feeReserve + storageReserve is minimum account balance for a NEAR wallet https://docs.near.org/integrator/faq#is-there-a-minimum-account-balance
13551356
}
@@ -1358,6 +1359,7 @@ class NearTestnet extends Testnet implements AccountNetwork {
13581359
name = 'NearTestnet';
13591360
family = CoinFamily.NEAR;
13601361
explorerUrl = 'https://testnet.nearblocks.io/txns/';
1362+
accountExplorerUrl = 'https://testnet.nearblocks.io/address/';
13611363
feeReserve = '50000000000000000000000';
13621364
storageReserve = '2000000000000000000000'; // feeReserve + storageReserve is minimum account balance for a NEAR wallet https://docs.near.org/integrator/faq#is-there-a-minimum-account-balance
13631365
}

modules/statics/test/unit/networks.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ Object.entries(Networks).forEach(([category, networks]) => {
6161
Networks.test.ada.accountExplorerUrl.should.equal('https://preprod.cardanoscan.io/address/');
6262
});
6363
});
64+
65+
describe('Near Network', function () {
66+
it('should have correct explorer URLs', function () {
67+
Networks.main.near.explorerUrl.should.equal('https://nearblocks.io/txns/');
68+
Networks.main.near.accountExplorerUrl.should.equal('https://nearblocks.io/address/');
69+
Networks.test.near.explorerUrl.should.equal('https://testnet.nearblocks.io/txns/');
70+
Networks.test.near.accountExplorerUrl.should.equal('https://testnet.nearblocks.io/address/');
71+
});
72+
});
6473
});
6574
});
6675

0 commit comments

Comments
 (0)