Skip to content

Commit 415ad90

Browse files
authored
feat: add T-Rex testnet chain (#7540)
1 parent afcb7bb commit 415ad90

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.changeset/blue-planets-give.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 trextestnet to chains package
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const tRexTestnet = /*@__PURE__*/ defineChain({
7+
blockExplorers: [
8+
{
9+
name: "T-Rex Testnet Block Explorer",
10+
url: "https://testnet.trex.xyz/",
11+
},
12+
],
13+
id: 1962,
14+
name: "T-Rex Testnet",
15+
nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" },
16+
testnet: true,
17+
});

packages/thirdweb/src/exports/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export { scrollSepoliaTestnet } from "../chains/chain-definitions/scroll-sepolia
7272
export { sepolia } from "../chains/chain-definitions/sepolia.js";
7373
export { somniaTestnet } from "../chains/chain-definitions/somniaTestnet.js";
7474
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";
75+
export { tRexTestnet } from "../chains/chain-definitions/t-rex-testnet.js";
7576
export { treasure } from "../chains/chain-definitions/treasure.js";
7677
export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js";
7778
export { xai } from "../chains/chain-definitions/xai.js";

0 commit comments

Comments
 (0)