Skip to content

Commit

Permalink
update pyrope icon
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Mar 5, 2025
1 parent 8466a9b commit 8d5be66
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
5 changes: 1 addition & 4 deletions packages/common/src/chains/pyrope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export const pyrope = {
address: "0x6487446e0B9FAEa90F6a9772A6448cFa780E30F9", // TODO: set correct address
},
},
quarryPaymaster: {
address: "0x7ca1b85aca23fccf2fbac14c02b5e8a6432639b9", // TODO: set correct address
},
},
blockExplorers: {
default: {
Expand All @@ -43,6 +40,6 @@ export const pyrope = {
url: "https://explorer.mud.dev/pyrope/worlds",
},
},
iconUrls: ["https://redstone.xyz/chain-icons/pyrope.png"], // TODO: set correct icon
iconUrls: ["https://lattice.xyz/brand/color/pyrope.svg"],
indexerUrl: "https://indexer.mud.pyropechain.com",
} as const satisfies MUDChain;
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export function Explorer() {
return (
<div className="space-y-4">
<TableSelector tables={tables} />
{indexer.type !== "sqlite" && (
<SQLEditor table={table} isLiveQuery={isLiveQuery} setIsLiveQuery={setIsLiveQuery} />
)}
{/* {indexer.type !== "sqlite" && ( */}
<SQLEditor table={table} isLiveQuery={isLiveQuery} setIsLiveQuery={setIsLiveQuery} />
{/* )} */}
<TablesViewer table={table} isLiveQuery={isLiveQuery} />
</div>
);
Expand Down
18 changes: 9 additions & 9 deletions packages/explorer/src/app/(explorer)/utils/indexerForChainId.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { anvil } from "viem/chains";
import { MUDChain } from "@latticexyz/common/chains";
import { chainIdToName, supportedChains, validateChainId } from "../../../common";
import { validateChainId } from "../../../common";

export function indexerForChainId(chainId: number): { type: "sqlite" | "hosted"; url: string } {
validateChainId(chainId);

if (chainId === anvil.id) {
return { type: "sqlite", url: "/api/sqlite-indexer" };
}
return { type: "hosted", url: new URL("/q", "http://0.0.0.0:8000").toString() };

const chainName = chainIdToName[chainId];
const chain = supportedChains[chainName] as MUDChain;
return { type: "hosted", url: new URL("/q", chain.indexerUrl).toString() };
// if (chainId === anvil.id) {
// return { type: "sqlite", url: "/api/sqlite-indexer" };
// }

// const chainName = chainIdToName[chainId];
// const chain = supportedChains[chainName] as MUDChain;
// return { type: "hosted", url: new URL("/q", chain.indexerUrl).toString() };
}

0 comments on commit 8d5be66

Please sign in to comment.