Skip to content

Commit

Permalink
feat: Namadillo - Update for new housefire (#1434)
Browse files Browse the repository at this point in the history
* feat: update for new housefire

* feat: finalizing changes

* feat: bump namadillo version
  • Loading branch information
jurevans authored Dec 20, 2024
1 parent 0110973 commit dde2147
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/namadillo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@namada/namadillo",
"version": "1.1.2",
"version": "1.1.3",
"description": "Namadillo",
"repository": "https://github.com/anoma/namada-interface/",
"author": "Heliax Dev <[email protected]>",
Expand Down
24 changes: 18 additions & 6 deletions apps/namadillo/src/atoms/integrations/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,38 @@ import { getSdkInstance } from "utils/sdk";

import housefireAssets from "namada-chain-registry/_testnets/namadahousefire/assetlist.json";
import housefireChain from "namada-chain-registry/_testnets/namadahousefire/chain.json";
import housefireOldAssets from "namada-chain-registry/_testnets/namadahousefireold/assetlist.json";
import housefireOldChain from "namada-chain-registry/_testnets/namadahousefireold/chain.json";
import internalDevnetAssets from "namada-chain-registry/_testnets/namadainternaldevnet/assetlist.json";
import internalDevnetChain from "namada-chain-registry/_testnets/namadainternaldevnet/chain.json";
import namadaAssets from "namada-chain-registry/namada/assetlist.json";
import namadaChain from "namada-chain-registry/namada/chain.json";

import housefireCosmosTestnetIbc from "namada-chain-registry/_testnets/_IBC/namadahousefire-cosmoshubtestnet.json";
import housefireOsmosisTestnetIbc from "namada-chain-registry/_testnets/_IBC/namadahousefire-osmosistestnet.json";
import housefireOldCosmosTestnetIbc from "namada-chain-registry/_testnets/_IBC/namadahousefireold-cosmoshubtestnet.json";
import housefireOldOsmosisTestnetIbc from "namada-chain-registry/_testnets/_IBC/namadahousefireold-osmosistestnet.json";
import internalDevnetCosmosTestnetIbc from "namada-chain-registry/_testnets/_IBC/namadainternaldevnet-cosmoshubtestnet.json";

// TODO: this causes a big increase on bundle size. See #1224.
import cosmosRegistry from "chain-registry";

cosmosRegistry.chains.push(internalDevnetChain, housefireChain, namadaChain);
cosmosRegistry.chains.push(
internalDevnetChain,
housefireChain,
housefireOldChain,
namadaChain
);

cosmosRegistry.assets.push(internalDevnetAssets, housefireAssets, namadaAssets);
cosmosRegistry.assets.push(
internalDevnetAssets,
housefireAssets,
housefireOldAssets,
namadaAssets
);

cosmosRegistry.ibc.push(
internalDevnetCosmosTestnetIbc,
housefireCosmosTestnetIbc,
housefireOsmosisTestnetIbc
housefireOldCosmosTestnetIbc,
housefireOldOsmosisTestnetIbc
);

const mainnetChains: ChainRegistryEntry[] = [
Expand Down
3 changes: 2 additions & 1 deletion apps/namadillo/src/hooks/useRegistryFeatures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const namadaChainRegistryUrl =

const namadaChainRegistryMap = new Map<string, string>([
["namada.5f5de2dd1b88cba30586420", "namada"],
["housefire-creek.76ed2d08793c14", "_testnets/namadahousefire"],
["housefire-alpaca.cc0d3e0c033be", "_testnets/namadahousefire"],
["housefire-below.0b9e6c455af037", "_testnets/namadahousefireold"],
["internal-devnet-45a.1881abcfec", "_testnets/namadainternaldevnet"],
]);

Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15861,8 +15861,8 @@ __metadata:

"namada-chain-registry@https://github.com/anoma/namada-chain-registry":
version: 0.0.1
resolution: "namada-chain-registry@https://github.com/anoma/namada-chain-registry.git#commit=698a9f0f8b21280ebac644781592af0a6ada6dc3"
checksum: 0979dadaabfd06e29a3045273b076bc79040eb122530d23995eb74b3ee993669a81217ed80c06186d9c85b0ae40c98f4ac8e128d51475e8125d0aa3bfddeec88
resolution: "namada-chain-registry@https://github.com/anoma/namada-chain-registry.git#commit=6b495f9763b7539d7577e0b862689215909b2a01"
checksum: 8dfbc049889f55973d42f79551251ad98228fe248da52eed9944456c37b1e7c263348af7f6bb4675369f8c9c49f54b1a90abbe1e81e7169f4b13d686daf90b71
languageName: node
linkType: hard

Expand Down

1 comment on commit dde2147

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.