@ape.swap/bonds-sdk 4.0.0-test.47 → 4.0.0-test.49
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/dist/config/constants/networks.d.ts +3 -1
- package/dist/main.js +14 -1
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
2
|
export declare const PUBLIC_RPC_URLS: Partial<Record<ChainId, string[]>>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const HELIUS_SOL_RPC_ENDPOINTS: string[];
|
|
4
|
+
export declare const getRandomHeliusRPC: () => string;
|
|
5
|
+
export declare const HELIUS_SOL_RPC: string;
|
|
4
6
|
export declare const getRPC: (chain: ChainId) => string;
|
package/dist/main.js
CHANGED
|
@@ -63290,7 +63290,20 @@ const PUBLIC_RPC_URLS = {
|
|
|
63290
63290
|
], // mainnet
|
|
63291
63291
|
// [ChainId.SOL]: ['https://devnet.helius-rpc.com/?api-key=095f6fc7-1be0-4d94-a737-4a5ee0d82ea5'], // devnet
|
|
63292
63292
|
};
|
|
63293
|
-
|
|
63293
|
+
// Multiple Helius SOL RPC endpoints for rotation
|
|
63294
|
+
const HELIUS_SOL_RPC_ENDPOINTS = [
|
|
63295
|
+
'https://mainnet.helius-rpc.com/?api-key=d80b11e0-692f-4da0-91d6-830799c8c385', // apefede09@gmail.com
|
|
63296
|
+
'https://mainnet.helius-rpc.com/?api-key=8631ce42-9000-490d-9ac3-f3a81de508b2', // apebond.design@gmail.com
|
|
63297
|
+
'https://mainnet.helius-rpc.com/?api-key=c097651d-ae13-4ab4-ae4c-fef7e48d4561', // n0mbr3al3at0r10@gmail.com
|
|
63298
|
+
'https://mainnet.helius-rpc.com/?api-key=a5c4ea36-fa6b-4bcc-a7a4-e10012b9ea7e', // RandomApe personal mail
|
|
63299
|
+
];
|
|
63300
|
+
// Function to get a random Helius SOL RPC endpoint
|
|
63301
|
+
const getRandomHeliusRPC = () => {
|
|
63302
|
+
const randomIndex = Math.floor(Math.random() * HELIUS_SOL_RPC_ENDPOINTS.length);
|
|
63303
|
+
return HELIUS_SOL_RPC_ENDPOINTS[randomIndex];
|
|
63304
|
+
};
|
|
63305
|
+
// Keep the current export for backward compatibility
|
|
63306
|
+
const HELIUS_SOL_RPC = getRandomHeliusRPC();
|
|
63294
63307
|
const getRPC = (chain) => {
|
|
63295
63308
|
var _a;
|
|
63296
63309
|
return (_a = PUBLIC_RPC_URLS === null || PUBLIC_RPC_URLS === void 0 ? void 0 : PUBLIC_RPC_URLS[chain]) === null || _a === void 0 ? void 0 : _a[0];
|