diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index ce38c3db72..d5b5683939 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -219,6 +219,7 @@ class Ada extends Mainnet implements AdaNetwork { poolDeposit = 500000000; stakeKeyDeposit = 2000000; explorerUrl = 'https://cardanoscan.io/transaction/'; + accountExplorerUrl = 'https://cardanoscan.io/address/'; coinsPerUtxoWord = 34482; maxTransactionSize = 8000; maxValueSize = 4000; @@ -229,6 +230,7 @@ class AdaTestnet extends Testnet implements AdaNetwork { family = CoinFamily.ADA; utxolibName = 'cardanoTestnet'; explorerUrl = 'https://preprod.cardanoscan.io/transaction/'; + accountExplorerUrl = 'https://preprod.cardanoscan.io/address/'; coinsPerUtxoWord = 34482; maxTransactionSize = 8000; maxValueSize = 4000; @@ -891,12 +893,14 @@ class Sui extends Mainnet implements AccountNetwork { name = 'Sui'; family = CoinFamily.SUI; explorerUrl = 'https://explorer.sui.io/txblock/?network=mainnet'; + accountExplorerUrl = 'https://explorer.sui.io/address/?network=mainnet'; } class SuiTestnet extends Testnet implements AccountNetwork { name = 'Testnet Sui'; family = CoinFamily.SUI; explorerUrl = 'https://explorer.sui.io/txblock/?network=testnet'; + accountExplorerUrl = 'https://explorer.sui.io/address/?network=testnet'; } class Atom extends Mainnet implements AccountNetwork { diff --git a/modules/statics/test/unit/networks.ts b/modules/statics/test/unit/networks.ts index 96c27ad2ef..2f306d3bb9 100644 --- a/modules/statics/test/unit/networks.ts +++ b/modules/statics/test/unit/networks.ts @@ -43,5 +43,23 @@ Object.entries(Networks).forEach(([category, networks]) => { Networks.test.zkSyncEra.walletImplementationAddress.should.equal('0x92db2759d1dca129a0d9d46877f361be819184c4'); }); }); + + describe('Sui Network', function () { + it('should have correct explorer URLs', function () { + Networks.main.sui.explorerUrl.should.equal('https://explorer.sui.io/txblock/?network=mainnet'); + Networks.main.sui.accountExplorerUrl.should.equal('https://explorer.sui.io/address/?network=mainnet'); + Networks.test.sui.explorerUrl.should.equal('https://explorer.sui.io/txblock/?network=testnet'); + Networks.test.sui.accountExplorerUrl.should.equal('https://explorer.sui.io/address/?network=testnet'); + }); + }); + + describe('Ada Network', function () { + it('should have correct explorer URLs', function () { + Networks.main.ada.explorerUrl.should.equal('https://cardanoscan.io/transaction/'); + Networks.main.ada.accountExplorerUrl.should.equal('https://cardanoscan.io/address/'); + Networks.test.ada.explorerUrl.should.equal('https://preprod.cardanoscan.io/transaction/'); + Networks.test.ada.accountExplorerUrl.should.equal('https://preprod.cardanoscan.io/address/'); + }); + }); }); });