@scallop-io/sui-scallop-sdk 2.2.4 → 2.2.6-tbw-sponsored-alpha.1
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/builders/coreBuilder.ts +8 -2
- package/src/models/scallopClient.ts +2 -1
- package/src/types/builder/core.ts +2 -1
package/package.json
CHANGED
|
@@ -342,13 +342,19 @@ const generateCoreQuickMethod: GenerateCoreQuickMethod = ({
|
|
|
342
342
|
collateralCoinName
|
|
343
343
|
);
|
|
344
344
|
},
|
|
345
|
-
depositQuick: async (
|
|
345
|
+
depositQuick: async (
|
|
346
|
+
amount,
|
|
347
|
+
poolCoinName,
|
|
348
|
+
returnSCoin = true,
|
|
349
|
+
isSponsoredTx = false
|
|
350
|
+
) => {
|
|
346
351
|
const sender = requireSender(txBlock);
|
|
347
352
|
const { leftCoin, takeCoin } = await builder.selectCoin(
|
|
348
353
|
txBlock,
|
|
349
354
|
poolCoinName,
|
|
350
355
|
amount,
|
|
351
|
-
sender
|
|
356
|
+
sender,
|
|
357
|
+
isSponsoredTx
|
|
352
358
|
);
|
|
353
359
|
if (leftCoin) {
|
|
354
360
|
txBlock.transferObjects([leftCoin], sender);
|
|
@@ -222,7 +222,8 @@ class ScallopClient implements ScallopClientInterface {
|
|
|
222
222
|
amount: number,
|
|
223
223
|
sign?: S,
|
|
224
224
|
obligationId?: string,
|
|
225
|
-
walletAddress?: string
|
|
225
|
+
walletAddress?: string,
|
|
226
|
+
isSponsoredTx?: boolean
|
|
226
227
|
): Promise<ScallopClientFnReturnType<S>>;
|
|
227
228
|
async depositCollateral<S extends boolean>(
|
|
228
229
|
collateralCoinName: string,
|
|
@@ -130,7 +130,8 @@ export type CoreQuickMethods = {
|
|
|
130
130
|
depositQuick: (
|
|
131
131
|
amount: number,
|
|
132
132
|
poolCoinName: string,
|
|
133
|
-
returnSCoin?: boolean
|
|
133
|
+
returnSCoin?: boolean,
|
|
134
|
+
isSponsoredTx?: boolean
|
|
134
135
|
) => Promise<TransactionResult>;
|
|
135
136
|
withdrawQuick: (
|
|
136
137
|
amount: number,
|