@sign-global/tokentable-core 1.13.0 → 1.14.1
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 +155 -1
- package/dist/index.d.ts +155 -1
- package/dist/index.js +46 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants/chain-config.ts +20 -2
- package/src/constants/network.ts +29 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -541,6 +541,124 @@ declare const SupportedChains: readonly [{
|
|
|
541
541
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
542
542
|
formatters?: undefined;
|
|
543
543
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
544
|
+
}, {
|
|
545
|
+
blockExplorers: {
|
|
546
|
+
readonly default: {
|
|
547
|
+
readonly name: "Cronos Explorer";
|
|
548
|
+
readonly url: "https://explorer.cronos.org";
|
|
549
|
+
readonly apiUrl: "https://explorer-api.cronos.org/mainnet/api";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
blockTime?: number | undefined | undefined;
|
|
553
|
+
contracts: {
|
|
554
|
+
readonly multicall3: {
|
|
555
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
556
|
+
readonly blockCreated: 1963112;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
ensTlds?: readonly string[] | undefined;
|
|
560
|
+
id: 25;
|
|
561
|
+
name: "Cronos Mainnet";
|
|
562
|
+
nativeCurrency: {
|
|
563
|
+
readonly decimals: 18;
|
|
564
|
+
readonly name: "Cronos";
|
|
565
|
+
readonly symbol: "CRO";
|
|
566
|
+
};
|
|
567
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
568
|
+
rpcUrls: {
|
|
569
|
+
readonly default: {
|
|
570
|
+
readonly http: readonly ["https://evm.cronos.org"];
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
sourceId?: number | undefined | undefined;
|
|
574
|
+
testnet?: boolean | undefined | undefined;
|
|
575
|
+
custom?: Record<string, unknown> | undefined;
|
|
576
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
577
|
+
formatters?: undefined;
|
|
578
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
blockExplorers: {
|
|
581
|
+
readonly default: {
|
|
582
|
+
readonly name: "MemeCore Explorer";
|
|
583
|
+
readonly url: "https://memecorescan.io";
|
|
584
|
+
readonly apiUrl: "https://api.memecorescan.io/api";
|
|
585
|
+
};
|
|
586
|
+
readonly okx: {
|
|
587
|
+
readonly name: "MemeCore Explorer";
|
|
588
|
+
readonly url: "https://web3.okx.com/explorer/memecore";
|
|
589
|
+
};
|
|
590
|
+
readonly memecore: {
|
|
591
|
+
readonly name: "MemeCore Explorer";
|
|
592
|
+
readonly url: "https://blockscout.memecore.com";
|
|
593
|
+
readonly apiUrl: "https://blockscout.memecore.com/api";
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
blockTime?: number | undefined | undefined;
|
|
597
|
+
contracts?: {
|
|
598
|
+
[x: string]: viem.ChainContract | {
|
|
599
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
602
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
603
|
+
multicall3?: viem.ChainContract | undefined;
|
|
604
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
ensTlds?: readonly string[] | undefined;
|
|
607
|
+
id: 4352;
|
|
608
|
+
name: "MemeCore";
|
|
609
|
+
nativeCurrency: {
|
|
610
|
+
readonly decimals: 18;
|
|
611
|
+
readonly name: "M";
|
|
612
|
+
readonly symbol: "M";
|
|
613
|
+
};
|
|
614
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
615
|
+
rpcUrls: {
|
|
616
|
+
readonly default: {
|
|
617
|
+
readonly http: readonly ["https://rpc.memecore.net"];
|
|
618
|
+
readonly webSocket: readonly ["wss://ws.memecore.net"];
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
sourceId?: number | undefined | undefined;
|
|
622
|
+
testnet?: boolean | undefined | undefined;
|
|
623
|
+
custom?: Record<string, unknown> | undefined;
|
|
624
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
625
|
+
formatters?: undefined;
|
|
626
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
627
|
+
}, {
|
|
628
|
+
blockExplorers: {
|
|
629
|
+
readonly default: {
|
|
630
|
+
readonly name: "Blockscout";
|
|
631
|
+
readonly url: "https://megaeth.blockscout.com";
|
|
632
|
+
readonly apiUrl: "https://megaeth.blockscout.com/api";
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
blockTime: 1000;
|
|
636
|
+
contracts: {
|
|
637
|
+
readonly multicall3: {
|
|
638
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
ensTlds?: readonly string[] | undefined;
|
|
642
|
+
id: 4326;
|
|
643
|
+
name: "MegaETH";
|
|
644
|
+
nativeCurrency: {
|
|
645
|
+
readonly name: "Ether";
|
|
646
|
+
readonly symbol: "ETH";
|
|
647
|
+
readonly decimals: 18;
|
|
648
|
+
};
|
|
649
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
650
|
+
rpcUrls: {
|
|
651
|
+
readonly default: {
|
|
652
|
+
readonly http: readonly ["https://mainnet.megaeth.com/rpc"];
|
|
653
|
+
readonly webSocket: readonly ["wss://mainnet.megaeth.com/ws"];
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
sourceId?: number | undefined | undefined;
|
|
657
|
+
testnet?: boolean | undefined | undefined;
|
|
658
|
+
custom?: Record<string, unknown> | undefined;
|
|
659
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
660
|
+
formatters?: undefined;
|
|
661
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
544
662
|
}, {
|
|
545
663
|
id: CHAIN;
|
|
546
664
|
name: string;
|
|
@@ -1629,6 +1747,42 @@ declare const hyperEVM: {
|
|
|
1629
1747
|
formatters?: undefined;
|
|
1630
1748
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1631
1749
|
};
|
|
1750
|
+
declare const megaeth: {
|
|
1751
|
+
blockExplorers: {
|
|
1752
|
+
readonly default: {
|
|
1753
|
+
readonly name: "Blockscout";
|
|
1754
|
+
readonly url: "https://megaeth.blockscout.com";
|
|
1755
|
+
readonly apiUrl: "https://megaeth.blockscout.com/api";
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1758
|
+
blockTime: 1000;
|
|
1759
|
+
contracts: {
|
|
1760
|
+
readonly multicall3: {
|
|
1761
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
ensTlds?: readonly string[] | undefined;
|
|
1765
|
+
id: 4326;
|
|
1766
|
+
name: "MegaETH";
|
|
1767
|
+
nativeCurrency: {
|
|
1768
|
+
readonly name: "Ether";
|
|
1769
|
+
readonly symbol: "ETH";
|
|
1770
|
+
readonly decimals: 18;
|
|
1771
|
+
};
|
|
1772
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1773
|
+
rpcUrls: {
|
|
1774
|
+
readonly default: {
|
|
1775
|
+
readonly http: readonly ["https://mainnet.megaeth.com/rpc"];
|
|
1776
|
+
readonly webSocket: readonly ["wss://mainnet.megaeth.com/ws"];
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
sourceId?: number | undefined | undefined;
|
|
1780
|
+
testnet?: boolean | undefined | undefined;
|
|
1781
|
+
custom?: Record<string, unknown> | undefined;
|
|
1782
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1783
|
+
formatters?: undefined;
|
|
1784
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1785
|
+
};
|
|
1632
1786
|
|
|
1633
1787
|
declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
1634
1788
|
declare const CONST: {
|
|
@@ -2456,4 +2610,4 @@ declare const getAvailableClaimAmountForSignature: ({ contractAddress, chainId,
|
|
|
2456
2610
|
}[];
|
|
2457
2611
|
}) => Promise<string | 0>;
|
|
2458
2612
|
|
|
2459
|
-
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 SupportedChainIds, 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 };
|
|
2613
|
+
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 SupportedChainIds, 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, megaeth, mevmDevNet, retry, safeParseJSON, safePlus, signBrBTestnet, solanaDevNet, solanaMainNet, suiMainNet, suiTestNet, tonMainNet, tonTestNet };
|
package/dist/index.d.ts
CHANGED
|
@@ -541,6 +541,124 @@ declare const SupportedChains: readonly [{
|
|
|
541
541
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
542
542
|
formatters?: undefined;
|
|
543
543
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
544
|
+
}, {
|
|
545
|
+
blockExplorers: {
|
|
546
|
+
readonly default: {
|
|
547
|
+
readonly name: "Cronos Explorer";
|
|
548
|
+
readonly url: "https://explorer.cronos.org";
|
|
549
|
+
readonly apiUrl: "https://explorer-api.cronos.org/mainnet/api";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
blockTime?: number | undefined | undefined;
|
|
553
|
+
contracts: {
|
|
554
|
+
readonly multicall3: {
|
|
555
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
556
|
+
readonly blockCreated: 1963112;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
ensTlds?: readonly string[] | undefined;
|
|
560
|
+
id: 25;
|
|
561
|
+
name: "Cronos Mainnet";
|
|
562
|
+
nativeCurrency: {
|
|
563
|
+
readonly decimals: 18;
|
|
564
|
+
readonly name: "Cronos";
|
|
565
|
+
readonly symbol: "CRO";
|
|
566
|
+
};
|
|
567
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
568
|
+
rpcUrls: {
|
|
569
|
+
readonly default: {
|
|
570
|
+
readonly http: readonly ["https://evm.cronos.org"];
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
sourceId?: number | undefined | undefined;
|
|
574
|
+
testnet?: boolean | undefined | undefined;
|
|
575
|
+
custom?: Record<string, unknown> | undefined;
|
|
576
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
577
|
+
formatters?: undefined;
|
|
578
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
blockExplorers: {
|
|
581
|
+
readonly default: {
|
|
582
|
+
readonly name: "MemeCore Explorer";
|
|
583
|
+
readonly url: "https://memecorescan.io";
|
|
584
|
+
readonly apiUrl: "https://api.memecorescan.io/api";
|
|
585
|
+
};
|
|
586
|
+
readonly okx: {
|
|
587
|
+
readonly name: "MemeCore Explorer";
|
|
588
|
+
readonly url: "https://web3.okx.com/explorer/memecore";
|
|
589
|
+
};
|
|
590
|
+
readonly memecore: {
|
|
591
|
+
readonly name: "MemeCore Explorer";
|
|
592
|
+
readonly url: "https://blockscout.memecore.com";
|
|
593
|
+
readonly apiUrl: "https://blockscout.memecore.com/api";
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
blockTime?: number | undefined | undefined;
|
|
597
|
+
contracts?: {
|
|
598
|
+
[x: string]: viem.ChainContract | {
|
|
599
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
602
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
603
|
+
multicall3?: viem.ChainContract | undefined;
|
|
604
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
ensTlds?: readonly string[] | undefined;
|
|
607
|
+
id: 4352;
|
|
608
|
+
name: "MemeCore";
|
|
609
|
+
nativeCurrency: {
|
|
610
|
+
readonly decimals: 18;
|
|
611
|
+
readonly name: "M";
|
|
612
|
+
readonly symbol: "M";
|
|
613
|
+
};
|
|
614
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
615
|
+
rpcUrls: {
|
|
616
|
+
readonly default: {
|
|
617
|
+
readonly http: readonly ["https://rpc.memecore.net"];
|
|
618
|
+
readonly webSocket: readonly ["wss://ws.memecore.net"];
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
sourceId?: number | undefined | undefined;
|
|
622
|
+
testnet?: boolean | undefined | undefined;
|
|
623
|
+
custom?: Record<string, unknown> | undefined;
|
|
624
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
625
|
+
formatters?: undefined;
|
|
626
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
627
|
+
}, {
|
|
628
|
+
blockExplorers: {
|
|
629
|
+
readonly default: {
|
|
630
|
+
readonly name: "Blockscout";
|
|
631
|
+
readonly url: "https://megaeth.blockscout.com";
|
|
632
|
+
readonly apiUrl: "https://megaeth.blockscout.com/api";
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
blockTime: 1000;
|
|
636
|
+
contracts: {
|
|
637
|
+
readonly multicall3: {
|
|
638
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
ensTlds?: readonly string[] | undefined;
|
|
642
|
+
id: 4326;
|
|
643
|
+
name: "MegaETH";
|
|
644
|
+
nativeCurrency: {
|
|
645
|
+
readonly name: "Ether";
|
|
646
|
+
readonly symbol: "ETH";
|
|
647
|
+
readonly decimals: 18;
|
|
648
|
+
};
|
|
649
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
650
|
+
rpcUrls: {
|
|
651
|
+
readonly default: {
|
|
652
|
+
readonly http: readonly ["https://mainnet.megaeth.com/rpc"];
|
|
653
|
+
readonly webSocket: readonly ["wss://mainnet.megaeth.com/ws"];
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
sourceId?: number | undefined | undefined;
|
|
657
|
+
testnet?: boolean | undefined | undefined;
|
|
658
|
+
custom?: Record<string, unknown> | undefined;
|
|
659
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
660
|
+
formatters?: undefined;
|
|
661
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
544
662
|
}, {
|
|
545
663
|
id: CHAIN;
|
|
546
664
|
name: string;
|
|
@@ -1629,6 +1747,42 @@ declare const hyperEVM: {
|
|
|
1629
1747
|
formatters?: undefined;
|
|
1630
1748
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1631
1749
|
};
|
|
1750
|
+
declare const megaeth: {
|
|
1751
|
+
blockExplorers: {
|
|
1752
|
+
readonly default: {
|
|
1753
|
+
readonly name: "Blockscout";
|
|
1754
|
+
readonly url: "https://megaeth.blockscout.com";
|
|
1755
|
+
readonly apiUrl: "https://megaeth.blockscout.com/api";
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1758
|
+
blockTime: 1000;
|
|
1759
|
+
contracts: {
|
|
1760
|
+
readonly multicall3: {
|
|
1761
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
ensTlds?: readonly string[] | undefined;
|
|
1765
|
+
id: 4326;
|
|
1766
|
+
name: "MegaETH";
|
|
1767
|
+
nativeCurrency: {
|
|
1768
|
+
readonly name: "Ether";
|
|
1769
|
+
readonly symbol: "ETH";
|
|
1770
|
+
readonly decimals: 18;
|
|
1771
|
+
};
|
|
1772
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1773
|
+
rpcUrls: {
|
|
1774
|
+
readonly default: {
|
|
1775
|
+
readonly http: readonly ["https://mainnet.megaeth.com/rpc"];
|
|
1776
|
+
readonly webSocket: readonly ["wss://mainnet.megaeth.com/ws"];
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
sourceId?: number | undefined | undefined;
|
|
1780
|
+
testnet?: boolean | undefined | undefined;
|
|
1781
|
+
custom?: Record<string, unknown> | undefined;
|
|
1782
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1783
|
+
formatters?: undefined;
|
|
1784
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1785
|
+
};
|
|
1632
1786
|
|
|
1633
1787
|
declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
1634
1788
|
declare const CONST: {
|
|
@@ -2456,4 +2610,4 @@ declare const getAvailableClaimAmountForSignature: ({ contractAddress, chainId,
|
|
|
2456
2610
|
}[];
|
|
2457
2611
|
}) => Promise<string | 0>;
|
|
2458
2612
|
|
|
2459
|
-
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 SupportedChainIds, 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 };
|
|
2613
|
+
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 SupportedChainIds, 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, megaeth, mevmDevNet, retry, safeParseJSON, safePlus, signBrBTestnet, solanaDevNet, solanaMainNet, suiMainNet, suiTestNet, tonMainNet, tonTestNet };
|
package/dist/index.js
CHANGED
|
@@ -83,6 +83,7 @@ __export(index_exports, {
|
|
|
83
83
|
isBeforeByUnix: () => isBeforeByUnix,
|
|
84
84
|
isGreaterThan: () => isGreaterThan,
|
|
85
85
|
isMobile: () => isMobile,
|
|
86
|
+
megaeth: () => megaeth,
|
|
86
87
|
mevmDevNet: () => mevmDevNet,
|
|
87
88
|
retry: () => retry,
|
|
88
89
|
safeParseJSON: () => safeParseJSON,
|
|
@@ -347,6 +348,34 @@ var hyperEVM = (0, import_viem.defineChain)({
|
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
350
|
});
|
|
351
|
+
var megaeth = /* @__PURE__ */ (0, import_viem.defineChain)({
|
|
352
|
+
id: 4326,
|
|
353
|
+
blockTime: 1e3,
|
|
354
|
+
name: "MegaETH",
|
|
355
|
+
nativeCurrency: {
|
|
356
|
+
name: "Ether",
|
|
357
|
+
symbol: "ETH",
|
|
358
|
+
decimals: 18
|
|
359
|
+
},
|
|
360
|
+
rpcUrls: {
|
|
361
|
+
default: {
|
|
362
|
+
http: ["https://mainnet.megaeth.com/rpc"],
|
|
363
|
+
webSocket: ["wss://mainnet.megaeth.com/ws"]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
blockExplorers: {
|
|
367
|
+
default: {
|
|
368
|
+
name: "Blockscout",
|
|
369
|
+
url: "https://megaeth.blockscout.com",
|
|
370
|
+
apiUrl: "https://megaeth.blockscout.com/api"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
contracts: {
|
|
374
|
+
multicall3: {
|
|
375
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
});
|
|
350
379
|
|
|
351
380
|
// src/constants/chain-config.ts
|
|
352
381
|
var import_sdk2 = require("@tonconnect/sdk");
|
|
@@ -358,6 +387,9 @@ var SupportedChains = [
|
|
|
358
387
|
import_chains.zetachain,
|
|
359
388
|
import_chains.arbitrum,
|
|
360
389
|
import_chains.monad,
|
|
390
|
+
import_chains.cronos,
|
|
391
|
+
import_chains.memecore,
|
|
392
|
+
megaeth,
|
|
361
393
|
tonTestNet,
|
|
362
394
|
tonMainNet,
|
|
363
395
|
signBrBTestnet,
|
|
@@ -388,9 +420,21 @@ var ChainConfig = {
|
|
|
388
420
|
rpcUrl: "https://base-mainnet.g.alchemy.com/v2/udrqNPSB6i5n5L6QSM31Ng72h_hFOrVT"
|
|
389
421
|
},
|
|
390
422
|
[import_chains.monad.id]: {
|
|
391
|
-
contractAddress: "",
|
|
423
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
392
424
|
rpcUrl: import_chains.monad.rpcUrls.default.http[0]
|
|
393
425
|
},
|
|
426
|
+
[import_chains.cronos.id]: {
|
|
427
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
428
|
+
rpcUrl: import_chains.cronos.rpcUrls.default.http[0]
|
|
429
|
+
},
|
|
430
|
+
[import_chains.memecore.id]: {
|
|
431
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
432
|
+
rpcUrl: import_chains.memecore.rpcUrls.default.http[0]
|
|
433
|
+
},
|
|
434
|
+
[megaeth.id]: {
|
|
435
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
436
|
+
rpcUrl: megaeth.rpcUrls.default.http[0]
|
|
437
|
+
},
|
|
394
438
|
[import_chains.cyber.id]: {
|
|
395
439
|
contractAddress: "0x7915dA247674E430b2a4Dcf01e4471f709428Bc0",
|
|
396
440
|
rpcUrl: import_chains.cyber.rpcUrls.default.http[0]
|
|
@@ -13095,6 +13139,7 @@ var AirdropService4 = class {
|
|
|
13095
13139
|
isBeforeByUnix,
|
|
13096
13140
|
isGreaterThan,
|
|
13097
13141
|
isMobile,
|
|
13142
|
+
megaeth,
|
|
13098
13143
|
mevmDevNet,
|
|
13099
13144
|
retry,
|
|
13100
13145
|
safeParseJSON,
|