@scallop-io/sui-scallop-sdk 0.44.24 → 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.
- package/dist/builders/vescaBuilder.d.ts +3 -2
- package/dist/constants/common.d.ts +1 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopQuery.d.ts +8 -0
- package/dist/queries/borrowIncentiveQuery.d.ts +8 -0
- package/dist/types/builder/borrowIncentive.d.ts +10 -9
- package/dist/types/builder/vesca.d.ts +9 -9
- package/package.json +1 -1
- package/src/builders/borrowIncentiveBuilder.ts +16 -3
- package/src/builders/vescaBuilder.ts +5 -6
- package/src/constants/common.ts +4 -0
- package/src/constants/enum.ts +4 -0
- package/src/types/builder/borrowIncentive.ts +19 -18
- package/src/types/builder/vesca.ts +8 -9
package/dist/index.mjs
CHANGED
|
@@ -50,6 +50,10 @@ var SUPPORT_BORROW_INCENTIVE_POOLS = [
|
|
|
50
50
|
"sui",
|
|
51
51
|
"usdc",
|
|
52
52
|
"usdt",
|
|
53
|
+
"afsui",
|
|
54
|
+
"hasui",
|
|
55
|
+
"vsui",
|
|
56
|
+
"eth",
|
|
53
57
|
"sca"
|
|
54
58
|
];
|
|
55
59
|
var SUPPORT_BORROW_INCENTIVE_REWARDS = ["sui", "sca"];
|
|
@@ -148,7 +152,11 @@ var borrowIncentiveRewardCoins = {
|
|
|
148
152
|
sui: ["sui", "sca"],
|
|
149
153
|
usdc: ["sui", "sca"],
|
|
150
154
|
usdt: ["sui", "sca"],
|
|
151
|
-
sca: ["sui", "sca"]
|
|
155
|
+
sca: ["sui", "sca"],
|
|
156
|
+
afsui: ["sui"],
|
|
157
|
+
hasui: ["sui"],
|
|
158
|
+
vsui: ["sui"],
|
|
159
|
+
eth: ["sui"]
|
|
152
160
|
};
|
|
153
161
|
var coinIds = {
|
|
154
162
|
sui: "0x0000000000000000000000000000000000000000000000000000000000000002",
|
|
@@ -4972,6 +4980,19 @@ var generateBorrowIncentiveNormalMethod = ({ builder, txBlock }) => {
|
|
|
4972
4980
|
],
|
|
4973
4981
|
[rewardType]
|
|
4974
4982
|
);
|
|
4983
|
+
},
|
|
4984
|
+
deactivateBoost: (obligation, veScaKey) => {
|
|
4985
|
+
return txBlock.moveCall(
|
|
4986
|
+
`${borrowIncentiveIds.borrowIncentivePkg}::user::deactivate_boost`,
|
|
4987
|
+
[
|
|
4988
|
+
borrowIncentiveIds.config,
|
|
4989
|
+
borrowIncentiveIds.incentivePools,
|
|
4990
|
+
borrowIncentiveIds.incentiveAccounts,
|
|
4991
|
+
obligation,
|
|
4992
|
+
veScaKey,
|
|
4993
|
+
SUI_CLOCK_OBJECT_ID5
|
|
4994
|
+
]
|
|
4995
|
+
);
|
|
4975
4996
|
}
|
|
4976
4997
|
};
|
|
4977
4998
|
};
|