-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Base/B3 Sepolia Testnets. (#1269)
- Loading branch information
1 parent
70a4868
commit f4a2cb0
Showing
9 changed files
with
145 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { foundry, mainnet, sepolia } from "viem/chains"; | ||
import { b3Sepolia } from "src/network/b3Sepolia"; | ||
import { baseSepolia, foundry, mainnet, sepolia } from "viem/chains"; | ||
|
||
export const supportedChainIds = [ | ||
42069, // cloud chain | ||
foundry.id, | ||
mainnet.id, | ||
sepolia.id, | ||
baseSepolia.id, | ||
b3Sepolia.id, | ||
] as const; | ||
|
||
export type SupportedChainId = (typeof supportedChainIds)[number]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { defineChain } from "viem"; | ||
import { chainConfig } from "viem/op-stack"; | ||
|
||
const sourceId = 11155111; | ||
export const b3Sepolia = defineChain({ | ||
...chainConfig, | ||
id: 1993, | ||
network: "b3-sepolia", | ||
name: "B3 Sepolia", | ||
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ["https://b3sepolia-rpc.publicnode.com"], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: "Sepolia B3 Explorer", | ||
url: "https://sepolia.explorer.b3.fun/", | ||
apiUrl: "https://sepolia-explorer.b3.fun/api/v2/", | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
}, | ||
testnet: true, | ||
sourceId, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import { Chain } from "viem"; | ||
import { defineChain } from "viem"; | ||
|
||
export const cloudChain: Chain = { | ||
export const cloudChain = defineChain({ | ||
id: +(process.env.CLOUDCHAIN_CHAIN_ID as string), | ||
name: "☁️ \u00A0 Chain", | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: "Ether", | ||
symbol: "ETH", | ||
}, | ||
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, | ||
rpcUrls: { | ||
public: { http: [process.env.CLOUDCHAIN_NODE_RPC_URL as string] }, | ||
default: { http: [process.env.CLOUDCHAIN_NODE_RPC_URL as string] }, | ||
}, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters