Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/many-cameras-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Add treasure and treasureTopaz chain definitions
16 changes: 16 additions & 0 deletions packages/thirdweb/src/chains/chain-definitions/treasure.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineChain } from "../utils.js";

/**
* @chain
*/
export const treasure = /* @__PURE__ */ defineChain({
id: 61166,
name: "Treasure",
nativeCurrency: { name: "MAGIC", symbol: "MAGIC", decimals: 18 },
blockExplorers: [
{
name: 'Treasure Block Explorer',
url: 'https://treasurescan.io',
},
],
});
16 changes: 16 additions & 0 deletions packages/thirdweb/src/chains/chain-definitions/treasureTopaz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineChain } from "../utils.js";

/**
* @chain
*/
export const treasureTopaz = /* @__PURE__ */ defineChain({
id: 978658,
name: "Treasure Topaz",
nativeCurrency: { name: "MAGIC", symbol: "MAGIC", decimals: 18 },
blockExplorers: [
{
name: 'Treasure Topaz Block Explorer',
url: 'https://topaz.treasurescan.io',
},
],
});
2 changes: 2 additions & 0 deletions packages/thirdweb/src/exports/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ export { metalL2Testnet } from "../chains/chain-definitions/metal-l2-testnet.js"
export { modeTestnet } from "../chains/chain-definitions/mode-testnet.js";
export { mode } from "../chains/chain-definitions/mode.js";
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";
export { treasure } from "../chains/chain-definitions/treasure.js";
export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js";
4 changes: 2 additions & 2 deletions packages/thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export async function isZkSyncChain(chain: Chain) {
chain.id === 4457845 ||
chain.id === 2741 ||
chain.id === 240 ||
chain.id === 61166 ||
chain.id === 555271
chain.id === 555271 ||
chain.id === 61166
) {
return true;
}
Expand Down
Loading