@sign-global/tokentable-core 1.12.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -14,7 +14,11 @@ import {
14
14
  arbitrum,
15
15
  sonic,
16
16
  xLayer,
17
- megaethTestnet
17
+ megaethTestnet,
18
+ monadTestnet,
19
+ monad,
20
+ memecore,
21
+ cronos
18
22
  } from "viem/chains";
19
23
 
20
24
  // src/constants/network.ts
@@ -267,6 +271,32 @@ var hyperEVM = defineChain({
267
271
 
268
272
  // src/constants/chain-config.ts
269
273
  import { CHAIN as CHAIN2 } from "@tonconnect/sdk";
274
+ var SupportedChains = [
275
+ mainnet,
276
+ bsc,
277
+ base,
278
+ cyber,
279
+ zetachain,
280
+ arbitrum,
281
+ monad,
282
+ cronos,
283
+ memecore,
284
+ tonTestNet,
285
+ tonMainNet,
286
+ signBrBTestnet,
287
+ sonic,
288
+ xLayer,
289
+ hyperEVM,
290
+ sepolia,
291
+ baseSepolia,
292
+ zetachainAthensTestnet,
293
+ berachainTestnet,
294
+ polygonMumbai,
295
+ polygonAmoy,
296
+ mevmDevNet,
297
+ megaethTestnet,
298
+ monadTestnet
299
+ ];
270
300
  var ChainConfig = {
271
301
  [mainnet.id]: {
272
302
  contractAddress: "0x0993Dd5384BcD116A3543889BC6ffA6C98948631",
@@ -280,13 +310,25 @@ var ChainConfig = {
280
310
  contractAddress: "0x3d1abcD56d53f7C8b04A753C6AF397903DC0f0F2",
281
311
  rpcUrl: "https://base-mainnet.g.alchemy.com/v2/udrqNPSB6i5n5L6QSM31Ng72h_hFOrVT"
282
312
  },
313
+ [monad.id]: {
314
+ contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
315
+ rpcUrl: monad.rpcUrls.default.http[0]
316
+ },
317
+ [cronos.id]: {
318
+ contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
319
+ rpcUrl: cronos.rpcUrls.default.http[0]
320
+ },
321
+ [memecore.id]: {
322
+ contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
323
+ rpcUrl: memecore.rpcUrls.default.http[0]
324
+ },
283
325
  [cyber.id]: {
284
326
  contractAddress: "0x7915dA247674E430b2a4Dcf01e4471f709428Bc0",
285
327
  rpcUrl: cyber.rpcUrls.default.http[0]
286
328
  },
287
329
  [sepolia.id]: {
288
330
  contractAddress: "0xf3f5243B35376c6dea04169983A8c853c8BE6d69",
289
- rpcUrl: "https://eth-sepolia.public.blastapi.io"
331
+ rpcUrl: "https://eth-sepolia.g.alchemy.com/v2/1tmk0FrhwTJHXh0XIyae7_SXw1lDCjgs"
290
332
  },
291
333
  [baseSepolia.id]: {
292
334
  contractAddress: "0x66c9fe5c76672B06Bf497eFfdaAfDf897D1e68d8",
@@ -312,6 +354,10 @@ var ChainConfig = {
312
354
  contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
313
355
  rpcUrl: megaethTestnet.rpcUrls.default.http[0]
314
356
  },
357
+ [monadTestnet.id]: {
358
+ contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
359
+ rpcUrl: monadTestnet.rpcUrls.default.http[0]
360
+ },
315
361
  [berachainTestnet.id]: {
316
362
  contractAddress: "",
317
363
  rpcUrl: "",
@@ -341,7 +387,7 @@ var ChainConfig = {
341
387
  rpcUrl: sonic.rpcUrls.default.http[0]
342
388
  },
343
389
  [xLayer.id]: {
344
- contractAddress: "0x231F598D8B82E2435b11e78960FE4d84F8d63E2C",
390
+ contractAddress: "0xa6a2d42e16a690e03bde181319fdd085880f2605",
345
391
  rpcUrl: "https://xlayerrpc.okx.com"
346
392
  },
347
393
  [CHAIN2.TESTNET]: {
@@ -380,28 +426,6 @@ var ChainConfig = {
380
426
  rpcUrl: aptosTestNet.rpcUrls.default.http[0]
381
427
  }
382
428
  };
383
- var SupportedChains = [
384
- mainnet,
385
- bsc,
386
- base,
387
- cyber,
388
- zetachain,
389
- arbitrum,
390
- tonTestNet,
391
- tonMainNet,
392
- signBrBTestnet,
393
- sonic,
394
- xLayer,
395
- hyperEVM,
396
- sepolia,
397
- baseSepolia,
398
- zetachainAthensTestnet,
399
- berachainTestnet,
400
- polygonMumbai,
401
- polygonAmoy,
402
- mevmDevNet,
403
- megaethTestnet
404
- ];
405
429
 
406
430
  // src/constants/index.ts
407
431
  var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
@@ -4008,6 +4032,9 @@ async function retry(fn, options) {
4008
4032
  throw lastError;
4009
4033
  }
4010
4034
  var isMobile = () => {
4035
+ if (typeof window === "undefined") {
4036
+ return false;
4037
+ }
4011
4038
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
4012
4039
  };
4013
4040
  var cleanUrlParams = (paramsToRemove) => {
@@ -10598,9 +10625,14 @@ var getJettonInfo = async (data, baseURL) => {
10598
10625
  const client = createApiClient(baseURL);
10599
10626
  return client.get(`/airdrop-open/jetton/${data.address}?isTestnet=${data.isTestnet}`);
10600
10627
  };
10601
- var getSidHeader = (projectId) => ({
10602
- sid: window.localStorage.getItem(`sid_${projectId}`) || ""
10603
- });
10628
+ var getSidHeader = (projectId) => {
10629
+ if (typeof window === "undefined") {
10630
+ throw new Error("getSidHeader must be called in a browser environment");
10631
+ }
10632
+ return {
10633
+ sid: window.localStorage.getItem(`sid_${projectId}`) || ""
10634
+ };
10635
+ };
10604
10636
  var connectTwitter = async (data, baseURL) => {
10605
10637
  const client = createApiClient(baseURL);
10606
10638
  return client.post("/airdrop-open/connect-twitter", data, {