@suilend/sdk 1.1.0 → 1.1.1
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/core/client.js +1 -1
- package/core/parsers/lendingMarket.d.ts +1 -1
- package/core/parsers/obligation.d.ts +1 -1
- package/core/parsers/rateLimiter.d.ts +2 -2
- package/core/parsers/reserve.d.ts +4 -4
- package/core/types.js +2 -2
- package/core/utils/events.js +3 -3
- package/mainnet/_generated/_dependencies/source/0x1/ascii/structs.js +3 -3
- package/mainnet/_generated/_dependencies/source/0x1/option/structs.d.ts +1 -1
- package/mainnet/_generated/_dependencies/source/0x1/option/structs.js +2 -2
- package/mainnet/_generated/_dependencies/source/0x1/type-name/structs.js +2 -2
- package/mainnet/_generated/_dependencies/source/0x2/bag/structs.js +2 -2
- package/mainnet/_generated/_dependencies/source/0x2/balance/structs.js +3 -3
- package/mainnet/_generated/_dependencies/source/0x2/object/structs.js +3 -3
- package/mainnet/_generated/_dependencies/source/0x2/object-table/structs.js +2 -2
- package/mainnet/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +2 -2
- package/mainnet/_generated/_framework/reified.js +10 -10
- package/mainnet/_generated/_framework/util.d.ts +11 -5
- package/mainnet/_generated/_framework/util.js +13 -12
- package/mainnet/_generated/_framework/vector.d.ts +1 -1
- package/mainnet/_generated/_framework/vector.js +2 -2
- package/mainnet/_generated/suilend/cell/structs.d.ts +1 -1
- package/mainnet/_generated/suilend/cell/structs.js +2 -2
- package/mainnet/_generated/suilend/decimal/structs.js +2 -2
- package/mainnet/_generated/suilend/index.d.ts +1 -1
- package/mainnet/_generated/suilend/index.js +1 -1
- package/mainnet/_generated/suilend/lending-market/functions.js +31 -30
- package/mainnet/_generated/suilend/lending-market/structs.js +15 -15
- package/mainnet/_generated/suilend/lending-market-registry/functions.js +3 -2
- package/mainnet/_generated/suilend/liquidity-mining/structs.js +6 -6
- package/mainnet/_generated/suilend/obligation/structs.js +7 -7
- package/mainnet/_generated/suilend/rate-limiter/functions.js +7 -6
- package/mainnet/_generated/suilend/rate-limiter/structs.js +3 -3
- package/mainnet/_generated/suilend/reserve/structs.js +7 -7
- package/mainnet/_generated/suilend/reserve-config/functions.js +40 -39
- package/mainnet/_generated/suilend/reserve-config/structs.js +3 -3
- package/mainnet/utils/obligation.js +6 -5
- package/package.json +1 -1
|
@@ -1,35 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.borrow =
|
|
4
|
-
exports.migrate = migrate;
|
|
5
|
-
exports.init = init;
|
|
6
|
-
exports.addPoolReward = addPoolReward;
|
|
7
|
-
exports.cancelPoolReward = cancelPoolReward;
|
|
8
|
-
exports.claimRewards = claimRewards;
|
|
9
|
-
exports.closePoolReward = closePoolReward;
|
|
10
|
-
exports.reserve = reserve;
|
|
11
|
-
exports.claimFees = claimFees;
|
|
12
|
-
exports.depositLiquidityAndMintCtokens = depositLiquidityAndMintCtokens;
|
|
13
|
-
exports.maxBorrowAmount = maxBorrowAmount;
|
|
14
|
-
exports.updateReserveConfig = updateReserveConfig;
|
|
15
|
-
exports.withdrawCtokens = withdrawCtokens;
|
|
16
|
-
exports.obligation = obligation;
|
|
17
|
-
exports.createObligation = createObligation;
|
|
18
|
-
exports.reserveArrayIndex = reserveArrayIndex;
|
|
19
|
-
exports.forgive = forgive;
|
|
20
|
-
exports.liquidate = liquidate;
|
|
21
|
-
exports.maxWithdrawAmount = maxWithdrawAmount;
|
|
22
|
-
exports.repay = repay;
|
|
23
|
-
exports.obligationId = obligationId;
|
|
24
|
-
exports.addReserve = addReserve;
|
|
25
|
-
exports.claimRewardsAndDeposit = claimRewardsAndDeposit;
|
|
26
|
-
exports.claimRewardsByObligationId = claimRewardsByObligationId;
|
|
27
|
-
exports.createLendingMarket = createLendingMarket;
|
|
28
|
-
exports.depositCtokensIntoObligation = depositCtokensIntoObligation;
|
|
29
|
-
exports.depositCtokensIntoObligationById = depositCtokensIntoObligationById;
|
|
30
|
-
exports.redeemCtokensAndWithdrawLiquidity = redeemCtokensAndWithdrawLiquidity;
|
|
31
|
-
exports.refreshReservePrice = refreshReservePrice;
|
|
32
|
-
exports.updateRateLimiterConfig = updateRateLimiterConfig;
|
|
3
|
+
exports.updateRateLimiterConfig = exports.refreshReservePrice = exports.redeemCtokensAndWithdrawLiquidity = exports.depositCtokensIntoObligationById = exports.depositCtokensIntoObligation = exports.createLendingMarket = exports.claimRewardsByObligationId = exports.claimRewardsAndDeposit = exports.addReserve = exports.obligationId = exports.repay = exports.maxWithdrawAmount = exports.liquidate = exports.forgive = exports.reserveArrayIndex = exports.createObligation = exports.obligation = exports.withdrawCtokens = exports.updateReserveConfig = exports.maxBorrowAmount = exports.depositLiquidityAndMintCtokens = exports.claimFees = exports.reserve = exports.closePoolReward = exports.claimRewards = exports.cancelPoolReward = exports.addPoolReward = exports.init = exports.migrate = exports.borrow = void 0;
|
|
33
4
|
const __1 = require("..");
|
|
34
5
|
const structs_1 = require("../../_dependencies/source/0x2/object/structs");
|
|
35
6
|
const util_1 = require("../../_framework/util");
|
|
@@ -47,6 +18,7 @@ function borrow(tx, typeArgs, args) {
|
|
|
47
18
|
],
|
|
48
19
|
});
|
|
49
20
|
}
|
|
21
|
+
exports.borrow = borrow;
|
|
50
22
|
function migrate(tx, typeArg, args) {
|
|
51
23
|
return tx.moveCall({
|
|
52
24
|
target: `${__1.PUBLISHED_AT}::lending_market::migrate`,
|
|
@@ -57,12 +29,14 @@ function migrate(tx, typeArg, args) {
|
|
|
57
29
|
],
|
|
58
30
|
});
|
|
59
31
|
}
|
|
32
|
+
exports.migrate = migrate;
|
|
60
33
|
function init(tx, otw) {
|
|
61
34
|
return tx.moveCall({
|
|
62
35
|
target: `${__1.PUBLISHED_AT}::lending_market::init`,
|
|
63
36
|
arguments: [(0, util_1.obj)(tx, otw)],
|
|
64
37
|
});
|
|
65
38
|
}
|
|
39
|
+
exports.init = init;
|
|
66
40
|
function addPoolReward(tx, typeArgs, args) {
|
|
67
41
|
return tx.moveCall({
|
|
68
42
|
target: `${__1.PUBLISHED_AT}::lending_market::add_pool_reward`,
|
|
@@ -79,6 +53,7 @@ function addPoolReward(tx, typeArgs, args) {
|
|
|
79
53
|
],
|
|
80
54
|
});
|
|
81
55
|
}
|
|
56
|
+
exports.addPoolReward = addPoolReward;
|
|
82
57
|
function cancelPoolReward(tx, typeArgs, args) {
|
|
83
58
|
return tx.moveCall({
|
|
84
59
|
target: `${__1.PUBLISHED_AT}::lending_market::cancel_pool_reward`,
|
|
@@ -93,6 +68,7 @@ function cancelPoolReward(tx, typeArgs, args) {
|
|
|
93
68
|
],
|
|
94
69
|
});
|
|
95
70
|
}
|
|
71
|
+
exports.cancelPoolReward = cancelPoolReward;
|
|
96
72
|
function claimRewards(tx, typeArgs, args) {
|
|
97
73
|
return tx.moveCall({
|
|
98
74
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_rewards`,
|
|
@@ -107,6 +83,7 @@ function claimRewards(tx, typeArgs, args) {
|
|
|
107
83
|
],
|
|
108
84
|
});
|
|
109
85
|
}
|
|
86
|
+
exports.claimRewards = claimRewards;
|
|
110
87
|
function closePoolReward(tx, typeArgs, args) {
|
|
111
88
|
return tx.moveCall({
|
|
112
89
|
target: `${__1.PUBLISHED_AT}::lending_market::close_pool_reward`,
|
|
@@ -121,6 +98,7 @@ function closePoolReward(tx, typeArgs, args) {
|
|
|
121
98
|
],
|
|
122
99
|
});
|
|
123
100
|
}
|
|
101
|
+
exports.closePoolReward = closePoolReward;
|
|
124
102
|
function reserve(tx, typeArgs, lendingMarket) {
|
|
125
103
|
return tx.moveCall({
|
|
126
104
|
target: `${__1.PUBLISHED_AT}::lending_market::reserve`,
|
|
@@ -128,6 +106,7 @@ function reserve(tx, typeArgs, lendingMarket) {
|
|
|
128
106
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
129
107
|
});
|
|
130
108
|
}
|
|
109
|
+
exports.reserve = reserve;
|
|
131
110
|
function claimFees(tx, typeArgs, args) {
|
|
132
111
|
return tx.moveCall({
|
|
133
112
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_fees`,
|
|
@@ -138,6 +117,7 @@ function claimFees(tx, typeArgs, args) {
|
|
|
138
117
|
],
|
|
139
118
|
});
|
|
140
119
|
}
|
|
120
|
+
exports.claimFees = claimFees;
|
|
141
121
|
function depositLiquidityAndMintCtokens(tx, typeArgs, args) {
|
|
142
122
|
return tx.moveCall({
|
|
143
123
|
target: `${__1.PUBLISHED_AT}::lending_market::deposit_liquidity_and_mint_ctokens`,
|
|
@@ -150,6 +130,7 @@ function depositLiquidityAndMintCtokens(tx, typeArgs, args) {
|
|
|
150
130
|
],
|
|
151
131
|
});
|
|
152
132
|
}
|
|
133
|
+
exports.depositLiquidityAndMintCtokens = depositLiquidityAndMintCtokens;
|
|
153
134
|
function maxBorrowAmount(tx, typeArg, args) {
|
|
154
135
|
return tx.moveCall({
|
|
155
136
|
target: `${__1.PUBLISHED_AT}::lending_market::max_borrow_amount`,
|
|
@@ -162,6 +143,7 @@ function maxBorrowAmount(tx, typeArg, args) {
|
|
|
162
143
|
],
|
|
163
144
|
});
|
|
164
145
|
}
|
|
146
|
+
exports.maxBorrowAmount = maxBorrowAmount;
|
|
165
147
|
function updateReserveConfig(tx, typeArgs, args) {
|
|
166
148
|
return tx.moveCall({
|
|
167
149
|
target: `${__1.PUBLISHED_AT}::lending_market::update_reserve_config`,
|
|
@@ -174,6 +156,7 @@ function updateReserveConfig(tx, typeArgs, args) {
|
|
|
174
156
|
],
|
|
175
157
|
});
|
|
176
158
|
}
|
|
159
|
+
exports.updateReserveConfig = updateReserveConfig;
|
|
177
160
|
function withdrawCtokens(tx, typeArgs, args) {
|
|
178
161
|
return tx.moveCall({
|
|
179
162
|
target: `${__1.PUBLISHED_AT}::lending_market::withdraw_ctokens`,
|
|
@@ -187,6 +170,7 @@ function withdrawCtokens(tx, typeArgs, args) {
|
|
|
187
170
|
],
|
|
188
171
|
});
|
|
189
172
|
}
|
|
173
|
+
exports.withdrawCtokens = withdrawCtokens;
|
|
190
174
|
function obligation(tx, typeArg, args) {
|
|
191
175
|
return tx.moveCall({
|
|
192
176
|
target: `${__1.PUBLISHED_AT}::lending_market::obligation`,
|
|
@@ -197,6 +181,7 @@ function obligation(tx, typeArg, args) {
|
|
|
197
181
|
],
|
|
198
182
|
});
|
|
199
183
|
}
|
|
184
|
+
exports.obligation = obligation;
|
|
200
185
|
function createObligation(tx, typeArg, lendingMarket) {
|
|
201
186
|
return tx.moveCall({
|
|
202
187
|
target: `${__1.PUBLISHED_AT}::lending_market::create_obligation`,
|
|
@@ -204,6 +189,7 @@ function createObligation(tx, typeArg, lendingMarket) {
|
|
|
204
189
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
205
190
|
});
|
|
206
191
|
}
|
|
192
|
+
exports.createObligation = createObligation;
|
|
207
193
|
function reserveArrayIndex(tx, typeArgs, lendingMarket) {
|
|
208
194
|
return tx.moveCall({
|
|
209
195
|
target: `${__1.PUBLISHED_AT}::lending_market::reserve_array_index`,
|
|
@@ -211,6 +197,7 @@ function reserveArrayIndex(tx, typeArgs, lendingMarket) {
|
|
|
211
197
|
arguments: [(0, util_1.obj)(tx, lendingMarket)],
|
|
212
198
|
});
|
|
213
199
|
}
|
|
200
|
+
exports.reserveArrayIndex = reserveArrayIndex;
|
|
214
201
|
function forgive(tx, typeArgs, args) {
|
|
215
202
|
return tx.moveCall({
|
|
216
203
|
target: `${__1.PUBLISHED_AT}::lending_market::forgive`,
|
|
@@ -225,6 +212,7 @@ function forgive(tx, typeArgs, args) {
|
|
|
225
212
|
],
|
|
226
213
|
});
|
|
227
214
|
}
|
|
215
|
+
exports.forgive = forgive;
|
|
228
216
|
function liquidate(tx, typeArgs, args) {
|
|
229
217
|
return tx.moveCall({
|
|
230
218
|
target: `${__1.PUBLISHED_AT}::lending_market::liquidate`,
|
|
@@ -239,6 +227,7 @@ function liquidate(tx, typeArgs, args) {
|
|
|
239
227
|
],
|
|
240
228
|
});
|
|
241
229
|
}
|
|
230
|
+
exports.liquidate = liquidate;
|
|
242
231
|
function maxWithdrawAmount(tx, typeArg, args) {
|
|
243
232
|
return tx.moveCall({
|
|
244
233
|
target: `${__1.PUBLISHED_AT}::lending_market::max_withdraw_amount`,
|
|
@@ -251,6 +240,7 @@ function maxWithdrawAmount(tx, typeArg, args) {
|
|
|
251
240
|
],
|
|
252
241
|
});
|
|
253
242
|
}
|
|
243
|
+
exports.maxWithdrawAmount = maxWithdrawAmount;
|
|
254
244
|
function repay(tx, typeArgs, args) {
|
|
255
245
|
return tx.moveCall({
|
|
256
246
|
target: `${__1.PUBLISHED_AT}::lending_market::repay`,
|
|
@@ -264,6 +254,7 @@ function repay(tx, typeArgs, args) {
|
|
|
264
254
|
],
|
|
265
255
|
});
|
|
266
256
|
}
|
|
257
|
+
exports.repay = repay;
|
|
267
258
|
function obligationId(tx, typeArg, cap) {
|
|
268
259
|
return tx.moveCall({
|
|
269
260
|
target: `${__1.PUBLISHED_AT}::lending_market::obligation_id`,
|
|
@@ -271,6 +262,7 @@ function obligationId(tx, typeArg, cap) {
|
|
|
271
262
|
arguments: [(0, util_1.obj)(tx, cap)],
|
|
272
263
|
});
|
|
273
264
|
}
|
|
265
|
+
exports.obligationId = obligationId;
|
|
274
266
|
function addReserve(tx, typeArgs, args) {
|
|
275
267
|
return tx.moveCall({
|
|
276
268
|
target: `${__1.PUBLISHED_AT}::lending_market::add_reserve`,
|
|
@@ -285,6 +277,7 @@ function addReserve(tx, typeArgs, args) {
|
|
|
285
277
|
],
|
|
286
278
|
});
|
|
287
279
|
}
|
|
280
|
+
exports.addReserve = addReserve;
|
|
288
281
|
function claimRewardsAndDeposit(tx, typeArgs, args) {
|
|
289
282
|
return tx.moveCall({
|
|
290
283
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_rewards_and_deposit`,
|
|
@@ -300,6 +293,7 @@ function claimRewardsAndDeposit(tx, typeArgs, args) {
|
|
|
300
293
|
],
|
|
301
294
|
});
|
|
302
295
|
}
|
|
296
|
+
exports.claimRewardsAndDeposit = claimRewardsAndDeposit;
|
|
303
297
|
function claimRewardsByObligationId(tx, typeArgs, args) {
|
|
304
298
|
return tx.moveCall({
|
|
305
299
|
target: `${__1.PUBLISHED_AT}::lending_market::claim_rewards_by_obligation_id`,
|
|
@@ -315,6 +309,7 @@ function claimRewardsByObligationId(tx, typeArgs, args) {
|
|
|
315
309
|
],
|
|
316
310
|
});
|
|
317
311
|
}
|
|
312
|
+
exports.claimRewardsByObligationId = claimRewardsByObligationId;
|
|
318
313
|
function createLendingMarket(tx, typeArg) {
|
|
319
314
|
return tx.moveCall({
|
|
320
315
|
target: `${__1.PUBLISHED_AT}::lending_market::create_lending_market`,
|
|
@@ -322,6 +317,7 @@ function createLendingMarket(tx, typeArg) {
|
|
|
322
317
|
arguments: [],
|
|
323
318
|
});
|
|
324
319
|
}
|
|
320
|
+
exports.createLendingMarket = createLendingMarket;
|
|
325
321
|
function depositCtokensIntoObligation(tx, typeArgs, args) {
|
|
326
322
|
return tx.moveCall({
|
|
327
323
|
target: `${__1.PUBLISHED_AT}::lending_market::deposit_ctokens_into_obligation`,
|
|
@@ -335,6 +331,7 @@ function depositCtokensIntoObligation(tx, typeArgs, args) {
|
|
|
335
331
|
],
|
|
336
332
|
});
|
|
337
333
|
}
|
|
334
|
+
exports.depositCtokensIntoObligation = depositCtokensIntoObligation;
|
|
338
335
|
function depositCtokensIntoObligationById(tx, typeArgs, args) {
|
|
339
336
|
return tx.moveCall({
|
|
340
337
|
target: `${__1.PUBLISHED_AT}::lending_market::deposit_ctokens_into_obligation_by_id`,
|
|
@@ -348,6 +345,7 @@ function depositCtokensIntoObligationById(tx, typeArgs, args) {
|
|
|
348
345
|
],
|
|
349
346
|
});
|
|
350
347
|
}
|
|
348
|
+
exports.depositCtokensIntoObligationById = depositCtokensIntoObligationById;
|
|
351
349
|
function redeemCtokensAndWithdrawLiquidity(tx, typeArgs, args) {
|
|
352
350
|
return tx.moveCall({
|
|
353
351
|
target: `${__1.PUBLISHED_AT}::lending_market::redeem_ctokens_and_withdraw_liquidity`,
|
|
@@ -361,6 +359,7 @@ function redeemCtokensAndWithdrawLiquidity(tx, typeArgs, args) {
|
|
|
361
359
|
],
|
|
362
360
|
});
|
|
363
361
|
}
|
|
362
|
+
exports.redeemCtokensAndWithdrawLiquidity = redeemCtokensAndWithdrawLiquidity;
|
|
364
363
|
function refreshReservePrice(tx, typeArg, args) {
|
|
365
364
|
return tx.moveCall({
|
|
366
365
|
target: `${__1.PUBLISHED_AT}::lending_market::refresh_reserve_price`,
|
|
@@ -373,6 +372,7 @@ function refreshReservePrice(tx, typeArg, args) {
|
|
|
373
372
|
],
|
|
374
373
|
});
|
|
375
374
|
}
|
|
375
|
+
exports.refreshReservePrice = refreshReservePrice;
|
|
376
376
|
function updateRateLimiterConfig(tx, typeArg, args) {
|
|
377
377
|
return tx.moveCall({
|
|
378
378
|
target: `${__1.PUBLISHED_AT}::lending_market::update_rate_limiter_config`,
|
|
@@ -385,3 +385,4 @@ function updateRateLimiterConfig(tx, typeArg, args) {
|
|
|
385
385
|
],
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
+
exports.updateRateLimiterConfig = updateRateLimiterConfig;
|
|
@@ -32,21 +32,7 @@ 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.RepayEvent = exports.RedeemEvent = exports.RateLimiterExemption = exports.ObligationOwnerCap = exports.MintEvent = exports.LiquidateEvent = exports.LendingMarketOwnerCap = exports.LendingMarket = exports.LENDING_MARKET = exports.ForgiveEvent = exports.DepositEvent = exports.ClaimRewardEvent = exports.BorrowEvent = void 0;
|
|
36
|
-
exports.isBorrowEvent = isBorrowEvent;
|
|
37
|
-
exports.isClaimRewardEvent = isClaimRewardEvent;
|
|
38
|
-
exports.isDepositEvent = isDepositEvent;
|
|
39
|
-
exports.isForgiveEvent = isForgiveEvent;
|
|
40
|
-
exports.isLENDING_MARKET = isLENDING_MARKET;
|
|
41
|
-
exports.isLendingMarket = isLendingMarket;
|
|
42
|
-
exports.isLendingMarketOwnerCap = isLendingMarketOwnerCap;
|
|
43
|
-
exports.isLiquidateEvent = isLiquidateEvent;
|
|
44
|
-
exports.isMintEvent = isMintEvent;
|
|
45
|
-
exports.isObligationOwnerCap = isObligationOwnerCap;
|
|
46
|
-
exports.isRateLimiterExemption = isRateLimiterExemption;
|
|
47
|
-
exports.isRedeemEvent = isRedeemEvent;
|
|
48
|
-
exports.isRepayEvent = isRepayEvent;
|
|
49
|
-
exports.isWithdrawEvent = isWithdrawEvent;
|
|
35
|
+
exports.WithdrawEvent = exports.isWithdrawEvent = exports.RepayEvent = exports.isRepayEvent = exports.RedeemEvent = exports.isRedeemEvent = exports.RateLimiterExemption = exports.isRateLimiterExemption = exports.ObligationOwnerCap = exports.isObligationOwnerCap = exports.MintEvent = exports.isMintEvent = exports.LiquidateEvent = exports.isLiquidateEvent = exports.LendingMarketOwnerCap = exports.isLendingMarketOwnerCap = exports.LendingMarket = exports.isLendingMarket = exports.LENDING_MARKET = exports.isLENDING_MARKET = exports.ForgiveEvent = exports.isForgiveEvent = exports.DepositEvent = exports.isDepositEvent = exports.ClaimRewardEvent = exports.isClaimRewardEvent = exports.BorrowEvent = exports.isBorrowEvent = void 0;
|
|
50
36
|
const reified = __importStar(require("../../_framework/reified"));
|
|
51
37
|
const structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
52
38
|
const structs_2 = require("../../_dependencies/source/0x2/object-table/structs");
|
|
@@ -65,6 +51,7 @@ function isBorrowEvent(type) {
|
|
|
65
51
|
type = (0, util_1.compressSuiType)(type);
|
|
66
52
|
return type === `${index_1.PKG_V1}::lending_market::BorrowEvent`;
|
|
67
53
|
}
|
|
54
|
+
exports.isBorrowEvent = isBorrowEvent;
|
|
68
55
|
class BorrowEvent {
|
|
69
56
|
constructor(typeArgs, fields) {
|
|
70
57
|
this.__StructClass = true;
|
|
@@ -235,6 +222,7 @@ function isClaimRewardEvent(type) {
|
|
|
235
222
|
type = (0, util_1.compressSuiType)(type);
|
|
236
223
|
return type === `${index_1.PKG_V1}::lending_market::ClaimRewardEvent`;
|
|
237
224
|
}
|
|
225
|
+
exports.isClaimRewardEvent = isClaimRewardEvent;
|
|
238
226
|
class ClaimRewardEvent {
|
|
239
227
|
constructor(typeArgs, fields) {
|
|
240
228
|
this.__StructClass = true;
|
|
@@ -417,6 +405,7 @@ function isDepositEvent(type) {
|
|
|
417
405
|
type = (0, util_1.compressSuiType)(type);
|
|
418
406
|
return type === `${index_1.PKG_V1}::lending_market::DepositEvent`;
|
|
419
407
|
}
|
|
408
|
+
exports.isDepositEvent = isDepositEvent;
|
|
420
409
|
class DepositEvent {
|
|
421
410
|
constructor(typeArgs, fields) {
|
|
422
411
|
this.__StructClass = true;
|
|
@@ -582,6 +571,7 @@ function isForgiveEvent(type) {
|
|
|
582
571
|
type = (0, util_1.compressSuiType)(type);
|
|
583
572
|
return type === `${index_1.PKG_V1}::lending_market::ForgiveEvent`;
|
|
584
573
|
}
|
|
574
|
+
exports.isForgiveEvent = isForgiveEvent;
|
|
585
575
|
class ForgiveEvent {
|
|
586
576
|
constructor(typeArgs, fields) {
|
|
587
577
|
this.__StructClass = true;
|
|
@@ -747,6 +737,7 @@ function isLENDING_MARKET(type) {
|
|
|
747
737
|
type = (0, util_1.compressSuiType)(type);
|
|
748
738
|
return type === `${index_1.PKG_V1}::lending_market::LENDING_MARKET`;
|
|
749
739
|
}
|
|
740
|
+
exports.isLENDING_MARKET = isLENDING_MARKET;
|
|
750
741
|
class LENDING_MARKET {
|
|
751
742
|
constructor(typeArgs, fields) {
|
|
752
743
|
this.__StructClass = true;
|
|
@@ -873,6 +864,7 @@ function isLendingMarket(type) {
|
|
|
873
864
|
type = (0, util_1.compressSuiType)(type);
|
|
874
865
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::LendingMarket` + "<");
|
|
875
866
|
}
|
|
867
|
+
exports.isLendingMarket = isLendingMarket;
|
|
876
868
|
class LendingMarket {
|
|
877
869
|
constructor(typeArgs, fields) {
|
|
878
870
|
this.__StructClass = true;
|
|
@@ -1057,6 +1049,7 @@ function isLendingMarketOwnerCap(type) {
|
|
|
1057
1049
|
type = (0, util_1.compressSuiType)(type);
|
|
1058
1050
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::LendingMarketOwnerCap` + "<");
|
|
1059
1051
|
}
|
|
1052
|
+
exports.isLendingMarketOwnerCap = isLendingMarketOwnerCap;
|
|
1060
1053
|
class LendingMarketOwnerCap {
|
|
1061
1054
|
constructor(typeArgs, fields) {
|
|
1062
1055
|
this.__StructClass = true;
|
|
@@ -1200,6 +1193,7 @@ function isLiquidateEvent(type) {
|
|
|
1200
1193
|
type = (0, util_1.compressSuiType)(type);
|
|
1201
1194
|
return type === `${index_1.PKG_V1}::lending_market::LiquidateEvent`;
|
|
1202
1195
|
}
|
|
1196
|
+
exports.isLiquidateEvent = isLiquidateEvent;
|
|
1203
1197
|
class LiquidateEvent {
|
|
1204
1198
|
constructor(typeArgs, fields) {
|
|
1205
1199
|
this.__StructClass = true;
|
|
@@ -1400,6 +1394,7 @@ function isMintEvent(type) {
|
|
|
1400
1394
|
type = (0, util_1.compressSuiType)(type);
|
|
1401
1395
|
return type === `${index_1.PKG_V1}::lending_market::MintEvent`;
|
|
1402
1396
|
}
|
|
1397
|
+
exports.isMintEvent = isMintEvent;
|
|
1403
1398
|
class MintEvent {
|
|
1404
1399
|
constructor(typeArgs, fields) {
|
|
1405
1400
|
this.__StructClass = true;
|
|
@@ -1559,6 +1554,7 @@ function isObligationOwnerCap(type) {
|
|
|
1559
1554
|
type = (0, util_1.compressSuiType)(type);
|
|
1560
1555
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::ObligationOwnerCap` + "<");
|
|
1561
1556
|
}
|
|
1557
|
+
exports.isObligationOwnerCap = isObligationOwnerCap;
|
|
1562
1558
|
class ObligationOwnerCap {
|
|
1563
1559
|
constructor(typeArgs, fields) {
|
|
1564
1560
|
this.__StructClass = true;
|
|
@@ -1702,6 +1698,7 @@ function isRateLimiterExemption(type) {
|
|
|
1702
1698
|
type = (0, util_1.compressSuiType)(type);
|
|
1703
1699
|
return type.startsWith(`${index_1.PKG_V1}::lending_market::RateLimiterExemption` + "<");
|
|
1704
1700
|
}
|
|
1701
|
+
exports.isRateLimiterExemption = isRateLimiterExemption;
|
|
1705
1702
|
class RateLimiterExemption {
|
|
1706
1703
|
constructor(typeArgs, fields) {
|
|
1707
1704
|
this.__StructClass = true;
|
|
@@ -1841,6 +1838,7 @@ function isRedeemEvent(type) {
|
|
|
1841
1838
|
type = (0, util_1.compressSuiType)(type);
|
|
1842
1839
|
return type === `${index_1.PKG_V1}::lending_market::RedeemEvent`;
|
|
1843
1840
|
}
|
|
1841
|
+
exports.isRedeemEvent = isRedeemEvent;
|
|
1844
1842
|
class RedeemEvent {
|
|
1845
1843
|
constructor(typeArgs, fields) {
|
|
1846
1844
|
this.__StructClass = true;
|
|
@@ -2000,6 +1998,7 @@ function isRepayEvent(type) {
|
|
|
2000
1998
|
type = (0, util_1.compressSuiType)(type);
|
|
2001
1999
|
return type === `${index_1.PKG_V1}::lending_market::RepayEvent`;
|
|
2002
2000
|
}
|
|
2001
|
+
exports.isRepayEvent = isRepayEvent;
|
|
2003
2002
|
class RepayEvent {
|
|
2004
2003
|
constructor(typeArgs, fields) {
|
|
2005
2004
|
this.__StructClass = true;
|
|
@@ -2164,6 +2163,7 @@ function isWithdrawEvent(type) {
|
|
|
2164
2163
|
type = (0, util_1.compressSuiType)(type);
|
|
2165
2164
|
return type === `${index_1.PKG_V1}::lending_market::WithdrawEvent`;
|
|
2166
2165
|
}
|
|
2166
|
+
exports.isWithdrawEvent = isWithdrawEvent;
|
|
2167
2167
|
class WithdrawEvent {
|
|
2168
2168
|
constructor(typeArgs, fields) {
|
|
2169
2169
|
this.__StructClass = true;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
4
|
-
exports.createLendingMarket = createLendingMarket;
|
|
3
|
+
exports.createLendingMarket = exports.init = void 0;
|
|
5
4
|
const __1 = require("..");
|
|
6
5
|
const util_1 = require("../../_framework/util");
|
|
7
6
|
function init(tx) {
|
|
@@ -10,6 +9,7 @@ function init(tx) {
|
|
|
10
9
|
arguments: [],
|
|
11
10
|
});
|
|
12
11
|
}
|
|
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,3 +17,4 @@ function createLendingMarket(tx, typeArg, registry) {
|
|
|
17
17
|
arguments: [(0, util_1.obj)(tx, registry)],
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
exports.createLendingMarket = createLendingMarket;
|
|
@@ -32,12 +32,7 @@ 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.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;
|
|
35
|
+
exports.UserRewardManager = exports.isUserRewardManager = exports.UserReward = exports.isUserReward = exports.RewardBalance = exports.isRewardBalance = exports.PoolRewardManager = exports.isPoolRewardManager = exports.PoolReward = exports.isPoolReward = void 0;
|
|
41
36
|
const reified = __importStar(require("../../_framework/reified"));
|
|
42
37
|
const structs_1 = require("../../_dependencies/source/0x1/option/structs");
|
|
43
38
|
const structs_2 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
@@ -54,6 +49,7 @@ function isPoolReward(type) {
|
|
|
54
49
|
type = (0, util_1.compressSuiType)(type);
|
|
55
50
|
return type === `${index_1.PKG_V1}::liquidity_mining::PoolReward`;
|
|
56
51
|
}
|
|
52
|
+
exports.isPoolReward = isPoolReward;
|
|
57
53
|
class PoolReward {
|
|
58
54
|
constructor(typeArgs, fields) {
|
|
59
55
|
this.__StructClass = true;
|
|
@@ -233,6 +229,7 @@ function isPoolRewardManager(type) {
|
|
|
233
229
|
type = (0, util_1.compressSuiType)(type);
|
|
234
230
|
return type === `${index_1.PKG_V1}::liquidity_mining::PoolRewardManager`;
|
|
235
231
|
}
|
|
232
|
+
exports.isPoolRewardManager = isPoolRewardManager;
|
|
236
233
|
class PoolRewardManager {
|
|
237
234
|
constructor(typeArgs, fields) {
|
|
238
235
|
this.__StructClass = true;
|
|
@@ -377,6 +374,7 @@ function isRewardBalance(type) {
|
|
|
377
374
|
type = (0, util_1.compressSuiType)(type);
|
|
378
375
|
return type.startsWith(`${index_1.PKG_V1}::liquidity_mining::RewardBalance` + "<");
|
|
379
376
|
}
|
|
377
|
+
exports.isRewardBalance = isRewardBalance;
|
|
380
378
|
class RewardBalance {
|
|
381
379
|
constructor(typeArgs, fields) {
|
|
382
380
|
this.__StructClass = true;
|
|
@@ -514,6 +512,7 @@ function isUserReward(type) {
|
|
|
514
512
|
type = (0, util_1.compressSuiType)(type);
|
|
515
513
|
return type === `${index_1.PKG_V1}::liquidity_mining::UserReward`;
|
|
516
514
|
}
|
|
515
|
+
exports.isUserReward = isUserReward;
|
|
517
516
|
class UserReward {
|
|
518
517
|
constructor(typeArgs, fields) {
|
|
519
518
|
this.__StructClass = true;
|
|
@@ -651,6 +650,7 @@ function isUserRewardManager(type) {
|
|
|
651
650
|
type = (0, util_1.compressSuiType)(type);
|
|
652
651
|
return type === `${index_1.PKG_V1}::liquidity_mining::UserRewardManager`;
|
|
653
652
|
}
|
|
653
|
+
exports.isUserRewardManager = isUserRewardManager;
|
|
654
654
|
class UserRewardManager {
|
|
655
655
|
constructor(typeArgs, fields) {
|
|
656
656
|
this.__StructClass = true;
|
|
@@ -32,13 +32,7 @@ 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.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;
|
|
35
|
+
exports.ObligationDataEvent = exports.isObligationDataEvent = exports.Obligation = exports.isObligation = exports.DepositRecord = exports.isDepositRecord = exports.Deposit = exports.isDeposit = exports.BorrowRecord = exports.isBorrowRecord = exports.Borrow = exports.isBorrow = void 0;
|
|
42
36
|
const reified = __importStar(require("../../_framework/reified"));
|
|
43
37
|
const structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
44
38
|
const structs_2 = require("../../_dependencies/source/0x2/object/structs");
|
|
@@ -54,6 +48,7 @@ function isBorrow(type) {
|
|
|
54
48
|
type = (0, util_1.compressSuiType)(type);
|
|
55
49
|
return type === `${index_1.PKG_V1}::obligation::Borrow`;
|
|
56
50
|
}
|
|
51
|
+
exports.isBorrow = isBorrow;
|
|
57
52
|
class Borrow {
|
|
58
53
|
constructor(typeArgs, fields) {
|
|
59
54
|
this.__StructClass = true;
|
|
@@ -209,6 +204,7 @@ function isBorrowRecord(type) {
|
|
|
209
204
|
type = (0, util_1.compressSuiType)(type);
|
|
210
205
|
return type === `${index_1.PKG_V1}::obligation::BorrowRecord`;
|
|
211
206
|
}
|
|
207
|
+
exports.isBorrowRecord = isBorrowRecord;
|
|
212
208
|
class BorrowRecord {
|
|
213
209
|
constructor(typeArgs, fields) {
|
|
214
210
|
this.__StructClass = true;
|
|
@@ -365,6 +361,7 @@ function isDeposit(type) {
|
|
|
365
361
|
type = (0, util_1.compressSuiType)(type);
|
|
366
362
|
return type === `${index_1.PKG_V1}::obligation::Deposit`;
|
|
367
363
|
}
|
|
364
|
+
exports.isDeposit = isDeposit;
|
|
368
365
|
class Deposit {
|
|
369
366
|
constructor(typeArgs, fields) {
|
|
370
367
|
this.__StructClass = true;
|
|
@@ -520,6 +517,7 @@ function isDepositRecord(type) {
|
|
|
520
517
|
type = (0, util_1.compressSuiType)(type);
|
|
521
518
|
return type === `${index_1.PKG_V1}::obligation::DepositRecord`;
|
|
522
519
|
}
|
|
520
|
+
exports.isDepositRecord = isDepositRecord;
|
|
523
521
|
class DepositRecord {
|
|
524
522
|
constructor(typeArgs, fields) {
|
|
525
523
|
this.__StructClass = true;
|
|
@@ -676,6 +674,7 @@ function isObligation(type) {
|
|
|
676
674
|
type = (0, util_1.compressSuiType)(type);
|
|
677
675
|
return type.startsWith(`${index_1.PKG_V1}::obligation::Obligation` + "<");
|
|
678
676
|
}
|
|
677
|
+
exports.isObligation = isObligation;
|
|
679
678
|
class Obligation {
|
|
680
679
|
constructor(typeArgs, fields) {
|
|
681
680
|
this.__StructClass = true;
|
|
@@ -897,6 +896,7 @@ function isObligationDataEvent(type) {
|
|
|
897
896
|
type = (0, util_1.compressSuiType)(type);
|
|
898
897
|
return type === `${index_1.PKG_V1}::obligation::ObligationDataEvent`;
|
|
899
898
|
}
|
|
899
|
+
exports.isObligationDataEvent = isObligationDataEvent;
|
|
900
900
|
class ObligationDataEvent {
|
|
901
901
|
constructor(typeArgs, fields) {
|
|
902
902
|
this.__StructClass = true;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.new_ =
|
|
4
|
-
exports.currentOutflow = currentOutflow;
|
|
5
|
-
exports.newConfig = newConfig;
|
|
6
|
-
exports.processQty = processQty;
|
|
7
|
-
exports.remainingOutflow = remainingOutflow;
|
|
8
|
-
exports.updateInternal = updateInternal;
|
|
3
|
+
exports.updateInternal = exports.remainingOutflow = exports.processQty = exports.newConfig = exports.currentOutflow = exports.new_ = void 0;
|
|
9
4
|
const __1 = require("..");
|
|
10
5
|
const util_1 = require("../../_framework/util");
|
|
11
6
|
function new_(tx, args) {
|
|
@@ -14,12 +9,14 @@ function new_(tx, args) {
|
|
|
14
9
|
arguments: [(0, util_1.obj)(tx, args.config), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
15
10
|
});
|
|
16
11
|
}
|
|
12
|
+
exports.new_ = new_;
|
|
17
13
|
function currentOutflow(tx, args) {
|
|
18
14
|
return tx.moveCall({
|
|
19
15
|
target: `${__1.PUBLISHED_AT}::rate_limiter::current_outflow`,
|
|
20
16
|
arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
21
17
|
});
|
|
22
18
|
}
|
|
19
|
+
exports.currentOutflow = currentOutflow;
|
|
23
20
|
function newConfig(tx, args) {
|
|
24
21
|
return tx.moveCall({
|
|
25
22
|
target: `${__1.PUBLISHED_AT}::rate_limiter::new_config`,
|
|
@@ -29,6 +26,7 @@ function newConfig(tx, args) {
|
|
|
29
26
|
],
|
|
30
27
|
});
|
|
31
28
|
}
|
|
29
|
+
exports.newConfig = newConfig;
|
|
32
30
|
function processQty(tx, args) {
|
|
33
31
|
return tx.moveCall({
|
|
34
32
|
target: `${__1.PUBLISHED_AT}::rate_limiter::process_qty`,
|
|
@@ -39,15 +37,18 @@ function processQty(tx, args) {
|
|
|
39
37
|
],
|
|
40
38
|
});
|
|
41
39
|
}
|
|
40
|
+
exports.processQty = processQty;
|
|
42
41
|
function remainingOutflow(tx, args) {
|
|
43
42
|
return tx.moveCall({
|
|
44
43
|
target: `${__1.PUBLISHED_AT}::rate_limiter::remaining_outflow`,
|
|
45
44
|
arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
|
|
46
45
|
});
|
|
47
46
|
}
|
|
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;
|
|
@@ -9,9 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RateLimiterConfig = exports.RateLimiter = void 0;
|
|
13
|
-
exports.isRateLimiter = isRateLimiter;
|
|
14
|
-
exports.isRateLimiterConfig = isRateLimiterConfig;
|
|
12
|
+
exports.RateLimiterConfig = exports.isRateLimiterConfig = exports.RateLimiter = exports.isRateLimiter = void 0;
|
|
15
13
|
const reified_1 = require("../../_framework/reified");
|
|
16
14
|
const util_1 = require("../../_framework/util");
|
|
17
15
|
const structs_1 = require("../decimal/structs");
|
|
@@ -23,6 +21,7 @@ function isRateLimiter(type) {
|
|
|
23
21
|
type = (0, util_1.compressSuiType)(type);
|
|
24
22
|
return type === `${index_1.PKG_V1}::rate_limiter::RateLimiter`;
|
|
25
23
|
}
|
|
24
|
+
exports.isRateLimiter = isRateLimiter;
|
|
26
25
|
class RateLimiter {
|
|
27
26
|
constructor(typeArgs, fields) {
|
|
28
27
|
this.__StructClass = true;
|
|
@@ -166,6 +165,7 @@ function isRateLimiterConfig(type) {
|
|
|
166
165
|
type = (0, util_1.compressSuiType)(type);
|
|
167
166
|
return type === `${index_1.PKG_V1}::rate_limiter::RateLimiterConfig`;
|
|
168
167
|
}
|
|
168
|
+
exports.isRateLimiterConfig = isRateLimiterConfig;
|
|
169
169
|
class RateLimiterConfig {
|
|
170
170
|
constructor(typeArgs, fields) {
|
|
171
171
|
this.__StructClass = true;
|
|
@@ -32,13 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.ReserveAssetDataEvent = exports.Reserve = exports.InterestUpdateEvent = exports.CToken = exports.Balances = exports.BalanceKey = void 0;
|
|
36
|
-
exports.isBalanceKey = isBalanceKey;
|
|
37
|
-
exports.isBalances = isBalances;
|
|
38
|
-
exports.isCToken = isCToken;
|
|
39
|
-
exports.isInterestUpdateEvent = isInterestUpdateEvent;
|
|
40
|
-
exports.isReserve = isReserve;
|
|
41
|
-
exports.isReserveAssetDataEvent = isReserveAssetDataEvent;
|
|
35
|
+
exports.ReserveAssetDataEvent = exports.isReserveAssetDataEvent = exports.Reserve = exports.isReserve = exports.InterestUpdateEvent = exports.isInterestUpdateEvent = exports.CToken = exports.isCToken = exports.Balances = exports.isBalances = exports.BalanceKey = exports.isBalanceKey = void 0;
|
|
42
36
|
const reified = __importStar(require("../../_framework/reified"));
|
|
43
37
|
const structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
44
38
|
const structs_2 = require("../../_dependencies/source/0x2/balance/structs");
|
|
@@ -58,6 +52,7 @@ function isBalanceKey(type) {
|
|
|
58
52
|
type = (0, util_1.compressSuiType)(type);
|
|
59
53
|
return type === `${index_1.PKG_V1}::reserve::BalanceKey`;
|
|
60
54
|
}
|
|
55
|
+
exports.isBalanceKey = isBalanceKey;
|
|
61
56
|
class BalanceKey {
|
|
62
57
|
constructor(typeArgs, fields) {
|
|
63
58
|
this.__StructClass = true;
|
|
@@ -183,6 +178,7 @@ function isBalances(type) {
|
|
|
183
178
|
type = (0, util_1.compressSuiType)(type);
|
|
184
179
|
return type.startsWith(`${index_1.PKG_V1}::reserve::Balances` + "<");
|
|
185
180
|
}
|
|
181
|
+
exports.isBalances = isBalances;
|
|
186
182
|
class Balances {
|
|
187
183
|
constructor(typeArgs, fields) {
|
|
188
184
|
this.__StructClass = true;
|
|
@@ -345,6 +341,7 @@ function isCToken(type) {
|
|
|
345
341
|
type = (0, util_1.compressSuiType)(type);
|
|
346
342
|
return type.startsWith(`${index_1.PKG_V1}::reserve::CToken` + "<");
|
|
347
343
|
}
|
|
344
|
+
exports.isCToken = isCToken;
|
|
348
345
|
class CToken {
|
|
349
346
|
constructor(typeArgs, fields) {
|
|
350
347
|
this.__StructClass = true;
|
|
@@ -483,6 +480,7 @@ function isInterestUpdateEvent(type) {
|
|
|
483
480
|
type = (0, util_1.compressSuiType)(type);
|
|
484
481
|
return type === `${index_1.PKG_V1}::reserve::InterestUpdateEvent`;
|
|
485
482
|
}
|
|
483
|
+
exports.isInterestUpdateEvent = isInterestUpdateEvent;
|
|
486
484
|
class InterestUpdateEvent {
|
|
487
485
|
constructor(typeArgs, fields) {
|
|
488
486
|
this.__StructClass = true;
|
|
@@ -698,6 +696,7 @@ function isReserve(type) {
|
|
|
698
696
|
type = (0, util_1.compressSuiType)(type);
|
|
699
697
|
return type.startsWith(`${index_1.PKG_V1}::reserve::Reserve` + "<");
|
|
700
698
|
}
|
|
699
|
+
exports.isReserve = isReserve;
|
|
701
700
|
class Reserve {
|
|
702
701
|
constructor(typeArgs, fields) {
|
|
703
702
|
this.__StructClass = true;
|
|
@@ -942,6 +941,7 @@ function isReserveAssetDataEvent(type) {
|
|
|
942
941
|
type = (0, util_1.compressSuiType)(type);
|
|
943
942
|
return type === `${index_1.PKG_V1}::reserve::ReserveAssetDataEvent`;
|
|
944
943
|
}
|
|
944
|
+
exports.isReserveAssetDataEvent = isReserveAssetDataEvent;
|
|
945
945
|
class ReserveAssetDataEvent {
|
|
946
946
|
constructor(typeArgs, fields) {
|
|
947
947
|
this.__StructClass = true;
|