lynx-client 0.0.39 → 0.1.0

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.
Files changed (175) hide show
  1. package/dist/cjs/index.js +8 -3
  2. package/dist/cjs/lib/addresses/lensAddresses.js +10 -8
  3. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -1
  4. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +6 -0
  5. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +6 -1
  6. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +4 -0
  7. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +12 -0
  8. package/dist/cjs/lib/devex/getChainAddresses.js +1 -1
  9. package/dist/cjs/lib/priceFeeds/pyth/{pythFeedConstants.js → hermes/hermesFeedConstants.js} +5 -5
  10. package/dist/cjs/lib/priceFeeds/pyth/hermes/hermesFeedFunctions.js +24 -0
  11. package/dist/{esm/lib/priceFeeds/pyth/pythPriceData.js → cjs/lib/priceFeeds/pyth/hermes/hermesPriceData.js} +11 -9
  12. package/dist/cjs/lib/priceFeeds/pyth/lazer/lazerFeedConstants.js +166 -0
  13. package/dist/cjs/lib/priceFeeds/pyth/lazer/lazerFeedFunctions.js +25 -0
  14. package/dist/cjs/lib/priceFeeds/pyth/lazer/lazerPayloadTypes.js +2 -0
  15. package/dist/cjs/lib/priceFeeds/pyth/lazer/lazerPriceData.js +60 -0
  16. package/dist/cjs/lib/priceFeeds/pyth/lazer/lazerSigningFormats.js +27 -0
  17. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  18. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  19. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  20. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  23. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +82 -1
  24. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  25. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +81 -1
  26. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +42 -1
  27. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  28. package/dist/esm/index.d.ts +8 -3
  29. package/dist/esm/index.d.ts.map +1 -1
  30. package/dist/esm/index.js +8 -3
  31. package/dist/esm/lib/addresses/lensAddresses.d.ts +10 -8
  32. package/dist/esm/lib/addresses/lensAddresses.d.ts.map +1 -1
  33. package/dist/esm/lib/addresses/lensAddresses.js +10 -8
  34. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +4 -1
  35. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
  36. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -1
  37. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +2 -1
  38. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
  39. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +6 -0
  40. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +4 -1
  41. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  42. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +6 -1
  43. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +2 -1
  44. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  45. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +4 -0
  46. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +6 -1
  47. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  48. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +2 -1
  49. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  50. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +12 -0
  51. package/dist/esm/lib/devex/getChainAddresses.js +1 -1
  52. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesFeedConstants.d.ts +5 -0
  53. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesFeedConstants.d.ts.map +1 -0
  54. package/dist/esm/lib/priceFeeds/pyth/{pythFeedConstants.js → hermes/hermesFeedConstants.js} +5 -5
  55. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesFeedFunctions.d.ts +14 -0
  56. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesFeedFunctions.d.ts.map +1 -0
  57. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesFeedFunctions.js +24 -0
  58. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesPriceData.d.ts +11 -0
  59. package/dist/esm/lib/priceFeeds/pyth/hermes/hermesPriceData.d.ts.map +1 -0
  60. package/dist/{cjs/lib/priceFeeds/pyth/pythPriceData.js → esm/lib/priceFeeds/pyth/hermes/hermesPriceData.js} +11 -9
  61. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerFeedConstants.d.ts +54 -0
  62. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerFeedConstants.d.ts.map +1 -0
  63. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerFeedConstants.js +166 -0
  64. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerFeedFunctions.d.ts +16 -0
  65. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerFeedFunctions.d.ts.map +1 -0
  66. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerFeedFunctions.js +25 -0
  67. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerPayloadTypes.d.ts +64 -0
  68. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerPayloadTypes.d.ts.map +1 -0
  69. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerPayloadTypes.js +2 -0
  70. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerPriceData.d.ts +26 -0
  71. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerPriceData.d.ts.map +1 -0
  72. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerPriceData.js +60 -0
  73. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerSigningFormats.d.ts +36 -0
  74. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerSigningFormats.d.ts.map +1 -0
  75. package/dist/esm/lib/priceFeeds/pyth/lazer/lazerSigningFormats.js +27 -0
  76. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +63 -2
  77. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  78. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +30 -1
  79. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
  80. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +29 -1
  81. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  82. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  83. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  84. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  85. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  88. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  89. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  90. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  91. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  92. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  93. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  94. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +64 -1
  95. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  96. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +82 -1
  97. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  98. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  99. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  100. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +62 -1
  101. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
  102. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +81 -1
  103. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +32 -1
  104. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  105. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +42 -1
  106. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  107. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  108. package/dist/types/index.d.ts +8 -3
  109. package/dist/types/index.d.ts.map +1 -1
  110. package/dist/types/lib/addresses/lensAddresses.d.ts +10 -8
  111. package/dist/types/lib/addresses/lensAddresses.d.ts.map +1 -1
  112. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +4 -1
  113. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
  114. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +2 -1
  115. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
  116. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +4 -1
  117. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  118. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +2 -1
  119. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  120. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +6 -1
  121. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  122. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +2 -1
  123. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  124. package/dist/types/lib/priceFeeds/pyth/hermes/hermesFeedConstants.d.ts +5 -0
  125. package/dist/types/lib/priceFeeds/pyth/hermes/hermesFeedConstants.d.ts.map +1 -0
  126. package/dist/types/lib/priceFeeds/pyth/hermes/hermesFeedFunctions.d.ts +14 -0
  127. package/dist/types/lib/priceFeeds/pyth/hermes/hermesFeedFunctions.d.ts.map +1 -0
  128. package/dist/types/lib/priceFeeds/pyth/hermes/hermesPriceData.d.ts +11 -0
  129. package/dist/types/lib/priceFeeds/pyth/hermes/hermesPriceData.d.ts.map +1 -0
  130. package/dist/types/lib/priceFeeds/pyth/lazer/lazerFeedConstants.d.ts +54 -0
  131. package/dist/types/lib/priceFeeds/pyth/lazer/lazerFeedConstants.d.ts.map +1 -0
  132. package/dist/types/lib/priceFeeds/pyth/lazer/lazerFeedFunctions.d.ts +16 -0
  133. package/dist/types/lib/priceFeeds/pyth/lazer/lazerFeedFunctions.d.ts.map +1 -0
  134. package/dist/types/lib/priceFeeds/pyth/lazer/lazerPayloadTypes.d.ts +64 -0
  135. package/dist/types/lib/priceFeeds/pyth/lazer/lazerPayloadTypes.d.ts.map +1 -0
  136. package/dist/types/lib/priceFeeds/pyth/lazer/lazerPriceData.d.ts +26 -0
  137. package/dist/types/lib/priceFeeds/pyth/lazer/lazerPriceData.d.ts.map +1 -0
  138. package/dist/types/lib/priceFeeds/pyth/lazer/lazerSigningFormats.d.ts +36 -0
  139. package/dist/types/lib/priceFeeds/pyth/lazer/lazerSigningFormats.d.ts.map +1 -0
  140. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +63 -2
  141. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  142. package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +30 -1
  143. package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
  144. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +29 -1
  145. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  146. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  147. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  148. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  149. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  150. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  151. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  152. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +64 -1
  153. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  154. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  155. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  156. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +62 -1
  157. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
  158. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +32 -1
  159. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  160. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  161. package/package.json +13 -13
  162. package/dist/cjs/lib/priceFeeds/pyth/pythFeedFunctions.js +0 -27
  163. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts +0 -5
  164. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +0 -1
  165. package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.d.ts +0 -17
  166. package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +0 -1
  167. package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.js +0 -27
  168. package/dist/esm/lib/priceFeeds/pyth/pythPriceData.d.ts +0 -10
  169. package/dist/esm/lib/priceFeeds/pyth/pythPriceData.d.ts.map +0 -1
  170. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts +0 -5
  171. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +0 -1
  172. package/dist/types/lib/priceFeeds/pyth/pythFeedFunctions.d.ts +0 -17
  173. package/dist/types/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +0 -1
  174. package/dist/types/lib/priceFeeds/pyth/pythPriceData.d.ts +0 -10
  175. package/dist/types/lib/priceFeeds/pyth/pythPriceData.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lynx-client",
3
- "version": "0.0.39",
3
+ "version": "0.1.0",
4
4
  "description": "Client library for interacting with Lynx publicly available services",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -17,17 +17,6 @@
17
17
  "files": [
18
18
  "dist/**/*"
19
19
  ],
20
- "scripts": {
21
- "clean": "rm -rf dist",
22
- "build:esm": "tsc -p tsconfig.esm.json",
23
- "build:cjs": "tsc -p tsconfig.cjs.json",
24
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
25
- "prepublishOnly": "npm run build",
26
- "test": "jest",
27
- "test:rate-model-lens": "tsx scripts/testRateModelLens.ts",
28
- "test:lex-lens": "tsx scripts/testLexLens.ts",
29
- "test:triggers-portal-lens": "tsx scripts/testTriggersAndPortalLens.ts"
30
- },
31
20
  "repository": {
32
21
  "type": "git",
33
22
  "url": "git+https://github.com/lynx-protocol/lynx-client.git"
@@ -50,5 +39,16 @@
50
39
  },
51
40
  "dependencies": {
52
41
  "ethers": "^6.15.0"
42
+ },
43
+ "scripts": {
44
+ "clean": "rm -rf dist",
45
+ "build:esm": "tsc -p tsconfig.esm.json",
46
+ "build:cjs": "tsc -p tsconfig.cjs.json",
47
+ "build": "pnpm run clean && pnpm run build:esm && pnpm run build:cjs",
48
+ "test": "jest",
49
+ "test:rate-model-lens": "tsx scripts/testRateModelLens.ts",
50
+ "test:lex-lens": "tsx scripts/testLexLens.ts",
51
+ "test:triggers-portal-lens": "tsx scripts/testTriggersAndPortalLens.ts",
52
+ "verify:lazer-mapping": "tsx scripts/verifyLazerMapping.ts"
53
53
  }
54
- }
54
+ }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPythPriceKeyForPair = getPythPriceKeyForPair;
4
- exports.getPythFeedIdForPair = getPythFeedIdForPair;
5
- exports.getPairIdForPythFeedId = getPairIdForPythFeedId;
6
- const pythFeedConstants_1 = require("./pythFeedConstants");
7
- /**
8
- * Get the Pyth feed id for a pair
9
- * @param pairId The pair id
10
- */
11
- function getPythPriceKeyForPair(pairId) {
12
- return pythFeedConstants_1.PYTH_PRICE_KEYS[pairId];
13
- }
14
- /**
15
- * Get the Pyth Feed ID for Pair ID
16
- * @param feedId The Pyth feed id
17
- */
18
- function getPythFeedIdForPair(pairId) {
19
- return pythFeedConstants_1.PYTH_PAIRS_PRICE_FEED_IDS[pairId];
20
- }
21
- /**
22
- * Get the Pair ID for Pyth Feed ID (reversal lookup)
23
- * @param feedId The Pyth feed id
24
- */
25
- function getPairIdForPythFeedId(feedId) {
26
- return pythFeedConstants_1.PYTH_PRICE_FEED_ID_TO_PAIR[feedId];
27
- }
@@ -1,5 +0,0 @@
1
- import { TPairIds } from "../../constants/pairIds";
2
- export declare const PYTH_PRICE_KEYS: Record<TPairIds, string>;
3
- export declare const PYTH_PAIRS_PRICE_FEED_IDS: Record<TPairIds, string>;
4
- export declare const PYTH_PRICE_FEED_ID_TO_PAIR: Record<string, TPairIds>;
5
- //# sourceMappingURL=pythFeedConstants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CA6DpD,CAAC;AAGF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAiF9D,CAAC;AAGF,eAAO,MAAM,0BAA0B,0BAKjC,CAAC"}
@@ -1,17 +0,0 @@
1
- import { TPairIds } from "../../constants/pairIds";
2
- /**
3
- * Get the Pyth feed id for a pair
4
- * @param pairId The pair id
5
- */
6
- export declare function getPythPriceKeyForPair(pairId: TPairIds): string;
7
- /**
8
- * Get the Pyth Feed ID for Pair ID
9
- * @param feedId The Pyth feed id
10
- */
11
- export declare function getPythFeedIdForPair(pairId: TPairIds): string;
12
- /**
13
- * Get the Pair ID for Pyth Feed ID (reversal lookup)
14
- * @param feedId The Pyth feed id
15
- */
16
- export declare function getPairIdForPythFeedId(feedId: string): TPairIds;
17
- //# sourceMappingURL=pythFeedFunctions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pythFeedFunctions.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedFunctions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAE/D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAE/D"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPythPriceKeyForPair = getPythPriceKeyForPair;
4
- exports.getPythFeedIdForPair = getPythFeedIdForPair;
5
- exports.getPairIdForPythFeedId = getPairIdForPythFeedId;
6
- const pythFeedConstants_1 = require("./pythFeedConstants");
7
- /**
8
- * Get the Pyth feed id for a pair
9
- * @param pairId The pair id
10
- */
11
- function getPythPriceKeyForPair(pairId) {
12
- return pythFeedConstants_1.PYTH_PRICE_KEYS[pairId];
13
- }
14
- /**
15
- * Get the Pyth Feed ID for Pair ID
16
- * @param feedId The Pyth feed id
17
- */
18
- function getPythFeedIdForPair(pairId) {
19
- return pythFeedConstants_1.PYTH_PAIRS_PRICE_FEED_IDS[pairId];
20
- }
21
- /**
22
- * Get the Pair ID for Pyth Feed ID (reversal lookup)
23
- * @param feedId The Pyth feed id
24
- */
25
- function getPairIdForPythFeedId(feedId) {
26
- return pythFeedConstants_1.PYTH_PRICE_FEED_ID_TO_PAIR[feedId];
27
- }
@@ -1,10 +0,0 @@
1
- import { CombinedPriceData } from "../interfaces";
2
- /**
3
- * Fetches historical price data from Pyth for a specific timestamp or later
4
- * Only searches forward in time (timestamp >= startTimestamp), never backwards
5
- * @param priceFeedId - The Pyth price feed ID
6
- * @param startTimestamp - The minimum timestamp to search from
7
- * @param maxTimeGap - Maximum seconds to search forward from startTimestamp
8
- */
9
- export declare function getPricesForTimestamp(priceFeedId: string, startTimestamp: number, maxTimeGap: number): Promise<CombinedPriceData>;
10
- //# sourceMappingURL=pythPriceData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pythPriceData.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythPriceData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAgClD;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,iBAAiB,CAAC,CAiB5B"}
@@ -1,5 +0,0 @@
1
- import { TPairIds } from "../../constants/pairIds";
2
- export declare const PYTH_PRICE_KEYS: Record<TPairIds, string>;
3
- export declare const PYTH_PAIRS_PRICE_FEED_IDS: Record<TPairIds, string>;
4
- export declare const PYTH_PRICE_FEED_ID_TO_PAIR: Record<string, TPairIds>;
5
- //# sourceMappingURL=pythFeedConstants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CA6DpD,CAAC;AAGF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAiF9D,CAAC;AAGF,eAAO,MAAM,0BAA0B,0BAKjC,CAAC"}
@@ -1,17 +0,0 @@
1
- import { TPairIds } from "../../constants/pairIds";
2
- /**
3
- * Get the Pyth feed id for a pair
4
- * @param pairId The pair id
5
- */
6
- export declare function getPythPriceKeyForPair(pairId: TPairIds): string;
7
- /**
8
- * Get the Pyth Feed ID for Pair ID
9
- * @param feedId The Pyth feed id
10
- */
11
- export declare function getPythFeedIdForPair(pairId: TPairIds): string;
12
- /**
13
- * Get the Pair ID for Pyth Feed ID (reversal lookup)
14
- * @param feedId The Pyth feed id
15
- */
16
- export declare function getPairIdForPythFeedId(feedId: string): TPairIds;
17
- //# sourceMappingURL=pythFeedFunctions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pythFeedFunctions.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedFunctions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAE/D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAE/D"}
@@ -1,10 +0,0 @@
1
- import { CombinedPriceData } from "../interfaces";
2
- /**
3
- * Fetches historical price data from Pyth for a specific timestamp or later
4
- * Only searches forward in time (timestamp >= startTimestamp), never backwards
5
- * @param priceFeedId - The Pyth price feed ID
6
- * @param startTimestamp - The minimum timestamp to search from
7
- * @param maxTimeGap - Maximum seconds to search forward from startTimestamp
8
- */
9
- export declare function getPricesForTimestamp(priceFeedId: string, startTimestamp: number, maxTimeGap: number): Promise<CombinedPriceData>;
10
- //# sourceMappingURL=pythPriceData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pythPriceData.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythPriceData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAgClD;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,iBAAiB,CAAC,CAiB5B"}