aftermath-ts-sdk 1.2.61 → 1.2.62

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.
Files changed (32) hide show
  1. package/dist/general/apiHelpers/eventsApiHelpers.d.ts +1 -1
  2. package/dist/general/apiHelpers/eventsApiHelpers.d.ts.map +1 -1
  3. package/dist/general/apiHelpers/eventsApiHelpers.js +4 -1
  4. package/dist/general/types/castingTypes.d.ts +15 -0
  5. package/dist/general/types/castingTypes.d.ts.map +1 -1
  6. package/dist/general/types/configTypes.d.ts +5 -0
  7. package/dist/general/types/configTypes.d.ts.map +1 -1
  8. package/dist/general/utils/helpers.d.ts +1 -1
  9. package/dist/general/utils/helpers.d.ts.map +1 -1
  10. package/dist/general/utils/helpers.js +1 -1
  11. package/dist/packages/farms/api/farmsApi.d.ts +711 -60
  12. package/dist/packages/farms/api/farmsApi.d.ts.map +1 -1
  13. package/dist/packages/farms/api/farmsApi.js +1138 -156
  14. package/dist/packages/farms/api/farmsApiCasting.d.ts +34 -18
  15. package/dist/packages/farms/api/farmsApiCasting.d.ts.map +1 -1
  16. package/dist/packages/farms/api/farmsApiCasting.js +218 -17
  17. package/dist/packages/farms/api/farmsApiCastingTypes.d.ts +117 -21
  18. package/dist/packages/farms/api/farmsApiCastingTypes.d.ts.map +1 -1
  19. package/dist/packages/farms/farms.d.ts +4 -2
  20. package/dist/packages/farms/farms.d.ts.map +1 -1
  21. package/dist/packages/farms/farms.js +8 -2
  22. package/dist/packages/farms/farmsStakedPosition.d.ts +2 -1
  23. package/dist/packages/farms/farmsStakedPosition.d.ts.map +1 -1
  24. package/dist/packages/farms/farmsStakedPosition.js +27 -6
  25. package/dist/packages/farms/farmsStakingPool.d.ts +2 -1
  26. package/dist/packages/farms/farmsStakingPool.d.ts.map +1 -1
  27. package/dist/packages/farms/farmsStakingPool.js +36 -7
  28. package/dist/packages/farms/farmsTypes.d.ts +21 -2
  29. package/dist/packages/farms/farmsTypes.d.ts.map +1 -1
  30. package/dist/packages/router/routerTypes.d.ts +1 -1
  31. package/dist/packages/router/routerTypes.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { AftermathApi } from "../../../general/providers/aftermathApi";
2
- import { AnyObjectType, FarmsAddresses, Timestamp, CoinType, ApiFarmsStakeBody, ApiHarvestFarmsRewardsBody, ApiFarmsDepositPrincipalBody, Balance, ApiFarmsUnstakeBody, FarmsLockEnforcement, FarmsMultiplier, ApiFarmsCreateStakingPoolBody, ApiFarmsTopUpStakingPoolRewardsBody, ApiFarmsInitializeStakingPoolRewardBody, StakingPoolOwnerCapObject, ApiFarmsOwnedStakingPoolOwnerCapsBody, ApiFarmsIncreaseStakingPoolRewardsEmissionsBody, PartialFarmsStakedPositionObject, EventsInputs, FarmsStakedEvent, FarmsStakedRelaxedEvent, FarmsLockedEvent, FarmsUnlockedEvent, FarmsWithdrewPrincipalEvent, FarmsDepositedPrincipalEvent, FarmsHarvestedRewardsEvent, FarmsCreatedVaultEvent, StakingPoolOneTimeAdminCapObject, FarmOwnerOrOneTimeAdminCap, ObjectId, SuiAddress } from "../../../types";
2
+ import { AnyObjectType, FarmsAddresses, Timestamp, CoinType, ApiFarmsStakeBody, ApiHarvestFarmsRewardsBody, ApiFarmsDepositPrincipalBody, Balance, ApiFarmsUnstakeBody, FarmsLockEnforcement, FarmsMultiplier, ApiFarmsCreateStakingPoolBody, ApiFarmsTopUpStakingPoolRewardsBody, ApiFarmsInitializeStakingPoolRewardBody, StakingPoolOwnerCapObject, ApiFarmsOwnedStakingPoolOwnerCapsBody, ApiFarmsIncreaseStakingPoolRewardsEmissionsBody, PartialFarmsStakedPositionObject, StakingPoolOneTimeAdminCapObject, FarmOwnerOrOneTimeAdminCap, ObjectId, SuiAddress, ApiFarmsCreateStakingPoolBodyV1, ApiFarmsStakeBodyV1 } from "../../../types";
3
3
  import { TransactionArgument, Transaction } from "@mysten/sui/transactions";
4
4
  import { MoveErrors, MoveErrorsInterface } from "../../../general/types/moveErrorsInterface";
5
5
  export declare class FarmsApi implements MoveErrorsInterface {
@@ -7,96 +7,284 @@ export declare class FarmsApi implements MoveErrorsInterface {
7
7
  private static readonly constants;
8
8
  readonly addresses: FarmsAddresses;
9
9
  readonly objectTypes: {
10
- stakedPosition: AnyObjectType;
11
- stakingPoolOwnerCap: AnyObjectType;
12
- stakingPoolOneTimeAdminCap: AnyObjectType;
10
+ stakedPositionV1: AnyObjectType;
11
+ stakingPoolOwnerCapV1: AnyObjectType;
12
+ stakingPoolOneTimeAdminCapV1: AnyObjectType;
13
+ stakedPositionV2: AnyObjectType;
14
+ stakingPoolOwnerCapV2: AnyObjectType;
15
+ stakingPoolOneTimeAdminCapV2: AnyObjectType;
13
16
  };
14
17
  readonly eventTypes: {
15
- createdVault: AnyObjectType;
16
- initializedReward: AnyObjectType;
17
- addedReward: AnyObjectType;
18
- increasedEmissions: AnyObjectType;
19
- staked: AnyObjectType;
20
- stakedRelaxed: AnyObjectType;
21
- locked: AnyObjectType;
22
- unlocked: AnyObjectType;
23
- depositedPrincipal: AnyObjectType;
24
- withdrewPrincipal: AnyObjectType;
25
- harvestedRewards: AnyObjectType;
18
+ createdVaultV1: AnyObjectType;
19
+ initializedRewardV1: AnyObjectType;
20
+ addedRewardV1: AnyObjectType;
21
+ increasedEmissionsV1: AnyObjectType;
22
+ stakedV1: AnyObjectType;
23
+ stakedRelaxedV1: AnyObjectType;
24
+ lockedV1: AnyObjectType;
25
+ unlockedV1: AnyObjectType;
26
+ depositedPrincipalV1: AnyObjectType;
27
+ withdrewPrincipalV1: AnyObjectType;
28
+ harvestedRewardsV1: AnyObjectType;
29
+ createdVaultV2: AnyObjectType;
30
+ initializedRewardV2: AnyObjectType;
31
+ addedRewardV2: AnyObjectType;
32
+ updatedEmissionsV2: AnyObjectType;
33
+ stakedV2: AnyObjectType;
34
+ lockedV2: AnyObjectType;
35
+ unlockedV2: AnyObjectType;
36
+ depositedPrincipalV2: AnyObjectType;
37
+ withdrewPrincipalV2: AnyObjectType;
38
+ harvestedRewardsV2: AnyObjectType;
26
39
  };
27
40
  readonly moveErrors: MoveErrors;
41
+ /**
42
+ * Constructor for FarmsApi
43
+ * @param Provider The AftermathApi provider instance
44
+ * @throws Error if not all required addresses have been set in provider
45
+ */
28
46
  constructor(Provider: AftermathApi);
47
+ /**
48
+ * Fetches the owner caps for staking pools owned by a specific wallet address
49
+ * @param inputs Object containing wallet address
50
+ * @returns Array of StakingPoolOwnerCapObject
51
+ */
29
52
  fetchOwnedStakingPoolOwnerCaps: (inputs: ApiFarmsOwnedStakingPoolOwnerCapsBody) => Promise<StakingPoolOwnerCapObject[]>;
53
+ /**
54
+ * Fetches the one-time admin caps for staking pools owned by a specific wallet address
55
+ * @param inputs Object containing wallet address
56
+ * @returns Array of StakingPoolOneTimeAdminCapObject
57
+ */
30
58
  fetchOwnedStakingPoolOneTimeAdminCaps: (inputs: ApiFarmsOwnedStakingPoolOwnerCapsBody) => Promise<StakingPoolOneTimeAdminCapObject[]>;
59
+ /**
60
+ * Fetches partial staked positions owned by a specific wallet address
61
+ * @param inputs Object containing wallet address
62
+ * @returns Array of PartialFarmsStakedPositionObject
63
+ */
31
64
  fetchOwnedPartialStakedPositions: (inputs: {
32
65
  walletAddress: SuiAddress;
33
66
  }) => Promise<PartialFarmsStakedPositionObject[]>;
34
- fetchCreatedVaultEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsCreatedVaultEvent>>;
35
- fetchStakedEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsStakedEvent>>;
36
- fetchStakedRelaxedEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsStakedRelaxedEvent>>;
37
- fetchLockedEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsLockedEvent>>;
38
- fetchUnlockedEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsUnlockedEvent>>;
39
- fetchDepositedPrincipalEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsDepositedPrincipalEvent>>;
40
- fetchWithdrewPrincipalEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsWithdrewPrincipalEvent>>;
41
- fetchHarvestedRewardsEvents: (inputs: EventsInputs) => Promise<import("../../../types").EventsWithCursor<FarmsHarvestedRewardsEvent>>;
42
- stakeTx: (inputs: {
67
+ /**
68
+ * @deprecated use stakeTxV2 instead
69
+ * Creates a transaction to stake coins in a staking pool (original version)
70
+ * @param inputs Staking parameters including transaction, pool ID, coin ID, lock duration, and coin type
71
+ * @returns Transaction object argument for StakedPosition
72
+ */
73
+ stakeTxV1: (inputs: {
43
74
  tx: Transaction;
44
75
  stakingPoolId: ObjectId;
45
76
  stakeCoinId: ObjectId | TransactionArgument;
46
77
  lockDurationMs: Timestamp;
47
78
  stakeCoinType: CoinType;
48
79
  }) => import("@mysten/sui/transactions").TransactionResult;
49
- depositPrincipalTx: (inputs: {
80
+ /**
81
+ * Creates a transaction to stake coins in a staking pool
82
+ * @param inputs Staking parameters including transaction, pool ID, coin ID, lock duration, lock enforcement, and coin type
83
+ * @returns Transaction object argument for StakedPosition
84
+ */
85
+ stakeTxV2: (inputs: {
86
+ tx: Transaction;
87
+ stakingPoolId: ObjectId;
88
+ stakeCoinId: ObjectId | TransactionArgument;
89
+ lockDurationMs: Timestamp;
90
+ lockEnforcement: FarmsLockEnforcement;
91
+ stakeCoinType: CoinType;
92
+ }) => import("@mysten/sui/transactions").TransactionResult;
93
+ /**
94
+ * @deprecated use depositPrincipalTxV2 instead
95
+ * Creates a transaction to deposit additional principal to a staked position (original version)
96
+ * @param inputs Deposit parameters including transaction, position ID, pool ID, coin ID, and coin type
97
+ * @returns Transaction command to deposit principal
98
+ */
99
+ depositPrincipalTxV1: (inputs: {
50
100
  tx: Transaction;
51
101
  stakedPositionId: ObjectId;
52
102
  stakingPoolId: ObjectId;
53
103
  stakeCoinId: ObjectId | TransactionArgument;
54
104
  stakeCoinType: CoinType;
55
105
  }) => import("@mysten/sui/transactions").TransactionResult;
56
- withdrawPrincipalTx: (inputs: {
106
+ /**
107
+ * Creates a transaction to deposit additional principal to a staked position
108
+ * @param inputs Deposit parameters including transaction, position ID, pool ID, coin ID, and coin type
109
+ * @returns Transaction command to deposit principal
110
+ */
111
+ depositPrincipalTxV2: (inputs: {
112
+ tx: Transaction;
113
+ stakedPositionId: ObjectId;
114
+ stakingPoolId: ObjectId;
115
+ stakeCoinId: ObjectId | TransactionArgument;
116
+ stakeCoinType: CoinType;
117
+ }) => import("@mysten/sui/transactions").TransactionResult;
118
+ /**
119
+ * @deprecated use withdrawPrincipalTxV2 instead
120
+ * Creates a transaction to withdraw principal from a staked position (original version)
121
+ * @param inputs Withdrawal parameters including transaction, position ID, pool ID, amount, and coin type
122
+ * @returns Transaction object argument for the withdrawn Coin
123
+ */
124
+ withdrawPrincipalTxV1: (inputs: {
125
+ tx: Transaction;
126
+ stakedPositionId: ObjectId;
127
+ stakingPoolId: ObjectId;
128
+ withdrawAmount: Balance;
129
+ stakeCoinType: CoinType;
130
+ }) => import("@mysten/sui/transactions").TransactionResult;
131
+ /**
132
+ * Creates a transaction to withdraw principal from a staked position
133
+ * @param inputs Withdrawal parameters including transaction, position ID, pool ID, amount, and coin type
134
+ * @returns Transaction object argument for the withdrawn Coin
135
+ */
136
+ withdrawPrincipalTxV2: (inputs: {
57
137
  tx: Transaction;
58
138
  stakedPositionId: ObjectId;
59
139
  stakingPoolId: ObjectId;
60
140
  withdrawAmount: Balance;
61
141
  stakeCoinType: CoinType;
62
142
  }) => import("@mysten/sui/transactions").TransactionResult;
63
- destroyStakedPositionTx: (inputs: {
143
+ /**
144
+ * @deprecated use destroyStakedPositionTxV2 instead
145
+ * Creates a transaction to destroy a staked position (original version)
146
+ * @param inputs Destroy parameters including transaction, position ID, pool ID, and coin type
147
+ * @returns Transaction command to destroy the position
148
+ */
149
+ destroyStakedPositionTxV1: (inputs: {
64
150
  tx: Transaction;
65
151
  stakedPositionId: ObjectId;
66
152
  stakingPoolId: ObjectId;
67
153
  stakeCoinType: CoinType;
68
154
  }) => import("@mysten/sui/transactions").TransactionResult;
69
- updatePositionTx: (inputs: {
155
+ /**
156
+ * Creates a transaction to destroy a staked position
157
+ * @param inputs Destroy parameters including transaction, position ID, and coin type
158
+ * @returns Transaction command to destroy the position
159
+ */
160
+ destroyStakedPositionTxV2: (inputs: {
161
+ tx: Transaction;
162
+ stakedPositionId: ObjectId;
163
+ stakeCoinType: CoinType;
164
+ }) => import("@mysten/sui/transactions").TransactionResult;
165
+ /**
166
+ * @deprecated use updatePositionTxV2 instead
167
+ * Creates a transaction to update a staked position, recalculating rewards (original version)
168
+ * @param inputs Update parameters including transaction, position ID, pool ID, and coin type
169
+ * @returns Transaction command to update the position
170
+ */
171
+ updatePositionTxV1: (inputs: {
172
+ tx: Transaction;
173
+ stakedPositionId: ObjectId;
174
+ stakingPoolId: ObjectId;
175
+ stakeCoinType: CoinType;
176
+ }) => import("@mysten/sui/transactions").TransactionResult;
177
+ /**
178
+ * Creates a transaction to update a staked position, recalculating rewards
179
+ * @param inputs Update parameters including transaction, position ID, pool ID, and coin type
180
+ * @returns Transaction command to update the position
181
+ */
182
+ updatePositionTxV2: (inputs: {
70
183
  tx: Transaction;
71
184
  stakedPositionId: ObjectId;
72
185
  stakingPoolId: ObjectId;
73
186
  stakeCoinType: CoinType;
74
187
  }) => import("@mysten/sui/transactions").TransactionResult;
75
- lockTx: (inputs: {
188
+ /**
189
+ * @deprecated use lockTxV2 instead
190
+ * Creates a transaction to lock a staked position for a specific duration (original version)
191
+ * @param inputs Lock parameters including transaction, position ID, pool ID, lock duration, and coin type
192
+ * @returns Transaction command to lock the position
193
+ */
194
+ lockTxV1: (inputs: {
76
195
  tx: Transaction;
77
196
  stakedPositionId: ObjectId;
78
197
  stakingPoolId: ObjectId;
79
198
  lockDurationMs: Timestamp;
80
199
  stakeCoinType: CoinType;
81
200
  }) => import("@mysten/sui/transactions").TransactionResult;
82
- renewLockTx: (inputs: {
201
+ /**
202
+ * Creates a transaction to lock a staked position for a specific duration
203
+ * @param inputs Lock parameters including transaction, position ID, pool ID, lock duration, and coin type
204
+ * @returns Transaction command to lock the position
205
+ */
206
+ lockTxV2: (inputs: {
207
+ tx: Transaction;
208
+ stakedPositionId: ObjectId;
209
+ stakingPoolId: ObjectId;
210
+ lockDurationMs: Timestamp;
211
+ stakeCoinType: CoinType;
212
+ }) => import("@mysten/sui/transactions").TransactionResult;
213
+ /**
214
+ * @deprecated use renewLockTxV2 instead
215
+ * Creates a transaction to renew the lock on a staked position (original version)
216
+ * @param inputs Renew lock parameters including transaction, position ID, pool ID, and coin type
217
+ * @returns Transaction command to renew the lock
218
+ */
219
+ renewLockTxV1: (inputs: {
220
+ tx: Transaction;
221
+ stakedPositionId: ObjectId;
222
+ stakingPoolId: ObjectId;
223
+ stakeCoinType: CoinType;
224
+ }) => import("@mysten/sui/transactions").TransactionResult;
225
+ /**
226
+ * Creates a transaction to renew the lock on a staked position
227
+ * @param inputs Renew lock parameters including transaction, position ID, pool ID, and coin type
228
+ * @returns Transaction command to renew the lock
229
+ */
230
+ renewLockTxV2: (inputs: {
231
+ tx: Transaction;
232
+ stakedPositionId: ObjectId;
233
+ stakingPoolId: ObjectId;
234
+ stakeCoinType: CoinType;
235
+ }) => import("@mysten/sui/transactions").TransactionResult;
236
+ /**
237
+ * @deprecated use unlockTxV2 instead
238
+ * Creates a transaction to unlock a staked position (original version)
239
+ * @param inputs Unlock parameters including transaction, position ID, pool ID, and coin type
240
+ * @returns Transaction command to unlock the position
241
+ */
242
+ unlockTxV1: (inputs: {
83
243
  tx: Transaction;
84
244
  stakedPositionId: ObjectId;
85
245
  stakingPoolId: ObjectId;
86
246
  stakeCoinType: CoinType;
87
247
  }) => import("@mysten/sui/transactions").TransactionResult;
88
- unlockTx: (inputs: {
248
+ /**
249
+ * Creates a transaction to unlock a staked position
250
+ * @param inputs Unlock parameters including transaction, position ID, pool ID, and coin type
251
+ * @returns Transaction command to unlock the position
252
+ */
253
+ unlockTxV2: (inputs: {
89
254
  tx: Transaction;
90
255
  stakedPositionId: ObjectId;
91
256
  stakingPoolId: ObjectId;
92
257
  stakeCoinType: CoinType;
93
258
  }) => import("@mysten/sui/transactions").TransactionResult;
94
- beginHarvestTx: (inputs: {
259
+ /**
260
+ * @deprecated use beginHarvestTxV2 instead
261
+ * Creates a transaction to begin the reward harvesting process (original version)
262
+ * @param inputs Begin harvest parameters including transaction, pool ID, and coin type
263
+ * @returns Transaction object argument for the harvest metadata
264
+ */
265
+ beginHarvestTxV1: (inputs: {
95
266
  tx: Transaction;
96
267
  stakingPoolId: ObjectId;
97
268
  stakeCoinType: CoinType;
98
269
  }) => import("@mysten/sui/transactions").TransactionResult;
99
- harvestRewardsTx: (inputs: {
270
+ /**
271
+ * Creates a transaction to begin the reward harvesting process
272
+ * @param inputs Begin harvest parameters including transaction, position ID, pool ID, and coin type
273
+ * @returns Transaction object argument for the harvest cap
274
+ */
275
+ beginHarvestTxV2: (inputs: {
276
+ tx: Transaction;
277
+ stakedPositionId: ObjectId;
278
+ stakingPoolId: ObjectId;
279
+ stakeCoinType: CoinType;
280
+ }) => import("@mysten/sui/transactions").TransactionResult;
281
+ /**
282
+ * @deprecated use harvestRewardsTxV2 instead
283
+ * Creates a transaction to harvest rewards from a staked position (original version)
284
+ * @param inputs Harvest parameters including transaction, position ID, pool ID, harvest metadata, stake coin type, and reward coin type
285
+ * @returns Transaction object argument for the harvested rewards
286
+ */
287
+ harvestRewardsTxV1: (inputs: {
100
288
  tx: Transaction;
101
289
  stakedPositionId: ObjectId;
102
290
  stakingPoolId: ObjectId;
@@ -104,11 +292,45 @@ export declare class FarmsApi implements MoveErrorsInterface {
104
292
  stakeCoinType: CoinType;
105
293
  rewardCoinType: CoinType;
106
294
  }) => import("@mysten/sui/transactions").TransactionResult;
107
- endHarvestTx: (inputs: {
295
+ /**
296
+ * Creates a transaction to harvest rewards from a staked position
297
+ * @param inputs Harvest parameters including transaction, harvest cap, position ID, pool ID, stake coin type, and reward coin type
298
+ * @returns Transaction object argument for the harvested rewards
299
+ */
300
+ harvestRewardsTxV2: (inputs: {
301
+ tx: Transaction;
302
+ harvestRewardsCap: ObjectId | TransactionArgument;
303
+ stakedPositionId: ObjectId;
304
+ stakingPoolId: ObjectId;
305
+ stakeCoinType: CoinType;
306
+ rewardCoinType: CoinType;
307
+ }) => import("@mysten/sui/transactions").TransactionResult;
308
+ /**
309
+ * @deprecated use endHarvestTxV2 instead
310
+ * Creates a transaction to end the reward harvesting process (original version)
311
+ * @param inputs End harvest parameters including transaction and harvest metadata
312
+ * @returns Transaction command to end the harvest
313
+ */
314
+ endHarvestTxV1: (inputs: {
108
315
  tx: Transaction;
109
316
  harvestedRewardsEventMetadataId: ObjectId | TransactionArgument;
110
317
  }) => import("@mysten/sui/transactions").TransactionResult;
111
- newStakingPoolTx: (inputs: {
318
+ /**
319
+ * Creates a transaction to end the reward harvesting process
320
+ * @param inputs End harvest parameters including transaction and harvest cap
321
+ * @returns Transaction command to end the harvest
322
+ */
323
+ endHarvestTxV2: (inputs: {
324
+ tx: Transaction;
325
+ harvestRewardsCap: ObjectId | TransactionArgument;
326
+ }) => import("@mysten/sui/transactions").TransactionResult;
327
+ /**
328
+ * @deprecated use newStakingPoolTxV2 instead
329
+ * Creates a transaction for the deprecated version of staking pool creation
330
+ * @param inputs Pool creation parameters including transaction, lock enforcement, durations, multiplier, stake amount, and coin type
331
+ * @returns Transaction objects for the vault and owner cap
332
+ */
333
+ newStakingPoolTxV1: (inputs: {
112
334
  tx: Transaction;
113
335
  lockEnforcement: FarmsLockEnforcement;
114
336
  minLockDurationMs: Timestamp;
@@ -117,23 +339,97 @@ export declare class FarmsApi implements MoveErrorsInterface {
117
339
  minStakeAmount: Balance;
118
340
  stakeCoinType: CoinType;
119
341
  }) => import("@mysten/sui/transactions").TransactionResult;
120
- shareStakingPoolTx: (inputs: {
342
+ /**
343
+ * Creates a transaction for the current version of staking pool creation
344
+ * @param inputs Pool creation parameters including transaction, lock enforcements array, durations, multiplier, stake amount, and coin type
345
+ * @returns Transaction objects for the vault and authority cap
346
+ */
347
+ newStakingPoolTxV2: (inputs: {
348
+ tx: Transaction;
349
+ lockEnforcements: FarmsLockEnforcement[];
350
+ minLockDurationMs: Timestamp;
351
+ maxLockDurationMs: Timestamp;
352
+ maxLockMultiplier: FarmsMultiplier;
353
+ minStakeAmount: Balance;
354
+ stakeCoinType: CoinType;
355
+ }) => import("@mysten/sui/transactions").TransactionResult;
356
+ /**
357
+ * @deprecated use shareStakingPoolTxV2 instead
358
+ * Creates a transaction to share a staking pool, making it public
359
+ * @param inputs Share pool parameters including transaction, pool ID, and coin type
360
+ * @returns Transaction command to share the pool
361
+ */
362
+ shareStakingPoolTxV1: (inputs: {
121
363
  tx: Transaction;
122
364
  stakingPoolId: ObjectId | TransactionArgument;
123
365
  stakeCoinType: CoinType;
124
366
  }) => import("@mysten/sui/transactions").TransactionResult;
125
- transferOwnerCapTx: (inputs: {
367
+ /**
368
+ * Creates a transaction to share a staking pool, making it public
369
+ * @param inputs Share pool parameters including transaction, pool ID, and coin type
370
+ * @returns Transaction command to share the pool
371
+ */
372
+ shareStakingPoolTxV2: (inputs: {
373
+ tx: Transaction;
374
+ stakingPoolId: ObjectId | TransactionArgument;
375
+ stakeCoinType: CoinType;
376
+ }) => import("@mysten/sui/transactions").TransactionResult;
377
+ /**
378
+ * @deprecated use transferOwnerCapTxV2 instead
379
+ * Creates a transaction to transfer ownership of a staking pool
380
+ * @param inputs Transfer parameters including transaction, owner cap ID, and recipient address
381
+ * @returns Transaction command to transfer the owner cap
382
+ */
383
+ transferOwnerCapTxV1: (inputs: {
126
384
  tx: Transaction;
127
385
  ownerCapId: ObjectId | TransactionArgument;
128
386
  recipientAddress: SuiAddress;
129
387
  }) => import("@mysten/sui/transactions").TransactionResult;
130
- grantOneTimeAdminCapTx: (inputs: {
388
+ /**
389
+ * @deprecated use grantOneTimeAdminCapTxV2 instead
390
+ * Creates a transaction to grant a one-time admin capability for a staking pool (original version)
391
+ * @param inputs Grant parameters including transaction, owner cap ID, recipient address, and reward coin type
392
+ * @returns Transaction command to grant the one-time admin cap
393
+ */
394
+ grantOneTimeAdminCapTxV1: (inputs: {
131
395
  tx: Transaction;
132
396
  ownerCapId: ObjectId | TransactionArgument;
133
397
  recipientAddress: SuiAddress;
134
398
  rewardCoinType: CoinType;
135
399
  }) => import("@mysten/sui/transactions").TransactionResult;
136
- initializeStakingPoolRewardTx: (inputs: {
400
+ /**
401
+ * Creates a transaction to grant a one-time admin capability for a staking pool
402
+ * @param inputs Grant parameters including transaction, owner cap ID, recipient address, and reward coin type
403
+ * @returns Transaction command to grant the one-time admin cap
404
+ */
405
+ grantOneTimeAdminCapTxV2: (inputs: {
406
+ tx: Transaction;
407
+ ownerCapId: ObjectId | TransactionArgument;
408
+ recipientAddress: SuiAddress;
409
+ rewardCoinType: CoinType;
410
+ }) => import("@mysten/sui/transactions").TransactionResult;
411
+ /**
412
+ * @deprecated use initializeStakingPoolRewardTxV2 instead
413
+ * Creates a transaction to initialize rewards for a staking pool (original version)
414
+ * @param inputs Initialize reward parameters including transaction, pool ID, reward coin ID, emission parameters, stake coin type, and reward coin type
415
+ * @returns Transaction command to initialize the reward
416
+ */
417
+ initializeStakingPoolRewardTxV1: (inputs: {
418
+ tx: Transaction;
419
+ stakingPoolId: ObjectId;
420
+ rewardCoinId: ObjectId | TransactionArgument;
421
+ emissionScheduleMs: Timestamp;
422
+ emissionRate: bigint;
423
+ emissionDelayTimestampMs: Timestamp;
424
+ stakeCoinType: CoinType;
425
+ rewardCoinType: CoinType;
426
+ } & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
427
+ /**
428
+ * Creates a transaction to initialize rewards for a staking pool
429
+ * @param inputs Initialize reward parameters including transaction, pool ID, reward coin ID, emission parameters, stake coin type, and reward coin type
430
+ * @returns Transaction command to initialize the reward
431
+ */
432
+ initializeStakingPoolRewardTxV2: (inputs: {
137
433
  tx: Transaction;
138
434
  stakingPoolId: ObjectId;
139
435
  rewardCoinId: ObjectId | TransactionArgument;
@@ -143,14 +439,52 @@ export declare class FarmsApi implements MoveErrorsInterface {
143
439
  stakeCoinType: CoinType;
144
440
  rewardCoinType: CoinType;
145
441
  } & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
146
- topUpStakingPoolRewardTx: (inputs: {
442
+ /**
443
+ * @deprecated use topUpStakingPoolRewardTxV2 instead
444
+ * Creates a transaction to add more rewards to a staking pool (original version)
445
+ * @param inputs Top up parameters including transaction, pool ID, reward coin ID, stake coin type, and reward coin type
446
+ * @returns Transaction command to add rewards
447
+ */
448
+ topUpStakingPoolRewardTxV1: (inputs: {
147
449
  tx: Transaction;
148
450
  stakingPoolId: ObjectId;
149
451
  rewardCoinId: ObjectId | TransactionArgument;
150
452
  stakeCoinType: CoinType;
151
453
  rewardCoinType: CoinType;
152
454
  } & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
153
- increaseStakingPoolRewardEmissionsTx: (inputs: {
455
+ /**
456
+ * Creates a transaction to add more rewards to a staking pool
457
+ * @param inputs Top up parameters including transaction, pool ID, reward coin ID, stake coin type, and reward coin type
458
+ * @returns Transaction command to add rewards
459
+ */
460
+ topUpStakingPoolRewardTxV2: (inputs: {
461
+ tx: Transaction;
462
+ stakingPoolId: ObjectId;
463
+ rewardCoinId: ObjectId | TransactionArgument;
464
+ stakeCoinType: CoinType;
465
+ rewardCoinType: CoinType;
466
+ } & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
467
+ /**
468
+ * @deprecated use increaseStakingPoolRewardEmissionsTxV2 instead
469
+ * Creates a transaction to increase the emission rate for a staking pool reward (original version)
470
+ * @param inputs Increase emissions parameters including transaction, owner cap ID, pool ID, emission parameters, stake coin type, and reward coin type
471
+ * @returns Transaction command to update emissions
472
+ */
473
+ increaseStakingPoolRewardEmissionsTxV1: (inputs: {
474
+ tx: Transaction;
475
+ ownerCapId: ObjectId;
476
+ stakingPoolId: ObjectId;
477
+ emissionScheduleMs: Timestamp;
478
+ emissionRate: bigint;
479
+ stakeCoinType: CoinType;
480
+ rewardCoinType: CoinType;
481
+ }) => import("@mysten/sui/transactions").TransactionResult;
482
+ /**
483
+ * Creates a transaction to increase the emission rate for a staking pool reward
484
+ * @param inputs Increase emissions parameters including transaction, owner cap ID, pool ID, emission parameters, stake coin type, and reward coin type
485
+ * @returns Transaction command to update emissions
486
+ */
487
+ increaseStakingPoolRewardEmissionsTxV2: (inputs: {
154
488
  tx: Transaction;
155
489
  ownerCapId: ObjectId;
156
490
  stakingPoolId: ObjectId;
@@ -159,42 +493,163 @@ export declare class FarmsApi implements MoveErrorsInterface {
159
493
  stakeCoinType: CoinType;
160
494
  rewardCoinType: CoinType;
161
495
  }) => import("@mysten/sui/transactions").TransactionResult;
162
- setStakingPoolMinStakeAmountTx: (inputs: {
496
+ /**
497
+ * @deprecated use setStakingPoolMinStakeAmountTxV2 instead
498
+ * Creates a transaction to set the minimum stake amount for a staking pool (original version)
499
+ * @param inputs Min stake amount parameters including transaction, owner cap ID, pool ID, minimum amount, and stake coin type
500
+ * @returns Transaction command to set the minimum stake amount
501
+ */
502
+ setStakingPoolMinStakeAmountTxV1: (inputs: {
503
+ tx: Transaction;
504
+ ownerCapId: ObjectId;
505
+ stakingPoolId: ObjectId;
506
+ minStakeAmount: bigint;
507
+ stakeCoinType: CoinType;
508
+ }) => import("@mysten/sui/transactions").TransactionResult;
509
+ /**
510
+ * Creates a transaction to set the minimum stake amount for a staking pool
511
+ * @param inputs Min stake amount parameters including transaction, owner cap ID, pool ID, minimum amount, and stake coin type
512
+ * @returns Transaction command to set the minimum stake amount
513
+ */
514
+ setStakingPoolMinStakeAmountTxV2: (inputs: {
163
515
  tx: Transaction;
164
516
  ownerCapId: ObjectId;
165
517
  stakingPoolId: ObjectId;
166
518
  minStakeAmount: bigint;
167
519
  stakeCoinType: CoinType;
168
520
  }) => import("@mysten/sui/transactions").TransactionResult;
169
- isVaultUnlockedTx: (inputs: {
521
+ /**
522
+ * Creates a transaction to check if a staking pool is unlocked
523
+ * @param inputs Check parameters including transaction, pool ID, and coin type
524
+ * @returns Transaction object argument for the boolean result
525
+ */
526
+ isVaultUnlockedTxV1: (inputs: {
170
527
  tx: Transaction;
171
528
  stakingPoolId: ObjectId;
172
529
  stakeCoinType: CoinType;
173
530
  }) => import("@mysten/sui/transactions").TransactionResult;
174
- remainingRewardsTx: (inputs: {
531
+ /**
532
+ * Creates a transaction to get the remaining rewards for a staking pool
533
+ * @param inputs Remaining rewards parameters including transaction, pool ID, and coin type
534
+ * @returns Transaction object argument for the vector of remaining rewards
535
+ */
536
+ remainingRewardsTxV1: (inputs: {
175
537
  tx: Transaction;
176
538
  stakingPoolId: ObjectId;
177
539
  stakeCoinType: CoinType;
178
540
  }) => import("@mysten/sui/transactions").TransactionResult;
179
- fetchBuildStakeTx: (inputs: ApiFarmsStakeBody) => Promise<Transaction>;
180
- fetchBuildDepositPrincipalTx: (inputs: ApiFarmsDepositPrincipalBody) => Promise<Transaction>;
181
- fetchBuildWithdrawPrincipalTx: (inputs: {
541
+ /**
542
+ * @deprecated use fetchBuildStakeTxV2 instead
543
+ * Builds a complete transaction for staking coins
544
+ * @param inputs Staking parameters including wallet address, lock enforcement, stake amount, pool ID, lock duration, and coin type
545
+ * @returns Complete transaction ready for signing and execution
546
+ */
547
+ fetchBuildStakeTxV1: (inputs: ApiFarmsStakeBodyV1) => Promise<Transaction>;
548
+ /**
549
+ * Builds a complete transaction for staking coins
550
+ * @param inputs Staking parameters including wallet address, lock enforcement, stake amount, pool ID, lock duration, and coin type
551
+ * @returns Complete transaction ready for signing and execution
552
+ */
553
+ fetchBuildStakeTxV2: (inputs: ApiFarmsStakeBody) => Promise<Transaction>;
554
+ /**
555
+ * @deprecated use fetchBuildDepositPrincipalTxV2 instead
556
+ * Builds a complete transaction for depositing additional principal to a staked position
557
+ * @param inputs Deposit parameters including wallet address, position ID, pool ID, deposit amount, and coin type
558
+ * @returns Complete transaction ready for signing and execution
559
+ */
560
+ fetchBuildDepositPrincipalTxV1: (inputs: ApiFarmsDepositPrincipalBody) => Promise<Transaction>;
561
+ /**
562
+ * Builds a complete transaction for depositing additional principal to a staked position
563
+ * @param inputs Deposit parameters including wallet address, position ID, pool ID, deposit amount, and coin type
564
+ * @returns Complete transaction ready for signing and execution
565
+ */
566
+ fetchBuildDepositPrincipalTxV2: (inputs: ApiFarmsDepositPrincipalBody) => Promise<Transaction>;
567
+ /**
568
+ * @deprecated use fetchBuildWithdrawPrincipalTxV2 instead
569
+ * Builds a complete transaction for withdrawing principal from a staked position
570
+ * @param inputs Withdraw parameters including wallet address, position ID, pool ID, withdraw amount, and coin type
571
+ * @returns Complete transaction ready for signing and execution
572
+ */
573
+ fetchBuildWithdrawPrincipalTxV1: (inputs: {
182
574
  stakedPositionId: ObjectId;
183
575
  stakingPoolId: ObjectId;
184
576
  withdrawAmount: Balance;
185
577
  stakeCoinType: CoinType;
186
578
  walletAddress: SuiAddress;
187
579
  }) => Promise<Transaction>;
188
- fetchBuildUnstakeTx: (inputs: ApiFarmsUnstakeBody) => Promise<Transaction>;
189
- buildUpdatePositionTx: (inputs: {
580
+ /**
581
+ * Builds a complete transaction for withdrawing principal from a staked position
582
+ * @param inputs Withdraw parameters including wallet address, position ID, pool ID, withdraw amount, and coin type
583
+ * @returns Complete transaction ready for signing and execution
584
+ */
585
+ fetchBuildWithdrawPrincipalTxV2: (inputs: {
586
+ stakedPositionId: ObjectId;
587
+ stakingPoolId: ObjectId;
588
+ withdrawAmount: Balance;
589
+ stakeCoinType: CoinType;
590
+ walletAddress: SuiAddress;
591
+ }) => Promise<Transaction>;
592
+ /**
593
+ * @deprecated use fetchBuildUnstakeTxV2 instead
594
+ * Builds a complete transaction for unstaking (withdrawing and destroying a position)
595
+ * @param inputs Unstake parameters including wallet address, position ID, pool ID, reward coin types, and coin type
596
+ * @returns Complete transaction ready for signing and execution
597
+ */
598
+ fetchBuildUnstakeTxV1: (inputs: ApiFarmsUnstakeBody) => Promise<Transaction>;
599
+ /**
600
+ * Builds a complete transaction for unstaking (withdrawing and destroying a position)
601
+ * @param inputs Unstake parameters including wallet address, position ID, pool ID, reward coin types, and coin type
602
+ * @returns Complete transaction ready for signing and execution
603
+ */
604
+ fetchBuildUnstakeTxV2: (inputs: ApiFarmsUnstakeBody) => Promise<Transaction>;
605
+ /**
606
+ * @deprecated use buildUpdatePositionTxV2 instead
607
+ * Builds a transaction for updating a staked position
608
+ * @param parameters for updatePositionTx
609
+ * @returns Complete transaction ready for signing and execution
610
+ */
611
+ buildUpdatePositionTxV1: (inputs: {
612
+ walletAddress: string;
613
+ } & Omit<{
614
+ tx: Transaction;
615
+ stakedPositionId: ObjectId;
616
+ stakingPoolId: ObjectId;
617
+ stakeCoinType: CoinType;
618
+ }, "tx">) => Transaction;
619
+ /**
620
+ * Builds a transaction for updating a staked position
621
+ * @param parameters for updatePositionTx
622
+ * @returns Complete transaction ready for signing and execution
623
+ */
624
+ buildUpdatePositionTx2: (inputs: {
625
+ walletAddress: string;
626
+ } & Omit<{
627
+ tx: Transaction;
628
+ stakedPositionId: ObjectId;
629
+ stakingPoolId: ObjectId;
630
+ stakeCoinType: CoinType;
631
+ }, "tx">) => Transaction;
632
+ /**
633
+ * @deprecated use buildLockTxV2 instead
634
+ * Builds a transaction for locking a staked position
635
+ * @param parameters for lockTx
636
+ * @returns Complete transaction ready for signing and execution
637
+ */
638
+ buildLockTxV1: (inputs: {
190
639
  walletAddress: string;
191
640
  } & Omit<{
192
641
  tx: Transaction;
193
642
  stakedPositionId: ObjectId;
194
643
  stakingPoolId: ObjectId;
644
+ lockDurationMs: Timestamp;
195
645
  stakeCoinType: CoinType;
196
646
  }, "tx">) => Transaction;
197
- buildLockTx: (inputs: {
647
+ /**
648
+ * Builds a transaction for locking a staked position
649
+ * @param parameters for lockTx
650
+ * @returns Complete transaction ready for signing and execution
651
+ */
652
+ buildLockTxV2: (inputs: {
198
653
  walletAddress: string;
199
654
  } & Omit<{
200
655
  tx: Transaction;
@@ -203,7 +658,40 @@ export declare class FarmsApi implements MoveErrorsInterface {
203
658
  lockDurationMs: Timestamp;
204
659
  stakeCoinType: CoinType;
205
660
  }, "tx">) => Transaction;
206
- buildRenewLockTx: (inputs: {
661
+ /**
662
+ * @deprecated use buildRenewLockTxV2 instead
663
+ * Builds a transaction for renewing the lock on a staked position
664
+ * @param parameters for renewLockTx
665
+ * @returns Complete transaction ready for signing and execution
666
+ */
667
+ buildRenewLockTxV1: (inputs: {
668
+ walletAddress: string;
669
+ } & Omit<{
670
+ tx: Transaction;
671
+ stakedPositionId: ObjectId;
672
+ stakingPoolId: ObjectId;
673
+ stakeCoinType: CoinType;
674
+ }, "tx">) => Transaction;
675
+ /**
676
+ * Builds a transaction for renewing the lock on a staked position
677
+ * @param parameters for renewLockTx
678
+ * @returns Complete transaction ready for signing and execution
679
+ */
680
+ buildRenewLockTxV2: (inputs: {
681
+ walletAddress: string;
682
+ } & Omit<{
683
+ tx: Transaction;
684
+ stakedPositionId: ObjectId;
685
+ stakingPoolId: ObjectId;
686
+ stakeCoinType: CoinType;
687
+ }, "tx">) => Transaction;
688
+ /**
689
+ * @deprecated use buildUnlockTxV2 instead
690
+ * Builds a transaction for unlocking a staked position
691
+ * @param parameters for unlockTx
692
+ * @returns Complete transaction ready for signing and execution
693
+ */
694
+ buildUnlockTxV1: (inputs: {
207
695
  walletAddress: string;
208
696
  } & Omit<{
209
697
  tx: Transaction;
@@ -211,7 +699,12 @@ export declare class FarmsApi implements MoveErrorsInterface {
211
699
  stakingPoolId: ObjectId;
212
700
  stakeCoinType: CoinType;
213
701
  }, "tx">) => Transaction;
214
- buildUnlockTx: (inputs: {
702
+ /**
703
+ * Builds a transaction for unlocking a staked position
704
+ * @param parameters for unlockTx
705
+ * @returns Complete transaction ready for signing and execution
706
+ */
707
+ buildUnlockTxV2: (inputs: {
215
708
  walletAddress: string;
216
709
  } & Omit<{
217
710
  tx: Transaction;
@@ -219,12 +712,78 @@ export declare class FarmsApi implements MoveErrorsInterface {
219
712
  stakingPoolId: ObjectId;
220
713
  stakeCoinType: CoinType;
221
714
  }, "tx">) => Transaction;
222
- fetchBuildHarvestRewardsTx: (inputs: ApiHarvestFarmsRewardsBody) => Promise<Transaction>;
223
- fetchBuildCreateStakingPoolTx: (inputs: ApiFarmsCreateStakingPoolBody) => Promise<Transaction>;
224
- fetchBuildInitializeStakingPoolRewardTx: (inputs: ApiFarmsInitializeStakingPoolRewardBody) => Promise<Transaction>;
225
- fetchBuildTopUpStakingPoolRewardsTx: (inputs: ApiFarmsTopUpStakingPoolRewardsBody) => Promise<Transaction>;
226
- fetchIncreaseStakingPoolRewardsEmissionsTx: (inputs: ApiFarmsIncreaseStakingPoolRewardsEmissionsBody) => Transaction;
227
- buildSetStakingPoolMinStakeAmountTx: (inputs: {
715
+ /**
716
+ * @deprecated use fetchBuildHarvestRewardsTxV2 instead
717
+ * Builds a complete transaction for harvesting rewards from staked positions
718
+ * @param inputs Harvest parameters including wallet address, position IDs, pool ID, reward coin types, and optional claim as AfSui flag
719
+ * @returns Complete transaction ready for signing and execution
720
+ */
721
+ fetchBuildHarvestRewardsTxV1: (inputs: ApiHarvestFarmsRewardsBody) => Promise<Transaction>;
722
+ /**
723
+ * Builds a complete transaction for harvesting rewards from staked positions
724
+ * @param inputs Harvest parameters including wallet address, position IDs, pool ID, reward coin types, and optional claim as AfSui flag
725
+ * @returns Complete transaction ready for signing and execution
726
+ */
727
+ fetchBuildHarvestRewardsTxV2: (inputs: ApiHarvestFarmsRewardsBody) => Promise<Transaction>;
728
+ /**
729
+ * @deprecated use fetchBuildCreateStakingPoolTxV2 instead
730
+ * Builds a complete transaction for creating a new staking pool
731
+ * @param inputs Pool creation parameters including wallet address, lock enforcements, durations, multiplier, stake amount, and coin type
732
+ * @returns Complete transaction ready for signing and execution
733
+ */
734
+ fetchBuildCreateStakingPoolTxV1: (inputs: ApiFarmsCreateStakingPoolBodyV1) => Promise<Transaction>;
735
+ /**
736
+ * Builds a complete transaction for creating a new staking pool
737
+ * @param inputs Pool creation parameters including wallet address, lock enforcements, durations, multiplier, stake amount, and coin type
738
+ * @returns Complete transaction ready for signing and execution
739
+ */
740
+ fetchBuildCreateStakingPoolTxV2: (inputs: ApiFarmsCreateStakingPoolBody) => Promise<Transaction>;
741
+ /**
742
+ * @deprecated use fetchBuildInitializeStakingPoolRewardTxV2 instead
743
+ * Builds a complete transaction for initializing rewards for a staking pool
744
+ * @param inputs Initialize rewards parameters including wallet address, owner cap ID, pool ID, reward amount, emission parameters, stake coin type, and reward coin type
745
+ * @returns Complete transaction ready for signing and execution
746
+ */
747
+ fetchBuildInitializeStakingPoolRewardTxV1: (inputs: ApiFarmsInitializeStakingPoolRewardBody) => Promise<Transaction>;
748
+ /**
749
+ * Builds a complete transaction for initializing rewards for a staking pool
750
+ * @param inputs Initialize rewards parameters including wallet address, owner cap ID, pool ID, reward amount, emission parameters, stake coin type, and reward coin type
751
+ * @returns Complete transaction ready for signing and execution
752
+ */
753
+ fetchBuildInitializeStakingPoolRewardTxV2: (inputs: ApiFarmsInitializeStakingPoolRewardBody) => Promise<Transaction>;
754
+ /**
755
+ * @deprecated use fetchBuildTopUpStakingPoolRewardsTxV2 instead
756
+ * Builds a complete transaction for adding more rewards to a staking pool
757
+ * @param inputs Top up rewards parameters including wallet address, owner cap ID, pool ID, rewards array with amounts and coin types, and stake coin type
758
+ * @returns Complete transaction ready for signing and execution
759
+ */
760
+ fetchBuildTopUpStakingPoolRewardsTxV1: (inputs: ApiFarmsTopUpStakingPoolRewardsBody) => Promise<Transaction>;
761
+ /**
762
+ * Builds a complete transaction for adding more rewards to a staking pool
763
+ * @param inputs Top up rewards parameters including wallet address, owner cap ID, pool ID, rewards array with amounts and coin types, and stake coin type
764
+ * @returns Complete transaction ready for signing and execution
765
+ */
766
+ fetchBuildTopUpStakingPoolRewardsTxV2: (inputs: ApiFarmsTopUpStakingPoolRewardsBody) => Promise<Transaction>;
767
+ /**
768
+ * @deprecated use fetchIncreaseStakingPoolRewardsEmissionsTxV2 instead
769
+ * Builds a complete transaction for increasing the emission rate of rewards for a staking pool
770
+ * @param inputs Increase emissions parameters including wallet address, owner cap ID, pool ID, rewards array with emission parameters and coin types, and stake coin type
771
+ * @returns Complete transaction ready for signing and execution
772
+ */
773
+ fetchIncreaseStakingPoolRewardsEmissionsTxV1: (inputs: ApiFarmsIncreaseStakingPoolRewardsEmissionsBody) => Transaction;
774
+ /**
775
+ * Builds a complete transaction for increasing the emission rate of rewards for a staking pool
776
+ * @param inputs Increase emissions parameters including wallet address, owner cap ID, pool ID, rewards array with emission parameters and coin types, and stake coin type
777
+ * @returns Complete transaction ready for signing and execution
778
+ */
779
+ fetchIncreaseStakingPoolRewardsEmissionsTxV2: (inputs: ApiFarmsIncreaseStakingPoolRewardsEmissionsBody) => Transaction;
780
+ /**
781
+ * @deprecated use buildSetStakingPoolMinStakeAmountTxV2 instead
782
+ * Builds a transaction for setting the minimum stake amount for a staking pool
783
+ * @param parameters for setStakingPoolMinStakeAmountTx
784
+ * @returns Complete transaction ready for signing and execution
785
+ */
786
+ buildSetStakingPoolMinStakeAmountTxV1: (inputs: {
228
787
  walletAddress: string;
229
788
  } & Omit<{
230
789
  tx: Transaction;
@@ -233,7 +792,40 @@ export declare class FarmsApi implements MoveErrorsInterface {
233
792
  minStakeAmount: bigint;
234
793
  stakeCoinType: CoinType;
235
794
  }, "tx">) => Transaction;
236
- buildGrantOneTimeAdminCapTx: (inputs: {
795
+ /**
796
+ * Builds a transaction for setting the minimum stake amount for a staking pool
797
+ * @param parameters for setStakingPoolMinStakeAmountTx
798
+ * @returns Complete transaction ready for signing and execution
799
+ */
800
+ buildSetStakingPoolMinStakeAmountTxV2: (inputs: {
801
+ walletAddress: string;
802
+ } & Omit<{
803
+ tx: Transaction;
804
+ ownerCapId: ObjectId;
805
+ stakingPoolId: ObjectId;
806
+ minStakeAmount: bigint;
807
+ stakeCoinType: CoinType;
808
+ }, "tx">) => Transaction;
809
+ /**
810
+ * @deprecated use buildGrantOneTimeAdminCapTxV2 instead
811
+ * Builds a transaction for granting a one-time admin capability for a staking pool
812
+ * @param parameters for grantOneTimeAdminCapTx
813
+ * @returns Complete transaction ready for signing and execution
814
+ */
815
+ buildGrantOneTimeAdminCapTxV1: (inputs: {
816
+ walletAddress: string;
817
+ } & Omit<{
818
+ tx: Transaction;
819
+ ownerCapId: ObjectId | TransactionArgument;
820
+ recipientAddress: SuiAddress;
821
+ rewardCoinType: CoinType;
822
+ }, "tx">) => Transaction;
823
+ /**
824
+ * Builds a transaction for granting a one-time admin capability for a staking pool
825
+ * @param parameters for grantOneTimeAdminCapTx
826
+ * @returns Complete transaction ready for signing and execution
827
+ */
828
+ buildGrantOneTimeAdminCapTxV2: (inputs: {
237
829
  walletAddress: string;
238
830
  } & Omit<{
239
831
  tx: Transaction;
@@ -241,19 +833,78 @@ export declare class FarmsApi implements MoveErrorsInterface {
241
833
  recipientAddress: SuiAddress;
242
834
  rewardCoinType: CoinType;
243
835
  }, "tx">) => Transaction;
836
+ private eventWrapperType;
837
+ /**
838
+ * Creates the event type for vault creation events
839
+ * @returns Fully qualified event type string
840
+ */
244
841
  private createdVaultEventType;
842
+ /**
843
+ * Creates the event type for reward initialization events
844
+ * @returns Fully qualified event type string
845
+ */
245
846
  private initializedRewardEventType;
847
+ /**
848
+ * Creates the event type for reward addition events
849
+ * @returns Fully qualified event type string
850
+ */
246
851
  private addedRewardEventType;
852
+ /**
853
+ * Creates the event type for emission increase events
854
+ * @returns Fully qualified event type string
855
+ */
247
856
  private increasedEmissionsEventType;
857
+ /**
858
+ * Creates the event type for emission update events
859
+ * @returns Fully qualified event type string
860
+ */
861
+ private updatedEmissionsEventType;
862
+ /**
863
+ * Creates the event type for strict staking events
864
+ * @returns Fully qualified event type string
865
+ */
248
866
  private stakedEventType;
867
+ /**
868
+ * Creates the event type for relaxed staking events
869
+ * @returns Fully qualified event type string
870
+ */
249
871
  private stakedRelaxedEventType;
872
+ /**
873
+ * Creates the event type for position locking events
874
+ * @returns Fully qualified event type string
875
+ */
250
876
  private lockedEventType;
877
+ /**
878
+ * Creates the event type for position unlocking events
879
+ * @returns Fully qualified event type string
880
+ */
251
881
  private unlockedEventType;
882
+ /**
883
+ * Creates the event type for principal deposit events
884
+ * @returns Fully qualified event type string
885
+ */
252
886
  private depositedPrincipalEventType;
887
+ /**
888
+ * Creates the event type for principal withdrawal events
889
+ * @returns Fully qualified event type string
890
+ */
253
891
  private withdrewPrincipalEventType;
892
+ /**
893
+ * Creates the event type for reward harvesting events
894
+ * @returns Fully qualified event type string
895
+ */
254
896
  private harvestedRewardsEventType;
255
- private static isFarmOwnerCapId;
897
+ /**
898
+ * Checks if the input contains a one-time admin cap ID
899
+ * @param inputs FarmOwnerOrOneTimeAdminCap object
900
+ * @returns True if the input contains a one-time admin cap ID
901
+ */
256
902
  private static isFarmOneTimeAdminCapId;
903
+ /**
904
+ * Gets the appropriate cap ID from the input
905
+ * @param inputs FarmOwnerOrOneTimeAdminCap object
906
+ * @returns Either the owner cap ID or one-time admin cap ID
907
+ */
257
908
  private static farmCapId;
258
909
  }
259
910
  //# sourceMappingURL=farmsApi.d.ts.map