@pythnetwork/price-pusher 8.3.1 → 8.3.3

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2024 Pyth Data Association.
1
+ Copyright 2025 Pyth Data Association.
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -75,7 +75,11 @@ You can get the list of available price feeds from
75
75
 
76
76
  Price pusher communicates with [Hermes][] price service to get the most recent price updates. Hermes listens to the
77
77
  Pythnet and Wormhole network to get latest price updates, and serves REST and websocket APIs for consumers to fetch the
78
- updates. Pyth hosts public endpoints for Hermes; however, it is recommended to get a private endpoint from one of the
78
+ updates.
79
+
80
+ NOTE: It is recommended to use stable hermes endpoints. If you are running the price pusher for **Aptos Testnet**, **Sui Testnet**, or **Near Testnet**, we recommend you use beta hermes endpoints.
81
+
82
+ Pyth hosts [public endpoints](https://docs.pyth.network/price-feeds/api-instances-and-providers/hermes) for Hermes; however, it is recommended to get a private endpoint from one of the
79
83
  Hermes RPC providers for more reliability. Please refer to [this
80
84
  document](https://docs.pyth.network/documentation/pythnet-price-feeds/hermes) for more information.
81
85
 
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/aptos/command.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;oBAsCL,GAAG;;AA7B9B,wBAqGE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/aptos/command.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;kBAoBvB,OAAO;yCAOP,OAAO;;oBAWW,GAAG;;AA7B9B,wBAqGE"}
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/evm/command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;oBAgFC,GAAG;;AApEpC,wBAkKE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/evm/command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;kBAyBvB,OAAO;8BAMP,OAAO;oBAMP,OAAO;yCAUP,OAAO;6CAQP,OAAO;qBAKP,OAAO;iCASP,OAAO;;oBAWiB,GAAG;;AApEpC,wBAkKE"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomGasStation = exports.CustomGasStation = void 0;
3
+ exports.CustomGasStation = void 0;
4
+ exports.getCustomGasStation = getCustomGasStation;
4
5
  const utils_1 = require("../utils");
5
6
  const viem_1 = require("viem");
6
7
  class CustomGasStation {
@@ -37,4 +38,3 @@ function getCustomGasStation(logger, customGasStation, txSpeed) {
37
38
  return new CustomGasStation(logger, customGasStation, txSpeed);
38
39
  }
39
40
  }
40
- exports.getCustomGasStation = getCustomGasStation;
@@ -1 +1 @@
1
- {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../src/evm/evm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EACL,sBAAsB,EACtB,SAAS,EACT,aAAa,EACd,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAaxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE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Y,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,0BAA0B,EAAE,MAAM,EAClC,6BAA6B,EAAE,MAAM,EACrC,mBAAmB,EAAE,MAAM,EAC3B,QAAQ,CAAC,EAAE,MAAM,YAAA,EACjB,gBAAgB,CAAC,EAAE,gBAAgB,YAAA;IASvC,eAAe,CACnB,QAAQ,EAAE,MAAM,EAAE,EAClB,cAAc,EAAE,aAAa,EAAE,GAC9B,OAAO,CAAC,IAAI,CAAC;YA2OF,yBAAyB;YAuBzB,uBAAuB;CAQtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"super-wallet.d.ts","sourceRoot":"","sources":["../../src/evm/super-wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,OAAO,EACP,KAAK,EAEL,MAAM,EACN,SAAS,EACT,aAAa,EACb,aAAa,EAGb,SAAS,EACV,MAAM,MAAM,CAAC;AAmBd,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,SAAS,EACT,KAAK,EACL,OAAO,EACP,SAAS,EACT,aAAa,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CACzE,CAAC;AAcF,eAAO,MAAM,YAAY,aACb,MAAM,YACN,MAAM,KACf,QAAQ,iBAAiB,CAY3B,CAAC"}
1
+ {"version":3,"file":"super-wallet.d.ts","sourceRoot":"","sources":["../../src/evm/super-wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,OAAO,EACP,KAAK,EAEL,MAAM,EACN,SAAS,EACT,aAAa,EACb,aAAa,EAGb,SAAS,EACV,MAAM,MAAM,CAAC;AAmBd,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,SAAS,EACT,KAAK,EACL,OAAO,EACP,SAAS,EACT,aAAa,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CACzE,CAAC;AAcF,eAAO,MAAM,YAAY,aACb,MAAM,YACN,MAAM,KACf,OAAO,CAAC,iBAAiB,CAY3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/fuel/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;oBAsCC,GAAG;;AA3BpC,wBA6FE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/fuel/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;kBAmBvB,OAAO;4BAKP,OAAO;iCAKP,OAAO;;oBASiB,GAAG;;AA3BpC,wBA6FE"}
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/injective/command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;oBAuCL,GAAG;;AAnC9B,wBAgHE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/injective/command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;yBAevB,OAAO;iBAKP,OAAO;qBAIP,OAAO;0BAIP,OAAO;;oBAWW,GAAG;;AAnC9B,wBAgHE"}
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/near/command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;oBAsCL,GAAG;;AAlC9B,wBA0GE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/near/command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;oBAavB,OAAO;iBAKP,OAAO;sBAKP,OAAO;4BAKP,OAAO;;oBAUW,GAAG;;AAlC9B,wBA0GE"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,eAAO,MAAM,oBAAoB;;CAOhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;CAQ/B,CAAC;AAEF,eAAO,MAAM,eAAe;;CAM3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAQ5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAU5B,CAAC;AAEF,eAAO,MAAM,YAAY;;CAMxB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAQpB,CAAC;AAEF,eAAO,MAAM,8BAA8B;;CAQ1C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;CAQ9B,CAAC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,eAAO,MAAM,oBAAoB;8BAM1B,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,mBAAmB;6BAOzB,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,eAAe;yBAKrB,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,gBAAgB;yBAOtB,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,gBAAgB;yBAStB,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,YAAY;qBAKlB,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,QAAQ;iBAOd,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,8BAA8B;0CAOpC,OAAO;CACb,CAAC;AAEF,eAAO,MAAM,kBAAkB;4BAOxB,OAAO;CACb,CAAC"}
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.shouldUpdate = exports.UpdateCondition = exports.readPriceConfigFile = void 0;
6
+ exports.UpdateCondition = void 0;
7
+ exports.readPriceConfigFile = readPriceConfigFile;
8
+ exports.shouldUpdate = shouldUpdate;
7
9
  const joi_1 = __importDefault(require("joi"));
8
10
  const yaml_1 = __importDefault(require("yaml"));
9
11
  const fs_1 = __importDefault(require("fs"));
@@ -47,7 +49,6 @@ function readPriceConfigFile(path) {
47
49
  return priceConfig;
48
50
  });
49
51
  }
50
- exports.readPriceConfigFile = readPriceConfigFile;
51
52
  var UpdateCondition;
52
53
  (function (UpdateCondition) {
53
54
  // This price feed must be updated
@@ -106,4 +107,3 @@ function shouldUpdate(priceConfig, sourceLatestPrice, targetLatestPrice, logger)
106
107
  return UpdateCondition.NO;
107
108
  }
108
109
  }
109
- exports.shouldUpdate = shouldUpdate;
@@ -8,9 +8,11 @@ export declare class PythPriceListener implements IPriceListener {
8
8
  private latestPriceInfo;
9
9
  private logger;
10
10
  private lastUpdated;
11
+ private healthCheckInterval?;
11
12
  constructor(connection: PriceServiceConnection, priceItems: PriceItem[], logger: Logger);
12
13
  start(): Promise<void>;
13
14
  private onNewPriceFeed;
14
15
  getLatestPriceInfo(priceId: string): PriceInfo | undefined;
16
+ cleanup(): void;
15
17
  }
16
18
  //# sourceMappingURL=pyth-price-listener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pyth-price-listener.d.ts","sourceRoot":"","sources":["../src/pyth-price-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAI9B,qBAAa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,UAAU,CAAyB;IAC3C,OAAO,CAAC,QAAQ,CAAc;IAC9B,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAA4B;gBAG7C,UAAU,EAAE,sBAAsB,EAClC,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,EAAE,MAAM;IAaV,KAAK;IA8BX,OAAO,CAAC,cAAc;IAuBtB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;CAG3D"}
1
+ {"version":3,"file":"pyth-price-listener.d.ts","sourceRoot":"","sources":["../src/pyth-price-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAI9B,qBAAa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,UAAU,CAAyB;IAC3C,OAAO,CAAC,QAAQ,CAAc;IAC9B,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,mBAAmB,CAAC,CAAiB;gBAG3C,UAAU,EAAE,sBAAsB,EAClC,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,EAAE,MAAM;IAaV,KAAK;IAmHX,OAAO,CAAC,cAAc;IAuBtB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAI1D,OAAO;CAKR"}
@@ -8,6 +8,7 @@ class PythPriceListener {
8
8
  latestPriceInfo;
9
9
  logger;
10
10
  lastUpdated;
11
+ healthCheckInterval;
11
12
  constructor(connection, priceItems, logger) {
12
13
  this.connection = connection;
13
14
  this.priceIds = priceItems.map((priceItem) => priceItem.id);
@@ -18,21 +19,77 @@ class PythPriceListener {
18
19
  // This method should be awaited on and once it finishes it has the latest value
19
20
  // for the given price feeds (if they exist).
20
21
  async start() {
22
+ // Set custom error handler for websocket errors
23
+ this.connection.onWsError = (error) => {
24
+ if (error.message.includes("not found")) {
25
+ // Extract invalid feed IDs from error message
26
+ const match = error.message.match(/\[(.*?)\]/);
27
+ if (match) {
28
+ const invalidFeedIds = match[1].split(",").map((id) => {
29
+ // Remove '0x' prefix if present to match our stored IDs
30
+ return id.trim().replace(/^0x/, "");
31
+ });
32
+ // Log invalid feeds with their aliases
33
+ invalidFeedIds.forEach((id) => {
34
+ this.logger.error(`Price feed ${id} (${this.priceIdToAlias.get(id)}) not found for subscribePriceFeedUpdates`);
35
+ });
36
+ // Filter out invalid feeds and resubscribe with valid ones
37
+ const validFeeds = this.priceIds.filter((id) => !invalidFeedIds.includes(id));
38
+ this.priceIds = validFeeds;
39
+ if (validFeeds.length > 0) {
40
+ this.logger.info("Resubscribing with valid feeds only");
41
+ this.connection.subscribePriceFeedUpdates(validFeeds, this.onNewPriceFeed.bind(this));
42
+ }
43
+ }
44
+ }
45
+ else {
46
+ this.logger.error("Websocket error occurred:", error);
47
+ }
48
+ };
21
49
  this.connection.subscribePriceFeedUpdates(this.priceIds, this.onNewPriceFeed.bind(this));
22
- const priceFeeds = await this.connection.getLatestPriceFeeds(this.priceIds);
23
- priceFeeds?.forEach((priceFeed) => {
24
- // Getting unchecked because although it might be old
25
- // but might not be there on the target chain.
26
- const latestAvailablePrice = priceFeed.getPriceUnchecked();
27
- this.latestPriceInfo.set(priceFeed.id, {
28
- price: latestAvailablePrice.price,
29
- conf: latestAvailablePrice.conf,
30
- publishTime: latestAvailablePrice.publishTime,
50
+ try {
51
+ const priceFeeds = await this.connection.getLatestPriceFeeds(this.priceIds);
52
+ priceFeeds?.forEach((priceFeed) => {
53
+ const latestAvailablePrice = priceFeed.getPriceUnchecked();
54
+ this.latestPriceInfo.set(priceFeed.id, {
55
+ price: latestAvailablePrice.price,
56
+ conf: latestAvailablePrice.conf,
57
+ publishTime: latestAvailablePrice.publishTime,
58
+ });
31
59
  });
32
- });
33
- // Check health of the price feeds 5 second. If the price feeds are not updating
34
- // for more than 30s, throw an error.
35
- setInterval(() => {
60
+ }
61
+ catch (error) {
62
+ // Always log the HTTP error first
63
+ this.logger.error("Failed to get latest price feeds:", error);
64
+ if (error.response.data.includes("Price ids not found:")) {
65
+ // Extract invalid feed IDs from error message
66
+ const invalidFeedIds = error.response.data
67
+ .split("Price ids not found:")[1]
68
+ .split(",")
69
+ .map((id) => id.trim().replace(/^0x/, ""));
70
+ // Log invalid feeds with their aliases
71
+ invalidFeedIds.forEach((id) => {
72
+ this.logger.error(`Price feed ${id} (${this.priceIdToAlias.get(id)}) not found for getLatestPriceFeeds`);
73
+ });
74
+ // Filter out invalid feeds and retry
75
+ const validFeeds = this.priceIds.filter((id) => !invalidFeedIds.includes(id));
76
+ this.priceIds = validFeeds;
77
+ if (validFeeds.length > 0) {
78
+ this.logger.info("Retrying getLatestPriceFeeds with valid feeds only");
79
+ const validPriceFeeds = await this.connection.getLatestPriceFeeds(validFeeds);
80
+ validPriceFeeds?.forEach((priceFeed) => {
81
+ const latestAvailablePrice = priceFeed.getPriceUnchecked();
82
+ this.latestPriceInfo.set(priceFeed.id, {
83
+ price: latestAvailablePrice.price,
84
+ conf: latestAvailablePrice.conf,
85
+ publishTime: latestAvailablePrice.publishTime,
86
+ });
87
+ });
88
+ }
89
+ }
90
+ }
91
+ // Store health check interval reference
92
+ this.healthCheckInterval = setInterval(() => {
36
93
  if (this.lastUpdated === undefined ||
37
94
  this.lastUpdated < Date.now() - 30 * 1000) {
38
95
  throw new Error("Hermes Price feeds are not updating.");
@@ -57,5 +114,10 @@ class PythPriceListener {
57
114
  getLatestPriceInfo(priceId) {
58
115
  return this.latestPriceInfo.get(priceId);
59
116
  }
117
+ cleanup() {
118
+ if (this.healthCheckInterval) {
119
+ clearInterval(this.healthCheckInterval);
120
+ }
121
+ }
60
122
  }
61
123
  exports.PythPriceListener = PythPriceListener;
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/solana/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAgBhC,OAAO,EACL,cAAc,EAEf,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;oBAuEH,GAAG;;AArE9B,wBAgLE;AAEF,eAAO,MAAM,cAAc,MAAO,cAAc,UAAU,MAAM,SAO/D,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/solana/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAgBhC,OAAO,EACL,cAAc,EAEf,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;;;;;;;;;;;;;kBAUrB,OAAO;wBAKP,OAAO;oBAKP,OAAO;6CAKP,OAAO;yBAKP,OAAO;6BAMP,OAAO;6BAKP,OAAO;6BAKP,OAAO;iCAKP,OAAO;4BAKP,OAAO;mCAKP,OAAO;;oBAUW,GAAG;;AArE9B,wBAgLE;AAEF,eAAO,MAAM,cAAc,MAAO,cAAc,UAAU,MAAM,SAO/D,CAAC"}
@@ -22,7 +22,7 @@ export declare class SolanaPricePusher implements IPricePusher {
22
22
  private shardId;
23
23
  private computeUnitPriceMicroLamports;
24
24
  constructor(pythSolanaReceiver: PythSolanaReceiver, priceServiceConnection: PriceServiceConnection, logger: Logger, shardId: number, computeUnitPriceMicroLamports: number);
25
- updatePriceFeed(priceIds: string[], _pubTimesToPush: number[]): Promise<void>;
25
+ updatePriceFeed(priceIds: string[]): Promise<void>;
26
26
  }
27
27
  export declare class SolanaPricePusherJito implements IPricePusher {
28
28
  private pythSolanaReceiver;
@@ -37,6 +37,7 @@ export declare class SolanaPricePusherJito implements IPricePusher {
37
37
  private updatesPerJitoBundle;
38
38
  constructor(pythSolanaReceiver: PythSolanaReceiver, priceServiceConnection: PriceServiceConnection, logger: Logger, shardId: number, defaultJitoTipLamports: number, dynamicJitoTips: boolean, maxJitoTipLamports: number, searcherClient: SearcherClient, jitoBundleSize: number, updatesPerJitoBundle: number);
39
39
  getRecentJitoTipLamports(): Promise<number | undefined>;
40
- updatePriceFeed(priceIds: string[], _pubTimesToPush: number[]): Promise<void>;
40
+ private sleep;
41
+ updatePriceFeed(priceIds: string[]): Promise<void>;
41
42
  }
42
43
  //# sourceMappingURL=solana.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../src/solana/solana.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAK3E,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,qBAAa,mBAAoB,SAAQ,kBAAkB;IAEvD,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,OAAO;IAEf,OAAO,CAAC,MAAM;gBAHN,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,MAAM,EACvB,UAAU,EAAE,SAAS,EAAE,EACf,MAAM,EAAE,MAAM,EACtB,MAAM,EAAE;QACN,gBAAgB,EAAE,iBAAiB,CAAC;KACrC;YAOW,WAAW;IAuBnB,KAAK;IAOL,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;CA0B3E;AAED,qBAAa,iBAAkB,YAAW,YAAY;IAElD,OAAO,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B,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,oBAAoB;gBATpB,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,eAAe,EAAE,OAAO,EACxB,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM;IAGhC,wBAAwB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;YAsB/C,KAAK;IAIb,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAqEzD"}
@@ -73,9 +73,7 @@ class SolanaPricePusher {
73
73
  this.shardId = shardId;
74
74
  this.computeUnitPriceMicroLamports = computeUnitPriceMicroLamports;
75
75
  }
76
- async updatePriceFeed(priceIds,
77
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
78
- _pubTimesToPush) {
76
+ async updatePriceFeed(priceIds) {
79
77
  if (priceIds.length === 0) {
80
78
  return;
81
79
  }
@@ -150,9 +148,10 @@ class SolanaPricePusherJito {
150
148
  return undefined;
151
149
  }
152
150
  }
153
- async updatePriceFeed(priceIds,
154
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
155
- _pubTimesToPush) {
151
+ async sleep(ms) {
152
+ return new Promise((resolve) => setTimeout(resolve, ms));
153
+ }
154
+ async updatePriceFeed(priceIds) {
156
155
  const recentJitoTip = await this.getRecentJitoTipLamports();
157
156
  const jitoTip = this.dynamicJitoTips && recentJitoTip !== undefined
158
157
  ? Math.max(this.defaultJitoTipLamports, recentJitoTip)
@@ -179,7 +178,29 @@ class SolanaPricePusherJito {
179
178
  tightComputeBudget: true,
180
179
  jitoBundleSize: this.jitoBundleSize,
181
180
  });
182
- await (0, solana_utils_1.sendTransactionsJito)(transactions, this.searcherClient, this.pythSolanaReceiver.wallet);
181
+ let retries = 60;
182
+ while (retries > 0) {
183
+ try {
184
+ await (0, solana_utils_1.sendTransactionsJito)(transactions, this.searcherClient, this.pythSolanaReceiver.wallet);
185
+ break;
186
+ }
187
+ catch (err) {
188
+ if (err.code === 8 && err.details?.includes("Rate limit exceeded")) {
189
+ this.logger.warn("Rate limit hit, waiting before retry...");
190
+ await this.sleep(1100); // Wait slightly more than 1 second
191
+ retries--;
192
+ if (retries === 0) {
193
+ this.logger.error("Max retries reached for rate limit");
194
+ throw err;
195
+ }
196
+ }
197
+ else {
198
+ throw err;
199
+ }
200
+ }
201
+ }
202
+ // Add a delay between bundles to avoid rate limiting
203
+ await this.sleep(1100);
183
204
  }
184
205
  }
185
206
  }
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/sui/command.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;oBAqEC,GAAG;;AAhEpC,wBAoJE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/sui/command.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;kBAoBvB,OAAO;yBAOP,OAAO;6BAOP,OAAO;2BAMP,OAAO;8BAOP,OAAO;sBAMP,OAAO;yBAMP,OAAO;;oBAUiB,GAAG;;AAhEpC,wBAoJE"}
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/ton/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;oBAsCC,GAAG;;AA3BpC,wBA+FE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/ton/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;kBAmBvB,OAAO;4BAKP,OAAO;iCAKP,OAAO;;oBASiB,GAAG;;AA3BpC,wBA+FE"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,eAAO,MAAM,QAAQ,uCAAwC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC9C,eAAO,MAAM,iBAAiB,gBAAiB,CAAC;AAChD,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAEhE,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,GAAG,SAAS,CAKxD;AAED,eAAO,MAAM,YAAY,OAAQ,SAAS,KAAG,KAAK,MAAM,EACrB,CAAC;AAKpC,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAStD;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,SAAS,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACpC,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,EACnC,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAOnC;AAED,eAAO,MAAM,aAAa,aAAc,CAAC,GAAG,SAAS,KAAG,CAMvD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,eAAO,MAAM,QAAQ,uCAAwC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC9C,eAAO,MAAM,iBAAiB,gBAAiB,CAAC;AAChD,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAEhE,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,GAAG,SAAS,CAKxD;AAED,eAAO,MAAM,YAAY,OAAQ,SAAS,KAAG,KAAK,MAAM,EACrB,CAAC;AAKpC,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAStD;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,SAAS,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACpC,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,EACnC,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,GAEf,WAAW,CAK/B;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,CAAC,GAAG,SAAS,KAAG,CAMvD,CAAC"}
package/lib/utils.js CHANGED
@@ -1,19 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertDefined = exports.verifyValidOption = exports.isWsEndpoint = exports.addLeading0x = exports.removeLeading0x = exports.sleep = exports.customGasChainIds = exports.txSpeeds = void 0;
3
+ exports.assertDefined = exports.addLeading0x = exports.customGasChainIds = exports.txSpeeds = void 0;
4
+ exports.sleep = sleep;
5
+ exports.removeLeading0x = removeLeading0x;
6
+ exports.isWsEndpoint = isWsEndpoint;
7
+ exports.verifyValidOption = verifyValidOption;
4
8
  exports.txSpeeds = ["slow", "standard", "fast"];
5
9
  exports.customGasChainIds = [137];
6
10
  async function sleep(ms) {
7
11
  return new Promise((resolve) => setTimeout(resolve, ms));
8
12
  }
9
- exports.sleep = sleep;
10
13
  function removeLeading0x(id) {
11
14
  if (id.startsWith("0x")) {
12
15
  return id.substring(2);
13
16
  }
14
17
  return id;
15
18
  }
16
- exports.removeLeading0x = removeLeading0x;
17
19
  const addLeading0x = (id) => hasLeading0x(id) ? id : `0x${id}`;
18
20
  exports.addLeading0x = addLeading0x;
19
21
  const hasLeading0x = (input) => input.startsWith("0x");
@@ -25,7 +27,6 @@ function isWsEndpoint(endpoint) {
25
27
  }
26
28
  return false;
27
29
  }
28
- exports.isWsEndpoint = isWsEndpoint;
29
30
  function verifyValidOption(option, validOptions) {
30
31
  if (validOptions.includes(option)) {
31
32
  return option;
@@ -33,7 +34,6 @@ function verifyValidOption(option, validOptions) {
33
34
  const errorString = option + " is not a valid option. Please choose between " + validOptions;
34
35
  throw new Error(errorString);
35
36
  }
36
- exports.verifyValidOption = verifyValidOption;
37
37
  const assertDefined = (value) => {
38
38
  if (value === undefined) {
39
39
  throw new Error("Assertion failed: value was undefined");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pythnetwork/price-pusher",
3
- "version": "8.3.1",
3
+ "version": "8.3.3",
4
4
  "description": "Pyth Price Pusher",
5
5
  "homepage": "https://pyth.network",
6
6
  "main": "lib/index.js",
@@ -24,6 +24,7 @@
24
24
  "format": "prettier --write \"src/**/*.ts\"",
25
25
  "test:lint": "eslint src/",
26
26
  "start": "node lib/index.js",
27
+ "test": "jest",
27
28
  "dev": "ts-node src/index.ts",
28
29
  "prepublishOnly": "pnpm run build && pnpm run test:lint",
29
30
  "preversion": "pnpm run test:lint",
@@ -61,13 +62,13 @@
61
62
  "@injectivelabs/sdk-ts": "1.10.72",
62
63
  "@mysten/sui": "^1.3.0",
63
64
  "@pythnetwork/price-service-client": "1.9.0",
64
- "@pythnetwork/price-service-sdk": "^1.7.1",
65
+ "@pythnetwork/price-service-sdk": "^1.8.0",
65
66
  "@pythnetwork/pyth-fuel-js": "1.0.7",
66
67
  "@pythnetwork/pyth-sdk-solidity": "4.0.0",
67
- "@pythnetwork/pyth-solana-receiver": "0.8.2",
68
+ "@pythnetwork/pyth-solana-receiver": "0.9.1",
68
69
  "@pythnetwork/pyth-sui-js": "2.1.0",
69
- "@pythnetwork/pyth-ton-js": "0.1.1",
70
- "@pythnetwork/solana-utils": "0.4.2",
70
+ "@pythnetwork/pyth-ton-js": "0.1.2",
71
+ "@pythnetwork/solana-utils": "0.4.3",
71
72
  "@solana/web3.js": "^1.93.0",
72
73
  "@ton/crypto": "^3.3.0",
73
74
  "@ton/ton": "^15.1.0",
@@ -82,5 +83,5 @@
82
83
  "yaml": "^2.1.1",
83
84
  "yargs": "^17.5.1"
84
85
  },
85
- "gitHead": "83f4174d8235fb6095c347366fd432fb95307162"
86
+ "gitHead": "707437af791b9b111f976eb45b958639f90a2e20"
86
87
  }