Skip to content

Commit 8070db9

Browse files
committed
feat(sdk-coin-cosmos): cronos statics change to new structure
TICKET: COIN-5131
1 parent 2d124f6 commit 8070db9

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

modules/statics/src/coins.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,12 @@ export const coins = CoinMap.fromCoins([
10221022
8,
10231023
UnderlyingAsset.CRONOS,
10241024
BaseUnit.CRONOS,
1025-
[...COSMOS_SIDECHAIN_FEATURES_WITH_STAKING, CoinFeature.CUSTODY_BULK_TRANSACTION]
1025+
[
1026+
...COSMOS_SIDECHAIN_FEATURES_WITH_STAKING,
1027+
CoinFeature.CUSTODY_BULK_TRANSACTION,
1028+
CoinFeature.SHARED_COSMOS_SDK,
1029+
CoinFeature.SHARED_COSMOS_WP,
1030+
]
10261031
),
10271032
account(
10281033
'49d56512-bddb-41aa-ac7f-f4a4c494b412',
@@ -1032,7 +1037,12 @@ export const coins = CoinMap.fromCoins([
10321037
8,
10331038
UnderlyingAsset.CRONOS,
10341039
BaseUnit.CRONOS,
1035-
[...COSMOS_SIDECHAIN_FEATURES_WITH_STAKING, CoinFeature.CUSTODY_BULK_TRANSACTION]
1040+
[
1041+
...COSMOS_SIDECHAIN_FEATURES_WITH_STAKING,
1042+
CoinFeature.CUSTODY_BULK_TRANSACTION,
1043+
CoinFeature.SHARED_COSMOS_SDK,
1044+
CoinFeature.SHARED_COSMOS_WP,
1045+
]
10361046
),
10371047
account(
10381048
'854513b2-cf1a-44b4-879b-e3aae0b5f227',

modules/statics/src/networks.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,16 +930,30 @@ class MantraTestnet extends Testnet implements AccountNetwork {
930930
explorerUrl = 'https://explorer.mantrachain.io/MANTRA-Dukong/tx/';
931931
}
932932

933-
class Cronos extends Mainnet implements AccountNetwork {
933+
class Cronos extends Mainnet implements CosmosNetwork {
934934
name = 'Cronos POS';
935935
family = CoinFamily.CRONOS;
936936
explorerUrl = 'https://cronos-pos.org/explorer/tx/';
937+
// Add these properties to implement CosmosNetwork interface
938+
addressPrefix = 'cro';
939+
validatorPrefix = 'crocncl';
940+
denom = 'basecro';
941+
gasAmount = '30000';
942+
gasLimit = 500000;
943+
validDenoms = ['cro', 'basecro'];
937944
}
938945

939-
class CronosTestnet extends Testnet implements AccountNetwork {
946+
class CronosTestnet extends Testnet implements CosmosNetwork {
940947
name = 'Testnet Cronos POS';
941948
family = CoinFamily.CRONOS;
942949
explorerUrl = 'https://cronos-pos.org/explorer/croeseid4/tx/';
950+
// Add these properties to implement CosmosNetwork interface
951+
addressPrefix = 'tcro';
952+
validatorPrefix = 'tcrocncl';
953+
denom = 'basetcro';
954+
gasAmount = '30000';
955+
gasLimit = 500000;
956+
validDenoms = ['tcro', 'basetcro'];
943957
}
944958

945959
class FetchAi extends Mainnet implements AccountNetwork {

0 commit comments

Comments
 (0)