@sign-global/tokentable-core 1.10.0 → 1.12.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @sign-global/tokentable-core
2
2
 
3
+ ## 1.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - refactor: update chain configurations
8
+
9
+ ## 1.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - feat: add HyperEVM network support
14
+
3
15
  ## 1.10.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -278,6 +278,41 @@ declare const aptosTestNet: {
278
278
  };
279
279
  testnet: boolean;
280
280
  };
281
+ declare const hyperEVM: {
282
+ blockExplorers: {
283
+ readonly default: {
284
+ readonly name: "HyperEVMScan";
285
+ readonly url: "https://hyperevmscan.io/";
286
+ };
287
+ };
288
+ blockTime?: number | undefined | undefined;
289
+ contracts: {
290
+ readonly multicall3: {
291
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
292
+ readonly blockCreated: 13051;
293
+ };
294
+ };
295
+ ensTlds?: readonly string[] | undefined;
296
+ id: 999;
297
+ name: "HyperEVM";
298
+ nativeCurrency: {
299
+ readonly name: "HYPE";
300
+ readonly symbol: "HYPE";
301
+ readonly decimals: 18;
302
+ };
303
+ experimental_preconfirmationTime?: number | undefined | undefined;
304
+ rpcUrls: {
305
+ readonly default: {
306
+ readonly http: readonly ["https://rpc.hyperliquid.xyz/evm"];
307
+ };
308
+ };
309
+ sourceId?: number | undefined | undefined;
310
+ testnet?: boolean | undefined | undefined;
311
+ custom?: Record<string, unknown> | undefined;
312
+ fees?: viem.ChainFees<undefined> | undefined;
313
+ formatters?: undefined;
314
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
315
+ };
281
316
 
282
317
  declare const ChainConfig: {
283
318
  [solanaDevNet.id]: {
@@ -340,6 +375,10 @@ declare const ChainConfig: {
340
375
  contractAddress: string;
341
376
  rpcUrl: string;
342
377
  };
378
+ 999: {
379
+ contractAddress: string;
380
+ rpcUrl: "https://rpc.hyperliquid.xyz/evm";
381
+ };
343
382
  6342: {
344
383
  contractAddress: string;
345
384
  rpcUrl: "https://carrot.megaeth.com/rpc";
@@ -496,6 +535,40 @@ declare const SupportedChains: ({
496
535
  formatters?: undefined;
497
536
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
498
537
  readonly network: "Sign Brb Testnet";
538
+ } | {
539
+ blockExplorers: {
540
+ readonly default: {
541
+ readonly name: "HyperEVMScan";
542
+ readonly url: "https://hyperevmscan.io/";
543
+ };
544
+ };
545
+ blockTime?: number | undefined | undefined;
546
+ contracts: {
547
+ readonly multicall3: {
548
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
549
+ readonly blockCreated: 13051;
550
+ };
551
+ };
552
+ ensTlds?: readonly string[] | undefined;
553
+ id: 999;
554
+ name: "HyperEVM";
555
+ nativeCurrency: {
556
+ readonly name: "HYPE";
557
+ readonly symbol: "HYPE";
558
+ readonly decimals: 18;
559
+ };
560
+ experimental_preconfirmationTime?: number | undefined | undefined;
561
+ rpcUrls: {
562
+ readonly default: {
563
+ readonly http: readonly ["https://rpc.hyperliquid.xyz/evm"];
564
+ };
565
+ };
566
+ sourceId?: number | undefined | undefined;
567
+ testnet?: boolean | undefined | undefined;
568
+ custom?: Record<string, unknown> | undefined;
569
+ fees?: viem.ChainFees<undefined> | undefined;
570
+ formatters?: undefined;
571
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
499
572
  } | {
500
573
  blockExplorers: {
501
574
  readonly default: {
@@ -2415,4 +2488,4 @@ declare const getAvailableClaimAmountForSignature: ({ contractAddress, chainId,
2415
2488
  }[];
2416
2489
  }) => Promise<string | 0>;
2417
2490
 
2418
- export { AirdropSigIdentityTypeEnum, ApiClient, type ApiClientOptions, type ApiRequestOptions, AirdropService as AptosAirdropService, type AptosWalletClient, CONST, ChainConfig, type ChainId, ChainType, ETokenType, ErrorCode, AirdropService$3 as EvmAirdropService, EvmAirdropVersionEnum, type EvmContractClientOption, SignatureAirdropService$2 as EvmSignatureAirdropService, type FetchTokenMetadataOptions, type FetchTokenVersionOptions, type IAirdropClaim, type IAirdropClaimData, type IAirdropData, type IAirdropOptions, type IAirdropService, type IAirdropSignatureClaim, type IAirdropSignatureData, type IAirdropSignatureIdentity, type IClaimSignature, type IContractConfig, type IExtraData, type IProject, type IProjectExtra, type ISignatureClaimData, type IWalletClient, type Identity, AirdropService$2 as SolanaAirdropService, SignatureAirdropService$1 as SolanaSignatureAirdropService, SplTokenVersion, SignatureAirdropService as SuiSignatureAirdropService, type SupportedChainType, SupportedChains, type ThemeConfig, AirdropService$1 as TonAirdropService, TonAirdropVersionEnum, TonWalletService, ZERO_ADDRESS, apiClient, aptosTestNet, batchCheckClaimedForSignature, bindWallet, checkEligibility, checkGetSignatures, cleanUrlParams, clusterApiUrl, connectDiscordApi, connectGoogleApi, connectTwitter, delay, disconnectRecipient, fetchTokenVersion, flipAddressType, getAirdropContractConfig, getAirdropPro, getAirdropProject, getAirdropProjectId, getAirdropQuery, getAvailableClaimAmountForSignature, getChainById, getChainConfig, getChainRpc, getCustomNaNoId, getJettonInfo, getOrCreateAssociatedTokenAccount, getTonProjectIdByAddress, hexStrToU8Array, isBeforeByUnix, isGreaterThan, isMobile, mevmDevNet, retry, safeParseJSON, safePlus, signBrBTestnet, solanaDevNet, solanaMainNet, suiMainNet, suiTestNet, tonMainNet, tonTestNet };
2491
+ export { AirdropSigIdentityTypeEnum, ApiClient, type ApiClientOptions, type ApiRequestOptions, AirdropService as AptosAirdropService, type AptosWalletClient, CONST, ChainConfig, type ChainId, ChainType, ETokenType, ErrorCode, AirdropService$3 as EvmAirdropService, EvmAirdropVersionEnum, type EvmContractClientOption, SignatureAirdropService$2 as EvmSignatureAirdropService, type FetchTokenMetadataOptions, type FetchTokenVersionOptions, type IAirdropClaim, type IAirdropClaimData, type IAirdropData, type IAirdropOptions, type IAirdropService, type IAirdropSignatureClaim, type IAirdropSignatureData, type IAirdropSignatureIdentity, type IClaimSignature, type IContractConfig, type IExtraData, type IProject, type IProjectExtra, type ISignatureClaimData, type IWalletClient, type Identity, AirdropService$2 as SolanaAirdropService, SignatureAirdropService$1 as SolanaSignatureAirdropService, SplTokenVersion, SignatureAirdropService as SuiSignatureAirdropService, type SupportedChainType, SupportedChains, type ThemeConfig, AirdropService$1 as TonAirdropService, TonAirdropVersionEnum, TonWalletService, ZERO_ADDRESS, apiClient, aptosTestNet, batchCheckClaimedForSignature, bindWallet, checkEligibility, checkGetSignatures, cleanUrlParams, clusterApiUrl, connectDiscordApi, connectGoogleApi, connectTwitter, delay, disconnectRecipient, fetchTokenVersion, flipAddressType, getAirdropContractConfig, getAirdropPro, getAirdropProject, getAirdropProjectId, getAirdropQuery, getAvailableClaimAmountForSignature, getChainById, getChainConfig, getChainRpc, getCustomNaNoId, getJettonInfo, getOrCreateAssociatedTokenAccount, getTonProjectIdByAddress, hexStrToU8Array, hyperEVM, isBeforeByUnix, isGreaterThan, isMobile, mevmDevNet, retry, safeParseJSON, safePlus, signBrBTestnet, solanaDevNet, solanaMainNet, suiMainNet, suiTestNet, tonMainNet, tonTestNet };
package/dist/index.d.ts CHANGED
@@ -278,6 +278,41 @@ declare const aptosTestNet: {
278
278
  };
279
279
  testnet: boolean;
280
280
  };
281
+ declare const hyperEVM: {
282
+ blockExplorers: {
283
+ readonly default: {
284
+ readonly name: "HyperEVMScan";
285
+ readonly url: "https://hyperevmscan.io/";
286
+ };
287
+ };
288
+ blockTime?: number | undefined | undefined;
289
+ contracts: {
290
+ readonly multicall3: {
291
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
292
+ readonly blockCreated: 13051;
293
+ };
294
+ };
295
+ ensTlds?: readonly string[] | undefined;
296
+ id: 999;
297
+ name: "HyperEVM";
298
+ nativeCurrency: {
299
+ readonly name: "HYPE";
300
+ readonly symbol: "HYPE";
301
+ readonly decimals: 18;
302
+ };
303
+ experimental_preconfirmationTime?: number | undefined | undefined;
304
+ rpcUrls: {
305
+ readonly default: {
306
+ readonly http: readonly ["https://rpc.hyperliquid.xyz/evm"];
307
+ };
308
+ };
309
+ sourceId?: number | undefined | undefined;
310
+ testnet?: boolean | undefined | undefined;
311
+ custom?: Record<string, unknown> | undefined;
312
+ fees?: viem.ChainFees<undefined> | undefined;
313
+ formatters?: undefined;
314
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
315
+ };
281
316
 
282
317
  declare const ChainConfig: {
283
318
  [solanaDevNet.id]: {
@@ -340,6 +375,10 @@ declare const ChainConfig: {
340
375
  contractAddress: string;
341
376
  rpcUrl: string;
342
377
  };
378
+ 999: {
379
+ contractAddress: string;
380
+ rpcUrl: "https://rpc.hyperliquid.xyz/evm";
381
+ };
343
382
  6342: {
344
383
  contractAddress: string;
345
384
  rpcUrl: "https://carrot.megaeth.com/rpc";
@@ -496,6 +535,40 @@ declare const SupportedChains: ({
496
535
  formatters?: undefined;
497
536
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
498
537
  readonly network: "Sign Brb Testnet";
538
+ } | {
539
+ blockExplorers: {
540
+ readonly default: {
541
+ readonly name: "HyperEVMScan";
542
+ readonly url: "https://hyperevmscan.io/";
543
+ };
544
+ };
545
+ blockTime?: number | undefined | undefined;
546
+ contracts: {
547
+ readonly multicall3: {
548
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
549
+ readonly blockCreated: 13051;
550
+ };
551
+ };
552
+ ensTlds?: readonly string[] | undefined;
553
+ id: 999;
554
+ name: "HyperEVM";
555
+ nativeCurrency: {
556
+ readonly name: "HYPE";
557
+ readonly symbol: "HYPE";
558
+ readonly decimals: 18;
559
+ };
560
+ experimental_preconfirmationTime?: number | undefined | undefined;
561
+ rpcUrls: {
562
+ readonly default: {
563
+ readonly http: readonly ["https://rpc.hyperliquid.xyz/evm"];
564
+ };
565
+ };
566
+ sourceId?: number | undefined | undefined;
567
+ testnet?: boolean | undefined | undefined;
568
+ custom?: Record<string, unknown> | undefined;
569
+ fees?: viem.ChainFees<undefined> | undefined;
570
+ formatters?: undefined;
571
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
499
572
  } | {
500
573
  blockExplorers: {
501
574
  readonly default: {
@@ -2415,4 +2488,4 @@ declare const getAvailableClaimAmountForSignature: ({ contractAddress, chainId,
2415
2488
  }[];
2416
2489
  }) => Promise<string | 0>;
2417
2490
 
2418
- export { AirdropSigIdentityTypeEnum, ApiClient, type ApiClientOptions, type ApiRequestOptions, AirdropService as AptosAirdropService, type AptosWalletClient, CONST, ChainConfig, type ChainId, ChainType, ETokenType, ErrorCode, AirdropService$3 as EvmAirdropService, EvmAirdropVersionEnum, type EvmContractClientOption, SignatureAirdropService$2 as EvmSignatureAirdropService, type FetchTokenMetadataOptions, type FetchTokenVersionOptions, type IAirdropClaim, type IAirdropClaimData, type IAirdropData, type IAirdropOptions, type IAirdropService, type IAirdropSignatureClaim, type IAirdropSignatureData, type IAirdropSignatureIdentity, type IClaimSignature, type IContractConfig, type IExtraData, type IProject, type IProjectExtra, type ISignatureClaimData, type IWalletClient, type Identity, AirdropService$2 as SolanaAirdropService, SignatureAirdropService$1 as SolanaSignatureAirdropService, SplTokenVersion, SignatureAirdropService as SuiSignatureAirdropService, type SupportedChainType, SupportedChains, type ThemeConfig, AirdropService$1 as TonAirdropService, TonAirdropVersionEnum, TonWalletService, ZERO_ADDRESS, apiClient, aptosTestNet, batchCheckClaimedForSignature, bindWallet, checkEligibility, checkGetSignatures, cleanUrlParams, clusterApiUrl, connectDiscordApi, connectGoogleApi, connectTwitter, delay, disconnectRecipient, fetchTokenVersion, flipAddressType, getAirdropContractConfig, getAirdropPro, getAirdropProject, getAirdropProjectId, getAirdropQuery, getAvailableClaimAmountForSignature, getChainById, getChainConfig, getChainRpc, getCustomNaNoId, getJettonInfo, getOrCreateAssociatedTokenAccount, getTonProjectIdByAddress, hexStrToU8Array, isBeforeByUnix, isGreaterThan, isMobile, mevmDevNet, retry, safeParseJSON, safePlus, signBrBTestnet, solanaDevNet, solanaMainNet, suiMainNet, suiTestNet, tonMainNet, tonTestNet };
2491
+ export { AirdropSigIdentityTypeEnum, ApiClient, type ApiClientOptions, type ApiRequestOptions, AirdropService as AptosAirdropService, type AptosWalletClient, CONST, ChainConfig, type ChainId, ChainType, ETokenType, ErrorCode, AirdropService$3 as EvmAirdropService, EvmAirdropVersionEnum, type EvmContractClientOption, SignatureAirdropService$2 as EvmSignatureAirdropService, type FetchTokenMetadataOptions, type FetchTokenVersionOptions, type IAirdropClaim, type IAirdropClaimData, type IAirdropData, type IAirdropOptions, type IAirdropService, type IAirdropSignatureClaim, type IAirdropSignatureData, type IAirdropSignatureIdentity, type IClaimSignature, type IContractConfig, type IExtraData, type IProject, type IProjectExtra, type ISignatureClaimData, type IWalletClient, type Identity, AirdropService$2 as SolanaAirdropService, SignatureAirdropService$1 as SolanaSignatureAirdropService, SplTokenVersion, SignatureAirdropService as SuiSignatureAirdropService, type SupportedChainType, SupportedChains, type ThemeConfig, AirdropService$1 as TonAirdropService, TonAirdropVersionEnum, TonWalletService, ZERO_ADDRESS, apiClient, aptosTestNet, batchCheckClaimedForSignature, bindWallet, checkEligibility, checkGetSignatures, cleanUrlParams, clusterApiUrl, connectDiscordApi, connectGoogleApi, connectTwitter, delay, disconnectRecipient, fetchTokenVersion, flipAddressType, getAirdropContractConfig, getAirdropPro, getAirdropProject, getAirdropProjectId, getAirdropQuery, getAvailableClaimAmountForSignature, getChainById, getChainConfig, getChainRpc, getCustomNaNoId, getJettonInfo, getOrCreateAssociatedTokenAccount, getTonProjectIdByAddress, hexStrToU8Array, hyperEVM, isBeforeByUnix, isGreaterThan, isMobile, mevmDevNet, retry, safeParseJSON, safePlus, signBrBTestnet, solanaDevNet, solanaMainNet, suiMainNet, suiTestNet, tonMainNet, tonTestNet };
package/dist/index.js CHANGED
@@ -79,6 +79,7 @@ __export(index_exports, {
79
79
  getOrCreateAssociatedTokenAccount: () => getOrCreateAssociatedTokenAccount,
80
80
  getTonProjectIdByAddress: () => getTonProjectIdByAddress,
81
81
  hexStrToU8Array: () => hexStrToU8Array,
82
+ hyperEVM: () => hyperEVM,
82
83
  isBeforeByUnix: () => isBeforeByUnix,
83
84
  isGreaterThan: () => isGreaterThan,
84
85
  isMobile: () => isMobile,
@@ -322,6 +323,30 @@ var aptosTestNet = {
322
323
  },
323
324
  testnet: true
324
325
  };
326
+ var hyperEVM = (0, import_viem.defineChain)({
327
+ id: 999,
328
+ name: "HyperEVM",
329
+ nativeCurrency: {
330
+ name: "HYPE",
331
+ symbol: "HYPE",
332
+ decimals: 18
333
+ },
334
+ rpcUrls: {
335
+ default: { http: ["https://rpc.hyperliquid.xyz/evm"] }
336
+ },
337
+ blockExplorers: {
338
+ default: {
339
+ name: "HyperEVMScan",
340
+ url: "https://hyperevmscan.io/"
341
+ }
342
+ },
343
+ contracts: {
344
+ multicall3: {
345
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
346
+ blockCreated: 13051
347
+ }
348
+ }
349
+ });
325
350
 
326
351
  // src/constants/chain-config.ts
327
352
  var import_sdk2 = require("@tonconnect/sdk");
@@ -362,6 +387,10 @@ var ChainConfig = {
362
387
  contractAddress: "0xeD09c23677D02f4f486E55f0f081cfc114EEa53b",
363
388
  rpcUrl: "https://arb-mainnet.g.alchemy.com/v2/udrqNPSB6i5n5L6QSM31Ng72h_hFOrVT"
364
389
  },
390
+ [hyperEVM.id]: {
391
+ contractAddress: "0xeD09c23677D02f4f486E55f0f081cfc114EEa53b",
392
+ rpcUrl: hyperEVM.rpcUrls.default.http[0]
393
+ },
365
394
  [import_chains.megaethTestnet.id]: {
366
395
  contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
367
396
  rpcUrl: import_chains.megaethTestnet.rpcUrls.default.http[0]
@@ -395,7 +424,7 @@ var ChainConfig = {
395
424
  rpcUrl: import_chains.sonic.rpcUrls.default.http[0]
396
425
  },
397
426
  [import_chains.xLayer.id]: {
398
- contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
427
+ contractAddress: "0x231F598D8B82E2435b11e78960FE4d84F8d63E2C",
399
428
  rpcUrl: "https://xlayerrpc.okx.com"
400
429
  },
401
430
  [import_sdk2.CHAIN.TESTNET]: {
@@ -446,6 +475,7 @@ var SupportedChains = [
446
475
  signBrBTestnet,
447
476
  import_chains.sonic,
448
477
  import_chains.xLayer,
478
+ hyperEVM,
449
479
  import_chains.sepolia,
450
480
  import_chains.baseSepolia,
451
481
  import_chains.zetachainAthensTestnet,
@@ -13043,6 +13073,7 @@ var AirdropService4 = class {
13043
13073
  getOrCreateAssociatedTokenAccount,
13044
13074
  getTonProjectIdByAddress,
13045
13075
  hexStrToU8Array,
13076
+ hyperEVM,
13046
13077
  isBeforeByUnix,
13047
13078
  isGreaterThan,
13048
13079
  isMobile,