Skip to content

Commit 66bbedb

Browse files
jcjoaquim-verges
andauthored
[SDK] Feature: add treasure and treasure topaz (#6191)
Co-authored-by: Joaquim Verges <[email protected]>
1 parent 2fbf105 commit 66bbedb

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

.changeset/many-cameras-cover.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 treasure and treasureTopaz chain definitions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const treasure = /* @__PURE__ */ defineChain({
7+
id: 61166,
8+
name: "Treasure",
9+
nativeCurrency: { name: "MAGIC", symbol: "MAGIC", decimals: 18 },
10+
blockExplorers: [
11+
{
12+
name: "Treasure Block Explorer",
13+
url: "https://treasurescan.io",
14+
},
15+
],
16+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const treasureTopaz = /* @__PURE__ */ defineChain({
7+
id: 978658,
8+
name: "Treasure Topaz",
9+
nativeCurrency: { name: "MAGIC", symbol: "MAGIC", decimals: 18 },
10+
blockExplorers: [
11+
{
12+
name: "Treasure Topaz Block Explorer",
13+
url: "https://topaz.treasurescan.io",
14+
},
15+
],
16+
});

packages/thirdweb/src/exports/chains.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ export { metalL2Testnet } from "../chains/chain-definitions/metal-l2-testnet.js"
8080
export { modeTestnet } from "../chains/chain-definitions/mode-testnet.js";
8181
export { mode } from "../chains/chain-definitions/mode.js";
8282
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";
83+
export { treasure } from "../chains/chain-definitions/treasure.js";
84+
export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js";

packages/thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export async function isZkSyncChain(chain: Chain) {
2626
chain.id === 4457845 ||
2727
chain.id === 2741 ||
2828
chain.id === 240 ||
29-
chain.id === 61166 ||
30-
chain.id === 555271
29+
chain.id === 555271 ||
30+
chain.id === 61166
3131
) {
3232
return true;
3333
}

0 commit comments

Comments
 (0)