@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "2.2.4",
3
+ "version": "2.2.6-tbw-sponsored-alpha.1",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -342,13 +342,19 @@ const generateCoreQuickMethod: GenerateCoreQuickMethod = ({
342
342
  collateralCoinName
343
343
  );
344
344
  },
345
- depositQuick: async (amount, poolCoinName, returnSCoin = true) => {
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,