@clonegod/ttd-sol-common 1.0.14 → 1.0.15
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/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare enum LOCAL_EVENT_NAME {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const subscribe_pool_change_by_geyser: (geyser_ws_url: string, pool_list: StandardPoolInfoType[], eventEmitter: EventEmitter) => Promise<void>;
|
|
16
16
|
export declare class HeliusClient {
|
|
17
|
+
cluster: string;
|
|
17
18
|
helius_mainnet: Helius;
|
|
18
19
|
helius_staked: Helius;
|
|
19
20
|
helius_qn: Helius;
|
package/dist/index.js
CHANGED
|
@@ -105,13 +105,14 @@ const subscribe_pool_change_by_geyser = (geyser_ws_url, pool_list, eventEmitter)
|
|
|
105
105
|
exports.subscribe_pool_change_by_geyser = subscribe_pool_change_by_geyser;
|
|
106
106
|
class HeliusClient {
|
|
107
107
|
constructor(signers, jito_tip_max = 500000) {
|
|
108
|
+
this.cluster = 'mainnet-beta';
|
|
108
109
|
let helius_api_key = process.env.HELIUS_API_KEY;
|
|
109
110
|
let helius_mainnet_endpoint = `https://mainnet.helius-rpc.com/?api-key=${helius_api_key}`;
|
|
110
111
|
let helius_staked_endpoint = `https://staked.helius-rpc.com?api-key=${helius_api_key}`;
|
|
111
112
|
let quicknode_endpoint = process.env.QUICKNODE_ENDPOINT;
|
|
112
|
-
this.helius_mainnet = new helius_sdk_1.Helius(
|
|
113
|
-
this.helius_staked = new helius_sdk_1.Helius(
|
|
114
|
-
this.helius_qn = new helius_sdk_1.Helius(
|
|
113
|
+
this.helius_mainnet = new helius_sdk_1.Helius('', this.cluster, 'helius-sdk', helius_mainnet_endpoint);
|
|
114
|
+
this.helius_staked = new helius_sdk_1.Helius('', this.cluster, 'helius-sdk', helius_staked_endpoint);
|
|
115
|
+
this.helius_qn = new helius_sdk_1.Helius('', this.cluster, 'helius-sdk', quicknode_endpoint);
|
|
115
116
|
this.signers = signers;
|
|
116
117
|
this.sendOptions = {
|
|
117
118
|
skipPreflight: true,
|