diff --git a/.changeset/fresh-words-learn.md b/.changeset/fresh-words-learn.md new file mode 100644 index 00000000000..8a5d3c186c3 --- /dev/null +++ b/.changeset/fresh-words-learn.md @@ -0,0 +1,5 @@ +--- +"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 new file mode 100644 index 00000000000..d3b6c09e076 --- /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, +}); 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 {