From 8f98e1c4c76cb987e3571fcd4d8db4a1d6146669 Mon Sep 17 00:00:00 2001 From: Pedro Rezende Date: Thu, 16 Jan 2025 17:48:59 -0300 Subject: [PATCH] fix: removing newly introduced config variables --- apps/namadillo/public/config.toml | 2 -- apps/namadillo/src/atoms/integrations/atoms.ts | 14 +++----------- apps/namadillo/src/types.ts | 2 -- apps/namadillo/src/urls.ts | 6 ++++++ 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/apps/namadillo/public/config.toml b/apps/namadillo/public/config.toml index 99681ff101..23dfc293be 100644 --- a/apps/namadillo/public/config.toml +++ b/apps/namadillo/public/config.toml @@ -4,5 +4,3 @@ #masp_indexer_url = "" #localnet_enabled = false -github_chain_registry_base_url = "https://raw.githubusercontent.com/anoma/namada-chain-registry/refs/heads/main" -github_namada_interface_url = "https://raw.githubusercontent.com/anoma/namada-interface/refs/heads/main" diff --git a/apps/namadillo/src/atoms/integrations/atoms.ts b/apps/namadillo/src/atoms/integrations/atoms.ts index 88006b1cc3..7be7d5a6ee 100644 --- a/apps/namadillo/src/atoms/integrations/atoms.ts +++ b/apps/namadillo/src/atoms/integrations/atoms.ts @@ -22,6 +22,7 @@ import { ChainRegistryEntry, RpcStorage, } from "types"; +import { githubNamadaChainRegistryBaseUrl } from "urls"; import { addLocalnetToRegistry, createIbcTx, @@ -141,21 +142,12 @@ export const ibcChannelsFamily = atomFamily((ibcChainName?: string) => ...queryDependentFn(async () => { invariant(chainSettings.data, "No chain settings"); invariant(ibcChainName, "No IBC chain name"); - invariant( - config.data?.github_chain_registry_base_url, - "No github_chain_registry_base_url was provided on config.toml" - ); return fetchIbcChannelFromRegistry( chainSettings.data.chainId, ibcChainName, - config.data?.github_chain_registry_base_url + githubNamadaChainRegistryBaseUrl ); - }, [ - chainSettings, - config, - !!ibcChainName, - !!config.data?.github_chain_registry_base_url, - ]), + }, [chainSettings, config, !!ibcChainName]), }; }) ); diff --git a/apps/namadillo/src/types.ts b/apps/namadillo/src/types.ts index 219c2e39ae..718f54383c 100644 --- a/apps/namadillo/src/types.ts +++ b/apps/namadillo/src/types.ts @@ -62,8 +62,6 @@ export type SettingsTomlOptions = { masp_indexer_url?: string; rpc_url?: string; localnet_enabled?: boolean; - github_chain_registry_base_url?: string; - github_namada_interface_url?: string; }; export type ChainParameters = { diff --git a/apps/namadillo/src/urls.ts b/apps/namadillo/src/urls.ts index 71eba56b52..8d099dbb8b 100644 --- a/apps/namadillo/src/urls.ts +++ b/apps/namadillo/src/urls.ts @@ -1,2 +1,8 @@ export const DISCORD_URL = "https://discord.com/invite/namada"; export const TWITTER_URL = "https://twitter.com/namada"; + +export const githubNamadaChainRegistryBaseUrl = + "https://raw.githubusercontent.com/anoma/namada-chain-registry/refs/heads/main"; + +export const githubNamadaInterfaceBaseUrl = + "https://raw.githubusercontent.com/anoma/namada-interface/refs/heads/main";