@suilend/sdk 3.0.7 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +4 -4
- package/_generated/_dependencies/source/0x1/ascii/structs.js +42 -41
- package/_generated/_dependencies/source/0x1/option/structs.js +22 -26
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +3 -3
- package/_generated/_dependencies/source/0x1/type-name/structs.js +21 -25
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +5 -5
- package/_generated/_dependencies/source/0x2/bag/structs.js +22 -25
- package/_generated/_dependencies/source/0x2/balance/structs.d.ts +4 -4
- package/_generated/_dependencies/source/0x2/balance/structs.js +42 -41
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +5 -5
- package/_generated/_dependencies/source/0x2/object/structs.js +42 -41
- package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +5 -5
- package/_generated/_dependencies/source/0x2/object-table/structs.js +22 -25
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +3 -3
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.js +22 -25
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +9 -9
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.js +24 -25
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +21 -21
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.js +23 -25
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +2 -2
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +21 -25
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +52 -52
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.js +45 -41
- package/_generated/_framework/vector.js +9 -6
- package/_generated/suilend/cell/structs.d.ts +1 -1
- package/_generated/suilend/cell/structs.js +21 -25
- package/_generated/suilend/decimal/structs.d.ts +2 -2
- package/_generated/suilend/decimal/structs.js +21 -25
- package/_generated/suilend/lending-market/structs.d.ts +129 -129
- package/_generated/suilend/lending-market/structs.js +391 -265
- package/_generated/suilend/liquidity-mining/structs.d.ts +44 -44
- package/_generated/suilend/liquidity-mining/structs.js +122 -89
- package/_generated/suilend/obligation/structs.d.ts +98 -98
- package/_generated/suilend/obligation/structs.js +194 -121
- package/_generated/suilend/rate-limiter/structs.d.ts +12 -12
- package/_generated/suilend/rate-limiter/structs.js +46 -41
- package/_generated/suilend/reserve/structs.d.ts +128 -128
- package/_generated/suilend/reserve/structs.js +243 -153
- package/_generated/suilend/reserve-config/structs.d.ts +30 -30
- package/_generated/suilend/reserve-config/structs.js +60 -41
- package/api/events.js +5 -14
- package/client.js +267 -319
- package/lib/initialize.d.ts +2 -2
- package/lib/initialize.js +26 -31
- package/lib/liquidityMining.js +15 -19
- package/lib/pyth.js +6 -15
- package/lib/pythAdapter.js +96 -112
- package/lib/strategyOwnerCap.js +8 -17
- package/margin/margin/admin_cap.d.ts +2 -2
- package/margin/margin/deps/std/type_name.d.ts +1 -1
- package/margin/margin/deps/suilend/lending_market.d.ts +2 -2
- package/margin/margin/market.d.ts +11 -11
- package/margin/margin/market.js +22 -22
- package/margin/margin/permissions.js +14 -14
- package/margin/margin/position.d.ts +47 -47
- package/margin/margin/position.js +10 -10
- package/margin/margin/router.d.ts +5 -5
- package/margin/margin/router.js +16 -16
- package/margin/margin/version.d.ts +1 -1
- package/margin/utils/index.js +22 -36
- package/package.json +1 -1
- package/parsers/apiReserveAssetDataEvent.js +4 -1
- package/parsers/lendingMarket.js +3 -4
- package/parsers/reserve.js +4 -1
- package/strategies.js +188 -204
- package/swap/quote.d.ts +1 -1
- package/swap/quote.js +28 -39
- package/swap/transaction.js +17 -26
- package/utils/events.js +20 -32
- package/utils/obligation.js +111 -135
- package/utils/simulate.js +16 -24
|
@@ -39,18 +39,18 @@ export declare class MintEvent implements StructClass {
|
|
|
39
39
|
static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
|
|
40
40
|
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
41
41
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::MintEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent">;
|
|
42
|
-
static get bcs(): import("@mysten/
|
|
43
|
-
lending_market_id: import("@mysten/
|
|
44
|
-
coin_type: import("@mysten/
|
|
45
|
-
name: import("@mysten/
|
|
46
|
-
bytes: import("@mysten/
|
|
42
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
43
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
44
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
45
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
46
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
47
47
|
length: number;
|
|
48
48
|
}, string>;
|
|
49
49
|
}, string>;
|
|
50
50
|
}, string>;
|
|
51
|
-
reserve_id: import("@mysten/
|
|
52
|
-
liquidity_amount: import("@mysten/
|
|
53
|
-
ctoken_amount: import("@mysten/
|
|
51
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
52
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
53
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
54
54
|
}, string>;
|
|
55
55
|
static fromFields(fields: Record<string, any>): MintEvent;
|
|
56
56
|
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
@@ -107,18 +107,18 @@ export declare class RedeemEvent implements StructClass {
|
|
|
107
107
|
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
108
108
|
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
109
109
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RedeemEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
|
|
110
|
-
static get bcs(): import("@mysten/
|
|
111
|
-
lending_market_id: import("@mysten/
|
|
112
|
-
coin_type: import("@mysten/
|
|
113
|
-
name: import("@mysten/
|
|
114
|
-
bytes: import("@mysten/
|
|
110
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
111
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
112
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
113
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
114
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
115
115
|
length: number;
|
|
116
116
|
}, string>;
|
|
117
117
|
}, string>;
|
|
118
118
|
}, string>;
|
|
119
|
-
reserve_id: import("@mysten/
|
|
120
|
-
ctoken_amount: import("@mysten/
|
|
121
|
-
liquidity_amount: import("@mysten/
|
|
119
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
120
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
121
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
122
122
|
}, string>;
|
|
123
123
|
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
124
124
|
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
@@ -177,19 +177,19 @@ export declare class BorrowEvent implements StructClass {
|
|
|
177
177
|
static get r(): reified.StructClassReified<BorrowEvent, BorrowEventFields>;
|
|
178
178
|
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
179
179
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::BorrowEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
|
|
180
|
-
static get bcs(): import("@mysten/
|
|
181
|
-
lending_market_id: import("@mysten/
|
|
182
|
-
coin_type: import("@mysten/
|
|
183
|
-
name: import("@mysten/
|
|
184
|
-
bytes: import("@mysten/
|
|
180
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
181
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
182
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
183
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
184
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
185
185
|
length: number;
|
|
186
186
|
}, string>;
|
|
187
187
|
}, string>;
|
|
188
188
|
}, string>;
|
|
189
|
-
reserve_id: import("@mysten/
|
|
190
|
-
obligation_id: import("@mysten/
|
|
191
|
-
liquidity_amount: import("@mysten/
|
|
192
|
-
origination_fee_amount: import("@mysten/
|
|
189
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
190
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
191
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
192
|
+
origination_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
193
193
|
}, string>;
|
|
194
194
|
static fromFields(fields: Record<string, any>): BorrowEvent;
|
|
195
195
|
static fromFieldsWithTypes(item: FieldsWithTypes): BorrowEvent;
|
|
@@ -252,20 +252,20 @@ export declare class ClaimRewardEvent implements StructClass {
|
|
|
252
252
|
static get r(): reified.StructClassReified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
253
253
|
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
254
254
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ClaimRewardEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
|
|
255
|
-
static get bcs(): import("@mysten/
|
|
256
|
-
lending_market_id: import("@mysten/
|
|
257
|
-
reserve_id: import("@mysten/
|
|
258
|
-
obligation_id: import("@mysten/
|
|
259
|
-
is_deposit_reward: import("@mysten/
|
|
260
|
-
pool_reward_id: import("@mysten/
|
|
261
|
-
coin_type: import("@mysten/
|
|
262
|
-
name: import("@mysten/
|
|
263
|
-
bytes: import("@mysten/
|
|
255
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
256
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
257
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
258
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
259
|
+
is_deposit_reward: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
260
|
+
pool_reward_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
261
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
262
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
263
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
264
264
|
length: number;
|
|
265
265
|
}, string>;
|
|
266
266
|
}, string>;
|
|
267
267
|
}, string>;
|
|
268
|
-
liquidity_amount: import("@mysten/
|
|
268
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
269
269
|
}, string>;
|
|
270
270
|
static fromFields(fields: Record<string, any>): ClaimRewardEvent;
|
|
271
271
|
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimRewardEvent;
|
|
@@ -326,18 +326,18 @@ export declare class DepositEvent implements StructClass {
|
|
|
326
326
|
static get r(): reified.StructClassReified<DepositEvent, DepositEventFields>;
|
|
327
327
|
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
328
328
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::DepositEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
|
|
329
|
-
static get bcs(): import("@mysten/
|
|
330
|
-
lending_market_id: import("@mysten/
|
|
331
|
-
coin_type: import("@mysten/
|
|
332
|
-
name: import("@mysten/
|
|
333
|
-
bytes: import("@mysten/
|
|
329
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
330
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
331
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
332
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
333
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
334
334
|
length: number;
|
|
335
335
|
}, string>;
|
|
336
336
|
}, string>;
|
|
337
337
|
}, string>;
|
|
338
|
-
reserve_id: import("@mysten/
|
|
339
|
-
obligation_id: import("@mysten/
|
|
340
|
-
ctoken_amount: import("@mysten/
|
|
338
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
339
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
340
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
341
341
|
}, string>;
|
|
342
342
|
static fromFields(fields: Record<string, any>): DepositEvent;
|
|
343
343
|
static fromFieldsWithTypes(item: FieldsWithTypes): DepositEvent;
|
|
@@ -390,14 +390,14 @@ export declare class FeeReceivers implements StructClass {
|
|
|
390
390
|
static get r(): reified.StructClassReified<FeeReceivers, FeeReceiversFields>;
|
|
391
391
|
static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
392
392
|
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceivers" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceivers">;
|
|
393
|
-
static get bcs(): import("@mysten/
|
|
394
|
-
receivers: import("@mysten/
|
|
393
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
394
|
+
receivers: import("@mysten/bcs").BcsType<string[], Iterable<string> & {
|
|
395
395
|
length: number;
|
|
396
396
|
}, string>;
|
|
397
|
-
weights: import("@mysten/
|
|
397
|
+
weights: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
398
398
|
length: number;
|
|
399
399
|
}, string>;
|
|
400
|
-
total_weight: import("@mysten/
|
|
400
|
+
total_weight: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
401
401
|
}, string>;
|
|
402
402
|
static fromFields(fields: Record<string, any>): FeeReceivers;
|
|
403
403
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceivers;
|
|
@@ -438,8 +438,8 @@ export declare class FeeReceiversKey implements StructClass {
|
|
|
438
438
|
static get r(): reified.StructClassReified<FeeReceiversKey, FeeReceiversKeyFields>;
|
|
439
439
|
static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
440
440
|
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceiversKey" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceiversKey">;
|
|
441
|
-
static get bcs(): import("@mysten/
|
|
442
|
-
dummy_field: import("@mysten/
|
|
441
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
442
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
443
443
|
}, string>;
|
|
444
444
|
static fromFields(fields: Record<string, any>): FeeReceiversKey;
|
|
445
445
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceiversKey;
|
|
@@ -484,18 +484,18 @@ export declare class ForgiveEvent implements StructClass {
|
|
|
484
484
|
static get r(): reified.StructClassReified<ForgiveEvent, ForgiveEventFields>;
|
|
485
485
|
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
486
486
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ForgiveEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
|
|
487
|
-
static get bcs(): import("@mysten/
|
|
488
|
-
lending_market_id: import("@mysten/
|
|
489
|
-
coin_type: import("@mysten/
|
|
490
|
-
name: import("@mysten/
|
|
491
|
-
bytes: import("@mysten/
|
|
487
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
488
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
489
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
490
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
491
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
492
492
|
length: number;
|
|
493
493
|
}, string>;
|
|
494
494
|
}, string>;
|
|
495
495
|
}, string>;
|
|
496
|
-
reserve_id: import("@mysten/
|
|
497
|
-
obligation_id: import("@mysten/
|
|
498
|
-
liquidity_amount: import("@mysten/
|
|
496
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
497
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
498
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
499
499
|
}, string>;
|
|
500
500
|
static fromFields(fields: Record<string, any>): ForgiveEvent;
|
|
501
501
|
static fromFieldsWithTypes(item: FieldsWithTypes): ForgiveEvent;
|
|
@@ -544,8 +544,8 @@ export declare class LENDING_MARKET implements StructClass {
|
|
|
544
544
|
static get r(): reified.StructClassReified<LENDING_MARKET, LENDING_MARKETFields>;
|
|
545
545
|
static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
546
546
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LENDING_MARKET" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LENDING_MARKET">;
|
|
547
|
-
static get bcs(): import("@mysten/
|
|
548
|
-
dummy_field: import("@mysten/
|
|
547
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
548
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
549
549
|
}, string>;
|
|
550
550
|
static fromFields(fields: Record<string, any>): LENDING_MARKET;
|
|
551
551
|
static fromFieldsWithTypes(item: FieldsWithTypes): LENDING_MARKET;
|
|
@@ -596,14 +596,14 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
596
596
|
static get r(): typeof LendingMarket.reified;
|
|
597
597
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarket<ToPhantomTypeArgument<P>>>>;
|
|
598
598
|
static get p(): typeof LendingMarket.phantom;
|
|
599
|
-
static get bcs(): import("@mysten/
|
|
600
|
-
id: import("@mysten/
|
|
601
|
-
id: import("@mysten/
|
|
602
|
-
bytes: import("@mysten/
|
|
599
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
600
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
601
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
602
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
603
603
|
}, string>;
|
|
604
604
|
}, string>;
|
|
605
|
-
version: import("@mysten/
|
|
606
|
-
reserves: import("@mysten/
|
|
605
|
+
version: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
606
|
+
reserves: import("@mysten/bcs").BcsType<{
|
|
607
607
|
id: {
|
|
608
608
|
id: {
|
|
609
609
|
bytes: string;
|
|
@@ -742,33 +742,33 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
742
742
|
}> & {
|
|
743
743
|
length: number;
|
|
744
744
|
}, string>;
|
|
745
|
-
obligations: import("@mysten/
|
|
746
|
-
id: import("@mysten/
|
|
747
|
-
id: import("@mysten/
|
|
748
|
-
bytes: import("@mysten/
|
|
745
|
+
obligations: import("@mysten/bcs").BcsStruct<{
|
|
746
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
747
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
748
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
749
749
|
}, string>;
|
|
750
750
|
}, string>;
|
|
751
|
-
size: import("@mysten/
|
|
751
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
752
752
|
}, string>;
|
|
753
|
-
rate_limiter: import("@mysten/
|
|
754
|
-
config: import("@mysten/
|
|
755
|
-
window_duration: import("@mysten/
|
|
756
|
-
max_outflow: import("@mysten/
|
|
753
|
+
rate_limiter: import("@mysten/bcs").BcsStruct<{
|
|
754
|
+
config: import("@mysten/bcs").BcsStruct<{
|
|
755
|
+
window_duration: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
756
|
+
max_outflow: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
757
757
|
}, string>;
|
|
758
|
-
prev_qty: import("@mysten/
|
|
759
|
-
value: import("@mysten/
|
|
758
|
+
prev_qty: import("@mysten/bcs").BcsStruct<{
|
|
759
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
760
760
|
}, string>;
|
|
761
|
-
window_start: import("@mysten/
|
|
762
|
-
cur_qty: import("@mysten/
|
|
763
|
-
value: import("@mysten/
|
|
761
|
+
window_start: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
762
|
+
cur_qty: import("@mysten/bcs").BcsStruct<{
|
|
763
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
764
764
|
}, string>;
|
|
765
765
|
}, string>;
|
|
766
|
-
fee_receiver: import("@mysten/
|
|
767
|
-
bad_debt_usd: import("@mysten/
|
|
768
|
-
value: import("@mysten/
|
|
766
|
+
fee_receiver: import("@mysten/bcs").BcsType<string, string, string>;
|
|
767
|
+
bad_debt_usd: import("@mysten/bcs").BcsStruct<{
|
|
768
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
769
769
|
}, string>;
|
|
770
|
-
bad_debt_limit_usd: import("@mysten/
|
|
771
|
-
value: import("@mysten/
|
|
770
|
+
bad_debt_limit_usd: import("@mysten/bcs").BcsStruct<{
|
|
771
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
772
772
|
}, string>;
|
|
773
773
|
}, string>;
|
|
774
774
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
@@ -1082,14 +1082,14 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
|
|
|
1082
1082
|
static get r(): typeof LendingMarketOwnerCap.reified;
|
|
1083
1083
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1084
1084
|
static get p(): typeof LendingMarketOwnerCap.phantom;
|
|
1085
|
-
static get bcs(): import("@mysten/
|
|
1086
|
-
id: import("@mysten/
|
|
1087
|
-
id: import("@mysten/
|
|
1088
|
-
bytes: import("@mysten/
|
|
1085
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1086
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1087
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1088
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1089
1089
|
}, string>;
|
|
1090
1090
|
}, string>;
|
|
1091
|
-
lending_market_id: import("@mysten/
|
|
1092
|
-
bytes: import("@mysten/
|
|
1091
|
+
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
1092
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1093
1093
|
}, string>;
|
|
1094
1094
|
}, string>;
|
|
1095
1095
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -1147,29 +1147,29 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
1147
1147
|
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
1148
1148
|
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
1149
1149
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LiquidateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
|
|
1150
|
-
static get bcs(): import("@mysten/
|
|
1151
|
-
lending_market_id: import("@mysten/
|
|
1152
|
-
repay_reserve_id: import("@mysten/
|
|
1153
|
-
withdraw_reserve_id: import("@mysten/
|
|
1154
|
-
obligation_id: import("@mysten/
|
|
1155
|
-
repay_coin_type: import("@mysten/
|
|
1156
|
-
name: import("@mysten/
|
|
1157
|
-
bytes: import("@mysten/
|
|
1150
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1151
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1152
|
+
repay_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1153
|
+
withdraw_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1154
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1155
|
+
repay_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1156
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1157
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1158
1158
|
length: number;
|
|
1159
1159
|
}, string>;
|
|
1160
1160
|
}, string>;
|
|
1161
1161
|
}, string>;
|
|
1162
|
-
withdraw_coin_type: import("@mysten/
|
|
1163
|
-
name: import("@mysten/
|
|
1164
|
-
bytes: import("@mysten/
|
|
1162
|
+
withdraw_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1163
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1164
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1165
1165
|
length: number;
|
|
1166
1166
|
}, string>;
|
|
1167
1167
|
}, string>;
|
|
1168
1168
|
}, string>;
|
|
1169
|
-
repay_amount: import("@mysten/
|
|
1170
|
-
withdraw_amount: import("@mysten/
|
|
1171
|
-
protocol_fee_amount: import("@mysten/
|
|
1172
|
-
liquidator_bonus_amount: import("@mysten/
|
|
1169
|
+
repay_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1170
|
+
withdraw_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1171
|
+
protocol_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1172
|
+
liquidator_bonus_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1173
1173
|
}, string>;
|
|
1174
1174
|
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
1175
1175
|
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
|
|
@@ -1234,14 +1234,14 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
|
|
|
1234
1234
|
static get r(): typeof ObligationOwnerCap.reified;
|
|
1235
1235
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<ObligationOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1236
1236
|
static get p(): typeof ObligationOwnerCap.phantom;
|
|
1237
|
-
static get bcs(): import("@mysten/
|
|
1238
|
-
id: import("@mysten/
|
|
1239
|
-
id: import("@mysten/
|
|
1240
|
-
bytes: import("@mysten/
|
|
1237
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1238
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1239
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1240
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1241
1241
|
}, string>;
|
|
1242
1242
|
}, string>;
|
|
1243
|
-
obligation_id: import("@mysten/
|
|
1244
|
-
bytes: import("@mysten/
|
|
1243
|
+
obligation_id: import("@mysten/bcs").BcsStruct<{
|
|
1244
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1245
1245
|
}, string>;
|
|
1246
1246
|
}, string>;
|
|
1247
1247
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -1281,8 +1281,8 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
1281
1281
|
static get r(): typeof RateLimiterExemption.reified;
|
|
1282
1282
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
1283
1283
|
static get p(): typeof RateLimiterExemption.phantom;
|
|
1284
|
-
static get bcs(): import("@mysten/
|
|
1285
|
-
amount: import("@mysten/
|
|
1284
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1285
|
+
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1286
1286
|
}, string>;
|
|
1287
1287
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1288
1288
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -1327,18 +1327,18 @@ export declare class RepayEvent implements StructClass {
|
|
|
1327
1327
|
static get r(): reified.StructClassReified<RepayEvent, RepayEventFields>;
|
|
1328
1328
|
static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
1329
1329
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RepayEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent">;
|
|
1330
|
-
static get bcs(): import("@mysten/
|
|
1331
|
-
lending_market_id: import("@mysten/
|
|
1332
|
-
coin_type: import("@mysten/
|
|
1333
|
-
name: import("@mysten/
|
|
1334
|
-
bytes: import("@mysten/
|
|
1330
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1331
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1332
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1333
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1334
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1335
1335
|
length: number;
|
|
1336
1336
|
}, string>;
|
|
1337
1337
|
}, string>;
|
|
1338
1338
|
}, string>;
|
|
1339
|
-
reserve_id: import("@mysten/
|
|
1340
|
-
obligation_id: import("@mysten/
|
|
1341
|
-
liquidity_amount: import("@mysten/
|
|
1339
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1340
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1341
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1342
1342
|
}, string>;
|
|
1343
1343
|
static fromFields(fields: Record<string, any>): RepayEvent;
|
|
1344
1344
|
static fromFieldsWithTypes(item: FieldsWithTypes): RepayEvent;
|
|
@@ -1395,18 +1395,18 @@ export declare class WithdrawEvent implements StructClass {
|
|
|
1395
1395
|
static get r(): reified.StructClassReified<WithdrawEvent, WithdrawEventFields>;
|
|
1396
1396
|
static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
1397
1397
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::WithdrawEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent">;
|
|
1398
|
-
static get bcs(): import("@mysten/
|
|
1399
|
-
lending_market_id: import("@mysten/
|
|
1400
|
-
coin_type: import("@mysten/
|
|
1401
|
-
name: import("@mysten/
|
|
1402
|
-
bytes: import("@mysten/
|
|
1398
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1399
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1400
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1401
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1402
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1403
1403
|
length: number;
|
|
1404
1404
|
}, string>;
|
|
1405
1405
|
}, string>;
|
|
1406
1406
|
}, string>;
|
|
1407
|
-
reserve_id: import("@mysten/
|
|
1408
|
-
obligation_id: import("@mysten/
|
|
1409
|
-
ctoken_amount: import("@mysten/
|
|
1407
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1408
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1409
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1410
1410
|
}, string>;
|
|
1411
1411
|
static fromFields(fields: Record<string, any>): WithdrawEvent;
|
|
1412
1412
|
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawEvent;
|