Skip to content

Commit ad5422b

Browse files
committed
feat: add T-Rex testnet chain
1 parent c5f9921 commit ad5422b

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: "TREX", symbol: "TREX" },
16+
testnet: true,
17+
});

packages/thirdweb/src/exports/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export { scrollAlphaTestnet } from "../chains/chain-definitions/scroll-alpha-tes
6969
export { scrollSepoliaTestnet } from "../chains/chain-definitions/scroll-sepolia-testnet.js";
7070
export { sepolia } from "../chains/chain-definitions/sepolia.js";
7171
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";
72+
export { tRexTestnet } from "../chains/chain-definitions/t-rex-testnet.js";
7273
export { treasure } from "../chains/chain-definitions/treasure.js";
7374
export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js";
7475
export { xai } from "../chains/chain-definitions/xai.js";

0 commit comments

Comments
 (0)