diff --git a/modules/bitgo/test/v2/unit/keychains.ts b/modules/bitgo/test/v2/unit/keychains.ts index dcdd796185..b720d56972 100644 --- a/modules/bitgo/test/v2/unit/keychains.ts +++ b/modules/bitgo/test/v2/unit/keychains.ts @@ -78,6 +78,7 @@ describe('V2 Keychains', function () { n.asset !== UnderlyingAsset.OAS && // TODO(WIN-3696): remove this once coin-specific module for oas is added n.asset !== UnderlyingAsset.COREDAO && // TODO(WIN-3696): remove this once coin-specific module for coredao is added n.asset !== UnderlyingAsset.RUNE && + n.asset !== UnderlyingAsset.BABY && coinFamilyValues.includes(n.name) ); diff --git a/modules/statics/src/base.ts b/modules/statics/src/base.ts index 5c58448324..744975f87e 100644 --- a/modules/statics/src/base.ts +++ b/modules/statics/src/base.ts @@ -28,6 +28,7 @@ export enum CoinFamily { AVAXC = 'avaxc', AVAXP = 'avaxp', BASEETH = 'baseeth', + BABY = 'baby', BCH = 'bch', BCHA = 'bcha', BERA = 'bera', @@ -331,6 +332,7 @@ export enum UnderlyingAsset { AVAXP = 'avaxp', AXL = 'AXL', AXLV2 = 'axlv2', + BABY = 'baby', BCH = 'bch', BCHA = 'bcha', BERA = 'bera', @@ -2420,6 +2422,7 @@ export enum BaseUnit { ATOM = 'uatom', APT = 'octa', ETH = 'wei', + BABY = 'ubaby', BTC = 'satoshi', BSC = 'jager', XLM = 'stroop', diff --git a/modules/statics/src/coins.ts b/modules/statics/src/coins.ts index 3e782793d8..c25d85b673 100644 --- a/modules/statics/src/coins.ts +++ b/modules/statics/src/coins.ts @@ -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.filter((feature) => feature !== CoinFeature.BULK_TRANSACTION) + ), + account( + 'ee22282b-c307-4861-b706-d9a178326ad5', + 'tbaby', + 'Testnet Babylon', + Networks.test.baby, + 6, + UnderlyingAsset.BABY, + BaseUnit.BABY, + COSMOS_SIDECHAIN_FEATURES.filter((feature) => feature !== CoinFeature.BULK_TRANSACTION) + ), account( 'b473d5f0-1590-4edf-bc9f-813aff515a23', 'islm', diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index d2b810c6c1..3ab71e162d 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -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 = 'https://babylon.explorers.guru/transaction/'; +} + +class BabyTestnet extends Testnet implements AccountNetwork { + name = 'Testnet Babylon'; + family = CoinFamily.BABY; + explorerUrl = 'https://testnet.babylon.explorers.guru/transaction/'; +} + class Islm extends Mainnet implements AccountNetwork { name = 'Haqq'; family = CoinFamily.ISLM; @@ -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()), @@ -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()), diff --git a/modules/statics/test/unit/fixtures/expectedColdFeatures.ts b/modules/statics/test/unit/fixtures/expectedColdFeatures.ts index 5e44c017ee..0e12c396e4 100644 --- a/modules/statics/test/unit/fixtures/expectedColdFeatures.ts +++ b/modules/statics/test/unit/fixtures/expectedColdFeatures.ts @@ -60,6 +60,7 @@ export const expectedColdFeatures = { 'ada', 'apt', 'atom', + 'baby', 'bera', 'bld', 'bsc', @@ -81,6 +82,7 @@ export const expectedColdFeatures = { 'tada', 'tatom', 'tapt', + 'tbaby', 'tbera', 'tbld', 'tbsc',