@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +0 -1
- package/src/methods/sponsorNftListing/addSponsorNftListingTx.ts +3 -3
- package/src/methods/sponsorNftListing/sponsorNftListing.ts +1 -0
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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(
|
|
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(
|
|
6176
|
+
new bigNumberConfig_default(sponsorOptions?.usdcFeeAmountPerPeriod)?.times(sponsorOptions?.numOfPeriods).toString()
|
|
6178
6177
|
)
|
|
6179
6178
|
]);
|
|
6180
6179
|
tx.moveCall({
|