Skip to content

Commit c2b7595

Browse files
committed
add dust mainnet
1 parent ac7dc30 commit c2b7595

5 files changed

Lines changed: 54 additions & 8 deletions

File tree

packages/cli/src/defaultChains.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { redstone, garnet, pyrope, dustTestnet } from "@latticexyz/common/chains";
1+
import { redstone, garnet, pyrope, dustTestnet, dustMainnet } from "@latticexyz/common/chains";
22

3-
export const defaultChains = [redstone, garnet, pyrope, dustTestnet];
3+
export const defaultChains = [redstone, garnet, pyrope, dustTestnet, dustMainnet];
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { chainConfig } from "viem/op-stack";
2+
import { MUDChain } from "./types";
3+
import { Chain } from "viem";
4+
5+
const sourceId = 1;
6+
7+
const defaultRpcUrls = {
8+
http: ["https://rpc.dustproject.org"],
9+
webSocket: ["wss://rpc.dustproject.org"],
10+
} as const satisfies Chain["rpcUrls"]["default"];
11+
12+
export const dustMainnet = {
13+
...chainConfig,
14+
name: "DUST Mainnet",
15+
testnet: false,
16+
id: 55378,
17+
sourceId,
18+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
19+
rpcUrls: {
20+
default: defaultRpcUrls,
21+
bundler: defaultRpcUrls,
22+
},
23+
contracts: {
24+
...chainConfig.contracts,
25+
l1StandardBridge: {
26+
[sourceId]: {
27+
address: "0x74dc019e8ea61aca7e9136ac6d97047201776517",
28+
},
29+
},
30+
quarryPaymaster: {
31+
address: "0x0287Ec2e0750D09b34F4CF1b5Ac0Ea08d3dD19c1",
32+
},
33+
},
34+
blockExplorers: {
35+
default: {
36+
name: "Blockscout",
37+
url: "https://explorer.dustproject.org/",
38+
},
39+
// worldsExplorer: {
40+
// name: "MUD Worlds Explorer",
41+
// url: "https://explorer.mud.dev/pyrope/worlds",
42+
// },
43+
},
44+
indexerUrl: "https://indexer.alpha.dustproject.org/",
45+
} as const satisfies MUDChain;

packages/common/src/chains/dust-testnet.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Chain } from "viem";
55
const sourceId = 11155111;
66

77
const defaultRpcUrls = {
8-
http: ["https://rpc-dust-testnet-0.t.conduit.xyz"],
9-
webSocket: ["wss://rpc-dust-testnet-0.t.conduit.xyz"],
8+
http: ["https://rpc.testnet.dustproject.org"],
9+
webSocket: ["wss://rpc.testnet.dustproject.org"],
1010
} as const satisfies Chain["rpcUrls"]["default"];
1111

1212
export const dustTestnet = {
@@ -34,12 +34,12 @@ export const dustTestnet = {
3434
blockExplorers: {
3535
default: {
3636
name: "Blockscout",
37-
url: "https://explorer-dust-testnet-0.t.conduit.xyz/",
37+
url: "https://explorer.testnet.dustproject.org/",
3838
},
3939
// worldsExplorer: {
4040
// name: "MUD Worlds Explorer",
4141
// url: "https://explorer.mud.dev/pyrope/worlds",
4242
// },
4343
},
44-
indexerUrl: "http://51.91.235.181:13690",
44+
indexerUrl: "https://indexer.testnet.dustproject.org/",
4545
} as const satisfies MUDChain;

packages/common/src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export { redstone } from "./redstone";
44
export { garnet } from "./garnet";
55
export { pyrope } from "./pyrope";
66
export { dustTestnet } from "./dust-testnet";
7+
export { dustMainnet } from "./dust-mainnet";

packages/explorer/src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { anvil } from "viem/chains";
2-
import { dustTestnet, garnet, pyrope, redstone } from "@latticexyz/common/chains";
2+
import { dustMainnet, dustTestnet, garnet, pyrope, redstone } from "@latticexyz/common/chains";
33

44
export const internalNamespaces = ["world", "store", "metadata", "puppet", "erc20-puppet", "erc721-puppet"];
55

6-
export const supportedChains = { anvil, redstone, garnet, pyrope, dustTestnet } as const;
6+
export const supportedChains = { anvil, redstone, garnet, pyrope, dustTestnet, dustMainnet } as const;
77
export type supportedChains = typeof supportedChains;
88

99
export type supportedChainName = keyof supportedChains;

0 commit comments

Comments
 (0)