@sodax/sdk 0.0.1-rc.3 → 0.0.1-rc.4
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/constants.d.ts.map +1 -1
- package/dist/constants.js +50 -8
- package/dist/constants.js.map +1 -1
- package/dist/services/moneyMarket/MoneyMarketService.d.ts +262 -60
- package/dist/services/moneyMarket/MoneyMarketService.d.ts.map +1 -1
- package/dist/services/moneyMarket/MoneyMarketService.js +262 -60
- package/dist/services/moneyMarket/MoneyMarketService.js.map +1 -1
- package/dist/services/solver/SolverService.d.ts +137 -38
- package/dist/services/solver/SolverService.d.ts.map +1 -1
- package/dist/services/solver/SolverService.js +137 -37
- package/dist/services/solver/SolverService.js.map +1 -1
- package/package.json +1 -1
|
@@ -114,139 +114,341 @@ export declare class MoneyMarketService {
|
|
|
114
114
|
private readonly hubProvider;
|
|
115
115
|
constructor(config: MoneyMarketConfigParams | undefined, hubProvider: EvmHubProvider, relayerApiEndpoint?: HttpUrl);
|
|
116
116
|
/**
|
|
117
|
-
* Check
|
|
118
|
-
* @param {MoneyMarketRepayParams | MoneyMarketSupplyParams} params - Money market params
|
|
119
|
-
* @param {SpokeProvider} spokeProvider - The spoke provider
|
|
120
|
-
* @return {Promise<Result<boolean>>} -
|
|
117
|
+
* Check if allowance is sufficient for supply or repay operations (currently required for EVM only)
|
|
118
|
+
* @param {MoneyMarketRepayParams | MoneyMarketSupplyParams} params - Money market params containing token address and amount
|
|
119
|
+
* @param {SpokeProvider} spokeProvider - The spoke provider instance
|
|
120
|
+
* @return {Promise<Result<boolean>>} - Returns true if allowance is sufficient, false otherwise
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* const allowanceValid = await isAllowanceValid({
|
|
124
|
+
* token: '0x...', // Address of the token (spoke chain) to supply
|
|
125
|
+
* amount: 1000n, // Amount to supply (in token decimals)
|
|
126
|
+
* }, spokeProvider);
|
|
127
|
+
*
|
|
128
|
+
* if (!allowanceValid.ok) {
|
|
129
|
+
* // Handle error
|
|
130
|
+
* }
|
|
131
|
+
*
|
|
132
|
+
* if (!allowanceValid.value) {
|
|
133
|
+
* // Need to approve
|
|
134
|
+
* }
|
|
121
135
|
*/
|
|
122
136
|
isAllowanceValid<S extends SpokeProvider>(params: MoneyMarketRepayParams | MoneyMarketSupplyParams, spokeProvider: S): Promise<Result<boolean>>;
|
|
123
137
|
/**
|
|
124
|
-
* Approve
|
|
138
|
+
* Approve amount spending (currently required for EVM only)
|
|
125
139
|
* @param token - ERC20 token address
|
|
126
140
|
* @param amount - Amount to approve
|
|
127
141
|
* @param spender - Spender address
|
|
128
142
|
* @param spokeProvider - Spoke provider
|
|
143
|
+
* @returns {Promise<Result<EvmRawTransactionReceipt>>} - Returns the transaction receipt
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* const approveResult = await approve(
|
|
147
|
+
* '0x...', // ERC20 token address
|
|
148
|
+
* 1000n, // Amount to approve (in token decimals)
|
|
149
|
+
* '0x...', // Spender address (usually the asset manager contract: spokeProvider.chainConfig.addresses.assetManager)
|
|
150
|
+
* spokeProvider
|
|
151
|
+
* );
|
|
152
|
+
*
|
|
153
|
+
* if (!approveResult.ok) {
|
|
154
|
+
* // Handle error
|
|
155
|
+
* }
|
|
156
|
+
*
|
|
157
|
+
* const txReceipt = approveResult.value;
|
|
129
158
|
*/
|
|
130
159
|
approve<S extends SpokeProvider>(token: Address, amount: bigint, spender: Address, spokeProvider: S): Promise<Result<EvmRawTransactionReceipt>>;
|
|
131
160
|
/**
|
|
132
|
-
* Supply tokens to the money market pool and submit the intent to the Solver API
|
|
161
|
+
* Supply tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
133
162
|
* @param params - The parameters for the supply transaction.
|
|
134
163
|
* @param spokeProvider - The spoke provider.
|
|
135
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is
|
|
136
|
-
* @returns [
|
|
164
|
+
* @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
165
|
+
* @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* const result = await moneyMarketService.supplyAndSubmit(
|
|
169
|
+
* {
|
|
170
|
+
* token: '0x...', // Address of the token (spoke chain address) to supply
|
|
171
|
+
* amount: 1000n, // Amount to supply (in token decimals)
|
|
172
|
+
* },
|
|
173
|
+
* spokeProvider,
|
|
174
|
+
* 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
|
|
175
|
+
* );
|
|
176
|
+
*
|
|
177
|
+
* if (!result.ok) {
|
|
178
|
+
* // Handle error
|
|
179
|
+
* }
|
|
180
|
+
*
|
|
181
|
+
* const [
|
|
182
|
+
* spokeTxHash, // transaction hash on the spoke chain
|
|
183
|
+
* hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
|
|
184
|
+
* ] = result.value;
|
|
185
|
+
* console.log('Supply transaction hashes:', { spokeTxHash, hubTxHash });
|
|
137
186
|
*/
|
|
138
187
|
supplyAndSubmit<S extends SpokeProvider>(params: MoneyMarketSupplyParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
139
188
|
/**
|
|
140
|
-
* Supply tokens to the money market pool
|
|
141
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
189
|
+
* Supply tokens to the money market pool without submitting the intent to the Solver API
|
|
190
|
+
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
191
|
+
* In order to successfully supply tokens, you need to:
|
|
192
|
+
* 1. Check if the allowance is sufficient
|
|
193
|
+
* 2. Approve the asset manager contract to spend the tokens
|
|
194
|
+
* 3. Supply the tokens
|
|
195
|
+
* 4. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
|
|
196
|
+
*
|
|
142
197
|
* @param params - The parameters for the supply transaction.
|
|
143
198
|
* @param spokeProvider - The spoke provider.
|
|
144
199
|
* @param raw - Whether to return the raw transaction data.
|
|
145
|
-
* @returns
|
|
200
|
+
* @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} - Returns the transaction result.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* const moneyMarketService = new MoneyMarketService(config);
|
|
204
|
+
* const result = await moneyMarketService.supply(
|
|
205
|
+
* {
|
|
206
|
+
* token: "0x123...", // token address
|
|
207
|
+
* amount: 1000000000000000000n // 1 token in wei
|
|
208
|
+
* },
|
|
209
|
+
* spokeProvider,
|
|
210
|
+
* raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
|
|
211
|
+
* );
|
|
212
|
+
*
|
|
213
|
+
* if (result.ok) {
|
|
214
|
+
* const txHash = result.value;
|
|
215
|
+
* console.log('Supply transaction hash:', txHash);
|
|
216
|
+
* } else {
|
|
217
|
+
* console.error('Supply failed:', result.error);
|
|
218
|
+
* }
|
|
146
219
|
*/
|
|
147
220
|
supply<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketSupplyParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError>>;
|
|
148
221
|
/**
|
|
149
|
-
* Borrow tokens from the money market pool and submit the intent to the Solver API
|
|
222
|
+
* Borrow tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
150
223
|
* @param params - The parameters for the borrow transaction.
|
|
151
224
|
* @param spokeProvider - The spoke provider.
|
|
152
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is
|
|
153
|
-
* @returns [
|
|
225
|
+
* @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
226
|
+
* @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* const result = await moneyMarketService.borrowAndSubmit(
|
|
230
|
+
* {
|
|
231
|
+
* token: '0x...', // Address of the token (spoke chain address) to borrow
|
|
232
|
+
* amount: 1000n, // Amount to borrow (in token decimals)
|
|
233
|
+
* },
|
|
234
|
+
* spokeProvider,
|
|
235
|
+
* 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
|
|
236
|
+
* );
|
|
237
|
+
*
|
|
238
|
+
* if (!result.ok) {
|
|
239
|
+
* // Handle error
|
|
240
|
+
* }
|
|
241
|
+
*
|
|
242
|
+
* const [
|
|
243
|
+
* spokeTxHash, // transaction hash on the spoke chain
|
|
244
|
+
* hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
|
|
245
|
+
* ] = result.value;
|
|
246
|
+
* console.log('Borrow transaction hashes:', { spokeTxHash, hubTxHash });
|
|
154
247
|
*/
|
|
155
248
|
borrowAndSubmit<S extends SpokeProvider>(params: MoneyMarketSupplyParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
156
249
|
/**
|
|
157
|
-
* Borrow tokens from the money market pool
|
|
158
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
250
|
+
* Borrow tokens from the money market pool without submitting the intent to the Solver API
|
|
251
|
+
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
252
|
+
* In order to successfully borrow tokens, you need to:
|
|
253
|
+
* 1. Execute the borrow transaction on the spoke chain
|
|
254
|
+
* 2. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
|
|
255
|
+
*
|
|
159
256
|
* @param params - The parameters for the borrow transaction.
|
|
160
257
|
* @param spokeProvider - The spoke provider.
|
|
161
258
|
* @param raw - Whether to return the raw transaction data.
|
|
162
|
-
* @returns
|
|
259
|
+
* @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} - Returns the transaction result (raw transaction data or transaction hash).
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* const moneyMarketService = new MoneyMarketService(config);
|
|
263
|
+
* const result = await moneyMarketService.borrow(
|
|
264
|
+
* {
|
|
265
|
+
* token: "0x123...", // token address
|
|
266
|
+
* amount: 1000000000000000000n // 1 token in wei
|
|
267
|
+
* },
|
|
268
|
+
* spokeProvider,
|
|
269
|
+
* raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
|
|
270
|
+
* );
|
|
271
|
+
*
|
|
272
|
+
* if (result.ok) {
|
|
273
|
+
* const txHash = result.value;
|
|
274
|
+
* console.log('Borrow transaction hash:', txHash);
|
|
275
|
+
* } else {
|
|
276
|
+
* console.error('Borrow failed:', result.error);
|
|
277
|
+
* }
|
|
163
278
|
*/
|
|
164
279
|
borrow<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketBorrowParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
|
|
165
280
|
/**
|
|
166
|
-
* Withdraw tokens from the money market pool and submit the intent to the Solver API
|
|
281
|
+
* Withdraw tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
282
|
+
*
|
|
167
283
|
* @param params - The parameters for the withdraw transaction.
|
|
168
284
|
* @param spokeProvider - The spoke provider.
|
|
169
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is
|
|
170
|
-
* @returns [
|
|
285
|
+
* @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
286
|
+
* @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
|
|
287
|
+
*
|
|
288
|
+
* @example
|
|
289
|
+
* const result = await moneyMarketService.withdrawAndSubmit(
|
|
290
|
+
* {
|
|
291
|
+
* token: '0x...', // Address of the token (spoke chain address) to withdraw
|
|
292
|
+
* amount: 1000n, // Amount to withdraw (in token decimals)
|
|
293
|
+
* },
|
|
294
|
+
* spokeProvider,
|
|
295
|
+
* 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
|
|
296
|
+
* );
|
|
297
|
+
*
|
|
298
|
+
* if (!result.ok) {
|
|
299
|
+
* // Handle error
|
|
300
|
+
* }
|
|
301
|
+
*
|
|
302
|
+
* const [
|
|
303
|
+
* spokeTxHash, // transaction hash on the spoke chain
|
|
304
|
+
* hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
|
|
305
|
+
* ] = result.value;
|
|
306
|
+
* console.log('Withdraw transaction hashes:', { spokeTxHash, hubTxHash });
|
|
171
307
|
*/
|
|
172
308
|
withdrawAndSubmit<S extends SpokeProvider>(params: MoneyMarketWithdrawParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
173
309
|
/**
|
|
174
|
-
* Withdraw tokens from the money market pool
|
|
175
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
310
|
+
* Withdraw tokens from the money market pool without submitting the intent to the Solver API
|
|
311
|
+
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
312
|
+
* In order to successfully withdraw tokens, you need to:
|
|
313
|
+
* 1. Execute the withdraw transaction on the spoke chain
|
|
314
|
+
* 2. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
|
|
315
|
+
*
|
|
176
316
|
* @param params - The parameters for the withdraw transaction.
|
|
177
317
|
* @param spokeProvider - The spoke provider.
|
|
178
318
|
* @param raw - Whether to return the raw transaction data.
|
|
179
|
-
* @returns
|
|
319
|
+
* @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} - Returns the transaction result (raw transaction data or transaction hash).
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* const moneyMarketService = new MoneyMarketService(config);
|
|
323
|
+
* const result = await moneyMarketService.withdraw(
|
|
324
|
+
* {
|
|
325
|
+
* token: "0x123...", // token address
|
|
326
|
+
* amount: 1000000000000000000n // 1 token in wei
|
|
327
|
+
* },
|
|
328
|
+
* spokeProvider,
|
|
329
|
+
* raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
|
|
330
|
+
* );
|
|
331
|
+
*
|
|
332
|
+
* if (result.ok) {
|
|
333
|
+
* const txHash = result.value;
|
|
334
|
+
* console.log('Withdraw transaction hash:', txHash);
|
|
335
|
+
* } else {
|
|
336
|
+
* console.error('Withdraw failed:', result.error);
|
|
337
|
+
* }
|
|
180
338
|
*/
|
|
181
339
|
withdraw<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketWithdrawParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
|
|
182
340
|
/**
|
|
183
|
-
* Repay tokens to the money market pool and submit the intent to the Solver API
|
|
341
|
+
* Repay tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
342
|
+
*
|
|
184
343
|
* @param params - The parameters for the repay transaction.
|
|
185
344
|
* @param spokeProvider - The spoke provider.
|
|
186
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is
|
|
187
|
-
* @returns [
|
|
345
|
+
* @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
346
|
+
* @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* const result = await moneyMarketService.repayAndSubmit(
|
|
350
|
+
* {
|
|
351
|
+
* token: '0x...', // Address of the token (spoke chain address) to repay
|
|
352
|
+
* amount: 1000n, // Amount to repay (in token decimals)
|
|
353
|
+
* },
|
|
354
|
+
* spokeProvider,
|
|
355
|
+
* 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
|
|
356
|
+
* );
|
|
357
|
+
*
|
|
358
|
+
* if (!result.ok) {
|
|
359
|
+
* // Handle error
|
|
360
|
+
* }
|
|
361
|
+
*
|
|
362
|
+
* const [
|
|
363
|
+
* spokeTxHash, // transaction hash on the spoke chain
|
|
364
|
+
* hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
|
|
365
|
+
* ] = result.value;
|
|
366
|
+
* console.log('Repay transaction hashes:', { spokeTxHash, hubTxHash });
|
|
188
367
|
*/
|
|
189
368
|
repayAndSubmit<S extends SpokeProvider>(params: MoneyMarketRepayParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
190
369
|
/**
|
|
191
|
-
* Repay tokens to the money market pool
|
|
192
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
370
|
+
* Repay tokens to the money market pool without submitting the intent to the Solver API
|
|
371
|
+
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
372
|
+
* In order to successfully repay tokens, you need to:
|
|
373
|
+
* 1. Check if the allowance is sufficient
|
|
374
|
+
* 2. Approve the asset manager contract to spend the tokens
|
|
375
|
+
* 3. Execute the repay transaction on the spoke chain
|
|
376
|
+
* 4. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
|
|
377
|
+
*
|
|
193
378
|
* @param params - The parameters for the repay transaction.
|
|
194
379
|
* @param spokeProvider - The spoke provider.
|
|
195
380
|
* @param raw - Whether to return the raw transaction data.
|
|
196
|
-
* @returns The transaction result (raw transaction data or transaction hash).
|
|
381
|
+
* @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} The transaction result (raw transaction data or transaction hash) or error.
|
|
382
|
+
*
|
|
383
|
+
* @example
|
|
384
|
+
* const moneyMarketService = new MoneyMarketService(config);
|
|
385
|
+
* const result = await moneyMarketService.repay(
|
|
386
|
+
* {
|
|
387
|
+
* token: "0x123...", // token address
|
|
388
|
+
* amount: 1000000000000000000n // 1 token in wei
|
|
389
|
+
* },
|
|
390
|
+
* spokeProvider,
|
|
391
|
+
* raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
|
|
392
|
+
* );
|
|
393
|
+
*
|
|
394
|
+
* if (result.ok) {
|
|
395
|
+
* const txHash = result.value;
|
|
396
|
+
* console.log('Repay transaction hash:', txHash);
|
|
397
|
+
* } else {
|
|
398
|
+
* console.error('Repay failed:', result.error);
|
|
399
|
+
* }
|
|
197
400
|
*/
|
|
198
401
|
repay<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketRepayParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
|
|
199
402
|
/**
|
|
200
|
-
*
|
|
403
|
+
* Build transaction data for supplying to the money market pool
|
|
201
404
|
* @param token - The address of the token on spoke chain
|
|
202
|
-
* @param to The user wallet address on the hub chain
|
|
203
|
-
* @param amount The amount to deposit
|
|
204
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
205
|
-
* @returns The transaction
|
|
405
|
+
* @param to - The user wallet address on the hub chain
|
|
406
|
+
* @param amount - The amount to deposit
|
|
407
|
+
* @param spokeChainId - The chain ID of the spoke chain
|
|
408
|
+
* @returns {Hex} The transaction data.
|
|
206
409
|
*/
|
|
207
410
|
supplyData(token: string, to: Address, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
208
411
|
/**
|
|
209
|
-
*
|
|
210
|
-
* @param from The user wallet address on the hub chain
|
|
211
|
-
* @param to The user wallet address on the spoke chain
|
|
212
|
-
* @param token The address of the token to borrow
|
|
213
|
-
* @param amount The amount to borrow in hub chain decimals
|
|
214
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
215
|
-
* @returns
|
|
412
|
+
* Build transaction data for borrowing from the money market pool
|
|
413
|
+
* @param from - The user wallet address on the hub chain
|
|
414
|
+
* @param to - The user wallet address on the spoke chain
|
|
415
|
+
* @param token - The address of the token to borrow
|
|
416
|
+
* @param amount - The amount to borrow in hub chain decimals
|
|
417
|
+
* @param spokeChainId - The chain ID of the spoke chain
|
|
418
|
+
* @returns {Hex} The transaction data.
|
|
216
419
|
*/
|
|
217
420
|
borrowData(from: Address, to: Address | Hex, token: string, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
218
421
|
/**
|
|
219
|
-
*
|
|
220
|
-
* @param from The user wallet address on the hub chain
|
|
221
|
-
* @param to The user wallet address on the spoke chain
|
|
222
|
-
* @param token The address of the token to borrow
|
|
223
|
-
* @param amount The amount to borrow in hub chain decimals
|
|
224
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
225
|
-
* @returns
|
|
422
|
+
* Build transaction data for withdrawing from the money market pool
|
|
423
|
+
* @param from - The user wallet address on the hub chain
|
|
424
|
+
* @param to - The user wallet address on the spoke chain
|
|
425
|
+
* @param token - The address of the token to borrow
|
|
426
|
+
* @param amount - The amount to borrow in hub chain decimals
|
|
427
|
+
* @param spokeChainId - The chain ID of the spoke chain
|
|
428
|
+
* @returns {Hex} The transaction data.
|
|
226
429
|
*/
|
|
227
430
|
withdrawData(from: Address, to: Address, token: string, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
228
431
|
/**
|
|
229
|
-
*
|
|
230
|
-
* @param token The address of the token to repay
|
|
231
|
-
* @param to The user wallet address on the hub chain
|
|
232
|
-
* @param amount The amount to repay
|
|
233
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
234
|
-
* @
|
|
235
|
-
* @returns Transaction object
|
|
432
|
+
* Build transaction data for repaying to the money market pool
|
|
433
|
+
* @param token - The address of the token to repay
|
|
434
|
+
* @param to - The user wallet address on the hub chain
|
|
435
|
+
* @param amount - The amount to repay
|
|
436
|
+
* @param spokeChainId - The chain ID of the spoke chain
|
|
437
|
+
* @returns {Hex} The transaction data.
|
|
236
438
|
*/
|
|
237
439
|
repayData(token: string, to: Address, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
238
440
|
/**
|
|
239
441
|
* Get the list of all reserves in the pool
|
|
240
442
|
* @param uiPoolDataProvider - The address of the UI Pool Data Provider
|
|
241
443
|
* @param poolAddressesProvider - The address of the Pool Addresses Provider
|
|
242
|
-
* @returns Array of reserve addresses
|
|
444
|
+
* @returns {Promise<readonly Address[]>} - Array of reserve addresses
|
|
243
445
|
*/
|
|
244
446
|
getReservesList(uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly Address[]>;
|
|
245
447
|
/**
|
|
246
448
|
* Get detailed data for all reserves in the pool
|
|
247
449
|
* @param uiPoolDataProvider - The address of the UI Pool Data Provider
|
|
248
450
|
* @param poolAddressesProvider - The address of the Pool Addresses Provider
|
|
249
|
-
* @returns Tuple containing array of reserve data and base currency info
|
|
451
|
+
* @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - Tuple containing array of reserve data and base currency info
|
|
250
452
|
*/
|
|
251
453
|
getReservesData(uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
|
|
252
454
|
/**
|
|
@@ -254,7 +456,7 @@ export declare class MoneyMarketService {
|
|
|
254
456
|
* @param userAddress Address of the user
|
|
255
457
|
* @param uiPoolDataProvider - The address of the UI Pool Data Provider
|
|
256
458
|
* @param poolAddressesProvider - The address of the Pool Addresses Provider
|
|
257
|
-
* @returns Tuple containing array of user reserve data and eMode category ID
|
|
459
|
+
* @returns {Promise<readonly [readonly UserReserveData[], number]>} - Tuple containing array of user reserve data and eMode category ID
|
|
258
460
|
*/
|
|
259
461
|
getUserReservesData(userAddress: Address, uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly [readonly UserReserveData[], number]>;
|
|
260
462
|
/**
|
|
@@ -310,13 +512,13 @@ export declare class MoneyMarketService {
|
|
|
310
512
|
/**
|
|
311
513
|
* Get the list of all supported money market tokens (supply / borrow tokens) for a given spoke chain ID
|
|
312
514
|
* @param chainId The chain ID
|
|
313
|
-
* @returns Array of supported tokens
|
|
515
|
+
* @returns {readonly Token[]} - Array of supported tokens
|
|
314
516
|
*/
|
|
315
517
|
getSupportedTokens(chainId: SpokeChainId): readonly Token[];
|
|
316
518
|
/**
|
|
317
519
|
* Get the list of all supported money market reserves (supply / borrow reserves)
|
|
318
520
|
* NOTE: reserve addresses are on the hub chain and can be of type vault, erc20, etc.
|
|
319
|
-
* @returns Array of supported reserves
|
|
521
|
+
* @returns {readonly Address[]} - Array of supported reserves
|
|
320
522
|
*/
|
|
321
523
|
getSupportedReserves(): readonly Address[];
|
|
322
524
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyMarketService.d.ts","sourceRoot":"","sources":["../../../src/services/moneyMarket/MoneyMarketService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAsB,MAAM,MAAM,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAYL,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,eAAe,EAEf,OAAO,EACP,uBAAuB,EAEvB,MAAM,EACN,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAK7D,OAAO,EAA0B,KAAK,YAAY,EAAE,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAErF,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,2BAA2B,EAAE,MAAM,CAAC;IACpC,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB,EAAE,OAAO,CAAC;IAClC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,wBAAwB,EAAE,OAAO,CAAC;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