@sign-global/tokentable-core 1.12.0 → 1.13.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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +863 -895
- package/dist/index.d.ts +863 -895
- package/dist/index.js +45 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/constants/chain-config.ts +42 -27
- package/src/services/airdrop/index.ts +9 -3
- package/src/utils/biz.ts +2 -2
- package/src/utils/utils.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -350,6 +350,30 @@ var hyperEVM = (0, import_viem.defineChain)({
|
|
|
350
350
|
|
|
351
351
|
// src/constants/chain-config.ts
|
|
352
352
|
var import_sdk2 = require("@tonconnect/sdk");
|
|
353
|
+
var SupportedChains = [
|
|
354
|
+
import_chains.mainnet,
|
|
355
|
+
import_chains.bsc,
|
|
356
|
+
import_chains.base,
|
|
357
|
+
import_chains.cyber,
|
|
358
|
+
import_chains.zetachain,
|
|
359
|
+
import_chains.arbitrum,
|
|
360
|
+
import_chains.monad,
|
|
361
|
+
tonTestNet,
|
|
362
|
+
tonMainNet,
|
|
363
|
+
signBrBTestnet,
|
|
364
|
+
import_chains.sonic,
|
|
365
|
+
import_chains.xLayer,
|
|
366
|
+
hyperEVM,
|
|
367
|
+
import_chains.sepolia,
|
|
368
|
+
import_chains.baseSepolia,
|
|
369
|
+
import_chains.zetachainAthensTestnet,
|
|
370
|
+
import_chains.berachainTestnet,
|
|
371
|
+
import_chains.polygonMumbai,
|
|
372
|
+
import_chains.polygonAmoy,
|
|
373
|
+
mevmDevNet,
|
|
374
|
+
import_chains.megaethTestnet,
|
|
375
|
+
import_chains.monadTestnet
|
|
376
|
+
];
|
|
353
377
|
var ChainConfig = {
|
|
354
378
|
[import_chains.mainnet.id]: {
|
|
355
379
|
contractAddress: "0x0993Dd5384BcD116A3543889BC6ffA6C98948631",
|
|
@@ -363,13 +387,17 @@ var ChainConfig = {
|
|
|
363
387
|
contractAddress: "0x3d1abcD56d53f7C8b04A753C6AF397903DC0f0F2",
|
|
364
388
|
rpcUrl: "https://base-mainnet.g.alchemy.com/v2/udrqNPSB6i5n5L6QSM31Ng72h_hFOrVT"
|
|
365
389
|
},
|
|
390
|
+
[import_chains.monad.id]: {
|
|
391
|
+
contractAddress: "",
|
|
392
|
+
rpcUrl: import_chains.monad.rpcUrls.default.http[0]
|
|
393
|
+
},
|
|
366
394
|
[import_chains.cyber.id]: {
|
|
367
395
|
contractAddress: "0x7915dA247674E430b2a4Dcf01e4471f709428Bc0",
|
|
368
396
|
rpcUrl: import_chains.cyber.rpcUrls.default.http[0]
|
|
369
397
|
},
|
|
370
398
|
[import_chains.sepolia.id]: {
|
|
371
399
|
contractAddress: "0xf3f5243B35376c6dea04169983A8c853c8BE6d69",
|
|
372
|
-
rpcUrl: "https://eth-sepolia.
|
|
400
|
+
rpcUrl: "https://eth-sepolia.g.alchemy.com/v2/1tmk0FrhwTJHXh0XIyae7_SXw1lDCjgs"
|
|
373
401
|
},
|
|
374
402
|
[import_chains.baseSepolia.id]: {
|
|
375
403
|
contractAddress: "0x66c9fe5c76672B06Bf497eFfdaAfDf897D1e68d8",
|
|
@@ -395,6 +423,10 @@ var ChainConfig = {
|
|
|
395
423
|
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
396
424
|
rpcUrl: import_chains.megaethTestnet.rpcUrls.default.http[0]
|
|
397
425
|
},
|
|
426
|
+
[import_chains.monadTestnet.id]: {
|
|
427
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
428
|
+
rpcUrl: import_chains.monadTestnet.rpcUrls.default.http[0]
|
|
429
|
+
},
|
|
398
430
|
[import_chains.berachainTestnet.id]: {
|
|
399
431
|
contractAddress: "",
|
|
400
432
|
rpcUrl: "",
|
|
@@ -424,7 +456,7 @@ var ChainConfig = {
|
|
|
424
456
|
rpcUrl: import_chains.sonic.rpcUrls.default.http[0]
|
|
425
457
|
},
|
|
426
458
|
[import_chains.xLayer.id]: {
|
|
427
|
-
contractAddress: "
|
|
459
|
+
contractAddress: "0xa6a2d42e16a690e03bde181319fdd085880f2605",
|
|
428
460
|
rpcUrl: "https://xlayerrpc.okx.com"
|
|
429
461
|
},
|
|
430
462
|
[import_sdk2.CHAIN.TESTNET]: {
|
|
@@ -463,28 +495,6 @@ var ChainConfig = {
|
|
|
463
495
|
rpcUrl: aptosTestNet.rpcUrls.default.http[0]
|
|
464
496
|
}
|
|
465
497
|
};
|
|
466
|
-
var SupportedChains = [
|
|
467
|
-
import_chains.mainnet,
|
|
468
|
-
import_chains.bsc,
|
|
469
|
-
import_chains.base,
|
|
470
|
-
import_chains.cyber,
|
|
471
|
-
import_chains.zetachain,
|
|
472
|
-
import_chains.arbitrum,
|
|
473
|
-
tonTestNet,
|
|
474
|
-
tonMainNet,
|
|
475
|
-
signBrBTestnet,
|
|
476
|
-
import_chains.sonic,
|
|
477
|
-
import_chains.xLayer,
|
|
478
|
-
hyperEVM,
|
|
479
|
-
import_chains.sepolia,
|
|
480
|
-
import_chains.baseSepolia,
|
|
481
|
-
import_chains.zetachainAthensTestnet,
|
|
482
|
-
import_chains.berachainTestnet,
|
|
483
|
-
import_chains.polygonMumbai,
|
|
484
|
-
import_chains.polygonAmoy,
|
|
485
|
-
mevmDevNet,
|
|
486
|
-
import_chains.megaethTestnet
|
|
487
|
-
];
|
|
488
498
|
|
|
489
499
|
// src/constants/index.ts
|
|
490
500
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
@@ -4076,6 +4086,9 @@ async function retry(fn, options) {
|
|
|
4076
4086
|
throw lastError;
|
|
4077
4087
|
}
|
|
4078
4088
|
var isMobile = () => {
|
|
4089
|
+
if (typeof window === "undefined") {
|
|
4090
|
+
return false;
|
|
4091
|
+
}
|
|
4079
4092
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
4080
4093
|
};
|
|
4081
4094
|
var cleanUrlParams = (paramsToRemove) => {
|
|
@@ -10666,9 +10679,14 @@ var getJettonInfo = async (data, baseURL) => {
|
|
|
10666
10679
|
const client = createApiClient(baseURL);
|
|
10667
10680
|
return client.get(`/airdrop-open/jetton/${data.address}?isTestnet=${data.isTestnet}`);
|
|
10668
10681
|
};
|
|
10669
|
-
var getSidHeader = (projectId) =>
|
|
10670
|
-
|
|
10671
|
-
|
|
10682
|
+
var getSidHeader = (projectId) => {
|
|
10683
|
+
if (typeof window === "undefined") {
|
|
10684
|
+
throw new Error("getSidHeader must be called in a browser environment");
|
|
10685
|
+
}
|
|
10686
|
+
return {
|
|
10687
|
+
sid: window.localStorage.getItem(`sid_${projectId}`) || ""
|
|
10688
|
+
};
|
|
10689
|
+
};
|
|
10672
10690
|
var connectTwitter = async (data, baseURL) => {
|
|
10673
10691
|
const client = createApiClient(baseURL);
|
|
10674
10692
|
return client.post("/airdrop-open/connect-twitter", data, {
|