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
2 changes: 2 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,7 @@ class Near extends Mainnet implements AccountNetwork {
name = 'Near';
family = CoinFamily.NEAR;
explorerUrl = 'https://nearblocks.io/txns/';
accountExplorerUrl = 'https://nearblocks.io/address/';
feeReserve = '50000000000000000000000';
storageReserve = '2000000000000000000000'; // feeReserve + storageReserve is minimum account balance for a NEAR wallet https://docs.near.org/integrator/faq#is-there-a-minimum-account-balance
}
Expand All @@ -1358,6 +1359,7 @@ class NearTestnet extends Testnet implements AccountNetwork {
name = 'NearTestnet';
family = CoinFamily.NEAR;
explorerUrl = 'https://testnet.nearblocks.io/txns/';
accountExplorerUrl = 'https://testnet.nearblocks.io/address/';
feeReserve = '50000000000000000000000';
storageReserve = '2000000000000000000000'; // feeReserve + storageReserve is minimum account balance for a NEAR wallet https://docs.near.org/integrator/faq#is-there-a-minimum-account-balance
}
Expand Down
9 changes: 9 additions & 0 deletions modules/statics/test/unit/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ Object.entries(Networks).forEach(([category, networks]) => {
Networks.test.ada.accountExplorerUrl.should.equal('https://preprod.cardanoscan.io/address/');
});
});

describe('Near Network', function () {
it('should have correct explorer URLs', function () {
Networks.main.near.explorerUrl.should.equal('https://nearblocks.io/txns/');
Networks.main.near.accountExplorerUrl.should.equal('https://nearblocks.io/address/');
Networks.test.near.explorerUrl.should.equal('https://testnet.nearblocks.io/txns/');
Networks.test.near.accountExplorerUrl.should.equal('https://testnet.nearblocks.io/address/');
});
});
});
});

Expand Down
Loading