@tradeport/sui-trading-sdk 0.4.44 → 0.4.45

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.d.mts CHANGED
@@ -117,6 +117,7 @@ type SponsorNftListingOptions = {
117
117
  numOfPeriods?: number;
118
118
  slippage?: number;
119
119
  coinInType?: string;
120
+ usdcFeeAmountPerPeriod?: number;
120
121
  };
121
122
  type SponsorNftListing = {
122
123
  nftTokenId: string;
package/dist/index.d.ts CHANGED
@@ -117,6 +117,7 @@ type SponsorNftListingOptions = {
117
117
  numOfPeriods?: number;
118
118
  slippage?: number;
119
119
  coinInType?: string;
120
+ usdcFeeAmountPerPeriod?: number;
120
121
  };
121
122
  type SponsorNftListing = {
122
123
  nftTokenId: string;
package/dist/index.js CHANGED
@@ -175,7 +175,6 @@ var DexConstants = {
175
175
  "0x0854de4e9d64716b757b2f6f22258467f59cc1b4bc0cc64c70086549faaddedf"
176
176
  ]
177
177
  };
178
- var TRADEPORT_SPONSOR_USDC_FEE_AMOUNT_PER_PERIOD = 2e7;
179
178
  var USDC_COIN_TYPE = "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
180
179
  var COLLECTION_IDS_WITH_ZERO_COMMISSION = [
181
180
  ""
@@ -6158,7 +6157,7 @@ var addSponsorListingTx = async ({
6158
6157
  const coinInAmount = await calculateSwapInputAmountWithSlippage({
6159
6158
  coinInType: sponsorOptions?.coinInType,
6160
6159
  coinOutType: USDC_COIN_TYPE,
6161
- coinOutAmount: new bigNumberConfig_default(TRADEPORT_SPONSOR_USDC_FEE_AMOUNT_PER_PERIOD)?.times(sponsorOptions?.numOfPeriods).toString(),
6160
+ coinOutAmount: new bigNumberConfig_default(sponsorOptions?.usdcFeeAmountPerPeriod)?.times(sponsorOptions?.numOfPeriods).toString(),
6162
6161
  slippage: sponsorOptions?.slippage
6163
6162
  });
6164
6163
  const { coinOut } = await createSwapTransaction({
@@ -6174,7 +6173,7 @@ var addSponsorListingTx = async ({
6174
6173
  });
6175
6174
  const [sponsorFeeCoin] = tx.splitCoins(coinOut, [
6176
6175
  tx.pure.u64(
6177
- new bigNumberConfig_default(TRADEPORT_SPONSOR_USDC_FEE_AMOUNT_PER_PERIOD)?.times(sponsorOptions?.numOfPeriods).toString()
6176
+ new bigNumberConfig_default(sponsorOptions?.usdcFeeAmountPerPeriod)?.times(sponsorOptions?.numOfPeriods).toString()
6178
6177
  )
6179
6178
  ]);
6180
6179
  tx.moveCall({