@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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +933 -882
- package/dist/index.d.ts +933 -882
- package/dist/index.js +55 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/constants/chain-config.ts +54 -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,32 @@ 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
|
+
import_chains.cronos,
|
|
362
|
+
import_chains.memecore,
|
|
363
|
+
tonTestNet,
|
|
364
|
+
tonMainNet,
|
|
365
|
+
signBrBTestnet,
|
|
366
|
+
import_chains.sonic,
|
|
367
|
+
import_chains.xLayer,
|
|
368
|
+
hyperEVM,
|
|
369
|
+
import_chains.sepolia,
|
|
370
|
+
import_chains.baseSepolia,
|
|
371
|
+
import_chains.zetachainAthensTestnet,
|
|
372
|
+
import_chains.berachainTestnet,
|
|
373
|
+
import_chains.polygonMumbai,
|
|
374
|
+
import_chains.polygonAmoy,
|
|
375
|
+
mevmDevNet,
|
|
376
|
+
import_chains.megaethTestnet,
|
|
377
|
+
import_chains.monadTestnet
|
|
378
|
+
];
|
|
353
379
|
var ChainConfig = {
|
|
354
380
|
[import_chains.mainnet.id]: {
|
|
355
381
|
contractAddress: "0x0993Dd5384BcD116A3543889BC6ffA6C98948631",
|
|
@@ -363,13 +389,25 @@ var ChainConfig = {
|
|
|
363
389
|
contractAddress: "0x3d1abcD56d53f7C8b04A753C6AF397903DC0f0F2",
|
|
364
390
|
rpcUrl: "https://base-mainnet.g.alchemy.com/v2/udrqNPSB6i5n5L6QSM31Ng72h_hFOrVT"
|
|
365
391
|
},
|
|
392
|
+
[import_chains.monad.id]: {
|
|
393
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
394
|
+
rpcUrl: import_chains.monad.rpcUrls.default.http[0]
|
|
395
|
+
},
|
|
396
|
+
[import_chains.cronos.id]: {
|
|
397
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
398
|
+
rpcUrl: import_chains.cronos.rpcUrls.default.http[0]
|
|
399
|
+
},
|
|
400
|
+
[import_chains.memecore.id]: {
|
|
401
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
402
|
+
rpcUrl: import_chains.memecore.rpcUrls.default.http[0]
|
|
403
|
+
},
|
|
366
404
|
[import_chains.cyber.id]: {
|
|
367
405
|
contractAddress: "0x7915dA247674E430b2a4Dcf01e4471f709428Bc0",
|
|
368
406
|
rpcUrl: import_chains.cyber.rpcUrls.default.http[0]
|
|
369
407
|
},
|
|
370
408
|
[import_chains.sepolia.id]: {
|
|
371
409
|
contractAddress: "0xf3f5243B35376c6dea04169983A8c853c8BE6d69",
|
|
372
|
-
rpcUrl: "https://eth-sepolia.
|
|
410
|
+
rpcUrl: "https://eth-sepolia.g.alchemy.com/v2/1tmk0FrhwTJHXh0XIyae7_SXw1lDCjgs"
|
|
373
411
|
},
|
|
374
412
|
[import_chains.baseSepolia.id]: {
|
|
375
413
|
contractAddress: "0x66c9fe5c76672B06Bf497eFfdaAfDf897D1e68d8",
|
|
@@ -395,6 +433,10 @@ var ChainConfig = {
|
|
|
395
433
|
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
396
434
|
rpcUrl: import_chains.megaethTestnet.rpcUrls.default.http[0]
|
|
397
435
|
},
|
|
436
|
+
[import_chains.monadTestnet.id]: {
|
|
437
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
438
|
+
rpcUrl: import_chains.monadTestnet.rpcUrls.default.http[0]
|
|
439
|
+
},
|
|
398
440
|
[import_chains.berachainTestnet.id]: {
|
|
399
441
|
contractAddress: "",
|
|
400
442
|
rpcUrl: "",
|
|
@@ -424,7 +466,7 @@ var ChainConfig = {
|
|
|
424
466
|
rpcUrl: import_chains.sonic.rpcUrls.default.http[0]
|
|
425
467
|
},
|
|
426
468
|
[import_chains.xLayer.id]: {
|
|
427
|
-
contractAddress: "
|
|
469
|
+
contractAddress: "0xa6a2d42e16a690e03bde181319fdd085880f2605",
|
|
428
470
|
rpcUrl: "https://xlayerrpc.okx.com"
|
|
429
471
|
},
|
|
430
472
|
[import_sdk2.CHAIN.TESTNET]: {
|
|
@@ -463,28 +505,6 @@ var ChainConfig = {
|
|
|
463
505
|
rpcUrl: aptosTestNet.rpcUrls.default.http[0]
|
|
464
506
|
}
|
|
465
507
|
};
|
|
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
508
|
|
|
489
509
|
// src/constants/index.ts
|
|
490
510
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
@@ -4076,6 +4096,9 @@ async function retry(fn, options) {
|
|
|
4076
4096
|
throw lastError;
|
|
4077
4097
|
}
|
|
4078
4098
|
var isMobile = () => {
|
|
4099
|
+
if (typeof window === "undefined") {
|
|
4100
|
+
return false;
|
|
4101
|
+
}
|
|
4079
4102
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
4080
4103
|
};
|
|
4081
4104
|
var cleanUrlParams = (paramsToRemove) => {
|
|
@@ -10666,9 +10689,14 @@ var getJettonInfo = async (data, baseURL) => {
|
|
|
10666
10689
|
const client = createApiClient(baseURL);
|
|
10667
10690
|
return client.get(`/airdrop-open/jetton/${data.address}?isTestnet=${data.isTestnet}`);
|
|
10668
10691
|
};
|
|
10669
|
-
var getSidHeader = (projectId) =>
|
|
10670
|
-
|
|
10671
|
-
|
|
10692
|
+
var getSidHeader = (projectId) => {
|
|
10693
|
+
if (typeof window === "undefined") {
|
|
10694
|
+
throw new Error("getSidHeader must be called in a browser environment");
|
|
10695
|
+
}
|
|
10696
|
+
return {
|
|
10697
|
+
sid: window.localStorage.getItem(`sid_${projectId}`) || ""
|
|
10698
|
+
};
|
|
10699
|
+
};
|
|
10672
10700
|
var connectTwitter = async (data, baseURL) => {
|
|
10673
10701
|
const client = createApiClient(baseURL);
|
|
10674
10702
|
return client.post("/airdrop-open/connect-twitter", data, {
|