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