Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nftx/api

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nftx/api - npm Package Compare versions

Comparing version 1.11.1 to 1.14.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.14.0](https://github.com/NFTX-project/nftxjs/compare/v1.13.2...v1.14.0) (2024-02-01)
### Features
* allow searching liquidity positions by token id ([7c1f1e5](https://github.com/NFTX-project/nftxjs/commit/7c1f1e5c703e6915be8e5d5ce985542e9fe1bc4a))
## [1.11.1](https://github.com/NFTX-project/nftxjs/compare/v1.11.0...v1.11.1) (2024-01-19)

@@ -8,0 +19,0 @@

8

dist/cjs/api.js

@@ -455,3 +455,5 @@ 'use strict';

userAddress,
vaultId
vaultId,
poolId,
tokenId
}) => {

@@ -461,3 +463,5 @@ const url = `/${network}/positions/liquidity`;

userAddress,
vaultId
vaultId,
poolId,
tokenId
};

@@ -464,0 +468,0 @@ return queryApi({

@@ -447,3 +447,5 @@ import config from '@nftx/config';

userAddress,
vaultId
vaultId,
poolId,
tokenId
}) => {

@@ -453,3 +455,5 @@ const url = `/${network}/positions/liquidity`;

userAddress,
vaultId
vaultId,
poolId,
tokenId
};

@@ -456,0 +460,0 @@ return queryApi({

@@ -1,7 +0,9 @@

import type { Address, LiquidityPosition } from '@nftx/types';
declare const fetchLiquidityPositions: ({ network, userAddress, vaultId, }: {
import type { Address, LiquidityPosition, TokenId } from '@nftx/types';
declare const fetchLiquidityPositions: ({ network, userAddress, vaultId, poolId, tokenId, }: {
network?: number | undefined;
userAddress?: `0x${string}` | undefined;
vaultId?: string | undefined;
userAddress?: `0x${string}` | `0x${string}`[] | undefined;
vaultId?: string | string[] | undefined;
poolId?: `0x${string}` | `0x${string}`[] | undefined;
tokenId?: `${number}` | `${number}`[] | undefined;
}) => Promise<LiquidityPosition[]>;
export default fetchLiquidityPositions;
{
"name": "@nftx/api",
"version": "1.11.1",
"version": "1.14.0",
"description": "",

@@ -27,6 +27,6 @@ "homepage": "https://github.com/NFTX-project/nftxjs",

"dependencies": {
"@nftx/config": "^1.11.1",
"@nftx/config": "^1.14.0",
"@nftx/errors": "^1.6.0",
"@nftx/types": "^1.11.1",
"@nftx/utils": "^1.11.1",
"@nftx/types": "^1.14.0",
"@nftx/utils": "^1.14.0",
"viem": "^1.16.6"

@@ -33,0 +33,0 @@ },

@@ -1,2 +0,2 @@

import type { Address, LiquidityPosition } from '@nftx/types';
import type { Address, LiquidityPosition, TokenId } from '@nftx/types';
import { queryApi } from '../utils';

@@ -9,9 +9,13 @@ import config from '@nftx/config';

vaultId,
poolId,
tokenId,
}: {
network?: number;
userAddress?: Address;
vaultId?: string;
userAddress?: Address | Address[];
vaultId?: string | string[];
poolId?: Address | Address[];
tokenId?: TokenId | TokenId[];
}) => {
const url = `/${network}/positions/liquidity`;
const query = { userAddress, vaultId };
const query = { userAddress, vaultId, poolId, tokenId };

@@ -18,0 +22,0 @@ return queryApi<LiquidityPosition[]>({ url, query });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc