@scallop-io/sui-scallop-sdk 0.44.25 → 0.44.26

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.
@@ -1,5 +1,6 @@
1
- import { SuiAddressArg, SuiTxBlock, TransactionBlock, SuiTxBlock as SuiKitTxBlock } from '@scallop-io/sui-kit';
1
+ import { SuiTxBlock, TransactionBlock, SuiTxBlock as SuiKitTxBlock } from '@scallop-io/sui-kit';
2
2
  import { ScallopBuilder } from '../models';
3
+ import type { SuiObjectArg } from '@scallop-io/sui-kit';
3
4
  import type { ScallopTxBlock, VeScaTxBlock } from 'src/types';
4
5
  /**
5
6
  * Check and get veSCA data from transaction block.
@@ -13,7 +14,7 @@ import type { ScallopTxBlock, VeScaTxBlock } from 'src/types';
13
14
  * @param veScaKey - veSCA key.
14
15
  * @return veSCA key, ID, locked amount and unlock at timestamp.
15
16
  */
16
- export declare const requireVeSca: (builder: ScallopBuilder, SuiTxBlock: SuiTxBlock, veScaKey?: SuiAddressArg | undefined) => Promise<import("src/types").Vesca | undefined>;
17
+ export declare const requireVeSca: (builder: ScallopBuilder, SuiTxBlock: SuiTxBlock, veScaKey?: SuiObjectArg | undefined) => Promise<import("src/types").Vesca | undefined>;
17
18
  /**
18
19
  * Create an enhanced transaction block instance for interaction with veSCA modules of the Scallop contract.
19
20
  *
package/dist/index.js CHANGED
@@ -5045,6 +5045,19 @@ var generateBorrowIncentiveNormalMethod = ({ builder, txBlock }) => {
5045
5045
  ],
5046
5046
  [rewardType]
5047
5047
  );
5048
+ },
5049
+ deactivateBoost: (obligation, veScaKey) => {
5050
+ return txBlock.moveCall(
5051
+ `${borrowIncentiveIds.borrowIncentivePkg}::user::deactivate_boost`,
5052
+ [
5053
+ borrowIncentiveIds.config,
5054
+ borrowIncentiveIds.incentivePools,
5055
+ borrowIncentiveIds.incentiveAccounts,
5056
+ obligation,
5057
+ veScaKey,
5058
+ import_utils17.SUI_CLOCK_OBJECT_ID
5059
+ ]
5060
+ );
5048
5061
  }
5049
5062
  };
5050
5063
  };