Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
emccorson committed Oct 11, 2024
1 parent 2b36b2a commit 59c7ce3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
21 changes: 0 additions & 21 deletions apps/namadillo/src/App/Ibc/IbcTransfer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { QueryClient, setupIbcExtension } from "@cosmjs/stargate";
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
import { Window as KeplrWindow } from "@keplr-wallet/types";
import { Panel } from "@namada/components";
import { mapUndefined } from "@namada/utils";
Expand Down Expand Up @@ -217,22 +215,3 @@ export const IbcTransfer: React.FC = () => {
</Panel>
);
};

const ibcAddressToDenom = async (
address: string,
rpc: string
): Promise<string> => {
const tmClient = await Tendermint34Client.connect(rpc);
const queryClient = new QueryClient(tmClient);
const ibcExtension = setupIbcExtension(queryClient);

const ibcHash = address.replace("ibc/", "");
const { denomTrace } = await ibcExtension.ibc.transfer.denomTrace(ibcHash);
const baseDenom = denomTrace?.baseDenom;

if (typeof baseDenom === "undefined") {
throw new Error("couldn't get denom from ibc address");
}

return baseDenom;
};
26 changes: 0 additions & 26 deletions apps/namadillo/src/atoms/registry/atoms.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/namadillo/src/atoms/registry/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./atoms";
export * from "./functions";
export * from "./services";

0 comments on commit 59c7ce3

Please sign in to comment.