@b3dotfun/sdk 0.0.40-alpha.17 → 0.0.40-alpha.19

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.
@@ -328,7 +328,7 @@ function AnySpendInner({ destinationTokenAddress, destinationTokenChainId, mode
328
328
  srcTokenAddress: selectedSrcToken.address,
329
329
  dstTokenAddress: isBuyMode ? destinationTokenAddress : selectedDstToken.address,
330
330
  type: "swap",
331
- tradeType: isSrcInputDirty ? "EXACT_INPUT" : "EXPECTED_OUTPUT",
331
+ tradeType: isSrcInputDirty ? "EXACT_INPUT" : "EXACT_OUTPUT",
332
332
  amount: activeInputAmountInWei,
333
333
  }
334
334
  : {
@@ -507,7 +507,7 @@ export interface paths {
507
507
  * @description Type of trade execution
508
508
  * @enum {string}
509
509
  */
510
- tradeType: "EXACT_INPUT" | "EXPECTED_OUTPUT" | "EXACT_OUTPUT";
510
+ tradeType: "EXACT_INPUT" | "EXACT_OUTPUT";
511
511
  /**
512
512
  * @description Amount to quote
513
513
  * @example 1000000000000000000
@@ -23,6 +23,7 @@ const buildPayload = (orderType, params) => {
23
23
  return {
24
24
  contractAddress: (0, utils_1.normalizeAddress)(nft.contractAddress),
25
25
  nftPrice: nft?.price || "",
26
+ tokenId: null,
26
27
  contractType: nft?.type,
27
28
  };
28
29
  }
@@ -321,7 +321,7 @@ function AnySpendInner({ destinationTokenAddress, destinationTokenChainId, mode
321
321
  srcTokenAddress: selectedSrcToken.address,
322
322
  dstTokenAddress: isBuyMode ? destinationTokenAddress : selectedDstToken.address,
323
323
  type: "swap",
324
- tradeType: isSrcInputDirty ? "EXACT_INPUT" : "EXPECTED_OUTPUT",
324
+ tradeType: isSrcInputDirty ? "EXACT_INPUT" : "EXACT_OUTPUT",
325
325
  amount: activeInputAmountInWei,
326
326
  }
327
327
  : {
@@ -507,7 +507,7 @@ export interface paths {
507
507
  * @description Type of trade execution
508
508
  * @enum {string}
509
509
  */
510
- tradeType: "EXACT_INPUT" | "EXPECTED_OUTPUT" | "EXACT_OUTPUT";
510
+ tradeType: "EXACT_INPUT" | "EXACT_OUTPUT";
511
511
  /**
512
512
  * @description Amount to quote
513
513
  * @example 1000000000000000000
@@ -20,6 +20,7 @@ export const buildPayload = (orderType, params) => {
20
20
  return {
21
21
  contractAddress: normalizeAddress(nft.contractAddress),
22
22
  nftPrice: nft?.price || "",
23
+ tokenId: null,
23
24
  contractType: nft?.type,
24
25
  };
25
26
  }
@@ -507,7 +507,7 @@ export interface paths {
507
507
  * @description Type of trade execution
508
508
  * @enum {string}
509
509
  */
510
- tradeType: "EXACT_INPUT" | "EXPECTED_OUTPUT" | "EXACT_OUTPUT";
510
+ tradeType: "EXACT_INPUT" | "EXACT_OUTPUT";
511
511
  /**
512
512
  * @description Amount to quote
513
513
  * @example 1000000000000000000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.40-alpha.17",
3
+ "version": "0.0.40-alpha.19",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -446,7 +446,7 @@ function AnySpendInner({
446
446
  srcTokenAddress: selectedSrcToken.address,
447
447
  dstTokenAddress: isBuyMode ? destinationTokenAddress : selectedDstToken.address,
448
448
  type: "swap",
449
- tradeType: isSrcInputDirty ? "EXACT_INPUT" : "EXPECTED_OUTPUT",
449
+ tradeType: isSrcInputDirty ? "EXACT_INPUT" : "EXACT_OUTPUT",
450
450
  amount: activeInputAmountInWei,
451
451
  }
452
452
  : {
@@ -509,7 +509,7 @@ export interface paths {
509
509
  * @description Type of trade execution
510
510
  * @enum {string}
511
511
  */
512
- tradeType: "EXACT_INPUT" | "EXPECTED_OUTPUT" | "EXACT_OUTPUT";
512
+ tradeType: "EXACT_INPUT" | "EXACT_OUTPUT";
513
513
  /**
514
514
  * @description Amount to quote
515
515
  * @example 1000000000000000000
@@ -31,6 +31,7 @@ export const buildPayload = (orderType: components["schemas"]["Order"]["type"],
31
31
  return {
32
32
  contractAddress: normalizeAddress(nft.contractAddress),
33
33
  nftPrice: nft?.price || "",
34
+ tokenId: null,
34
35
  contractType: nft?.type,
35
36
  };
36
37
  } else {