From 688b2263e43156b6131bdeda8bfa38697c51fb33 Mon Sep 17 00:00:00 2001 From: Emmanuel Oaikhenan Date: Mon, 30 Jun 2025 09:28:42 +0100 Subject: [PATCH 1/3] Added Somnia Testnet. --- .changeset/fresh-words-learn.md | 5 +++++ .../chains/chain-definitions/somniaTestnet.ts | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .changeset/fresh-words-learn.md create mode 100644 packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts diff --git a/.changeset/fresh-words-learn.md b/.changeset/fresh-words-learn.md new file mode 100644 index 00000000000..33506b923fa --- /dev/null +++ b/.changeset/fresh-words-learn.md @@ -0,0 +1,5 @@ +--- +"thirdweb": major +--- + +Add Somnia Testnet diff --git a/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts b/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts new file mode 100644 index 00000000000..60ccfdcb2f6 --- /dev/null +++ b/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts @@ -0,0 +1,18 @@ +import { defineChain } from '../utils.js'; + +/** + * @chain + */ +export const somniaTestnet = /*@__PURE__*/ defineChain({ + blockExplorers: [ + { + apiUrl: 'https://shannon-explorer.somnia.network/api', + name: 'Somnia Testnet Explorer', + url: 'https://shannon-explorer.somnia.network/', + }, + ], + id: 50312, + name: 'Somnia Testnet', + nativeCurrency: { decimals: 18, name: 'Somnia Testnet Token', symbol: 'STT' }, + testnet: true, +}); From 836e068ad7163926cd51a5afd2d38ad7f8749666 Mon Sep 17 00:00:00 2001 From: Emmanuel Oaikhenan Date: Mon, 30 Jun 2025 09:30:28 +0100 Subject: [PATCH 2/3] Update changeset to minor. --- .changeset/fresh-words-learn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/fresh-words-learn.md b/.changeset/fresh-words-learn.md index 33506b923fa..6af64eaf57b 100644 --- a/.changeset/fresh-words-learn.md +++ b/.changeset/fresh-words-learn.md @@ -1,5 +1,5 @@ --- -"thirdweb": major +'thirdweb': minor --- Add Somnia Testnet From 142fa164b6e10bb30c405fdcd51d792fcf0135b3 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Wed, 2 Jul 2025 08:07:10 +1200 Subject: [PATCH 3/3] export, formatting and changeset --- .changeset/fresh-words-learn.md | 2 +- .../src/chains/chain-definitions/somniaTestnet.ts | 12 ++++++------ packages/thirdweb/src/exports/chains.ts | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.changeset/fresh-words-learn.md b/.changeset/fresh-words-learn.md index 6af64eaf57b..8a5d3c186c3 100644 --- a/.changeset/fresh-words-learn.md +++ b/.changeset/fresh-words-learn.md @@ -1,5 +1,5 @@ --- -'thirdweb': minor +"thirdweb": patch --- Add Somnia Testnet diff --git a/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts b/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts index 60ccfdcb2f6..d3b6c09e076 100644 --- a/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts +++ b/packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts @@ -1,4 +1,4 @@ -import { defineChain } from '../utils.js'; +import { defineChain } from "../utils.js"; /** * @chain @@ -6,13 +6,13 @@ import { defineChain } from '../utils.js'; export const somniaTestnet = /*@__PURE__*/ defineChain({ blockExplorers: [ { - apiUrl: 'https://shannon-explorer.somnia.network/api', - name: 'Somnia Testnet Explorer', - url: 'https://shannon-explorer.somnia.network/', + apiUrl: "https://shannon-explorer.somnia.network/api", + name: "Somnia Testnet Explorer", + url: "https://shannon-explorer.somnia.network/", }, ], id: 50312, - name: 'Somnia Testnet', - nativeCurrency: { decimals: 18, name: 'Somnia Testnet Token', symbol: 'STT' }, + name: "Somnia Testnet", + nativeCurrency: { decimals: 18, name: "Somnia Testnet Token", symbol: "STT" }, testnet: true, }); diff --git a/packages/thirdweb/src/exports/chains.ts b/packages/thirdweb/src/exports/chains.ts index 8a73ef5962b..4ff5fcb0ea2 100644 --- a/packages/thirdweb/src/exports/chains.ts +++ b/packages/thirdweb/src/exports/chains.ts @@ -68,6 +68,7 @@ export { scroll } from "../chains/chain-definitions/scroll.js"; export { scrollAlphaTestnet } from "../chains/chain-definitions/scroll-alpha-testnet.js"; export { scrollSepoliaTestnet } from "../chains/chain-definitions/scroll-sepolia-testnet.js"; export { sepolia } from "../chains/chain-definitions/sepolia.js"; +export { somniaTestnet } from "../chains/chain-definitions/somniaTestnet.js"; export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js"; export { treasure } from "../chains/chain-definitions/treasure.js"; export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js"; @@ -78,6 +79,7 @@ export { zkSync } from "../chains/chain-definitions/zksync.js"; export { zkSyncSepolia } from "../chains/chain-definitions/zksync-sepolia.js"; export { zora } from "../chains/chain-definitions/zora.js"; export { zoraSepolia } from "../chains/chain-definitions/zora-sepolia.js"; + export type { Chain, ChainMetadata, ChainOptions } from "../chains/types.js"; // define chain, chainMetadata export {