Skip to content

Commit

Permalink
feat(common): add chain icons (latticexyz#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored and dhvanipa committed May 24, 2024
1 parent 211d246 commit c4e86d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-eggs-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/common": patch
---

Added chain icons to Redstone and Garnet chain configs via `chain.iconUrls`.
1 change: 0 additions & 1 deletion packages/common/src/chains/garnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const garnet = {
url: "https://explorer.garnetchain.com",
},
},
indexerUrl: "https://indexer.mud.garnetchain.com",
contracts: {
...chainConfig.contracts,
multicall3: {
Expand Down
14 changes: 1 addition & 13 deletions packages/common/src/chains/mudFoundry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,4 @@ export const mudFoundry = {
fees: {
defaultPriorityFee: 0n,
},
rpcUrls: {
...foundry.rpcUrls,
erc4337Bundler: {
http: ["http://127.0.0.1:4337"],
},
},
contracts: {
...foundry.contracts,
gasTank: {
address: "0x932c23946aba851829553ddd5e22d68b57a81f0d",
},
},
} as const satisfies MUDChain;
} as const satisfies MUDChain;
1 change: 0 additions & 1 deletion packages/common/src/chains/redstone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const redstone = {
url: "https://explorer.redstone.xyz",
},
},
indexerUrl: "https://indexer.mud.redstonechain.com",
contracts: {
...chainConfig.contracts,
multicall3: {
Expand Down
2 changes: 2 additions & 0 deletions packages/common/src/chains/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export type RpcUrls = {
};

export type MUDChain = Chain & {
iconUrls?: readonly string[];
indexerUrl?: string;
/** @deprecated */
faucetUrl?: string;
iconUrls?: readonly string[];
rpcUrls?: Chain["rpcUrls"] & {
Expand Down

0 comments on commit c4e86d2

Please sign in to comment.