Skip to content

Commit f4dcb79

Browse files
Merge pull request #8075 from BitGo/WIN-8867
fix(statics): add account explorer url for sui and ada
2 parents 32059a0 + fe40c2e commit f4dcb79

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

modules/statics/src/networks.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ class Ada extends Mainnet implements AdaNetwork {
219219
poolDeposit = 500000000;
220220
stakeKeyDeposit = 2000000;
221221
explorerUrl = 'https://cardanoscan.io/transaction/';
222+
accountExplorerUrl = 'https://cardanoscan.io/address/';
222223
coinsPerUtxoWord = 34482;
223224
maxTransactionSize = 8000;
224225
maxValueSize = 4000;
@@ -229,6 +230,7 @@ class AdaTestnet extends Testnet implements AdaNetwork {
229230
family = CoinFamily.ADA;
230231
utxolibName = 'cardanoTestnet';
231232
explorerUrl = 'https://preprod.cardanoscan.io/transaction/';
233+
accountExplorerUrl = 'https://preprod.cardanoscan.io/address/';
232234
coinsPerUtxoWord = 34482;
233235
maxTransactionSize = 8000;
234236
maxValueSize = 4000;
@@ -891,12 +893,14 @@ class Sui extends Mainnet implements AccountNetwork {
891893
name = 'Sui';
892894
family = CoinFamily.SUI;
893895
explorerUrl = 'https://explorer.sui.io/txblock/?network=mainnet';
896+
accountExplorerUrl = 'https://explorer.sui.io/address/?network=mainnet';
894897
}
895898

896899
class SuiTestnet extends Testnet implements AccountNetwork {
897900
name = 'Testnet Sui';
898901
family = CoinFamily.SUI;
899902
explorerUrl = 'https://explorer.sui.io/txblock/?network=testnet';
903+
accountExplorerUrl = 'https://explorer.sui.io/address/?network=testnet';
900904
}
901905

902906
class Atom extends Mainnet implements AccountNetwork {

modules/statics/test/unit/networks.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,23 @@ Object.entries(Networks).forEach(([category, networks]) => {
4343
Networks.test.zkSyncEra.walletImplementationAddress.should.equal('0x92db2759d1dca129a0d9d46877f361be819184c4');
4444
});
4545
});
46+
47+
describe('Sui Network', function () {
48+
it('should have correct explorer URLs', function () {
49+
Networks.main.sui.explorerUrl.should.equal('https://explorer.sui.io/txblock/?network=mainnet');
50+
Networks.main.sui.accountExplorerUrl.should.equal('https://explorer.sui.io/address/?network=mainnet');
51+
Networks.test.sui.explorerUrl.should.equal('https://explorer.sui.io/txblock/?network=testnet');
52+
Networks.test.sui.accountExplorerUrl.should.equal('https://explorer.sui.io/address/?network=testnet');
53+
});
54+
});
55+
56+
describe('Ada Network', function () {
57+
it('should have correct explorer URLs', function () {
58+
Networks.main.ada.explorerUrl.should.equal('https://cardanoscan.io/transaction/');
59+
Networks.main.ada.accountExplorerUrl.should.equal('https://cardanoscan.io/address/');
60+
Networks.test.ada.explorerUrl.should.equal('https://preprod.cardanoscan.io/transaction/');
61+
Networks.test.ada.accountExplorerUrl.should.equal('https://preprod.cardanoscan.io/address/');
62+
});
63+
});
4664
});
4765
});

0 commit comments

Comments
 (0)