@sign-global/tokentable-core 1.11.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 +12 -0
- package/dist/index.d.mts +873 -911
- package/dist/index.d.ts +873 -911
- package/dist/index.js +51 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/constants/chain-config.ts +42 -27
- package/src/constants/network.ts +6 -1
- 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
|
@@ -340,11 +340,40 @@ var hyperEVM = (0, import_viem.defineChain)({
|
|
|
340
340
|
url: "https://hyperevmscan.io/"
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
|
-
|
|
343
|
+
contracts: {
|
|
344
|
+
multicall3: {
|
|
345
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
346
|
+
blockCreated: 13051
|
|
347
|
+
}
|
|
348
|
+
}
|
|
344
349
|
});
|
|
345
350
|
|
|
346
351
|
// src/constants/chain-config.ts
|
|
347
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
|
+
];
|
|
348
377
|
var ChainConfig = {
|
|
349
378
|
[import_chains.mainnet.id]: {
|
|
350
379
|
contractAddress: "0x0993Dd5384BcD116A3543889BC6ffA6C98948631",
|
|
@@ -358,13 +387,17 @@ var ChainConfig = {
|
|
|
358
387
|
contractAddress: "0x3d1abcD56d53f7C8b04A753C6AF397903DC0f0F2",
|
|
359
388
|
rpcUrl: "https://base-mainnet.g.alchemy.com/v2/udrqNPSB6i5n5L6QSM31Ng72h_hFOrVT"
|
|
360
389
|
},
|
|
390
|
+
[import_chains.monad.id]: {
|
|
391
|
+
contractAddress: "",
|
|
392
|
+
rpcUrl: import_chains.monad.rpcUrls.default.http[0]
|
|
393
|
+
},
|
|
361
394
|
[import_chains.cyber.id]: {
|
|
362
395
|
contractAddress: "0x7915dA247674E430b2a4Dcf01e4471f709428Bc0",
|
|
363
396
|
rpcUrl: import_chains.cyber.rpcUrls.default.http[0]
|
|
364
397
|
},
|
|
365
398
|
[import_chains.sepolia.id]: {
|
|
366
399
|
contractAddress: "0xf3f5243B35376c6dea04169983A8c853c8BE6d69",
|
|
367
|
-
rpcUrl: "https://eth-sepolia.
|
|
400
|
+
rpcUrl: "https://eth-sepolia.g.alchemy.com/v2/1tmk0FrhwTJHXh0XIyae7_SXw1lDCjgs"
|
|
368
401
|
},
|
|
369
402
|
[import_chains.baseSepolia.id]: {
|
|
370
403
|
contractAddress: "0x66c9fe5c76672B06Bf497eFfdaAfDf897D1e68d8",
|
|
@@ -390,6 +423,10 @@ var ChainConfig = {
|
|
|
390
423
|
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
391
424
|
rpcUrl: import_chains.megaethTestnet.rpcUrls.default.http[0]
|
|
392
425
|
},
|
|
426
|
+
[import_chains.monadTestnet.id]: {
|
|
427
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
428
|
+
rpcUrl: import_chains.monadTestnet.rpcUrls.default.http[0]
|
|
429
|
+
},
|
|
393
430
|
[import_chains.berachainTestnet.id]: {
|
|
394
431
|
contractAddress: "",
|
|
395
432
|
rpcUrl: "",
|
|
@@ -419,7 +456,7 @@ var ChainConfig = {
|
|
|
419
456
|
rpcUrl: import_chains.sonic.rpcUrls.default.http[0]
|
|
420
457
|
},
|
|
421
458
|
[import_chains.xLayer.id]: {
|
|
422
|
-
contractAddress: "
|
|
459
|
+
contractAddress: "0xa6a2d42e16a690e03bde181319fdd085880f2605",
|
|
423
460
|
rpcUrl: "https://xlayerrpc.okx.com"
|
|
424
461
|
},
|
|
425
462
|
[import_sdk2.CHAIN.TESTNET]: {
|
|
@@ -458,28 +495,6 @@ var ChainConfig = {
|
|
|
458
495
|
rpcUrl: aptosTestNet.rpcUrls.default.http[0]
|
|
459
496
|
}
|
|
460
497
|
};
|
|
461
|
-
var SupportedChains = [
|
|
462
|
-
import_chains.mainnet,
|
|
463
|
-
import_chains.bsc,
|
|
464
|
-
import_chains.base,
|
|
465
|
-
import_chains.cyber,
|
|
466
|
-
import_chains.zetachain,
|
|
467
|
-
import_chains.arbitrum,
|
|
468
|
-
tonTestNet,
|
|
469
|
-
tonMainNet,
|
|
470
|
-
signBrBTestnet,
|
|
471
|
-
import_chains.sonic,
|
|
472
|
-
import_chains.xLayer,
|
|
473
|
-
hyperEVM,
|
|
474
|
-
import_chains.sepolia,
|
|
475
|
-
import_chains.baseSepolia,
|
|
476
|
-
import_chains.zetachainAthensTestnet,
|
|
477
|
-
import_chains.berachainTestnet,
|
|
478
|
-
import_chains.polygonMumbai,
|
|
479
|
-
import_chains.polygonAmoy,
|
|
480
|
-
mevmDevNet,
|
|
481
|
-
import_chains.megaethTestnet
|
|
482
|
-
];
|
|
483
498
|
|
|
484
499
|
// src/constants/index.ts
|
|
485
500
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
@@ -4071,6 +4086,9 @@ async function retry(fn, options) {
|
|
|
4071
4086
|
throw lastError;
|
|
4072
4087
|
}
|
|
4073
4088
|
var isMobile = () => {
|
|
4089
|
+
if (typeof window === "undefined") {
|
|
4090
|
+
return false;
|
|
4091
|
+
}
|
|
4074
4092
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
4075
4093
|
};
|
|
4076
4094
|
var cleanUrlParams = (paramsToRemove) => {
|
|
@@ -10661,9 +10679,14 @@ var getJettonInfo = async (data, baseURL) => {
|
|
|
10661
10679
|
const client = createApiClient(baseURL);
|
|
10662
10680
|
return client.get(`/airdrop-open/jetton/${data.address}?isTestnet=${data.isTestnet}`);
|
|
10663
10681
|
};
|
|
10664
|
-
var getSidHeader = (projectId) =>
|
|
10665
|
-
|
|
10666
|
-
|
|
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
|
+
};
|
|
10667
10690
|
var connectTwitter = async (data, baseURL) => {
|
|
10668
10691
|
const client = createApiClient(baseURL);
|
|
10669
10692
|
return client.post("/airdrop-open/connect-twitter", data, {
|