aftermath-ts-sdk 1.2.63 → 1.2.64-docs.0

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 (117) hide show
  1. package/README.md +61 -27
  2. package/dist/general/dynamicGas/dynamicGas.d.ts +34 -0
  3. package/dist/general/dynamicGas/dynamicGas.d.ts.map +1 -1
  4. package/dist/general/dynamicGas/dynamicGas.js +34 -0
  5. package/dist/general/dynamicGas/dynamicGasTypes.d.ts +25 -0
  6. package/dist/general/dynamicGas/dynamicGasTypes.d.ts.map +1 -1
  7. package/dist/general/prices/prices.d.ts +73 -0
  8. package/dist/general/prices/prices.d.ts.map +1 -1
  9. package/dist/general/prices/prices.js +73 -0
  10. package/dist/general/providers/aftermath.d.ts +106 -25
  11. package/dist/general/providers/aftermath.d.ts.map +1 -1
  12. package/dist/general/providers/aftermath.js +108 -27
  13. package/dist/general/providers/aftermathApi.d.ts +127 -8
  14. package/dist/general/providers/aftermathApi.d.ts.map +1 -1
  15. package/dist/general/providers/aftermathApi.js +132 -12
  16. package/dist/general/types/castingTypes.d.ts +0 -7
  17. package/dist/general/types/castingTypes.d.ts.map +1 -1
  18. package/dist/general/types/castingTypes.js +6 -0
  19. package/dist/general/types/generalTypes.d.ts +228 -7
  20. package/dist/general/types/generalTypes.d.ts.map +1 -1
  21. package/dist/general/types/suiTypes.d.ts +0 -16
  22. package/dist/general/types/suiTypes.d.ts.map +1 -1
  23. package/dist/general/types/suiTypes.js +3 -25
  24. package/dist/general/utils/casting.d.ts +159 -3
  25. package/dist/general/utils/casting.d.ts.map +1 -1
  26. package/dist/general/utils/casting.js +162 -16
  27. package/dist/general/utils/fixedUtils.d.ts +89 -2
  28. package/dist/general/utils/fixedUtils.d.ts.map +1 -1
  29. package/dist/general/utils/fixedUtils.js +81 -4
  30. package/dist/general/utils/helpers.d.ts +320 -9
  31. package/dist/general/utils/helpers.d.ts.map +1 -1
  32. package/dist/general/utils/helpers.js +350 -89
  33. package/dist/general/utils/iFixedUtils.d.ts +64 -0
  34. package/dist/general/utils/iFixedUtils.d.ts.map +1 -1
  35. package/dist/general/utils/iFixedUtils.js +64 -0
  36. package/dist/general/wallet/wallet.d.ts +75 -0
  37. package/dist/general/wallet/wallet.d.ts.map +1 -1
  38. package/dist/general/wallet/wallet.js +75 -5
  39. package/dist/packages/auth/auth.d.ts +113 -0
  40. package/dist/packages/auth/auth.d.ts.map +1 -1
  41. package/dist/packages/auth/auth.js +129 -15
  42. package/dist/packages/auth/authTypes.d.ts +66 -0
  43. package/dist/packages/auth/authTypes.d.ts.map +1 -1
  44. package/dist/packages/coin/api/coinApi.d.ts.map +1 -1
  45. package/dist/packages/coin/api/coinApi.js +28 -20
  46. package/dist/packages/coin/coin.d.ts +250 -0
  47. package/dist/packages/coin/coin.d.ts.map +1 -1
  48. package/dist/packages/coin/coin.js +238 -14
  49. package/dist/packages/coin/coinTypes.d.ts +93 -0
  50. package/dist/packages/coin/coinTypes.d.ts.map +1 -1
  51. package/dist/packages/dca/dca.d.ts +124 -35
  52. package/dist/packages/dca/dca.d.ts.map +1 -1
  53. package/dist/packages/dca/dca.js +127 -37
  54. package/dist/packages/dca/dcaTypes.d.ts +213 -28
  55. package/dist/packages/dca/dcaTypes.d.ts.map +1 -1
  56. package/dist/packages/farms/farms.d.ts +184 -1
  57. package/dist/packages/farms/farms.d.ts.map +1 -1
  58. package/dist/packages/farms/farms.js +185 -11
  59. package/dist/packages/farms/farmsStakedPosition.d.ts +140 -6
  60. package/dist/packages/farms/farmsStakedPosition.d.ts.map +1 -1
  61. package/dist/packages/farms/farmsStakedPosition.js +189 -144
  62. package/dist/packages/farms/farmsStakingPool.d.ts +161 -1
  63. package/dist/packages/farms/farmsStakingPool.d.ts.map +1 -1
  64. package/dist/packages/farms/farmsStakingPool.js +176 -70
  65. package/dist/packages/farms/farmsTypes.d.ts +283 -2
  66. package/dist/packages/farms/farmsTypes.d.ts.map +1 -1
  67. package/dist/packages/farms/farmsTypes.js +18 -0
  68. package/dist/packages/limitOrders/limitOrders.d.ts +108 -21
  69. package/dist/packages/limitOrders/limitOrders.d.ts.map +1 -1
  70. package/dist/packages/limitOrders/limitOrders.js +110 -22
  71. package/dist/packages/limitOrders/limitOrdersTypes.d.ts +142 -0
  72. package/dist/packages/limitOrders/limitOrdersTypes.d.ts.map +1 -1
  73. package/dist/packages/multisig/multisig.d.ts +33 -4
  74. package/dist/packages/multisig/multisig.d.ts.map +1 -1
  75. package/dist/packages/multisig/multisig.js +33 -4
  76. package/dist/packages/multisig/multisigTypes.d.ts +17 -0
  77. package/dist/packages/multisig/multisigTypes.d.ts.map +1 -1
  78. package/dist/packages/perpetuals/api/perpetualsApi.d.ts.map +1 -1
  79. package/dist/packages/pools/pool.d.ts +327 -85
  80. package/dist/packages/pools/pool.d.ts.map +1 -1
  81. package/dist/packages/pools/pool.js +333 -91
  82. package/dist/packages/pools/pools.d.ts +299 -37
  83. package/dist/packages/pools/pools.d.ts.map +1 -1
  84. package/dist/packages/pools/pools.js +306 -52
  85. package/dist/packages/pools/poolsTypes.d.ts +273 -8
  86. package/dist/packages/pools/poolsTypes.d.ts.map +1 -1
  87. package/dist/packages/referralVault/referralVault.d.ts +37 -0
  88. package/dist/packages/referralVault/referralVault.d.ts.map +1 -1
  89. package/dist/packages/referralVault/referralVault.js +37 -0
  90. package/dist/packages/router/router.d.ts +213 -17
  91. package/dist/packages/router/router.d.ts.map +1 -1
  92. package/dist/packages/router/router.js +214 -18
  93. package/dist/packages/router/routerTypes.d.ts +198 -14
  94. package/dist/packages/router/routerTypes.d.ts.map +1 -1
  95. package/dist/packages/staking/staking.d.ts +301 -43
  96. package/dist/packages/staking/staking.d.ts.map +1 -1
  97. package/dist/packages/staking/staking.js +308 -51
  98. package/dist/packages/staking/stakingTypes.d.ts +426 -6
  99. package/dist/packages/staking/stakingTypes.d.ts.map +1 -1
  100. package/dist/packages/staking/stakingTypes.js +19 -0
  101. package/dist/packages/sui/sui.d.ts +39 -0
  102. package/dist/packages/sui/sui.d.ts.map +1 -1
  103. package/dist/packages/sui/sui.js +39 -0
  104. package/dist/packages/userData/userData.d.ts +66 -12
  105. package/dist/packages/userData/userData.d.ts.map +1 -1
  106. package/dist/packages/userData/userData.js +66 -12
  107. package/dist/packages/userData/userDataTypes.d.ts +19 -0
  108. package/dist/packages/userData/userDataTypes.d.ts.map +1 -1
  109. package/dist/types.d.ts.map +1 -1
  110. package/dist/types.js +0 -1
  111. package/package.json +1 -1
  112. package/dist/general/historicalData/historicalData.d.ts +0 -15
  113. package/dist/general/historicalData/historicalData.d.ts.map +0 -1
  114. package/dist/general/historicalData/historicalData.js +0 -45
  115. package/dist/general/historicalData/historicalDataTypes.d.ts +0 -10
  116. package/dist/general/historicalData/historicalDataTypes.d.ts.map +0 -1
  117. package/dist/general/historicalData/historicalDataTypes.js +0 -2
@@ -1,134 +1,319 @@
1
1
  import { ObjectId, SuiAddress } from "../../types";
2
2
  import { CoinType } from "../coin/coinTypes";
3
3
  import { Balance, Timestamp, TransactionDigest } from "../../general/types/generalTypes";
4
+ /**
5
+ * Describes an optional integrator fee configuration for advanced usage,
6
+ * allowing a portion of DCA trades to be collected by a third party.
7
+ */
4
8
  export interface DcaIntegratorFeeData {
9
+ /**
10
+ * The fee in basis points (bps). e.g., 100 => 1%.
11
+ */
5
12
  feeBps: number;
13
+ /**
14
+ * The Sui address that will receive the fee portion.
15
+ */
6
16
  feeRecipient: SuiAddress;
7
17
  }
18
+ /**
19
+ * Optional DCA order strategy parameters, typically bounding min & max
20
+ * acceptable prices for the trades.
21
+ */
8
22
  export interface DcaOrderStrategyData {
23
+ /**
24
+ * The minimum acceptable spot price for the trade, as a bigint scaled by 1e9 or 1e18 depending on usage.
25
+ */
9
26
  minPrice: Balance;
27
+ /**
28
+ * The maximum acceptable spot price for the trade, similarly scaled.
29
+ */
10
30
  maxPrice: Balance;
11
31
  }
32
+ /**
33
+ * The inputs required to create a new DCA order. This includes all relevant
34
+ * coin types, amounts, frequency, trade count, etc.
35
+ */
12
36
  export interface ApiDcaTransactionForCreateOrderBody {
37
+ /**
38
+ * The user's address that owns & initiates the DCA order.
39
+ */
13
40
  walletAddress: SuiAddress;
41
+ /**
42
+ * The coin type from which funds will be allocated (sold).
43
+ */
14
44
  allocateCoinType: CoinType;
45
+ /**
46
+ * The total amount of the allocate coin to be used across trades.
47
+ */
15
48
  allocateCoinAmount: Balance;
49
+ /**
50
+ * The coin type that will be purchased periodically.
51
+ */
16
52
  buyCoinType: CoinType;
53
+ /**
54
+ * The frequency (in ms) at which trades occur, e.g. every hour => 3600000.
55
+ */
17
56
  frequencyMs: Timestamp;
57
+ /**
58
+ * The total number of trades to execute before concluding the DCA plan.
59
+ */
18
60
  tradesAmount: number;
61
+ /**
62
+ * An optional bounding strategy specifying min & max acceptable prices.
63
+ */
19
64
  strategy?: DcaOrderStrategyData;
65
+ /**
66
+ * If `true`, indicates a partially or fully sponsored transaction, removing gas burden from the user.
67
+ */
20
68
  isSponsoredTx?: boolean;
69
+ /**
70
+ * A delay (in ms) before the first trade executes. If `0`, it starts immediately.
71
+ */
21
72
  delayTimeMs: Timestamp;
73
+ /**
74
+ * The maximum allowable slippage (in basis points) for each trade, e.g. 100 => 1%.
75
+ */
22
76
  maxAllowableSlippageBps: number;
77
+ /**
78
+ * The per-trade amount of `allocateCoinType` to be used, e.g. each trade uses 2 SUI if this is `2e9`.
79
+ */
23
80
  coinPerTradeAmount: Balance;
81
+ /**
82
+ * An optional alternate address to receive the purchased coin. Defaults to `walletAddress` if undefined.
83
+ */
24
84
  customRecipient?: SuiAddress;
85
+ /**
86
+ * Optional integrator fee data. If provided, a portion of each trade is allocated to the integrator.
87
+ */
25
88
  integratorFee?: DcaIntegratorFeeData;
26
89
  }
90
+ /**
91
+ * The request body for closing a DCA order, typically requiring a signature
92
+ * over a JSON message specifying which orders to cancel.
93
+ */
27
94
  export interface ApiDcaTransactionForCloseOrderBody {
95
+ /**
96
+ * The user's address initiating the close/cancel action.
97
+ */
28
98
  walletAddress: SuiAddress;
99
+ /**
100
+ * The signed bytes of the cancellation message.
101
+ */
29
102
  bytes: string;
103
+ /**
104
+ * The user's signature corresponding to `bytes`.
105
+ */
30
106
  signature: string;
31
107
  }
108
+ /**
109
+ * Represents parameters for a manual order close workflow. Typically not
110
+ * used in the standard approach.
111
+ */
32
112
  export type ApiDcaManualCloseOrderBody = {
33
113
  walletAddress: SuiAddress;
34
114
  buyCoinType: CoinType;
35
115
  allocateCoinType: CoinType;
36
116
  orderId: SuiAddress;
37
117
  };
118
+ /**
119
+ * Enumerates reasons that a DCA trade might fail, e.g., the price was out of bounds
120
+ * or the user lacked enough gas.
121
+ */
38
122
  export type DcaFailedTradeReason = "INTERNAL" | "STRATEGY" | "GAS_CAP" | "UNKNOWN_USER" | "SLIPPAGE";
123
+ /**
124
+ * Represents data for a successful trade that occurred in a DCA sequence,
125
+ * including the amounts of allocated/buy coins, the final transaction info, etc.
126
+ */
39
127
  export interface DcaOrderTradeObject {
128
+ /**
129
+ * The coin & amount that was spent in this trade (e.g., SUI).
130
+ */
40
131
  allocatedCoin: {
41
132
  coin: CoinType;
42
133
  amount: Balance;
43
134
  };
135
+ /**
136
+ * The coin & amount that was purchased (e.g., USDC).
137
+ */
44
138
  buyCoin: {
45
139
  coin: CoinType;
46
140
  amount: Balance;
47
141
  };
48
- /** @deprecated use txnDigest instead */
49
- tnxDigest: TransactionDigest;
142
+ /**
143
+ * The final transaction digest for this trade. (Deprecated field `tnxDigest` also present.)
144
+ */
50
145
  txnDigest: TransactionDigest;
51
- /** @deprecated use txnTimestamp instead */
52
- tnxDate: Timestamp;
146
+ /** @deprecated use `txnDigest` instead */
147
+ tnxDigest: TransactionDigest;
148
+ /**
149
+ * The timestamp (in ms) when this trade was executed. (Deprecated field `tnxDate` also present.)
150
+ */
53
151
  txnTimestamp: Timestamp;
152
+ /** @deprecated use `txnTimestamp` instead */
153
+ tnxDate: Timestamp;
154
+ /**
155
+ * The effective rate of the trade, if available, e.g. "0.95" or "1.10".
156
+ */
54
157
  rate: number | undefined;
55
158
  }
159
+ /**
160
+ * Represents a failed trade attempt in a DCA sequence, including time
161
+ * of failure and the reason code.
162
+ */
56
163
  export interface DcaOrderFailedTradeObject {
57
164
  timestamp: number;
58
165
  reason: DcaFailedTradeReason | undefined;
59
166
  }
167
+ /**
168
+ * Summarizes the main details of a DCA order, including how much coin is allocated
169
+ * and how many trades remain.
170
+ */
60
171
  export interface DcaOrderOverviewObject {
172
+ /**
173
+ * The coin & amount the user allocated for the entire DCA cycle.
174
+ */
61
175
  allocatedCoin: {
62
176
  coin: CoinType;
63
177
  amount: Balance;
64
178
  };
179
+ /**
180
+ * The coin & amount that is being purchased in each periodic trade.
181
+ */
65
182
  buyCoin: {
66
183
  coin: CoinType;
67
184
  amount: Balance;
68
185
  };
186
+ /**
187
+ * The total amount of allocateCoin actually spent so far.
188
+ */
69
189
  totalSpent: Balance;
190
+ /**
191
+ * The interval (in ms) between each trade, e.g., every hour => 3600000.
192
+ */
70
193
  intervalMs: Timestamp;
194
+ /**
195
+ * The total number of trades that were planned.
196
+ */
71
197
  totalTrades: number;
198
+ /**
199
+ * The number of remaining trades that have not yet executed.
200
+ */
72
201
  tradesRemaining: number;
202
+ /**
203
+ * The maximum slippage (bps) allowed for each trade.
204
+ */
73
205
  maxSlippageBps: number;
206
+ /**
207
+ * Optional bounding strategy with min/max acceptable prices.
208
+ */
74
209
  strategy?: DcaOrderStrategyData;
210
+ /**
211
+ * The address to receive the purchased coin. Defaults to the DCA owner's address if unspecified.
212
+ */
75
213
  recipient: SuiAddress;
214
+ /**
215
+ * Represents how far along the DCA has progressed, typically out of `totalTrades`.
216
+ */
76
217
  progress: number;
218
+ /**
219
+ * Details about when & how the DCA was created. Contains timestamps and transaction references.
220
+ */
77
221
  created: {
78
- /** @deprecated use timestamp instead */
79
- time: Timestamp;
80
222
  timestamp: Timestamp;
81
- /** @deprecated use txnDigest instead */
82
- tnxDigest: TransactionDigest;
223
+ /** @deprecated use `timestamp` instead */
224
+ time: Timestamp;
83
225
  txnDigest: TransactionDigest;
226
+ /** @deprecated use `txnDigest` instead */
227
+ tnxDigest: TransactionDigest;
84
228
  };
229
+ /**
230
+ * If the next trade is scheduled in the future, indicates when that trade will occur.
231
+ */
85
232
  nextTrade?: {
86
- /** @deprecated use timestamp instead */
87
- time: Timestamp;
88
233
  timestamp: Timestamp;
89
- /** @deprecated use txnDigest instead */
90
- tnxDigest: TransactionDigest;
234
+ /** @deprecated use `timestamp` instead */
235
+ time: Timestamp;
91
236
  txnDigest: TransactionDigest;
237
+ /** @deprecated use `txnDigest` instead */
238
+ tnxDigest: TransactionDigest;
92
239
  };
240
+ /**
241
+ * If at least one trade has already executed, shows when & how the last one occurred.
242
+ */
93
243
  lastExecutedTrade?: {
94
- /** @deprecated use timestamp instead */
95
- time: Timestamp;
96
244
  timestamp: Timestamp;
97
- /** @deprecated use txnDigest instead */
98
- tnxDigest: TransactionDigest;
245
+ /** @deprecated use `timestamp` instead */
246
+ time: Timestamp;
99
247
  txnDigest: TransactionDigest;
248
+ /** @deprecated use `txnDigest` instead */
249
+ tnxDigest: TransactionDigest;
100
250
  };
251
+ /**
252
+ * Optional integrator fee settings that might apply to each trade.
253
+ */
101
254
  integratorFee?: DcaIntegratorFeeData;
102
255
  }
256
+ /**
257
+ * Represents a single DCA order, including overview data, all successful trades, and all failed trades.
258
+ */
103
259
  export interface DcaOrderObject {
260
+ /**
261
+ * The on-chain object ID representing this DCA order.
262
+ */
104
263
  objectId: ObjectId;
264
+ /**
265
+ * Summary of the DCA (allocated amounts, trades remaining, etc.).
266
+ */
105
267
  overview: DcaOrderOverviewObject;
268
+ /**
269
+ * An array of all completed trades.
270
+ */
106
271
  trades: DcaOrderTradeObject[];
272
+ /**
273
+ * An array of attempted trades that failed, along with reasons/timestamps.
274
+ */
107
275
  failed: DcaOrderFailedTradeObject[];
108
276
  }
277
+ /**
278
+ * Represents a grouping of DCA orders, typically used in the older or combined approach.
279
+ * Contains both `active` and `past` arrays.
280
+ */
109
281
  export interface DcaOrdersObject {
282
+ /**
283
+ * Active DCA orders.
284
+ */
110
285
  active: DcaOrderObject[];
286
+ /**
287
+ * Past (completed or canceled) DCA orders.
288
+ */
111
289
  past: DcaOrderObject[];
112
290
  }
113
291
  /**
114
- * @deprecated please use ApiUserDataCreateUserBody from userData package instead
115
- * */
292
+ * **Deprecated**. Body for creating a user public key in the old DCA system.
293
+ * Use `ApiUserDataCreateUserBody` from `userData` package instead.
294
+ */
116
295
  export interface ApiDcaCreateUserBody {
296
+ /**
297
+ * The Sui address of the user.
298
+ */
117
299
  walletAddress: SuiAddress;
300
+ /**
301
+ * The message bytes that the user is signing (in hex or base64).
302
+ */
118
303
  bytes: string;
304
+ /**
305
+ * The resulting signature from signing `bytes`.
306
+ */
119
307
  signature: string;
120
308
  }
309
+ /**
310
+ * **Deprecated**. Body for fetching the DCA orders owned by a specific user.
311
+ * Use separate `getActiveDcaOrders` and `getPastDcaOrders` calls instead.
312
+ */
121
313
  export interface ApiDCAsOwnedBody {
122
- walletAddress: SuiAddress;
123
- }
124
- /** @deprecated use `userData` package instead */
125
- export interface ApiDcaCreateUserBody {
126
- walletAddress: SuiAddress;
127
- bytes: string;
128
- signature: string;
129
- }
130
- /** @deprecated use `userData` package instead */
131
- export interface ApiDCAsOwnedBody {
314
+ /**
315
+ * The user's Sui address whose DCA orders should be fetched.
316
+ */
132
317
  walletAddress: SuiAddress;
133
318
  }
134
319
  //# sourceMappingURL=dcaTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dcaTypes.d.ts","sourceRoot":"","sources":["../../../src/packages/dca/dcaTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAmB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACN,OAAO,EACP,SAAS,EAET,iBAAiB,EAGjB,MAAM,kCAAkC,CAAC;AAM1C,MAAM,WAA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H,aAAa,EAAE,UAAU,CAAC;CAC1B"}
@@ -4,35 +4,218 @@ import { ApiFarmsCreateStakingPoolBody, ApiFarmsCreateStakingPoolBodyV1, ApiFarm
4
4
  import { FarmsStakingPool } from "./farmsStakingPool";
5
5
  import { FarmsStakedPosition } from "./farmsStakedPosition";
6
6
  import { AftermathApi } from "../../general/providers";
7
+ /**
8
+ * The `Farms` class provides high-level methods for interacting with
9
+ * staking pools (farms) on the Sui network. It allows fetching pool
10
+ * details, user staked positions, and building transactions for creating
11
+ * new pools. This class also enables retrieving user interactions (events)
12
+ * with the farming system.
13
+ */
7
14
  export declare class Farms extends Caller {
8
15
  private readonly Provider?;
16
+ /**
17
+ * Contains constants relevant to farming, including minimum rewards to claim
18
+ * and maximum lock multipliers.
19
+ */
9
20
  static readonly constants: {
21
+ /**
22
+ * The minimum number of rewards (in smallest units) that can be claimed.
23
+ */
10
24
  minRewardsToClaim: bigint;
25
+ /**
26
+ * The maximum lock multiplier that can be applied when locking a staked position.
27
+ */
11
28
  maxLockMultiplier: number;
12
29
  };
30
+ /**
31
+ * Creates a new `Farms` instance for fetching staking pool data and building
32
+ * farm-related transactions.
33
+ *
34
+ * @param config - Optional configuration, including network and access token.
35
+ * @param Provider - An optional `AftermathApi` instance for advanced transaction building.
36
+ */
13
37
  constructor(config?: CallerConfig, Provider?: AftermathApi | undefined);
38
+ /**
39
+ * Fetches a single staking pool by its `objectId` from the farm API/indexer.
40
+ *
41
+ * @param inputs - An object containing the `objectId` of the staking pool.
42
+ * @returns A `FarmsStakingPool` object representing the staking pool.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * const pool = await farms.getStakingPool({ objectId: "0x<pool_id>" });
47
+ * console.log(pool.stakingPool);
48
+ * ```
49
+ */
14
50
  getStakingPool(inputs: {
15
51
  objectId: ObjectId;
16
52
  }): Promise<FarmsStakingPool>;
53
+ /**
54
+ * Fetches multiple staking pools by their `objectIds`.
55
+ *
56
+ * @param inputs - An object containing an array of `objectIds`.
57
+ * @returns An array of `FarmsStakingPool` instances corresponding to each `objectId`.
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * const pools = await farms.getStakingPools({
62
+ * objectIds: ["0x<id1>", "0x<id2>"]
63
+ * });
64
+ * console.log(pools[0].stakingPool, pools[1].stakingPool);
65
+ * ```
66
+ */
17
67
  getStakingPools(inputs: {
18
68
  objectIds: ObjectId[];
19
69
  }): Promise<FarmsStakingPool[]>;
70
+ /**
71
+ * Fetches all existing staking pools registered within the indexer or farm API.
72
+ *
73
+ * @returns An array of `FarmsStakingPool` objects.
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * const allPools = await farms.getAllStakingPools();
78
+ * console.log(allPools.map(pool => pool.stakingPool));
79
+ * ```
80
+ */
20
81
  getAllStakingPools(): Promise<FarmsStakingPool[]>;
82
+ /**
83
+ * Fetches all staked positions owned by a given user.
84
+ *
85
+ * @param inputs - An object containing the user's `walletAddress`.
86
+ * @returns An array of `FarmsStakedPosition` objects representing each of the user's staked positions.
87
+ *
88
+ * @example
89
+ * ```typescript
90
+ * const positions = await farms.getOwnedStakedPositions({
91
+ * walletAddress: "0x<user_address>"
92
+ * });
93
+ * console.log(positions);
94
+ * ```
95
+ */
21
96
  getOwnedStakedPositions(inputs: ApiFarmsOwnedStakedPositionsBody): Promise<FarmsStakedPosition[]>;
97
+ /**
98
+ * Fetches all `StakingPoolOwnerCapObject`s that a given address owns.
99
+ * These caps grant the owner the ability to modify staking pool parameters.
100
+ *
101
+ * @param inputs - An object containing the owner's `walletAddress`.
102
+ * @returns An array of `StakingPoolOwnerCapObject`s.
103
+ *
104
+ * @example
105
+ * ```typescript
106
+ * const ownerCaps = await farms.getOwnedStakingPoolOwnerCaps({
107
+ * walletAddress: "0x<user_address>"
108
+ * });
109
+ * console.log(ownerCaps);
110
+ * ```
111
+ */
22
112
  getOwnedStakingPoolOwnerCaps(inputs: ApiFarmsOwnedStakingPoolOwnerCapsBody): Promise<StakingPoolOwnerCapObject[]>;
113
+ /**
114
+ * Fetches all `StakingPoolOneTimeAdminCapObject`s that a given address owns.
115
+ * These caps grant one-time admin privileges, typically for initializing reward coins.
116
+ *
117
+ * @param inputs - An object containing the admin's `walletAddress`.
118
+ * @returns An array of `StakingPoolOneTimeAdminCapObject`s.
119
+ *
120
+ * @example
121
+ * ```typescript
122
+ * const adminCaps = await farms.getOwnedStakingPoolOneTimeAdminCaps({
123
+ * walletAddress: "0x<user_address>"
124
+ * });
125
+ * console.log(adminCaps);
126
+ * ```
127
+ */
23
128
  getOwnedStakingPoolOneTimeAdminCaps(inputs: ApiFarmsOwnedStakingPoolOneTimeAdminCapsBody): Promise<StakingPoolOneTimeAdminCapObject[]>;
129
+ /**
130
+ * Retrieves the total value locked (TVL) in the specified farm IDs or in all farms if none are specified.
131
+ *
132
+ * @param inputs - An optional object containing an array of `farmIds` to filter TVL by. If not provided, returns global TVL.
133
+ * @returns A promise that resolves to a `number` representing the TVL in USD (or another relevant currency).
134
+ *
135
+ * @example
136
+ * ```typescript
137
+ * const tvl = await farms.getTVL();
138
+ * console.log("All farms' TVL:", tvl);
139
+ *
140
+ * const tvlForSpecificFarm = await farms.getTVL({ farmIds: ["0x<farm_id>"] });
141
+ * console.log("Specific farm's TVL:", tvlForSpecificFarm);
142
+ * ```
143
+ */
24
144
  getTVL(inputs?: {
25
145
  farmIds?: ObjectId[];
26
146
  }): Promise<number>;
147
+ /**
148
+ * Retrieves the total value locked (TVL) of reward coins across specified farm IDs or all farms if none are specified.
149
+ *
150
+ * @param inputs - An optional object containing an array of `farmIds`. If not provided, returns global reward TVL.
151
+ * @returns A promise that resolves to a `number` representing the total rewards TVL in USD (or another relevant currency).
152
+ *
153
+ * @example
154
+ * ```typescript
155
+ * const rewardsTvl = await farms.getRewardsTVL();
156
+ * console.log("All farms' rewards TVL:", rewardsTvl);
157
+ *
158
+ * const singleFarmRewardsTvl = await farms.getRewardsTVL({ farmIds: ["0x<farm_id>"] });
159
+ * console.log("Single farm's rewards TVL:", singleFarmRewardsTvl);
160
+ * ```
161
+ */
27
162
  getRewardsTVL(inputs?: {
28
163
  farmIds?: ObjectId[];
29
164
  }): Promise<number>;
30
- /** @deprecated use getCreateStakingPoolTransactionV2 instead */
165
+ /**
166
+ * **Deprecated**: Use `getCreateStakingPoolTransactionV2()` instead.
167
+ *
168
+ * Builds a transaction to create a new staking pool (farming vault) on version 1 of the farm system.
169
+ *
170
+ * @param inputs - Contains pool creation parameters such as `minLockDurationMs`, `maxLockDurationMs`, etc.
171
+ * @returns A transaction object (or bytes) that can be signed and submitted.
172
+ *
173
+ * @deprecated Please use `getCreateStakingPoolTransactionV2`.
174
+ */
31
175
  getCreateStakingPoolTransactionV1(inputs: ApiFarmsCreateStakingPoolBodyV1): Promise<import("@mysten/sui/transactions").Transaction>;
176
+ /**
177
+ * Builds a transaction to create a new staking pool (farming vault) on version 2 of the farm system.
178
+ *
179
+ * @param inputs - Contains pool creation parameters such as `minLockDurationMs`, `maxLockDurationMs`, etc.
180
+ * @returns A transaction object (or bytes) that can be signed and submitted.
181
+ *
182
+ * @example
183
+ * ```typescript
184
+ * const tx = await farms.getCreateStakingPoolTransactionV2({
185
+ * minLockDurationMs: 604800000, // 1 week
186
+ * maxLockDurationMs: 31536000000, // 1 year
187
+ * maxLockMultiplier: BigInt("2000000000"), // e.g. 2.0x
188
+ * minStakeAmount: BigInt("1000000"),
189
+ * stakeCoinType: "0x<coin_type>",
190
+ * walletAddress: "0x<admin_address>"
191
+ * });
192
+ * // sign and submit the transaction
193
+ * ```
194
+ */
32
195
  getCreateStakingPoolTransactionV2(inputs: ApiFarmsCreateStakingPoolBody): Promise<import("@mysten/sui/transactions").Transaction>;
196
+ /**
197
+ * Fetches user-specific farm interaction events (e.g., staked, unlocked, withdrew) with optional pagination.
198
+ *
199
+ * @param inputs - Includes the user's `walletAddress`, along with `cursor` and `limit` for pagination.
200
+ * @returns A paginated set of events of type `FarmUserEvent`.
201
+ *
202
+ * @example
203
+ * ```typescript
204
+ * const userEvents = await farms.getInteractionEvents({
205
+ * walletAddress: "0x<user_address>",
206
+ * cursor: 0,
207
+ * limit: 10
208
+ * });
209
+ * console.log(userEvents);
210
+ * ```
211
+ */
33
212
  getInteractionEvents(inputs: ApiIndexerEventsBody & {
34
213
  walletAddress: SuiAddress;
35
214
  }): Promise<import("../../types").IndexerEventsWithCursor<FarmUserEvent>>;
215
+ /**
216
+ * Retrieves an instance of the `Farms` provider from the passed `AftermathApi`,
217
+ * throwing an error if not available.
218
+ */
36
219
  private useProvider;
37
220
  }
38
221
  //# sourceMappingURL=farms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"farms.d.ts","sourceRoot":"","sources":["../../../src/packages/farms/farms.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,QAAQ,EACR,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EACN,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,EAChC,4CAA4C,EAC5C,qCAAqC,EAUrC,aAAa,EACb,gCAAgC,EAChC,yBAAyB,EACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,KAAM,SAAQ,MAAM;IAgB/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAX3B,gBAAuB,SAAS;;;MAG9B;gBAOD,MAAM,CAAC,EAAE,YAAY,EACJ,QAAQ,CAAC,0BAAc;IAa5B,cAAc,CAAC,MAAM,EAAE;QACnC,QAAQ,EAAE,QAAQ,CAAC;KACnB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAOhB,eAAe,CAAC,MAAM,EAAE;QACpC,SAAS,EAAE,QAAQ,EAAE,CAAC;KACtB,G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