impermax-sdk 2.1.374 → 2.1.376

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.
@@ -209,6 +209,7 @@ exports.WHITELISTED_PAIRS = {
209
209
  "0xEd4C75659254CC19c8412e17896fA040829DEEBA",
210
210
  "0x13719Aecc00dE4f653C4CC36921D3Cb5209c17e7",
211
211
  "0xE821FE9a6C018070dc0E42fA4EAE9b333289cE7b",
212
+ "0x07465f1890b73fa75fc10966edfd8b1249b11ee2",
212
213
  // swapx
213
214
  "0x3C3976aA3d8561D9AB15Fa5a726A626d242141a3",
214
215
  "0x5a3B22Ece19FaF97302A1b941ed60CF430E4a3F4",
@@ -117,4 +117,5 @@ export default class Offchain {
117
117
  protected fetchUniswapV3NewlyEarnedFees: typeof initializer.fetchUniswapV3NewlyEarnedFees;
118
118
  getUniswapV3NewlyEarnedFees: typeof initializer.getUniswapV3NewlyEarnedFees;
119
119
  getPairsList(factory: Factory, state?: PairState): Address[];
120
+ getPoolChart(address: Address): Promise<import("./offchainTypes").UniswapV3PoolChart[]>;
120
121
  }
@@ -198,5 +198,9 @@ class Offchain {
198
198
  pairs.push(...blacklisted);
199
199
  return pairs.map(i => i.toLowerCase());
200
200
  }
201
+ // Charts?
202
+ async getPoolChart(address) {
203
+ return this.getUniswapV3Charts(address.toLowerCase());
204
+ }
201
205
  }
202
206
  exports.default = Offchain;
@@ -298,6 +298,8 @@ export type UniswapV3PoolChart = {
298
298
  block: number;
299
299
  timestamp: number;
300
300
  timestampUTC: string;
301
+ token0Price: number;
302
+ token1Price: number;
301
303
  };
302
304
  export type PoolChart = UniswapV3PoolChart;
303
305
  export type NewlyEarnedFees = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.374",
3
+ "version": "2.1.376",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",