Comparing version 1.10.4 to 1.11.0
@@ -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 @@ |
@@ -1,7 +0,7 @@ | ||
import type { Address, MarketplacePrice, MarketplaceQuote, TokenId } from '@nftx/types'; | ||
import type { Address, MarketplacePrice, MarketplaceQuote, TokenIds } from '@nftx/types'; | ||
type CommonArgs = { | ||
type: 'buy' | 'sell' | 'swap' | 'mint' | 'redeem'; | ||
vaultId: string; | ||
buyTokenIds?: TokenId[] | [TokenId, number][]; | ||
sellTokenIds?: TokenId[] | [TokenId, number][]; | ||
buyTokenIds?: TokenIds; | ||
sellTokenIds?: TokenIds; | ||
network?: number; | ||
@@ -8,0 +8,0 @@ }; |
@@ -1,7 +0,7 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
declare const fetchVaultBuyPrice: ({ tokenIds, vaultId, network, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number | undefined; | ||
}) => Promise<import("@nftx/types").MarketplacePrice>; | ||
export default fetchVaultBuyPrice; |
@@ -1,5 +0,5 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
declare const fetchVaultBuyQuote: ({ tokenIds, vaultId, network, userAddress, slippagePercentage, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -6,0 +6,0 @@ network?: number | undefined; |
@@ -1,7 +0,7 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
declare const fetchVaultMintPrice: ({ tokenIds, vaultId, network, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number | undefined; | ||
}) => Promise<import("@nftx/types").MarketplacePrice>; | ||
export default fetchVaultMintPrice; |
@@ -1,5 +0,5 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
declare const fetchVaultMintQuote: ({ tokenIds, vaultId, network, userAddress, slippagePercentage, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -6,0 +6,0 @@ network?: number | undefined; |
@@ -1,7 +0,7 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
declare const fetchVaultRedeemPrice: ({ tokenIds, vaultId, network, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number | undefined; | ||
}) => Promise<import("@nftx/types").MarketplacePrice>; | ||
export default fetchVaultRedeemPrice; |
@@ -1,5 +0,5 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
declare const fetchVaultRedeemQuote: ({ tokenIds, vaultId, network, userAddress, slippagePercentage, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -6,0 +6,0 @@ network?: number | undefined; |
@@ -1,7 +0,7 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
declare const fetchVaultSellPrice: ({ tokenIds, vaultId, network, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number | undefined; | ||
}) => Promise<import("@nftx/types").MarketplacePrice>; | ||
export default fetchVaultSellPrice; |
@@ -1,5 +0,5 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
declare const fetchVaultSellQuote: ({ tokenIds, vaultId, network, userAddress, slippagePercentage, }: { | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -6,0 +6,0 @@ network?: number | undefined; |
@@ -0,7 +1,8 @@ | ||
import { TokenIds } from '@nftx/types'; | ||
declare const fetchVaultSwapPrice: ({ sellTokenIds, buyTokenIds, vaultId, network, }: { | ||
vaultId: string; | ||
sellTokenIds: `${number}`[]; | ||
buyTokenIds: `${number}`[]; | ||
sellTokenIds: TokenIds; | ||
buyTokenIds: TokenIds; | ||
network?: number | undefined; | ||
}) => Promise<import("@nftx/types").MarketplacePrice>; | ||
export default fetchVaultSwapPrice; |
@@ -1,6 +0,6 @@ | ||
import type { Address } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
declare const fetchVaultSwapQuote: ({ vaultId, network, userAddress, buyTokenIds, sellTokenIds, slippagePercentage, }: { | ||
vaultId: string; | ||
sellTokenIds: `${number}`[]; | ||
buyTokenIds: `${number}`[]; | ||
sellTokenIds: TokenIds; | ||
buyTokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -7,0 +7,0 @@ network?: number | undefined; |
{ | ||
"name": "@nftx/api", | ||
"version": "1.10.4", | ||
"version": "1.11.0", | ||
"description": "", | ||
@@ -27,6 +27,6 @@ "homepage": "https://github.com/NFTX-project/nftxjs", | ||
"dependencies": { | ||
"@nftx/config": "^1.10.4", | ||
"@nftx/config": "^1.11.0", | ||
"@nftx/errors": "^1.6.0", | ||
"@nftx/types": "^1.10.4", | ||
"@nftx/utils": "^1.10.4", | ||
"@nftx/types": "^1.11.0", | ||
"@nftx/utils": "^1.11.0", | ||
"viem": "^1.16.6" | ||
@@ -33,0 +33,0 @@ }, |
@@ -5,3 +5,3 @@ import type { | ||
MarketplaceQuote, | ||
TokenId, | ||
TokenIds, | ||
} from '@nftx/types'; | ||
@@ -15,4 +15,4 @@ import { queryApi } from '../utils'; | ||
vaultId: string; | ||
buyTokenIds?: TokenId[] | [TokenId, number][]; | ||
sellTokenIds?: TokenId[] | [TokenId, number][]; | ||
buyTokenIds?: TokenIds; | ||
sellTokenIds?: TokenIds; | ||
network?: number; | ||
@@ -19,0 +19,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -10,3 +10,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number; | ||
@@ -13,0 +13,0 @@ }) => |
@@ -1,2 +0,2 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -12,3 +12,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -15,0 +15,0 @@ network?: number; |
@@ -1,2 +0,2 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -10,3 +10,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number; | ||
@@ -13,0 +13,0 @@ }) => |
@@ -1,2 +0,2 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -12,3 +12,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -15,0 +15,0 @@ network?: number; |
@@ -1,2 +0,2 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -10,3 +10,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number; | ||
@@ -13,0 +13,0 @@ }) => |
@@ -1,2 +0,2 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -12,3 +12,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -15,0 +15,0 @@ network?: number; |
@@ -1,2 +0,2 @@ | ||
import type { TokenId } from '@nftx/types'; | ||
import type { TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -10,3 +10,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
network?: number; | ||
@@ -13,0 +13,0 @@ }) => |
@@ -1,2 +0,2 @@ | ||
import type { Address, TokenId } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -12,3 +12,3 @@ | ||
vaultId: string; | ||
tokenIds: TokenId[] | [TokenId, number][]; | ||
tokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -15,0 +15,0 @@ network?: number; |
@@ -0,1 +1,2 @@ | ||
import { TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -10,4 +11,4 @@ | ||
vaultId: string; | ||
sellTokenIds: `${number}`[]; | ||
buyTokenIds: `${number}`[]; | ||
sellTokenIds: TokenIds; | ||
buyTokenIds: TokenIds; | ||
network?: number; | ||
@@ -14,0 +15,0 @@ }) => |
@@ -1,2 +0,2 @@ | ||
import type { Address } from '@nftx/types'; | ||
import type { Address, TokenIds } from '@nftx/types'; | ||
import fetchQuote from './fetchQuote'; | ||
@@ -13,4 +13,4 @@ | ||
vaultId: string; | ||
sellTokenIds: `${number}`[]; | ||
buyTokenIds: `${number}`[]; | ||
sellTokenIds: TokenIds; | ||
buyTokenIds: TokenIds; | ||
userAddress: Address; | ||
@@ -17,0 +17,0 @@ network?: number; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3305
101282
Updated@nftx/config@^1.11.0
Updated@nftx/types@^1.11.0
Updated@nftx/utils@^1.11.0