Skip to content

Commit 8ecf193

Browse files
author
jcheese1
committed
add treasure and treasure topaz
1 parent 64d7bf3 commit 8ecf193

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export async function isZkSyncChain(chain: Chain) {
2727
chain.id === 2741 ||
2828
chain.id === 240 ||
2929
chain.id === 61166 ||
30-
chain.id === 555271
30+
chain.id === 555271 ||
31+
chain.id === 61166 ||
32+
chain.id === 978658
3133
) {
3234
return true;
3335
}

0 commit comments

Comments
 (0)