Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump wevm packages #3178

Merged
merged 7 commits into from
Sep 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update local chain configs
holic committed Sep 12, 2024
commit eefa4da76dc1c3a8f5a3b56eda0e7c29db8c0fcb
47 changes: 2 additions & 45 deletions packages/common/src/chains/garnet.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,8 @@
import { chainConfig } from "viem/op-stack";
import { garnet as garnetConfig } from "viem/chains";
import type { MUDChain } from "./types";

const sourceId = 17000; // Holesky

export const garnet = {
...chainConfig,
id: 17069,
sourceId,
name: "Garnet Holesky",
testnet: true,
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: {
http: ["https://rpc.garnetchain.com"],
webSocket: ["wss://rpc.garnetchain.com"],
},
},
blockExplorers: {
default: {
name: "Blockscout",
url: "https://explorer.garnetchain.com",
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11",
},
portal: {
[sourceId]: {
address: "0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",
blockCreated: 1274684,
},
},
l2OutputOracle: {
[sourceId]: {
address: "0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",
blockCreated: 1274684,
},
},
l1StandardBridge: {
[sourceId]: {
address: "0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",
blockCreated: 1274684,
},
},
},
...garnetConfig,
iconUrls: ["https://redstone.xyz/chain-icons/garnet.png"],
indexerUrl: "https://indexer.mud.garnetchain.com",
} as const satisfies MUDChain;
46 changes: 2 additions & 44 deletions packages/common/src/chains/redstone.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,8 @@
import { chainConfig } from "viem/op-stack";
import { redstone as redstoneConfig } from "viem/chains";
import type { MUDChain } from "./types";

const sourceId = 1; // Ethereum mainnet

export const redstone = {
...chainConfig,
id: 690,
sourceId,
name: "Redstone",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: {
http: ["https://rpc.redstonechain.com"],
webSocket: ["wss://rpc.redstonechain.com"],
},
},
blockExplorers: {
default: {
name: "Blockscout",
url: "https://explorer.redstone.xyz",
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11",
},
portal: {
[sourceId]: {
address: "0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",
blockCreated: 19578329,
},
},
l2OutputOracle: {
[sourceId]: {
address: "0xa426A052f657AEEefc298b3B5c35a470e4739d69",
blockCreated: 19578337,
},
},
l1StandardBridge: {
[sourceId]: {
address: "0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",
blockCreated: 19578331,
},
},
},
...redstoneConfig,
iconUrls: ["https://redstone.xyz/chain-icons/redstone.png"],
indexerUrl: "https://indexer.mud.redstonechain.com",
} as const satisfies MUDChain;