Skip to content

Commit b6d65cf

Browse files
committed
[SDK] Feature: Add Mode chain definition (#5982)
--- title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" --- If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new blockchain chain called `mode` to the `thirdweb` package, enhancing the available options for developers. ### Detailed summary - Added `mode` as a predefined chain in `packages/thirdweb/src/chains/chain-definitions/mode.ts`. - Exported `mode` from `packages/thirdweb/src/exports/chains.ts`. - Defined `mode` with properties such as `id`, `name`, `nativeCurrency`, and `blockExplorers`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent a92617f commit b6d65cf

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.changeset/witty-bugs-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Added `mode` as a predefined chain
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const mode = /* @__PURE__ */ defineChain({
7+
id: 919,
8+
name: "Mode",
9+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
10+
blockExplorers: [
11+
{
12+
name: "Modescout",
13+
url: "https://explorer.mode.network/",
14+
},
15+
],
16+
});

packages/thirdweb/src/exports/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ export { celoAlfajoresTestnet } from "../chains/chain-definitions/celo-alfajores
7777
export { fraxtalTestnet } from "../chains/chain-definitions/fraxtal-testnet.js";
7878
export { metalL2Testnet } from "../chains/chain-definitions/metal-l2-testnet.js";
7979
export { modeTestnet } from "../chains/chain-definitions/mode-testnet.js";
80+
export { mode } from "../chains/chain-definitions/mode.js";
8081
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";

0 commit comments

Comments
 (0)