Skip to content

Commit

Permalink
Merge pull request #258 from terra-money/hotfix/replace-domain
Browse files Browse the repository at this point in the history
hotfix: replace terra domains
  • Loading branch information
mwmerz authored Aug 21, 2023
2 parents e515b35 + e8acf48 commit 28f5a26
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ REACT_APP_DEFAULT_NETWORK=localterra
```

`REACT_APP_DEFAULT_NETWORK` is the default selected network that Finder will use.
See [https://assets.terra.money/chains.json](https://assets.terra.money/chains.json) for the list of available networks.
See [https://assets.terra.dev/chains.json](https://assets.terra.dev/chains.json) for the list of available networks.


### Run in Dev Mode with Hot Reloading
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png" />
<link rel="stylesheet" href="https://assets.terra.money/font/gotham.css" />
<link rel="stylesheet" href="https://assets.terra.dev/font/gotham.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!--
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/ChainsContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useParams } from "react-router-dom";
import { createContext } from "./createContext";

export const getChains = () =>
fetch("https://assets.terra.money/chains.json")
fetch("https://assets.terra.dev/chains.json")
.then(res => res.json())
.then((data: Record<string, ChainOption>) => Object.values(data));

Expand All @@ -15,7 +15,7 @@ const useNetworkFromRouteMatch = () => {
};

export const useCurrentChain = () => {
const chains:ChainOption[] = useChains();
const chains: ChainOption[] = useChains();
const network = useNetworkFromRouteMatch();

const chain =
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTerraAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dictionary } from "lodash";
import { useCurrentChain } from "../contexts/ChainsContext";
import { ASSET_URL } from "../scripts/utility";

const config = { baseURL: "https://assets.terra.money" };
const config = { baseURL: "https://assets.terra.dev" };

const useTerraAssets = <T = any>(path: string) =>
useQuery([path, config, "terraAssets"], async () => {
Expand Down
3 changes: 1 addition & 2 deletions src/scripts/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { isTnsName } from "../libs/tns";

export const DEFAULT_CURRENCY = `uusd`;
export const BASE_DENOM = `uluna`;
export const ASSET_URL = "https://assets.terra.money";
export const ASSET_URL = "https://assets.terra.dev";
export const TERRA_ADDRESS_REGEX = /(terra[0-9][a-z0-9]{38})/g;
export const LOCALTERRA_FCD_URL = "http://localhost:3060";

Expand Down Expand Up @@ -164,5 +164,4 @@ export const compareIsDenomIBC = (a: string, b: string) =>
export const getTaxData = (tax: string | undefined) => {
const defaultTax = "";
return splitCoinData(tax || defaultTax) as CoinData;

};

0 comments on commit 28f5a26

Please sign in to comment.