@clonegod/ttd-sol-common 1.0.92 → 1.0.94

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.
@@ -1,2 +1,3 @@
1
1
  export * from './subscribe_pool_change_by_geyser';
2
2
  export * from './subscribe_wallet_transaction';
3
+ export * from './subscribe_txid';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./subscribe_pool_change_by_geyser"), exports);
18
18
  __exportStar(require("./subscribe_wallet_transaction"), exports);
19
+ __exportStar(require("./subscribe_txid"), exports);
@@ -1,2 +1,2 @@
1
1
  import EventEmitter from "events";
2
- export declare const subscribe_wallet_transaction_txid: (geyser_ws_url: string, signature: string, eventEmitter: EventEmitter) => Promise<void>;
2
+ export declare const subscribe_wallet_transaction_txid: (geyser_ws_url: string, wallet_address: string, signature: string, eventEmitter: EventEmitter) => Promise<void>;
@@ -16,7 +16,7 @@ exports.subscribe_wallet_transaction_txid = void 0;
16
16
  const dist_1 = require("@clonegod/ttd-common/dist");
17
17
  const ws_1 = __importDefault(require("ws"));
18
18
  const constants_1 = require("../common/constants");
19
- const subscribe_wallet_transaction_txid = (geyser_ws_url, signature, eventEmitter) => __awaiter(void 0, void 0, void 0, function* () {
19
+ const subscribe_wallet_transaction_txid = (geyser_ws_url, wallet_address, signature, eventEmitter) => __awaiter(void 0, void 0, void 0, function* () {
20
20
  if ((0, dist_1.isEmpty)(geyser_ws_url)) {
21
21
  (0, dist_1.log_warn)(`geyser_ws_url is empty, cann't subscribe`);
22
22
  return;
@@ -34,6 +34,7 @@ const subscribe_wallet_transaction_txid = (geyser_ws_url, signature, eventEmitte
34
34
  method: 'transactionSubscribe',
35
35
  params: [
36
36
  {
37
+ accountRequired: wallet_address,
37
38
  signature: signature,
38
39
  },
39
40
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",