@clonegod/ttd-sol-common 1.0.3 → 1.0.5

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 CHANGED
@@ -1,3 +1,3 @@
1
1
  import { StandardPoolInfoType } from '@clonegod/ttd-common';
2
2
  export declare const ONE_SOL_IN_LAMPORTS = 1000000000;
3
- export declare const subscibe_pool_change_by_geyser: (geyser_ws_url: string, pool_list: StandardPoolInfoType[], callback: (data_buff: any) => {}) => Promise<void>;
3
+ export declare const subscribe_pool_change_by_geyser: (geyser_ws_url: string, pool_list: StandardPoolInfoType[], callback: (data_buff: any) => {}) => Promise<void>;
package/dist/index.js CHANGED
@@ -12,12 +12,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.subscibe_pool_change_by_geyser = exports.ONE_SOL_IN_LAMPORTS = void 0;
15
+ exports.subscribe_pool_change_by_geyser = exports.ONE_SOL_IN_LAMPORTS = void 0;
16
16
  const dist_1 = require("@clonegod/ttd-common/dist");
17
17
  const ws_1 = __importDefault(require("ws"));
18
18
  const types_1 = require("../types");
19
19
  exports.ONE_SOL_IN_LAMPORTS = 1e9;
20
- const subscibe_pool_change_by_geyser = (geyser_ws_url, pool_list, callback) => __awaiter(void 0, void 0, void 0, function* () {
20
+ const subscribe_pool_change_by_geyser = (geyser_ws_url, pool_list, callback) => __awaiter(void 0, void 0, void 0, function* () {
21
21
  if ((0, dist_1.isEmpty)(geyser_ws_url)) {
22
22
  (0, dist_1.log_warn)(`geyser_ws_url is empty, cann't subscribe`);
23
23
  return;
@@ -83,8 +83,8 @@ const subscibe_pool_change_by_geyser = (geyser_ws_url, pool_list, callback) => _
83
83
  ws_client.on('close', function close() {
84
84
  return __awaiter(this, void 0, void 0, function* () {
85
85
  (0, dist_1.log_warn)(`Socket is closed. Reconnect will be attempted in few seconds`);
86
- (0, exports.subscibe_pool_change_by_geyser)(geyser_ws_url, pool_list, callback);
86
+ (0, exports.subscribe_pool_change_by_geyser)(geyser_ws_url, pool_list, callback);
87
87
  });
88
88
  });
89
89
  });
90
- exports.subscibe_pool_change_by_geyser = subscibe_pool_change_by_geyser;
90
+ exports.subscribe_pool_change_by_geyser = subscribe_pool_change_by_geyser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
File without changes
File without changes