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

@nftx/types

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nftx/types - npm Package Compare versions

Comparing version 1.10.4 to 1.11.0

11

CHANGELOG.md

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

# [1.11.0](https://github.com/NFTX-project/nftxjs/compare/v1.10.4...v1.11.0) (2024-01-19)
### Features
* support ERC1155 assets ([98c716f](https://github.com/NFTX-project/nftxjs/commit/98c716fa79520d0ce778e6c673e2ea15e44ea932))
## [1.10.4](https://github.com/NFTX-project/nftxjs/compare/v1.10.3...v1.10.4) (2024-01-16)

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

2

dist/ts/assets.d.ts

@@ -10,3 +10,3 @@ import type { Address, TokenId } from './web3';

vaultIds: string[];
quantity?: bigint;
quantity: bigint;
name: string;

@@ -13,0 +13,0 @@ traits: Record<string, string>;

import type { Token } from './tokens';
import type { Address, TokenId } from './web3';
import type { Address, TokenIds } from './web3';
type PriceRoute = Array<{

@@ -47,3 +47,3 @@ type: string;

/** For ERC721/ERC1155, provide the token id or tokenIds */
tokenIds?: TokenId[] | [TokenId, number][];
tokenIds?: TokenIds;
/** For ERC20, provide the amount the spender can spend - if omitted it defaults to the max amount */

@@ -50,0 +50,0 @@ amount?: bigint;

import { CreatePoolFeatures, CreatePoolFees } from './pools';
import { ApproveContract } from './price';
import { Address, TokenId } from './web3';
import { Address, TokenId, TokenIds } from './web3';
export type CreateVaultQuoteParams = {

@@ -62,3 +62,3 @@ name: string;

userAddress: Address;
tokenIds: TokenId[] | [TokenId, number][];
tokenIds: TokenIds;
positionId: Address;

@@ -88,3 +88,3 @@ percentageToWithdraw: number;

percentageToWithdraw: number;
tokenIds: TokenId[];
tokenIds: TokenIds;
slippagePercentage?: number;

@@ -108,3 +108,3 @@ };

usePermit2?: boolean;
tokenIds?: [TokenId, number][] | TokenId[];
tokenIds?: TokenIds;
};

@@ -165,3 +165,3 @@ export type CreateInventoryPositionQuote = {

positionId: Address;
tokenIds: [TokenId, number][] | TokenId[];
tokenIds: TokenIds;
slippagePercentage?: number;

@@ -168,0 +168,0 @@ liquidity: {

@@ -19,3 +19,3 @@ import type { MarketplacePrice } from './price';

tokenId: TokenId;
amount: bigint;
quantity: bigint;
dateAdded: number;

@@ -22,0 +22,0 @@ vaultId: string;

@@ -10,2 +10,3 @@ import type { createPublicClient, createWalletClient, TransactionReceipt as ViemTrasnsactionReceipt, GetFunctionArgs, ContractFunctionResult } from 'viem';

export type TokenId = BigIntString;
export type TokenIds = TokenId[] | [TokenId, number][];
export type TransactionReceipt = ViemTrasnsactionReceipt & {

@@ -12,0 +13,0 @@ permit2Signature?: Permit2Quote;

{
"name": "@nftx/types",
"version": "1.10.4",
"version": "1.11.0",
"description": " ",

@@ -30,3 +30,3 @@ "homepage": "https://github.com/NFTX-project/nftxjs#readme",

"dependencies": {
"@nftx/constants": "^1.10.4",
"@nftx/constants": "^1.11.0",
"abitype": "0.9.8",

@@ -33,0 +33,0 @@ "viem": "^1.16.6"

@@ -11,3 +11,3 @@ import type { Address, TokenId } from './web3';

vaultIds: string[];
quantity?: bigint;
quantity: bigint;
name: string;

@@ -14,0 +14,0 @@ traits: Record<string, string>;

import type { Token } from './tokens';
import type { Address, TokenId } from './web3';
import type { Address, TokenIds } from './web3';

@@ -43,3 +43,3 @@ type PriceRoute = Array<{

/** For ERC721/ERC1155, provide the token id or tokenIds */
tokenIds?: TokenId[] | [TokenId, number][];
tokenIds?: TokenIds;
/** For ERC20, provide the amount the spender can spend - if omitted it defaults to the max amount */

@@ -46,0 +46,0 @@ amount?: bigint;

import { CreatePoolFeatures, CreatePoolFees } from './pools';
import { ApproveContract } from './price';
import { Address, TokenId } from './web3';
import { Address, TokenId, TokenIds } from './web3';

@@ -65,3 +65,3 @@ export type CreateVaultQuoteParams = {

userAddress: Address;
tokenIds: TokenId[] | [TokenId, number][];
tokenIds: TokenIds;
positionId: Address;

@@ -93,3 +93,3 @@ percentageToWithdraw: number;

percentageToWithdraw: number;
tokenIds: TokenId[];
tokenIds: TokenIds;
slippagePercentage?: number;

@@ -115,3 +115,3 @@ };

usePermit2?: boolean;
tokenIds?: [TokenId, number][] | TokenId[];
tokenIds?: TokenIds;
};

@@ -176,3 +176,3 @@

positionId: Address;
tokenIds: [TokenId, number][] | TokenId[];
tokenIds: TokenIds;
slippagePercentage?: number;

@@ -179,0 +179,0 @@ liquidity: {

@@ -22,3 +22,3 @@ import type { MarketplacePrice } from './price';

tokenId: TokenId;
amount: bigint;
quantity: bigint;
dateAdded: number;

@@ -25,0 +25,0 @@ vaultId: string;

@@ -22,2 +22,4 @@ import type {

export type TokenIds = TokenId[] | [TokenId, number][];
export type TransactionReceipt = ViemTrasnsactionReceipt & {

@@ -24,0 +26,0 @@ permit2Signature?: Permit2Quote;

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