Skip to content

Commit

Permalink
overhauling destination address
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed May 10, 2024
1 parent 34596ff commit c90ed24
Show file tree
Hide file tree
Showing 46 changed files with 2,116 additions and 2,104 deletions.
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 177 files
2 changes: 1 addition & 1 deletion initia-registry
Submodule initia-registry updated 46 files
+69 −0 .github/workflows/aloha-watcher.yml
+1 −1 .gitignore
+2 −2 README.md
+62 −0 devnets/blackwing/assetlist.json
+105 −0 devnets/blackwing/chain.json
+ devnets/blackwing/images/BLACKWING.png
+11 −0 devnets/blackwing/images/BLACKWING.svg
+ devnets/blackwing/images/INIT.png
+11 −0 devnets/blackwing/images/INIT.svg
+ devnets/blackwing/images/USDC.png
+12 −0 devnets/blackwing/images/USDC.svg
+13 −0 devnets/initia/chain.json
+31 −0 testnets/_IBC/initia-minimove.json
+31 −0 testnets/_IBC/initia-miniwasm.json
+202 −0 testnets/initia/assetlist.json
+150 −0 testnets/initia/chain.json
+ testnets/initia/images/ETH-INIT.png
+18 −0 testnets/initia/images/ETH-INIT.svg
+ testnets/initia/images/ETH.png
+15 −0 testnets/initia/images/ETH.svg
+ testnets/initia/images/INIT.png
+11 −0 testnets/initia/images/INIT.svg
+ testnets/initia/images/TIA-INIT.png
+18 −0 testnets/initia/images/TIA-INIT.svg
+ testnets/initia/images/TIA.png
+11 −0 testnets/initia/images/TIA.svg
+ testnets/initia/images/USDC-INIT.png
+19 −0 testnets/initia/images/USDC-INIT.svg
+ testnets/initia/images/USDC.png
+12 −0 testnets/initia/images/USDC.svg
+62 −0 testnets/minimove/assetlist.json
+116 −0 testnets/minimove/chain.json
+ testnets/minimove/images/INIT.png
+11 −0 testnets/minimove/images/INIT.svg
+ testnets/minimove/images/USDC.png
+12 −0 testnets/minimove/images/USDC.svg
+ testnets/minimove/images/minimove.png
+15 −0 testnets/minimove/images/minimove.svg
+62 −0 testnets/miniwasm/assetlist.json
+116 −0 testnets/miniwasm/chain.json
+ testnets/miniwasm/images/INIT.png
+11 −0 testnets/miniwasm/images/INIT.svg
+ testnets/miniwasm/images/USDC.png
+12 −0 testnets/miniwasm/images/USDC.svg
+ testnets/miniwasm/images/miniwasm.png
+12 −0 testnets/miniwasm/images/miniwasm.svg
11 changes: 10 additions & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
"react-icons": "^5.1.0",
"resend": "^3.1.0",
"stridejs": "^0.8.0-alpha.5",
"tailwind-merge": "^2.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/AssetInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ function AssetInput({
return assetsByChainID(chain.chainID);
}, [assetsByChainID, chain, getNativeAssets]);

const account = useAccount(context);
const account = useAccount(chain?.chainID);

const isAnyDisclosureOpen = useAnyDisclosureOpen();

const { data: balances, isLoading: isBalancesLoading } = useBalancesByChain({
address: account?.address,
chain,
assets,
enabled: !isAnyDisclosureOpen,
enabled: !isAnyDisclosureOpen && context === "source",
});

const selectedAssetBalance = useMemo(() => {
Expand Down
3 changes: 1 addition & 2 deletions src/components/AssetSelect/AssetSelectContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ArrowLeftIcon } from "@heroicons/react/20/solid";
import * as ScrollArea from "@radix-ui/react-scroll-area";
import { Asset } from "@skip-router/core";
import { matchSorter } from "match-sorter";
import Image from "next/image";
import { useEffect, useMemo, useRef, useState } from "react";
import { formatUnits } from "viem";

Expand Down Expand Up @@ -94,7 +93,7 @@ function AssetSelectContent({ assets = [], balances, onChange, onClose, showChai
className="flex w-full items-center gap-4 rounded-xl p-4 text-left transition-colors hover:bg-[#ECD9D9] focus:-outline-offset-2"
onClick={() => (onClose(), onChange?.(asset))}
>
<Image
<img
height={48}
width={48}
alt={asset.recommendedSymbol || "symbol"}
Expand Down
3 changes: 1 addition & 2 deletions src/components/AssetSelect/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChevronDownIcon } from "@heroicons/react/20/solid";
import { Asset } from "@skip-router/core";
import Image from "next/image";
import { useState } from "react";

import { Dialog, DialogContent, DialogTrigger } from "@/components/Dialog";
Expand Down Expand Up @@ -36,7 +35,7 @@ function AssetSelect({ asset, assets, balances, onChange, showChainInfo, isBalan
data-testid="select-asset"
>
{asset && (
<Image
<img
alt={asset.recommendedSymbol || "asset symbol"}
height={24}
width={24}
Expand Down
1 change: 0 additions & 1 deletion src/components/HistoryDialog/HistoryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const Item = forwardRef<HTMLDivElement, ItemProps>(function Item(props, r
})),
enabled: !(data.status === "success" || data.status === "failed"),
});

useEffect(() => {
if (errorUpdateCount > 4) {
txHistory.remove(id);
Expand Down
Loading

0 comments on commit c90ed24

Please sign in to comment.