Skip to content

Commit

Permalink
chore(statics): add babylon to statics
Browse files Browse the repository at this point in the history
TICKET: COIN-2691
  • Loading branch information
MohammedRyaan786 committed Jan 9, 2025
1 parent 7071ef1 commit 9c8ddc0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export enum CoinFamily {
AVAXC = 'avaxc',
AVAXP = 'avaxp',
BASEETH = 'baseeth',
BABY = 'baby',
BCH = 'bch',
BCHA = 'bcha',
BERA = 'bera',
Expand Down Expand Up @@ -331,6 +332,7 @@ export enum UnderlyingAsset {
AVAXP = 'avaxp',
AXL = 'AXL',
AXLV2 = 'axlv2',
BABY = 'baby',
BCH = 'bch',
BCHA = 'bcha',
BERA = 'bera',
Expand Down Expand Up @@ -2420,6 +2422,7 @@ export enum BaseUnit {
ATOM = 'uatom',
APT = 'octa',
ETH = 'wei',
BABY = 'ubaby',
BTC = 'satoshi',
BSC = 'jager',
XLM = 'stroop',
Expand Down
20 changes: 20 additions & 0 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,26 @@ export const coins = CoinMap.fromCoins([
BaseUnit.RUNE,
COSMOS_SIDECHAIN_FEATURES.filter((feature) => feature !== CoinFeature.BULK_TRANSACTION)
),
account(
'12194de6-b68f-4dfb-b74c-b18b1fbb29d6',
'baby',
'Babylon',
Networks.main.baby,
6,
UnderlyingAsset.BABY,
BaseUnit.BABY,
COSMOS_SIDECHAIN_FEATURES
),
account(
'ee22282b-c307-4861-b706-d9a178326ad5',
'tbaby',
'Testnet Baby',
Networks.test.baby,
6,
UnderlyingAsset.BABY,
BaseUnit.BABY,
COSMOS_SIDECHAIN_FEATURES
),
account(
'b473d5f0-1590-4edf-bc9f-813aff515a23',
'islm',
Expand Down
14 changes: 14 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,18 @@ class RuneTestNet extends Testnet implements AccountNetwork {
explorerUrl = 'https://runescan.io/tx/?network=stagenet';
}

class Baby extends Mainnet implements AccountNetwork {
name = 'Babylon';
family = CoinFamily.BABY;
explorerUrl = '';
}

class BabyTestnet extends Testnet implements AccountNetwork {
name = 'Testnet Babylon';
family = CoinFamily.BABY;
explorerUrl = 'https://testnet.babylon.explorers.guru/';
}

class Islm extends Mainnet implements AccountNetwork {
name = 'Haqq';
family = CoinFamily.ISLM;
Expand Down Expand Up @@ -1164,6 +1176,7 @@ export const Networks = {
atom: Object.freeze(new Atom()),
avalancheC: Object.freeze(new AvalancheC()),
avalancheP: Object.freeze(new AvalancheP()),
baby: Object.freeze(new Baby()),
basechain: Object.freeze(new BaseChain()),
bitcoin: Object.freeze(new Bitcoin()),
bitcoinCash: Object.freeze(new BitcoinCash()),
Expand Down Expand Up @@ -1225,6 +1238,7 @@ export const Networks = {
atom: Object.freeze(new AtomTestnet()),
avalancheC: Object.freeze(new AvalancheCTestnet()),
avalancheP: Object.freeze(new AvalanchePTestnet()),
baby: Object.freeze(new BabyTestnet()),
basechain: Object.freeze(new BaseChainTestnet()),
bitcoin: Object.freeze(new BitcoinTestnet()),
bitcoinPublicSignet: Object.freeze(new BitcoinPublicSignet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const expectedColdFeatures = {
'ada',
'apt',
'atom',
'baby',
'bera',
'bld',
'bsc',
Expand All @@ -81,6 +82,7 @@ export const expectedColdFeatures = {
'tada',
'tatom',
'tapt',
'tbaby',
'tbera',
'tbld',
'tbsc',
Expand Down

0 comments on commit 9c8ddc0

Please sign in to comment.