@suilend/sdk 1.1.21 → 1.1.22
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/_generated/_dependencies/source/0x1/ascii/structs.js +3 -3
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +1 -1
- package/_generated/_dependencies/source/0x1/option/structs.js +2 -2
- package/_generated/_dependencies/source/0x1/type-name/structs.js +2 -2
- package/_generated/_dependencies/source/0x2/bag/structs.js +2 -2
- package/_generated/_dependencies/source/0x2/balance/structs.js +3 -3
- package/_generated/_dependencies/source/0x2/object/structs.js +3 -3
- package/_generated/_dependencies/source/0x2/object-table/structs.js +2 -2
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +2 -2
- package/_generated/_framework/reified.js +10 -10
- package/_generated/_framework/util.d.ts +5 -11
- package/_generated/_framework/util.js +12 -13
- package/_generated/_framework/vector.d.ts +1 -1
- package/_generated/_framework/vector.js +2 -2
- package/_generated/suilend/cell/structs.d.ts +1 -1
- package/_generated/suilend/cell/structs.js +2 -2
- package/_generated/suilend/decimal/structs.js +2 -2
- package/_generated/suilend/index.js +2 -2
- package/_generated/suilend/lending-market/functions.js +40 -41
- package/_generated/suilend/lending-market/structs.js +15 -15
- package/_generated/suilend/lending-market-registry/functions.js +2 -3
- package/_generated/suilend/liquidity-mining/structs.js +6 -6
- package/_generated/suilend/obligation/structs.js +7 -7
- package/_generated/suilend/rate-limiter/functions.js +6 -7
- package/_generated/suilend/rate-limiter/structs.js +3 -3
- package/_generated/suilend/reserve/structs.js +10 -10
- package/_generated/suilend/reserve-config/functions.js +39 -40
- package/_generated/suilend/reserve-config/structs.js +3 -3
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +2 -2
- package/parsers/obligation.d.ts +4 -4
- package/parsers/reserve.d.ts +2 -2
- package/utils/events.js +3 -3
- package/utils/index.js +10 -2
- package/utils/obligation.js +5 -6
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.borrow = borrow;
|
|
4
|
+
exports.init = init;
|
|
5
|
+
exports.migrate = migrate;
|
|
6
|
+
exports.claimFees = claimFees;
|
|
7
|
+
exports.addPoolReward = addPoolReward;
|
|
8
|
+
exports.cancelPoolReward = cancelPoolReward;
|
|
9
|
+
exports.claimRewards = claimRewards;
|
|
10
|
+
exports.closePoolReward = closePoolReward;
|
|
11
|
+
exports.reserve = reserve;
|
|
12
|
+
exports.depositLiquidityAndMintCtokens = depositLiquidityAndMintCtokens;
|
|
13
|
+
exports.fulfillLiquidityRequest = fulfillLiquidityRequest;
|
|
14
|
+
exports.initStaker = initStaker;
|
|
15
|
+
exports.maxBorrowAmount = maxBorrowAmount;
|
|
16
|
+
exports.rebalanceStaker = rebalanceStaker;
|
|
17
|
+
exports.unstakeSuiFromStaker = unstakeSuiFromStaker;
|
|
18
|
+
exports.updateReserveConfig = updateReserveConfig;
|
|
19
|
+
exports.withdrawCtokens = withdrawCtokens;
|
|
20
|
+
exports.obligation = obligation;
|
|
21
|
+
exports.createObligation = createObligation;
|
|
22
|
+
exports.reserveArrayIndex = reserveArrayIndex;
|
|
23
|
+
exports.forgive = forgive;
|
|
24
|
+
exports.liquidate = liquidate;
|
|
25
|
+
exports.maxWithdrawAmount = maxWithdrawAmount;
|
|
26
|
+
exports.repay = repay;
|
|
27
|
+
exports.obligationId = obligationId;
|
|
28
|
+
exports.addReserve = addReserve;
|
|
29
|
+
exports.borrowRequest = borrowRequest;
|
|
30
|
+
exports.changeReservePriceFeed = changeReservePriceFeed;
|
|
31
|
+
exports.claimRewardsAndDeposit = claimRewardsAndDeposit;
|
|
32
|
+
exports.claimRewardsByObligationId = claimRewardsByObligationId;
|
|
33
|
+
exports.createLendingMarket = createLendingMarket;
|
|
34
|
+
exports.depositCtokensIntoObligation = depositCtokensIntoObligation;
|
|
35
|
+
exports.depositCtokensIntoObligationById = depositCtokensIntoObligationById;
|
|
36
|
+
exports.feeReceiver = feeReceiver;
|
|
37
|
+
exports.newObligationOwnerCap = newObligationOwnerCap;
|
|
38
|
+
exports.rateLimiterExemptionAmount = rateLimiterExemptionAmount;
|
|
39
|
+
exports.redeemCtokensAndWithdrawLiquidity = redeemCtokensAndWithdrawLiquidity;
|
|
40
|
+
exports.redeemCtokensAndWithdrawLiquidityRequest = redeemCtokensAndWithdrawLiquidityRequest;
|
|
41
|
+
exports.refreshReservePrice = refreshReservePrice;
|
|
42
|
+
exports.updateRateLimiterConfig = updateRateLimiterConfig;
|
|
4
43
|
const __1 = require("..");
|
|
5
44
|
const structs_1 = require("../../_dependencies/source/0x2/object/structs");
|
|
6
45
|
const util_1 = require("../../_framework/util");
|
|
@@ -18,14 +57,12 @@ function borrow(tx, typeArgs, args) {
|
|
|
18
57
|
],
|
|
19
58
|
});
|
|
20
59
|
}
|
|
21
|
-
exports.borrow = borrow;
|
|
22
60
|
function init(tx, otw) {
|
|
23
61
|
return tx.moveCall({
|
|
24
62
|
target: `${__1.PUBLISHED_AT}::lending_market::init`,
|
|
25
63
|
arguments: [(0, util_1.obj)(tx, otw)],
|
|
26
64
|
});
|
|
27
65
|
}
|
|
28
|
-
exports.init = init;
|
|
29
66
|
function migrate(tx, typeArg, args) {
|
|
30
67
|
return tx.moveCall({
|
|
31
68
|
target: `${__1.PUBLISHED_AT}::lending_market::migrate`,
|
|
@@ -36,7 +73,6 @@ function migrate(tx, typeArg, args) {
|
|
|
36
73
|
],
|
|
37
74
|
});
|
|
38
75
|
}
|
|
39
|
-
exports.migrate = migrate;
|
|
40
76
|
function claimFees(tx, typeArgs, args) {
|
|
41
77
|
return tx.moveCall({
|
|
42
78
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_fees`,
|
|
@@ -47,7 +83,6 @@ function claimFees(tx, typeArgs, args) {
|
|
|
47
83
|
],
|
|
48
84
|
});
|
|
49
85
|
}
|
|
50
|
-
exports.claimFees = claimFees;
|
|
51
86
|
function addPoolReward(tx, typeArgs, args) {
|
|
52
87
|
return tx.moveCall({
|
|
53
88
|
target: `${__1.PUBLISHED_AT}::lending_market::add_pool_reward`,
|
|
@@ -64,7 +99,6 @@ function addPoolReward(tx, typeArgs, args) {
|
|
|
64
99
|
],
|
|
65
100
|
});
|
|
66
101
|
}
|
|
67
|
-
exports.addPoolReward = addPoolReward;
|
|
68
102
|
function cancelPoolReward(tx, typeArgs, args) {
|
|
69
103
|
return tx.moveCall({
|
|
70
104
|
target: `${__1.PUBLISHED_AT}::lending_market::cancel_pool_reward`,
|
|
@@ -79,7 +113,6 @@ function cancelPoolReward(tx, typeArgs, args) {
|
|
|
79
113
|
],
|
|
80
114
|
});
|
|
81
115
|
}
|
|
82
|
-
exports.cancelPoolReward = cancelPoolReward;
|
|
83
116
|
function claimRewards(tx, typeArgs, args) {
|
|
84
117
|
return tx.moveCall({
|
|
85
118
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_rewards`,
|
|
@@ -94,7 +127,6 @@ function claimRewards(tx, typeArgs, args) {
|
|
|
94
127
|
],
|
|
95
128
|
});
|
|
96
129
|
}
|
|
97
|
-
exports.claimRewards = claimRewards;
|
|
98
130
|
function closePoolReward(tx, typeArgs, args) {
|
|
99
131
|
return tx.moveCall({
|
|
100
132
|
target: `${__1.PUBLISHED_AT}::lending_market::close_pool_reward`,
|
|
@@ -109,7 +141,6 @@ function closePoolReward(tx, typeArgs, args) {
|
|
|
109
141
|
],
|
|
110
142
|
});
|
|
111
143
|
}
|
|
112
|
-
exports.closePoolReward = closePoolReward;
|
|
113
144
|
function reserve(tx, typeArgs, lendingMarket) {
|
|
114
145
|
return tx.moveCall({
|
|
115
146
|
target: `${__1.PUBLISHED_AT}::lending_market::reserve`,
|
|
@@ -117,7 +148,6 @@ function reserve(tx, typeArgs, lendingMarket) {
|
|
|
117
148
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
118
149
|
});
|
|
119
150
|
}
|
|
120
|
-
exports.reserve = reserve;
|
|
121
151
|
function depositLiquidityAndMintCtokens(tx, typeArgs, args) {
|
|
122
152
|
return tx.moveCall({
|
|
123
153
|
target: `${__1.PUBLISHED_AT}::lending_market::deposit_liquidity_and_mint_ctokens`,
|
|
@@ -130,7 +160,6 @@ function depositLiquidityAndMintCtokens(tx, typeArgs, args) {
|
|
|
130
160
|
],
|
|
131
161
|
});
|
|
132
162
|
}
|
|
133
|
-
exports.depositLiquidityAndMintCtokens = depositLiquidityAndMintCtokens;
|
|
134
163
|
function fulfillLiquidityRequest(tx, typeArgs, args) {
|
|
135
164
|
return tx.moveCall({
|
|
136
165
|
target: `${__1.PUBLISHED_AT}::lending_market::fulfill_liquidity_request`,
|
|
@@ -142,7 +171,6 @@ function fulfillLiquidityRequest(tx, typeArgs, args) {
|
|
|
142
171
|
],
|
|
143
172
|
});
|
|
144
173
|
}
|
|
145
|
-
exports.fulfillLiquidityRequest = fulfillLiquidityRequest;
|
|
146
174
|
function initStaker(tx, typeArg, args) {
|
|
147
175
|
return tx.moveCall({
|
|
148
176
|
target: `${__1.PUBLISHED_AT}::lending_market::init_staker`,
|
|
@@ -155,7 +183,6 @@ function initStaker(tx, typeArg, args) {
|
|
|
155
183
|
],
|
|
156
184
|
});
|
|
157
185
|
}
|
|
158
|
-
exports.initStaker = initStaker;
|
|
159
186
|
function maxBorrowAmount(tx, typeArg, args) {
|
|
160
187
|
return tx.moveCall({
|
|
161
188
|
target: `${__1.PUBLISHED_AT}::lending_market::max_borrow_amount`,
|
|
@@ -168,7 +195,6 @@ function maxBorrowAmount(tx, typeArg, args) {
|
|
|
168
195
|
],
|
|
169
196
|
});
|
|
170
197
|
}
|
|
171
|
-
exports.maxBorrowAmount = maxBorrowAmount;
|
|
172
198
|
function rebalanceStaker(tx, typeArg, args) {
|
|
173
199
|
return tx.moveCall({
|
|
174
200
|
target: `${__1.PUBLISHED_AT}::lending_market::rebalance_staker`,
|
|
@@ -180,7 +206,6 @@ function rebalanceStaker(tx, typeArg, args) {
|
|
|
180
206
|
],
|
|
181
207
|
});
|
|
182
208
|
}
|
|
183
|
-
exports.rebalanceStaker = rebalanceStaker;
|
|
184
209
|
function unstakeSuiFromStaker(tx, typeArg, args) {
|
|
185
210
|
return tx.moveCall({
|
|
186
211
|
target: `${__1.PUBLISHED_AT}::lending_market::unstake_sui_from_staker`,
|
|
@@ -193,7 +218,6 @@ function unstakeSuiFromStaker(tx, typeArg, args) {
|
|
|
193
218
|
],
|
|
194
219
|
});
|
|
195
220
|
}
|
|
196
|
-
exports.unstakeSuiFromStaker = unstakeSuiFromStaker;
|
|
197
221
|
function updateReserveConfig(tx, typeArgs, args) {
|
|
198
222
|
return tx.moveCall({
|
|
199
223
|
target: `${__1.PUBLISHED_AT}::lending_market::update_reserve_config`,
|
|
@@ -206,7 +230,6 @@ function updateReserveConfig(tx, typeArgs, args) {
|
|
|
206
230
|
],
|
|
207
231
|
});
|
|
208
232
|
}
|
|
209
|
-
exports.updateReserveConfig = updateReserveConfig;
|
|
210
233
|
function withdrawCtokens(tx, typeArgs, args) {
|
|
211
234
|
return tx.moveCall({
|
|
212
235
|
target: `${__1.PUBLISHED_AT}::lending_market::withdraw_ctokens`,
|
|
@@ -220,7 +243,6 @@ function withdrawCtokens(tx, typeArgs, args) {
|
|
|
220
243
|
],
|
|
221
244
|
});
|
|
222
245
|
}
|
|
223
|
-
exports.withdrawCtokens = withdrawCtokens;
|
|
224
246
|
function obligation(tx, typeArg, args) {
|
|
225
247
|
return tx.moveCall({
|
|
226
248
|
target: `${__1.PUBLISHED_AT}::lending_market::obligation`,
|
|
@@ -231,7 +253,6 @@ function obligation(tx, typeArg, args) {
|
|
|
231
253
|
],
|
|
232
254
|
});
|
|
233
255
|
}
|
|
234
|
-
exports.obligation = obligation;
|
|
235
256
|
function createObligation(tx, typeArg, lendingMarket) {
|
|
236
257
|
return tx.moveCall({
|
|
237
258
|
target: `${__1.PUBLISHED_AT}::lending_market::create_obligation`,
|
|
@@ -239,7 +260,6 @@ function createObligation(tx, typeArg, lendingMarket) {
|
|
|
239
260
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
240
261
|
});
|
|
241
262
|
}
|
|
242
|
-
exports.createObligation = createObligation;
|
|
243
263
|
function reserveArrayIndex(tx, typeArgs, lendingMarket) {
|
|
244
264
|
return tx.moveCall({
|
|
245
265
|
target: `${__1.PUBLISHED_AT}::lending_market::reserve_array_index`,
|
|
@@ -247,7 +267,6 @@ function reserveArrayIndex(tx, typeArgs, lendingMarket) {
|
|
|
247
267
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
248
268
|
});
|
|
249
269
|
}
|
|
250
|
-
exports.reserveArrayIndex = reserveArrayIndex;
|
|
251
270
|
function forgive(tx, typeArgs, args) {
|
|
252
271
|
return tx.moveCall({
|
|
253
272
|
target: `${__1.PUBLISHED_AT}::lending_market::forgive`,
|
|
@@ -262,7 +281,6 @@ function forgive(tx, typeArgs, args) {
|
|
|
262
281
|
],
|
|
263
282
|
});
|
|
264
283
|
}
|
|
265
|
-
exports.forgive = forgive;
|
|
266
284
|
function liquidate(tx, typeArgs, args) {
|
|
267
285
|
return tx.moveCall({
|
|
268
286
|
target: `${__1.PUBLISHED_AT}::lending_market::liquidate`,
|
|
@@ -277,7 +295,6 @@ function liquidate(tx, typeArgs, args) {
|
|
|
277
295
|
],
|
|
278
296
|
});
|
|
279
297
|
}
|
|
280
|
-
exports.liquidate = liquidate;
|
|
281
298
|
function maxWithdrawAmount(tx, typeArg, args) {
|
|
282
299
|
return tx.moveCall({
|
|
283
300
|
target: `${__1.PUBLISHED_AT}::lending_market::max_withdraw_amount`,
|
|
@@ -290,7 +307,6 @@ function maxWithdrawAmount(tx, typeArg, args) {
|
|
|
290
307
|
],
|
|
291
308
|
});
|
|
292
309
|
}
|
|
293
|
-
exports.maxWithdrawAmount = maxWithdrawAmount;
|
|
294
310
|
function repay(tx, typeArgs, args) {
|
|
295
311
|
return tx.moveCall({
|
|
296
312
|
target: `${__1.PUBLISHED_AT}::lending_market::repay`,
|
|
@@ -304,7 +320,6 @@ function repay(tx, typeArgs, args) {
|
|
|
304
320
|
],
|
|
305
321
|
});
|
|
306
322
|
}
|
|
307
|
-
exports.repay = repay;
|
|
308
323
|
function obligationId(tx, typeArg, cap) {
|
|
309
324
|
return tx.moveCall({
|
|
310
325
|
target: `${__1.PUBLISHED_AT}::lending_market::obligation_id`,
|
|
@@ -312,7 +327,6 @@ function obligationId(tx, typeArg, cap) {
|
|
|
312
327
|
arguments: [(0, util_1.obj)(tx, cap)],
|
|
313
328
|
});
|
|
314
329
|
}
|
|
315
|
-
exports.obligationId = obligationId;
|
|
316
330
|
function addReserve(tx, typeArgs, args) {
|
|
317
331
|
return tx.moveCall({
|
|
318
332
|
target: `${__1.PUBLISHED_AT}::lending_market::add_reserve`,
|
|
@@ -327,7 +341,6 @@ function addReserve(tx, typeArgs, args) {
|
|
|
327
341
|
],
|
|
328
342
|
});
|
|
329
343
|
}
|
|
330
|
-
exports.addReserve = addReserve;
|
|
331
344
|
function borrowRequest(tx, typeArgs, args) {
|
|
332
345
|
return tx.moveCall({
|
|
333
346
|
target: `${__1.PUBLISHED_AT}::lending_market::borrow_request`,
|
|
@@ -341,7 +354,6 @@ function borrowRequest(tx, typeArgs, args) {
|
|
|
341
354
|
],
|
|
342
355
|
});
|
|
343
356
|
}
|
|
344
|
-
exports.borrowRequest = borrowRequest;
|
|
345
357
|
function changeReservePriceFeed(tx, typeArgs, args) {
|
|
346
358
|
return tx.moveCall({
|
|
347
359
|
target: `${__1.PUBLISHED_AT}::lending_market::change_reserve_price_feed`,
|
|
@@ -355,7 +367,6 @@ function changeReservePriceFeed(tx, typeArgs, args) {
|
|
|
355
367
|
],
|
|
356
368
|
});
|
|
357
369
|
}
|
|
358
|
-
exports.changeReservePriceFeed = changeReservePriceFeed;
|
|
359
370
|
function claimRewardsAndDeposit(tx, typeArgs, args) {
|
|
360
371
|
return tx.moveCall({
|
|
361
372
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_rewards_and_deposit`,
|
|
@@ -371,7 +382,6 @@ function claimRewardsAndDeposit(tx, typeArgs, args) {
|
|
|
371
382
|
],
|
|
372
383
|
});
|
|
373
384
|
}
|
|
374
|
-
exports.claimRewardsAndDeposit = claimRewardsAndDeposit;
|
|
375
385
|
function claimRewardsByObligationId(tx, typeArgs, args) {
|
|
376
386
|
return tx.moveCall({
|
|
377
387
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_rewards_by_obligation_id`,
|
|
@@ -387,7 +397,6 @@ function claimRewardsByObligationId(tx, typeArgs, args) {
|
|
|
387
397
|
],
|
|
388
398
|
});
|
|
389
399
|
}
|
|
390
|
-
exports.claimRewardsByObligationId = claimRewardsByObligationId;
|
|
391
400
|
function createLendingMarket(tx, typeArg) {
|
|
392
401
|
return tx.moveCall({
|
|
393
402
|
target: `${__1.PUBLISHED_AT}::lending_market::create_lending_market`,
|
|
@@ -395,7 +404,6 @@ function createLendingMarket(tx, typeArg) {
|
|
|
395
404
|
arguments: [],
|
|
396
405
|
});
|
|
397
406
|
}
|
|
398
|
-
exports.createLendingMarket = createLendingMarket;
|
|
399
407
|
function depositCtokensIntoObligation(tx, typeArgs, args) {
|
|
400
408
|
return tx.moveCall({
|
|
401
409
|
target: `${__1.PUBLISHED_AT}::lending_market::deposit_ctokens_into_obligation`,
|
|
@@ -409,7 +417,6 @@ function depositCtokensIntoObligation(tx, typeArgs, args) {
|
|
|
409
417
|
],
|
|
410
418
|
});
|
|
411
419
|
}
|
|
412
|
-
exports.depositCtokensIntoObligation = depositCtokensIntoObligation;
|
|
413
420
|
function depositCtokensIntoObligationById(tx, typeArgs, args) {
|
|
414
421
|
return tx.moveCall({
|
|
415
422
|
target: `${__1.PUBLISHED_AT}::lending_market::deposit_ctokens_into_obligation_by_id`,
|
|
@@ -423,7 +430,6 @@ function depositCtokensIntoObligationById(tx, typeArgs, args) {
|
|
|
423
430
|
],
|
|
424
431
|
});
|
|
425
432
|
}
|
|
426
|
-
exports.depositCtokensIntoObligationById = depositCtokensIntoObligationById;
|
|
427
433
|
function feeReceiver(tx, typeArg, lendingMarket) {
|
|
428
434
|
return tx.moveCall({
|
|
429
435
|
target: `${__1.PUBLISHED_AT}::lending_market::fee_receiver`,
|
|
@@ -431,7 +437,6 @@ function feeReceiver(tx, typeArg, lendingMarket) {
|
|
|
431
437
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
432
438
|
});
|
|
433
439
|
}
|
|
434
|
-
exports.feeReceiver = feeReceiver;
|
|
435
440
|
function newObligationOwnerCap(tx, typeArg, args) {
|
|
436
441
|
return tx.moveCall({
|
|
437
442
|
target: `${__1.PUBLISHED_AT}::lending_market::new_obligation_owner_cap`,
|
|
@@ -443,7 +448,6 @@ function newObligationOwnerCap(tx, typeArg, args) {
|
|
|
443
448
|
],
|
|
444
449
|
});
|
|
445
450
|
}
|
|
446
|
-
exports.newObligationOwnerCap = newObligationOwnerCap;
|
|
447
451
|
function rateLimiterExemptionAmount(tx, typeArgs, exemption) {
|
|
448
452
|
return tx.moveCall({
|
|
449
453
|
target: `${__1.PUBLISHED_AT}::lending_market::rate_limiter_exemption_amount`,
|
|
@@ -451,7 +455,6 @@ function rateLimiterExemptionAmount(tx, typeArgs, exemption) {
|
|
|
451
455
|
arguments: [(0, util_1.obj)(tx, exemption)],
|
|
452
456
|
});
|
|
453
457
|
}
|
|
454
|
-
exports.rateLimiterExemptionAmount = rateLimiterExemptionAmount;
|
|
455
458
|
function redeemCtokensAndWithdrawLiquidity(tx, typeArgs, args) {
|
|
456
459
|
return tx.moveCall({
|
|
457
460
|
target: `${__1.PUBLISHED_AT}::lending_market::redeem_ctokens_and_withdraw_liquidity`,
|
|
@@ -465,7 +468,6 @@ function redeemCtokensAndWithdrawLiquidity(tx, typeArgs, args) {
|
|
|
465
468
|
],
|
|
466
469
|
});
|
|
467
470
|
}
|
|
468
|
-
exports.redeemCtokensAndWithdrawLiquidity = redeemCtokensAndWithdrawLiquidity;
|
|
469
471
|
function redeemCtokensAndWithdrawLiquidityRequest(tx, typeArgs, args) {
|
|
470
472
|
return tx.moveCall({
|
|
471
473
|
target: `${__1.PUBLISHED_AT}::lending_market::redeem_ctokens_and_withdraw_liquidity_request`,
|
|
@@ -479,7 +481,6 @@ function redeemCtokensAndWithdrawLiquidityRequest(tx, typeArgs, args) {
|
|
|
479
481
|
],
|
|
480
482
|
});
|
|
481
483
|
}
|
|
482
|
-
exports.redeemCtokensAndWithdrawLiquidityRequest = redeemCtokensAndWithdrawLiquidityRequest;
|
|
483
484
|
function refreshReservePrice(tx, typeArg, args) {
|
|
484
485
|
return tx.moveCall({
|
|
485
486
|
target: `${__1.PUBLISHED_AT}::lending_market::refresh_reserve_price`,
|
|
@@ -492,7 +493,6 @@ function refreshReservePrice(tx, typeArg, args) {
|
|
|
492
493
|
],
|
|
493
494
|
});
|
|
494
495
|
}
|
|
495
|
-
exports.refreshReservePrice = refreshReservePrice;
|
|
496
496
|
function updateRateLimiterConfig(tx, typeArg, args) {
|
|
497
497
|
return tx.moveCall({
|
|
498
498
|
target: `${__1.PUBLISHED_AT}::lending_market::update_rate_limiter_config`,
|
|
@@ -505,4 +505,3 @@ function updateRateLimiterConfig(tx, typeArg, args) {
|
|
|
505
505
|
],
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
exports.updateRateLimiterConfig = updateRateLimiterConfig;
|
|
@@ -32,7 +32,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.WithdrawEvent = exports.
|
|
35
|
+
exports.WithdrawEvent = exports.RepayEvent = exports.RateLimiterExemption = exports.ObligationOwnerCap = exports.LiquidateEvent = exports.LendingMarketOwnerCap = exports.LendingMarket = exports.LENDING_MARKET = exports.ForgiveEvent = exports.DepositEvent = exports.ClaimRewardEvent = exports.BorrowEvent = exports.RedeemEvent = exports.MintEvent = void 0;
|
|
36
|
+
exports.isMintEvent = isMintEvent;
|
|
37
|
+
exports.isRedeemEvent = isRedeemEvent;
|
|
38
|
+
exports.isBorrowEvent = isBorrowEvent;
|
|
39
|
+
exports.isClaimRewardEvent = isClaimRewardEvent;
|
|
40
|
+
exports.isDepositEvent = isDepositEvent;
|
|
41
|
+
exports.isForgiveEvent = isForgiveEvent;
|
|
42
|
+
exports.isLENDING_MARKET = isLENDING_MARKET;
|
|
43
|
+
exports.isLendingMarket = isLendingMarket;
|
|
44
|
+
exports.isLendingMarketOwnerCap = isLendingMarketOwnerCap;
|
|
45
|
+
exports.isLiquidateEvent = isLiquidateEvent;
|
|
46
|
+
exports.isObligationOwnerCap = isObligationOwnerCap;
|
|
47
|
+
exports.isRateLimiterExemption = isRateLimiterExemption;
|
|
48
|
+
exports.isRepayEvent = isRepayEvent;
|
|
49
|
+
exports.isWithdrawEvent = isWithdrawEvent;
|
|
36
50
|
const reified = __importStar(require("../../_framework/reified"));
|
|
37
51
|
const structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
38
52
|
const structs_2 = require("../../_dependencies/source/0x2/object-table/structs");
|
|
@@ -51,7 +65,6 @@ function isMintEvent(type) {
|
|
|
51
65
|
type = (0, util_1.compressSuiType)(type);
|
|
52
66
|
return type === `${index_1.PKG_V1}::lending_market::MintEvent`;
|
|
53
67
|
}
|
|
54
|
-
exports.isMintEvent = isMintEvent;
|
|
55
68
|
class MintEvent {
|
|
56
69
|
constructor(typeArgs, fields) {
|
|
57
70
|
this.__StructClass = true;
|
|
@@ -211,7 +224,6 @@ function isRedeemEvent(type) {
|
|
|
211
224
|
type = (0, util_1.compressSuiType)(type);
|
|
212
225
|
return type === `${index_1.PKG_V1}::lending_market::RedeemEvent`;
|
|
213
226
|
}
|
|
214
|
-
exports.isRedeemEvent = isRedeemEvent;
|
|
215
227
|
class RedeemEvent {
|
|
216
228
|
constructor(typeArgs, fields) {
|
|
217
229
|
this.__StructClass = true;
|
|
@@ -371,7 +383,6 @@ function isBorrowEvent(type) {
|
|
|
371
383
|
type = (0, util_1.compressSuiType)(type);
|
|
372
384
|
return type === `${index_1.PKG_V1}::lending_market::BorrowEvent`;
|
|
373
385
|
}
|
|
374
|
-
exports.isBorrowEvent = isBorrowEvent;
|
|
375
386
|
class BorrowEvent {
|
|
376
387
|
constructor(typeArgs, fields) {
|
|
377
388
|
this.__StructClass = true;
|
|
@@ -542,7 +553,6 @@ function isClaimRewardEvent(type) {
|
|
|
542
553
|
type = (0, util_1.compressSuiType)(type);
|
|
543
554
|
return type === `${index_1.PKG_V1}::lending_market::ClaimRewardEvent`;
|
|
544
555
|
}
|
|
545
|
-
exports.isClaimRewardEvent = isClaimRewardEvent;
|
|
546
556
|
class ClaimRewardEvent {
|
|
547
557
|
constructor(typeArgs, fields) {
|
|
548
558
|
this.__StructClass = true;
|
|
@@ -725,7 +735,6 @@ function isDepositEvent(type) {
|
|
|
725
735
|
type = (0, util_1.compressSuiType)(type);
|
|
726
736
|
return type === `${index_1.PKG_V1}::lending_market::DepositEvent`;
|
|
727
737
|
}
|
|
728
|
-
exports.isDepositEvent = isDepositEvent;
|
|
729
738
|
class DepositEvent {
|
|
730
739
|
constructor(typeArgs, fields) {
|
|
731
740
|
this.__StructClass = true;
|
|
@@ -891,7 +900,6 @@ function isForgiveEvent(type) {
|
|
|
891
900
|
type = (0, util_1.compressSuiType)(type);
|
|
892
901
|
return type === `${index_1.PKG_V1}::lending_market::ForgiveEvent`;
|
|
893
902
|
}
|
|
894
|
-
exports.isForgiveEvent = isForgiveEvent;
|
|
895
903
|
class ForgiveEvent {
|
|
896
904
|
constructor(typeArgs, fields) {
|
|
897
905
|
this.__StructClass = true;
|
|
@@ -1057,7 +1065,6 @@ function isLENDING_MARKET(type) {
|
|
|
1057
1065
|
type = (0, util_1.compressSuiType)(type);
|
|
1058
1066
|
return type === `${index_1.PKG_V1}::lending_market::LENDING_MARKET`;
|
|
1059
1067
|
}
|
|
1060
|
-
exports.isLENDING_MARKET = isLENDING_MARKET;
|
|
1061
1068
|
class LENDING_MARKET {
|
|
1062
1069
|
constructor(typeArgs, fields) {
|
|
1063
1070
|
this.__StructClass = true;
|
|
@@ -1184,7 +1191,6 @@ function isLendingMarket(type) {
|
|
|
1184
1191
|
type = (0, util_1.compressSuiType)(type);
|
|
1185
1192
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::LendingMarket` + "<");
|
|
1186
1193
|
}
|
|
1187
|
-
exports.isLendingMarket = isLendingMarket;
|
|
1188
1194
|
class LendingMarket {
|
|
1189
1195
|
constructor(typeArgs, fields) {
|
|
1190
1196
|
this.__StructClass = true;
|
|
@@ -1369,7 +1375,6 @@ function isLendingMarketOwnerCap(type) {
|
|
|
1369
1375
|
type = (0, util_1.compressSuiType)(type);
|
|
1370
1376
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::LendingMarketOwnerCap` + "<");
|
|
1371
1377
|
}
|
|
1372
|
-
exports.isLendingMarketOwnerCap = isLendingMarketOwnerCap;
|
|
1373
1378
|
class LendingMarketOwnerCap {
|
|
1374
1379
|
constructor(typeArgs, fields) {
|
|
1375
1380
|
this.__StructClass = true;
|
|
@@ -1513,7 +1518,6 @@ function isLiquidateEvent(type) {
|
|
|
1513
1518
|
type = (0, util_1.compressSuiType)(type);
|
|
1514
1519
|
return type === `${index_1.PKG_V1}::lending_market::LiquidateEvent`;
|
|
1515
1520
|
}
|
|
1516
|
-
exports.isLiquidateEvent = isLiquidateEvent;
|
|
1517
1521
|
class LiquidateEvent {
|
|
1518
1522
|
constructor(typeArgs, fields) {
|
|
1519
1523
|
this.__StructClass = true;
|
|
@@ -1714,7 +1718,6 @@ function isObligationOwnerCap(type) {
|
|
|
1714
1718
|
type = (0, util_1.compressSuiType)(type);
|
|
1715
1719
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::ObligationOwnerCap` + "<");
|
|
1716
1720
|
}
|
|
1717
|
-
exports.isObligationOwnerCap = isObligationOwnerCap;
|
|
1718
1721
|
class ObligationOwnerCap {
|
|
1719
1722
|
constructor(typeArgs, fields) {
|
|
1720
1723
|
this.__StructClass = true;
|
|
@@ -1858,7 +1861,6 @@ function isRateLimiterExemption(type) {
|
|
|
1858
1861
|
type = (0, util_1.compressSuiType)(type);
|
|
1859
1862
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::RateLimiterExemption` + "<");
|
|
1860
1863
|
}
|
|
1861
|
-
exports.isRateLimiterExemption = isRateLimiterExemption;
|
|
1862
1864
|
class RateLimiterExemption {
|
|
1863
1865
|
constructor(typeArgs, fields) {
|
|
1864
1866
|
this.__StructClass = true;
|
|
@@ -1998,7 +2000,6 @@ function isRepayEvent(type) {
|
|
|
1998
2000
|
type = (0, util_1.compressSuiType)(type);
|
|
1999
2001
|
return type === `${index_1.PKG_V1}::lending_market::RepayEvent`;
|
|
2000
2002
|
}
|
|
2001
|
-
exports.isRepayEvent = isRepayEvent;
|
|
2002
2003
|
class RepayEvent {
|
|
2003
2004
|
constructor(typeArgs, fields) {
|
|
2004
2005
|
this.__StructClass = true;
|
|
@@ -2163,7 +2164,6 @@ function isWithdrawEvent(type) {
|
|
|
2163
2164
|
type = (0, util_1.compressSuiType)(type);
|
|
2164
2165
|
return type === `${index_1.PKG_V1}::lending_market::WithdrawEvent`;
|
|
2165
2166
|
}
|
|
2166
|
-
exports.isWithdrawEvent = isWithdrawEvent;
|
|
2167
2167
|
class WithdrawEvent {
|
|
2168
2168
|
constructor(typeArgs, fields) {
|
|
2169
2169
|
this.__StructClass = true;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.init = init;
|
|
4
|
+
exports.createLendingMarket = createLendingMarket;
|
|
4
5
|
const __1 = require("..");
|
|
5
6
|
const util_1 = require("../../_framework/util");
|
|
6
7
|
function init(tx) {
|
|
@@ -9,7 +10,6 @@ function init(tx) {
|
|
|
9
10
|
arguments: [],
|
|
10
11
|
});
|
|
11
12
|
}
|
|
12
|
-
exports.init = init;
|
|
13
13
|
function createLendingMarket(tx, typeArg, registry) {
|
|
14
14
|
return tx.moveCall({
|
|
15
15
|
target: `${__1.PUBLISHED_AT}::lending_market_registry::create_lending_market`,
|
|
@@ -17,4 +17,3 @@ function createLendingMarket(tx, typeArg, registry) {
|
|
|
17
17
|
arguments: [(0, util_1.obj)(tx, registry)],
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
exports.createLendingMarket = createLendingMarket;
|
|
@@ -32,7 +32,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.UserRewardManager = exports.
|
|
35
|
+
exports.UserRewardManager = exports.UserReward = exports.RewardBalance = exports.PoolRewardManager = exports.PoolReward = void 0;
|
|
36
|
+
exports.isPoolReward = isPoolReward;
|
|
37
|
+
exports.isPoolRewardManager = isPoolRewardManager;
|
|
38
|
+
exports.isRewardBalance = isRewardBalance;
|
|
39
|
+
exports.isUserReward = isUserReward;
|
|
40
|
+
exports.isUserRewardManager = isUserRewardManager;
|
|
36
41
|
const reified = __importStar(require("../../_framework/reified"));
|
|
37
42
|
const structs_1 = require("../../_dependencies/source/0x1/option/structs");
|
|
38
43
|
const structs_2 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
@@ -49,7 +54,6 @@ function isPoolReward(type) {
|
|
|
49
54
|
type = (0, util_1.compressSuiType)(type);
|
|
50
55
|
return type === `${index_1.PKG_V1}::liquidity_mining::PoolReward`;
|
|
51
56
|
}
|
|
52
|
-
exports.isPoolReward = isPoolReward;
|
|
53
57
|
class PoolReward {
|
|
54
58
|
constructor(typeArgs, fields) {
|
|
55
59
|
this.__StructClass = true;
|
|
@@ -229,7 +233,6 @@ function isPoolRewardManager(type) {
|
|
|
229
233
|
type = (0, util_1.compressSuiType)(type);
|
|
230
234
|
return type === `${index_1.PKG_V1}::liquidity_mining::PoolRewardManager`;
|
|
231
235
|
}
|
|
232
|
-
exports.isPoolRewardManager = isPoolRewardManager;
|
|
233
236
|
class PoolRewardManager {
|
|
234
237
|
constructor(typeArgs, fields) {
|
|
235
238
|
this.__StructClass = true;
|
|
@@ -374,7 +377,6 @@ function isRewardBalance(type) {
|
|
|
374
377
|
type = (0, util_1.compressSuiType)(type);
|
|
375
378
|
return type.startsWith(`${index_1.PKG_V1}::liquidity_mining::RewardBalance` + "<");
|
|
376
379
|
}
|
|
377
|
-
exports.isRewardBalance = isRewardBalance;
|
|
378
380
|
class RewardBalance {
|
|
379
381
|
constructor(typeArgs, fields) {
|
|
380
382
|
this.__StructClass = true;
|
|
@@ -512,7 +514,6 @@ function isUserReward(type) {
|
|
|
512
514
|
type = (0, util_1.compressSuiType)(type);
|
|
513
515
|
return type === `${index_1.PKG_V1}::liquidity_mining::UserReward`;
|
|
514
516
|
}
|
|
515
|
-
exports.isUserReward = isUserReward;
|
|
516
517
|
class UserReward {
|
|
517
518
|
constructor(typeArgs, fields) {
|
|
518
519
|
this.__StructClass = true;
|
|
@@ -650,7 +651,6 @@ function isUserRewardManager(type) {
|
|
|
650
651
|
type = (0, util_1.compressSuiType)(type);
|
|
651
652
|
return type === `${index_1.PKG_V1}::liquidity_mining::UserRewardManager`;
|
|
652
653
|
}
|
|
653
|
-
exports.isUserRewardManager = isUserRewardManager;
|
|
654
654
|
class UserRewardManager {
|
|
655
655
|
constructor(typeArgs, fields) {
|
|
656
656
|
this.__StructClass = true;
|
|
@@ -32,7 +32,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.ObligationDataEvent = exports.
|
|
35
|
+
exports.ObligationDataEvent = exports.Obligation = exports.DepositRecord = exports.Deposit = exports.BorrowRecord = exports.Borrow = void 0;
|
|
36
|
+
exports.isBorrow = isBorrow;
|
|
37
|
+
exports.isBorrowRecord = isBorrowRecord;
|
|
38
|
+
exports.isDeposit = isDeposit;
|
|
39
|
+
exports.isDepositRecord = isDepositRecord;
|
|
40
|
+
exports.isObligation = isObligation;
|
|
41
|
+
exports.isObligationDataEvent = isObligationDataEvent;
|
|
36
42
|
const reified = __importStar(require("../../_framework/reified"));
|
|
37
43
|
const structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
38
44
|
const structs_2 = require("../../_dependencies/source/0x2/object/structs");
|
|
@@ -48,7 +54,6 @@ function isBorrow(type) {
|
|
|
48
54
|
type = (0, util_1.compressSuiType)(type);
|
|
49
55
|
return type === `${index_1.PKG_V1}::obligation::Borrow`;
|
|
50
56
|
}
|
|
51
|
-
exports.isBorrow = isBorrow;
|
|
52
57
|
class Borrow {
|
|
53
58
|
constructor(typeArgs, fields) {
|
|
54
59
|
this.__StructClass = true;
|
|
@@ -204,7 +209,6 @@ function isBorrowRecord(type) {
|
|
|
204
209
|
type = (0, util_1.compressSuiType)(type);
|
|
205
210
|
return type === `${index_1.PKG_V1}::obligation::BorrowRecord`;
|
|
206
211
|
}
|
|
207
|
-
exports.isBorrowRecord = isBorrowRecord;
|
|
208
212
|
class BorrowRecord {
|
|
209
213
|
constructor(typeArgs, fields) {
|
|
210
214
|
this.__StructClass = true;
|
|
@@ -361,7 +365,6 @@ function isDeposit(type) {
|
|
|
361
365
|
type = (0, util_1.compressSuiType)(type);
|
|
362
366
|
return type === `${index_1.PKG_V1}::obligation::Deposit`;
|
|
363
367
|
}
|
|
364
|
-
exports.isDeposit = isDeposit;
|
|
365
368
|
class Deposit {
|
|
366
369
|
constructor(typeArgs, fields) {
|
|
367
370
|
this.__StructClass = true;
|
|
@@ -517,7 +520,6 @@ function isDepositRecord(type) {
|
|
|
517
520
|
type = (0, util_1.compressSuiType)(type);
|
|
518
521
|
return type === `${index_1.PKG_V1}::obligation::DepositRecord`;
|
|
519
522
|
}
|
|
520
|
-
exports.isDepositRecord = isDepositRecord;
|
|
521
523
|
class DepositRecord {
|
|
522
524
|
constructor(typeArgs, fields) {
|
|
523
525
|
this.__StructClass = true;
|
|
@@ -674,7 +676,6 @@ function isObligation(type) {
|
|
|
674
676
|
type = (0, util_1.compressSuiType)(type);
|
|
675
677
|
return type.startsWith(`${index_1.PKG_V1}::obligation::Obligation` + "<");
|
|
676
678
|
}
|
|
677
|
-
exports.isObligation = isObligation;
|
|
678
679
|
class Obligation {
|
|
679
680
|
constructor(typeArgs, fields) {
|
|
680
681
|
this.__StructClass = true;
|
|
@@ -896,7 +897,6 @@ function isObligationDataEvent(type) {
|
|
|
896
897
|
type = (0, util_1.compressSuiType)(type);
|
|
897
898
|
return type === `${index_1.PKG_V1}::obligation::ObligationDataEvent`;
|
|
898
899
|
}
|
|
899
|
-
exports.isObligationDataEvent = isObligationDataEvent;
|
|
900
900
|
class ObligationDataEvent {
|
|
901
901
|
constructor(typeArgs, fields) {
|
|
902
902
|
this.__StructClass = true;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.new_ = new_;
|
|
4
|
+
exports.currentOutflow = currentOutflow;
|
|
5
|
+
exports.newConfig = newConfig;
|
|
6
|
+
exports.processQty = processQty;
|
|
7
|
+
exports.remainingOutflow = remainingOutflow;
|
|
8
|
+
exports.updateInternal = updateInternal;
|
|
4
9
|
const __1 = require("..");
|
|
5
10
|
const util_1 = require("../../_framework/util");
|
|
6
11
|
function new_(tx, args) {
|
|
@@ -9,14 +14,12 @@ function new_(tx, args) {
|
|
|
9
14
|
arguments: [(0, util_1.obj)(tx, args.config), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
10
15
|
});
|
|
11
16
|
}
|
|
12
|
-
exports.new_ = new_;
|
|
13
17
|
function currentOutflow(tx, args) {
|
|
14
18
|
return tx.moveCall({
|
|
15
19
|
target: `${__1.PUBLISHED_AT}::rate_limiter::current_outflow`,
|
|
16
20
|
arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
17
21
|
});
|
|
18
22
|
}
|
|
19
|
-
exports.currentOutflow = currentOutflow;
|
|
20
23
|
function newConfig(tx, args) {
|
|
21
24
|
return tx.moveCall({
|
|
22
25
|
target: `${__1.PUBLISHED_AT}::rate_limiter::new_config`,
|
|
@@ -26,7 +29,6 @@ function newConfig(tx, args) {
|
|
|
26
29
|
],
|
|
27
30
|
});
|
|
28
31
|
}
|
|
29
|
-
exports.newConfig = newConfig;
|
|
30
32
|
function processQty(tx, args) {
|
|
31
33
|
return tx.moveCall({
|
|
32
34
|
target: `${__1.PUBLISHED_AT}::rate_limiter::process_qty`,
|
|
@@ -37,18 +39,15 @@ function processQty(tx, args) {
|
|
|
37
39
|
],
|
|
38
40
|
});
|
|
39
41
|
}
|
|
40
|
-
exports.processQty = processQty;
|
|
41
42
|
function remainingOutflow(tx, args) {
|
|
42
43
|
return tx.moveCall({
|
|
43
44
|
target: `${__1.PUBLISHED_AT}::rate_limiter::remaining_outflow`,
|
|
44
45
|
arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
exports.remainingOutflow = remainingOutflow;
|
|
48
48
|
function updateInternal(tx, args) {
|
|
49
49
|
return tx.moveCall({
|
|
50
50
|
target: `${__1.PUBLISHED_AT}::rate_limiter::update_internal`,
|
|
51
51
|
arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
exports.updateInternal = updateInternal;
|