Skip to content

Commit 85c4ef1

Browse files
Added Somnia Testnet (#7474)
Co-authored-by: Joaquim Verges <joaquim.verges@gmail.com>
1 parent 50e01ce commit 85c4ef1

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.changeset/fresh-words-learn.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+
Add Somnia Testnet
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const somniaTestnet = /*@__PURE__*/ defineChain({
7+
blockExplorers: [
8+
{
9+
apiUrl: "https://shannon-explorer.somnia.network/api",
10+
name: "Somnia Testnet Explorer",
11+
url: "https://shannon-explorer.somnia.network/",
12+
},
13+
],
14+
id: 50312,
15+
name: "Somnia Testnet",
16+
nativeCurrency: { decimals: 18, name: "Somnia Testnet Token", symbol: "STT" },
17+
testnet: true,
18+
});

packages/thirdweb/src/exports/chains.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export { scroll } from "../chains/chain-definitions/scroll.js";
6868
export { scrollAlphaTestnet } from "../chains/chain-definitions/scroll-alpha-testnet.js";
6969
export { scrollSepoliaTestnet } from "../chains/chain-definitions/scroll-sepolia-testnet.js";
7070
export { sepolia } from "../chains/chain-definitions/sepolia.js";
71+
export { somniaTestnet } from "../chains/chain-definitions/somniaTestnet.js";
7172
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";
7273
export { treasure } from "../chains/chain-definitions/treasure.js";
7374
export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js";
@@ -78,6 +79,7 @@ export { zkSync } from "../chains/chain-definitions/zksync.js";
7879
export { zkSyncSepolia } from "../chains/chain-definitions/zksync-sepolia.js";
7980
export { zora } from "../chains/chain-definitions/zora.js";
8081
export { zoraSepolia } from "../chains/chain-definitions/zora-sepolia.js";
82+
8183
export type { Chain, ChainMetadata, ChainOptions } from "../chains/types.js";
8284
// define chain, chainMetadata
8385
export {

0 commit comments

Comments
 (0)