@crypticdot/defituna-api 3.0.2 → 3.0.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/dist/index.cjs CHANGED
@@ -960,7 +960,7 @@ var getGetLpPositionsUrl = (userAddress, params) => {
960
960
  }
961
961
  });
962
962
  const stringifiedParams = normalizedParams.toString();
963
- return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions`;
963
+ return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions-history?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions-history`;
964
964
  };
965
965
  var getLpPositions = async (userAddress, params, options) => {
966
966
  return customFetch(
@@ -972,7 +972,7 @@ var getLpPositions = async (userAddress, params, options) => {
972
972
  );
973
973
  };
974
974
  var getGetLpPositionActionsUrl = (userAddress, positionAddress) => {
975
- return `/v1/users/${userAddress}/lp-positions/${positionAddress}/actions`;
975
+ return `/v1/users/${userAddress}/lp-positions-history/${positionAddress}/actions`;
976
976
  };
977
977
  var getLpPositionActions = async (userAddress, positionAddress, options) => {
978
978
  return customFetch(
package/dist/index.d.cts CHANGED
@@ -901,8 +901,7 @@ type GenericHttpResponseVecTunaLpPositionDtoDataItem = {
901
901
  lowerPrice: number;
902
902
  marketMaker: PoolProvider;
903
903
  openedAt: Date;
904
- /** Solana public key (base58) */
905
- pool: string;
904
+ pool: PoolDto;
906
905
  /** Solana public key (base58) */
907
906
  positionAddress: string;
908
907
  state: TunaPositionDtoState;
@@ -1902,8 +1901,7 @@ interface TunaLpPositionDto {
1902
1901
  lowerPrice: number;
1903
1902
  marketMaker: PoolProvider;
1904
1903
  openedAt: Date;
1905
- /** Solana public key (base58) */
1906
- pool: string;
1904
+ pool: PoolDto;
1907
1905
  /** Solana public key (base58) */
1908
1906
  positionAddress: string;
1909
1907
  state: TunaPositionDtoState;
package/dist/index.d.ts CHANGED
@@ -901,8 +901,7 @@ type GenericHttpResponseVecTunaLpPositionDtoDataItem = {
901
901
  lowerPrice: number;
902
902
  marketMaker: PoolProvider;
903
903
  openedAt: Date;
904
- /** Solana public key (base58) */
905
- pool: string;
904
+ pool: PoolDto;
906
905
  /** Solana public key (base58) */
907
906
  positionAddress: string;
908
907
  state: TunaPositionDtoState;
@@ -1902,8 +1901,7 @@ interface TunaLpPositionDto {
1902
1901
  lowerPrice: number;
1903
1902
  marketMaker: PoolProvider;
1904
1903
  openedAt: Date;
1905
- /** Solana public key (base58) */
1906
- pool: string;
1904
+ pool: PoolDto;
1907
1905
  /** Solana public key (base58) */
1908
1906
  positionAddress: string;
1909
1907
  state: TunaPositionDtoState;
package/dist/index.js CHANGED
@@ -807,7 +807,7 @@ var getGetLpPositionsUrl = (userAddress, params) => {
807
807
  }
808
808
  });
809
809
  const stringifiedParams = normalizedParams.toString();
810
- return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions`;
810
+ return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions-history?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions-history`;
811
811
  };
812
812
  var getLpPositions = async (userAddress, params, options) => {
813
813
  return customFetch(
@@ -819,7 +819,7 @@ var getLpPositions = async (userAddress, params, options) => {
819
819
  );
820
820
  };
821
821
  var getGetLpPositionActionsUrl = (userAddress, positionAddress) => {
822
- return `/v1/users/${userAddress}/lp-positions/${positionAddress}/actions`;
822
+ return `/v1/users/${userAddress}/lp-positions-history/${positionAddress}/actions`;
823
823
  };
824
824
  var getLpPositionActions = async (userAddress, positionAddress, options) => {
825
825
  return customFetch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",