@suilend/sdk 1.1.19 → 1.1.21
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 +3 -3
- package/_generated/_dependencies/source/0x1/ascii/structs.js +7 -7
- package/_generated/_dependencies/source/0x1/index.d.ts +1 -1
- package/_generated/_dependencies/source/0x1/index.js +2 -2
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -3
- package/_generated/_dependencies/source/0x1/option/structs.js +4 -4
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +2 -2
- package/_generated/_dependencies/source/0x1/type-name/structs.js +4 -4
- 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 +11 -5
- package/_generated/_framework/util.js +13 -12
- package/_generated/_framework/vector.d.ts +1 -1
- package/_generated/_framework/vector.js +2 -2
- package/_generated/suilend/cell/structs.d.ts +3 -3
- package/_generated/suilend/cell/structs.js +2 -2
- package/_generated/suilend/decimal/structs.d.ts +3 -3
- package/_generated/suilend/decimal/structs.js +2 -2
- package/_generated/suilend/index.d.ts +3 -3
- package/_generated/suilend/index.js +11 -5
- package/_generated/suilend/lending-market/functions.d.ts +50 -6
- package/_generated/suilend/lending-market/functions.js +136 -41
- package/_generated/suilend/lending-market/structs.d.ts +192 -192
- package/_generated/suilend/lending-market/structs.js +392 -392
- package/_generated/suilend/lending-market-registry/functions.js +3 -2
- package/_generated/suilend/liquidity-mining/structs.d.ts +14 -14
- package/_generated/suilend/liquidity-mining/structs.js +6 -6
- package/_generated/suilend/obligation/structs.d.ts +17 -17
- package/_generated/suilend/obligation/structs.js +7 -7
- package/_generated/suilend/rate-limiter/functions.js +7 -6
- package/_generated/suilend/rate-limiter/structs.d.ts +6 -6
- package/_generated/suilend/rate-limiter/structs.js +3 -3
- package/_generated/suilend/reserve/structs.d.ts +179 -15
- package/_generated/suilend/reserve/structs.js +434 -7
- package/_generated/suilend/reserve-config/functions.d.ts +7 -7
- package/_generated/suilend/reserve-config/functions.js +54 -53
- package/_generated/suilend/reserve-config/structs.d.ts +6 -6
- package/_generated/suilend/reserve-config/structs.js +3 -3
- package/client.d.ts +3 -2
- package/client.js +52 -31
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +3 -3
- package/parsers/obligation.d.ts +4 -4
- package/parsers/reserve.d.ts +2 -2
- package/utils/events.js +3 -3
- package/utils/obligation.js +6 -5
|
@@ -11,6 +11,166 @@ import { Obligation } from "../obligation/structs";
|
|
|
11
11
|
import { RateLimiter } from "../rate-limiter/structs";
|
|
12
12
|
import { Reserve } from "../reserve/structs";
|
|
13
13
|
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
14
|
+
export declare function isMintEvent(type: string): boolean;
|
|
15
|
+
export interface MintEventFields {
|
|
16
|
+
lendingMarketId: ToField<"address">;
|
|
17
|
+
coinType: ToField<TypeName>;
|
|
18
|
+
reserveId: ToField<"address">;
|
|
19
|
+
liquidityAmount: ToField<"u64">;
|
|
20
|
+
ctokenAmount: ToField<"u64">;
|
|
21
|
+
}
|
|
22
|
+
export type MintEventReified = Reified<MintEvent, MintEventFields>;
|
|
23
|
+
export declare class MintEvent implements StructClass {
|
|
24
|
+
__StructClass: true;
|
|
25
|
+
static readonly $typeName: string;
|
|
26
|
+
static readonly $numTypeParams = 0;
|
|
27
|
+
static readonly $isPhantom: readonly [];
|
|
28
|
+
readonly $typeName: string;
|
|
29
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::MintEvent`;
|
|
30
|
+
readonly $typeArgs: [];
|
|
31
|
+
readonly $isPhantom: readonly [];
|
|
32
|
+
readonly lendingMarketId: ToField<"address">;
|
|
33
|
+
readonly coinType: ToField<TypeName>;
|
|
34
|
+
readonly reserveId: ToField<"address">;
|
|
35
|
+
readonly liquidityAmount: ToField<"u64">;
|
|
36
|
+
readonly ctokenAmount: ToField<"u64">;
|
|
37
|
+
private constructor();
|
|
38
|
+
static reified(): MintEventReified;
|
|
39
|
+
static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
|
|
40
|
+
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
41
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::MintEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent">;
|
|
42
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
43
|
+
lending_market_id: string;
|
|
44
|
+
coin_type: {
|
|
45
|
+
name: {
|
|
46
|
+
bytes: number[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
reserve_id: string;
|
|
50
|
+
liquidity_amount: string;
|
|
51
|
+
ctoken_amount: string;
|
|
52
|
+
}, {
|
|
53
|
+
lending_market_id: string;
|
|
54
|
+
coin_type: {
|
|
55
|
+
name: {
|
|
56
|
+
bytes: Iterable<number> & {
|
|
57
|
+
length: number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
reserve_id: string;
|
|
62
|
+
liquidity_amount: string | number | bigint;
|
|
63
|
+
ctoken_amount: string | number | bigint;
|
|
64
|
+
}>;
|
|
65
|
+
static fromFields(fields: Record<string, any>): MintEvent;
|
|
66
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
67
|
+
static fromBcs(data: Uint8Array): MintEvent;
|
|
68
|
+
toJSONField(): {
|
|
69
|
+
lendingMarketId: string;
|
|
70
|
+
coinType: {
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
reserveId: string;
|
|
74
|
+
liquidityAmount: string;
|
|
75
|
+
ctokenAmount: string;
|
|
76
|
+
};
|
|
77
|
+
toJSON(): {
|
|
78
|
+
lendingMarketId: string;
|
|
79
|
+
coinType: {
|
|
80
|
+
name: string;
|
|
81
|
+
};
|
|
82
|
+
reserveId: string;
|
|
83
|
+
liquidityAmount: string;
|
|
84
|
+
ctokenAmount: string;
|
|
85
|
+
$typeName: string;
|
|
86
|
+
$typeArgs: [];
|
|
87
|
+
};
|
|
88
|
+
static fromJSONField(field: any): MintEvent;
|
|
89
|
+
static fromJSON(json: Record<string, any>): MintEvent;
|
|
90
|
+
static fromSuiParsedData(content: SuiParsedData): MintEvent;
|
|
91
|
+
static fromSuiObjectData(data: SuiObjectData): MintEvent;
|
|
92
|
+
static fetch(client: SuiClient, id: string): Promise<MintEvent>;
|
|
93
|
+
}
|
|
94
|
+
export declare function isRedeemEvent(type: string): boolean;
|
|
95
|
+
export interface RedeemEventFields {
|
|
96
|
+
lendingMarketId: ToField<"address">;
|
|
97
|
+
coinType: ToField<TypeName>;
|
|
98
|
+
reserveId: ToField<"address">;
|
|
99
|
+
ctokenAmount: ToField<"u64">;
|
|
100
|
+
liquidityAmount: ToField<"u64">;
|
|
101
|
+
}
|
|
102
|
+
export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
|
|
103
|
+
export declare class RedeemEvent implements StructClass {
|
|
104
|
+
__StructClass: true;
|
|
105
|
+
static readonly $typeName: string;
|
|
106
|
+
static readonly $numTypeParams = 0;
|
|
107
|
+
static readonly $isPhantom: readonly [];
|
|
108
|
+
readonly $typeName: string;
|
|
109
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::RedeemEvent`;
|
|
110
|
+
readonly $typeArgs: [];
|
|
111
|
+
readonly $isPhantom: readonly [];
|
|
112
|
+
readonly lendingMarketId: ToField<"address">;
|
|
113
|
+
readonly coinType: ToField<TypeName>;
|
|
114
|
+
readonly reserveId: ToField<"address">;
|
|
115
|
+
readonly ctokenAmount: ToField<"u64">;
|
|
116
|
+
readonly liquidityAmount: ToField<"u64">;
|
|
117
|
+
private constructor();
|
|
118
|
+
static reified(): RedeemEventReified;
|
|
119
|
+
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
120
|
+
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
121
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RedeemEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
|
|
122
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
123
|
+
lending_market_id: string;
|
|
124
|
+
coin_type: {
|
|
125
|
+
name: {
|
|
126
|
+
bytes: number[];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
reserve_id: string;
|
|
130
|
+
ctoken_amount: string;
|
|
131
|
+
liquidity_amount: string;
|
|
132
|
+
}, {
|
|
133
|
+
lending_market_id: string;
|
|
134
|
+
coin_type: {
|
|
135
|
+
name: {
|
|
136
|
+
bytes: Iterable<number> & {
|
|
137
|
+
length: number;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
reserve_id: string;
|
|
142
|
+
ctoken_amount: string | number | bigint;
|
|
143
|
+
liquidity_amount: string | number | bigint;
|
|
144
|
+
}>;
|
|
145
|
+
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
146
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
147
|
+
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
148
|
+
toJSONField(): {
|
|
149
|
+
lendingMarketId: string;
|
|
150
|
+
coinType: {
|
|
151
|
+
name: string;
|
|
152
|
+
};
|
|
153
|
+
reserveId: string;
|
|
154
|
+
ctokenAmount: string;
|
|
155
|
+
liquidityAmount: string;
|
|
156
|
+
};
|
|
157
|
+
toJSON(): {
|
|
158
|
+
lendingMarketId: string;
|
|
159
|
+
coinType: {
|
|
160
|
+
name: string;
|
|
161
|
+
};
|
|
162
|
+
reserveId: string;
|
|
163
|
+
ctokenAmount: string;
|
|
164
|
+
liquidityAmount: string;
|
|
165
|
+
$typeName: string;
|
|
166
|
+
$typeArgs: [];
|
|
167
|
+
};
|
|
168
|
+
static fromJSONField(field: any): RedeemEvent;
|
|
169
|
+
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
170
|
+
static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
|
|
171
|
+
static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
|
|
172
|
+
static fetch(client: SuiClient, id: string): Promise<RedeemEvent>;
|
|
173
|
+
}
|
|
14
174
|
export declare function isBorrowEvent(type: string): boolean;
|
|
15
175
|
export interface BorrowEventFields {
|
|
16
176
|
lendingMarketId: ToField<"address">;
|
|
@@ -23,10 +183,10 @@ export interface BorrowEventFields {
|
|
|
23
183
|
export type BorrowEventReified = Reified<BorrowEvent, BorrowEventFields>;
|
|
24
184
|
export declare class BorrowEvent implements StructClass {
|
|
25
185
|
__StructClass: true;
|
|
26
|
-
static readonly $typeName
|
|
186
|
+
static readonly $typeName: string;
|
|
27
187
|
static readonly $numTypeParams = 0;
|
|
28
188
|
static readonly $isPhantom: readonly [];
|
|
29
|
-
readonly $typeName
|
|
189
|
+
readonly $typeName: string;
|
|
30
190
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::BorrowEvent`;
|
|
31
191
|
readonly $typeArgs: [];
|
|
32
192
|
readonly $isPhantom: readonly [];
|
|
@@ -40,7 +200,7 @@ export declare class BorrowEvent implements StructClass {
|
|
|
40
200
|
static reified(): BorrowEventReified;
|
|
41
201
|
static get r(): reified.StructClassReified<BorrowEvent, BorrowEventFields>;
|
|
42
202
|
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
43
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
|
|
203
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::BorrowEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
|
|
44
204
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
45
205
|
lending_market_id: string;
|
|
46
206
|
coin_type: {
|
|
@@ -110,10 +270,10 @@ export interface ClaimRewardEventFields {
|
|
|
110
270
|
export type ClaimRewardEventReified = Reified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
111
271
|
export declare class ClaimRewardEvent implements StructClass {
|
|
112
272
|
__StructClass: true;
|
|
113
|
-
static readonly $typeName
|
|
273
|
+
static readonly $typeName: string;
|
|
114
274
|
static readonly $numTypeParams = 0;
|
|
115
275
|
static readonly $isPhantom: readonly [];
|
|
116
|
-
readonly $typeName
|
|
276
|
+
readonly $typeName: string;
|
|
117
277
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::ClaimRewardEvent`;
|
|
118
278
|
readonly $typeArgs: [];
|
|
119
279
|
readonly $isPhantom: readonly [];
|
|
@@ -128,7 +288,7 @@ export declare class ClaimRewardEvent implements StructClass {
|
|
|
128
288
|
static reified(): ClaimRewardEventReified;
|
|
129
289
|
static get r(): reified.StructClassReified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
130
290
|
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
131
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
|
|
291
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ClaimRewardEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
|
|
132
292
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
133
293
|
lending_market_id: string;
|
|
134
294
|
reserve_id: string;
|
|
@@ -200,10 +360,10 @@ export interface DepositEventFields {
|
|
|
200
360
|
export type DepositEventReified = Reified<DepositEvent, DepositEventFields>;
|
|
201
361
|
export declare class DepositEvent implements StructClass {
|
|
202
362
|
__StructClass: true;
|
|
203
|
-
static readonly $typeName
|
|
363
|
+
static readonly $typeName: string;
|
|
204
364
|
static readonly $numTypeParams = 0;
|
|
205
365
|
static readonly $isPhantom: readonly [];
|
|
206
|
-
readonly $typeName
|
|
366
|
+
readonly $typeName: string;
|
|
207
367
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::DepositEvent`;
|
|
208
368
|
readonly $typeArgs: [];
|
|
209
369
|
readonly $isPhantom: readonly [];
|
|
@@ -216,7 +376,7 @@ export declare class DepositEvent implements StructClass {
|
|
|
216
376
|
static reified(): DepositEventReified;
|
|
217
377
|
static get r(): reified.StructClassReified<DepositEvent, DepositEventFields>;
|
|
218
378
|
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
219
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
|
|
379
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::DepositEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
|
|
220
380
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
221
381
|
lending_market_id: string;
|
|
222
382
|
coin_type: {
|
|
@@ -280,10 +440,10 @@ export interface ForgiveEventFields {
|
|
|
280
440
|
export type ForgiveEventReified = Reified<ForgiveEvent, ForgiveEventFields>;
|
|
281
441
|
export declare class ForgiveEvent implements StructClass {
|
|
282
442
|
__StructClass: true;
|
|
283
|
-
static readonly $typeName
|
|
443
|
+
static readonly $typeName: string;
|
|
284
444
|
static readonly $numTypeParams = 0;
|
|
285
445
|
static readonly $isPhantom: readonly [];
|
|
286
|
-
readonly $typeName
|
|
446
|
+
readonly $typeName: string;
|
|
287
447
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::ForgiveEvent`;
|
|
288
448
|
readonly $typeArgs: [];
|
|
289
449
|
readonly $isPhantom: readonly [];
|
|
@@ -296,7 +456,7 @@ export declare class ForgiveEvent implements StructClass {
|
|
|
296
456
|
static reified(): ForgiveEventReified;
|
|
297
457
|
static get r(): reified.StructClassReified<ForgiveEvent, ForgiveEventFields>;
|
|
298
458
|
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
299
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
|
|
459
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ForgiveEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
|
|
300
460
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
301
461
|
lending_market_id: string;
|
|
302
462
|
coin_type: {
|
|
@@ -356,10 +516,10 @@ export interface LENDING_MARKETFields {
|
|
|
356
516
|
export type LENDING_MARKETReified = Reified<LENDING_MARKET, LENDING_MARKETFields>;
|
|
357
517
|
export declare class LENDING_MARKET implements StructClass {
|
|
358
518
|
__StructClass: true;
|
|
359
|
-
static readonly $typeName
|
|
519
|
+
static readonly $typeName: string;
|
|
360
520
|
static readonly $numTypeParams = 0;
|
|
361
521
|
static readonly $isPhantom: readonly [];
|
|
362
|
-
readonly $typeName
|
|
522
|
+
readonly $typeName: string;
|
|
363
523
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::LENDING_MARKET`;
|
|
364
524
|
readonly $typeArgs: [];
|
|
365
525
|
readonly $isPhantom: readonly [];
|
|
@@ -368,7 +528,7 @@ export declare class LENDING_MARKET implements StructClass {
|
|
|
368
528
|
static reified(): LENDING_MARKETReified;
|
|
369
529
|
static get r(): reified.StructClassReified<LENDING_MARKET, LENDING_MARKETFields>;
|
|
370
530
|
static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
371
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LENDING_MARKET">;
|
|
531
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LENDING_MARKET" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LENDING_MARKET">;
|
|
372
532
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
373
533
|
dummy_field: boolean;
|
|
374
534
|
}, {
|
|
@@ -405,10 +565,10 @@ export interface LendingMarketFields<P extends PhantomTypeArgument> {
|
|
|
405
565
|
export type LendingMarketReified<P extends PhantomTypeArgument> = Reified<LendingMarket<P>, LendingMarketFields<P>>;
|
|
406
566
|
export declare class LendingMarket<P extends PhantomTypeArgument> implements StructClass {
|
|
407
567
|
__StructClass: true;
|
|
408
|
-
static readonly $typeName
|
|
568
|
+
static readonly $typeName: string;
|
|
409
569
|
static readonly $numTypeParams = 1;
|
|
410
570
|
static readonly $isPhantom: readonly [true];
|
|
411
|
-
readonly $typeName
|
|
571
|
+
readonly $typeName: string;
|
|
412
572
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::LendingMarket<${PhantomToTypeStr<P>}>`;
|
|
413
573
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
414
574
|
readonly $isPhantom: readonly [true];
|
|
@@ -953,10 +1113,10 @@ export interface LendingMarketOwnerCapFields<P extends PhantomTypeArgument> {
|
|
|
953
1113
|
export type LendingMarketOwnerCapReified<P extends PhantomTypeArgument> = Reified<LendingMarketOwnerCap<P>, LendingMarketOwnerCapFields<P>>;
|
|
954
1114
|
export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implements StructClass {
|
|
955
1115
|
__StructClass: true;
|
|
956
|
-
static readonly $typeName
|
|
1116
|
+
static readonly $typeName: string;
|
|
957
1117
|
static readonly $numTypeParams = 1;
|
|
958
1118
|
static readonly $isPhantom: readonly [true];
|
|
959
|
-
readonly $typeName
|
|
1119
|
+
readonly $typeName: string;
|
|
960
1120
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::LendingMarketOwnerCap<${PhantomToTypeStr<P>}>`;
|
|
961
1121
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
962
1122
|
readonly $isPhantom: readonly [true];
|
|
@@ -1021,10 +1181,10 @@ export interface LiquidateEventFields {
|
|
|
1021
1181
|
export type LiquidateEventReified = Reified<LiquidateEvent, LiquidateEventFields>;
|
|
1022
1182
|
export declare class LiquidateEvent implements StructClass {
|
|
1023
1183
|
__StructClass: true;
|
|
1024
|
-
static readonly $typeName
|
|
1184
|
+
static readonly $typeName: string;
|
|
1025
1185
|
static readonly $numTypeParams = 0;
|
|
1026
1186
|
static readonly $isPhantom: readonly [];
|
|
1027
|
-
readonly $typeName
|
|
1187
|
+
readonly $typeName: string;
|
|
1028
1188
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::LiquidateEvent`;
|
|
1029
1189
|
readonly $typeArgs: [];
|
|
1030
1190
|
readonly $isPhantom: readonly [];
|
|
@@ -1042,7 +1202,7 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
1042
1202
|
static reified(): LiquidateEventReified;
|
|
1043
1203
|
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
1044
1204
|
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
1045
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
|
|
1205
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LiquidateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
|
|
1046
1206
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1047
1207
|
lending_market_id: string;
|
|
1048
1208
|
repay_reserve_id: string;
|
|
@@ -1129,86 +1289,6 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
1129
1289
|
static fromSuiObjectData(data: SuiObjectData): LiquidateEvent;
|
|
1130
1290
|
static fetch(client: SuiClient, id: string): Promise<LiquidateEvent>;
|
|
1131
1291
|
}
|
|
1132
|
-
export declare function isMintEvent(type: string): boolean;
|
|
1133
|
-
export interface MintEventFields {
|
|
1134
|
-
lendingMarketId: ToField<"address">;
|
|
1135
|
-
coinType: ToField<TypeName>;
|
|
1136
|
-
reserveId: ToField<"address">;
|
|
1137
|
-
liquidityAmount: ToField<"u64">;
|
|
1138
|
-
ctokenAmount: ToField<"u64">;
|
|
1139
|
-
}
|
|
1140
|
-
export type MintEventReified = Reified<MintEvent, MintEventFields>;
|
|
1141
|
-
export declare class MintEvent implements StructClass {
|
|
1142
|
-
__StructClass: true;
|
|
1143
|
-
static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent";
|
|
1144
|
-
static readonly $numTypeParams = 0;
|
|
1145
|
-
static readonly $isPhantom: readonly [];
|
|
1146
|
-
readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent";
|
|
1147
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::MintEvent`;
|
|
1148
|
-
readonly $typeArgs: [];
|
|
1149
|
-
readonly $isPhantom: readonly [];
|
|
1150
|
-
readonly lendingMarketId: ToField<"address">;
|
|
1151
|
-
readonly coinType: ToField<TypeName>;
|
|
1152
|
-
readonly reserveId: ToField<"address">;
|
|
1153
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
1154
|
-
readonly ctokenAmount: ToField<"u64">;
|
|
1155
|
-
private constructor();
|
|
1156
|
-
static reified(): MintEventReified;
|
|
1157
|
-
static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
|
|
1158
|
-
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
1159
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent">;
|
|
1160
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1161
|
-
lending_market_id: string;
|
|
1162
|
-
coin_type: {
|
|
1163
|
-
name: {
|
|
1164
|
-
bytes: number[];
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
reserve_id: string;
|
|
1168
|
-
liquidity_amount: string;
|
|
1169
|
-
ctoken_amount: string;
|
|
1170
|
-
}, {
|
|
1171
|
-
lending_market_id: string;
|
|
1172
|
-
coin_type: {
|
|
1173
|
-
name: {
|
|
1174
|
-
bytes: Iterable<number> & {
|
|
1175
|
-
length: number;
|
|
1176
|
-
};
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1179
|
-
reserve_id: string;
|
|
1180
|
-
liquidity_amount: string | number | bigint;
|
|
1181
|
-
ctoken_amount: string | number | bigint;
|
|
1182
|
-
}>;
|
|
1183
|
-
static fromFields(fields: Record<string, any>): MintEvent;
|
|
1184
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
1185
|
-
static fromBcs(data: Uint8Array): MintEvent;
|
|
1186
|
-
toJSONField(): {
|
|
1187
|
-
lendingMarketId: string;
|
|
1188
|
-
coinType: {
|
|
1189
|
-
name: string;
|
|
1190
|
-
};
|
|
1191
|
-
reserveId: string;
|
|
1192
|
-
liquidityAmount: string;
|
|
1193
|
-
ctokenAmount: string;
|
|
1194
|
-
};
|
|
1195
|
-
toJSON(): {
|
|
1196
|
-
lendingMarketId: string;
|
|
1197
|
-
coinType: {
|
|
1198
|
-
name: string;
|
|
1199
|
-
};
|
|
1200
|
-
reserveId: string;
|
|
1201
|
-
liquidityAmount: string;
|
|
1202
|
-
ctokenAmount: string;
|
|
1203
|
-
$typeName: string;
|
|
1204
|
-
$typeArgs: [];
|
|
1205
|
-
};
|
|
1206
|
-
static fromJSONField(field: any): MintEvent;
|
|
1207
|
-
static fromJSON(json: Record<string, any>): MintEvent;
|
|
1208
|
-
static fromSuiParsedData(content: SuiParsedData): MintEvent;
|
|
1209
|
-
static fromSuiObjectData(data: SuiObjectData): MintEvent;
|
|
1210
|
-
static fetch(client: SuiClient, id: string): Promise<MintEvent>;
|
|
1211
|
-
}
|
|
1212
1292
|
export declare function isObligationOwnerCap(type: string): boolean;
|
|
1213
1293
|
export interface ObligationOwnerCapFields<P extends PhantomTypeArgument> {
|
|
1214
1294
|
id: ToField<UID>;
|
|
@@ -1217,10 +1297,10 @@ export interface ObligationOwnerCapFields<P extends PhantomTypeArgument> {
|
|
|
1217
1297
|
export type ObligationOwnerCapReified<P extends PhantomTypeArgument> = Reified<ObligationOwnerCap<P>, ObligationOwnerCapFields<P>>;
|
|
1218
1298
|
export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implements StructClass {
|
|
1219
1299
|
__StructClass: true;
|
|
1220
|
-
static readonly $typeName
|
|
1300
|
+
static readonly $typeName: string;
|
|
1221
1301
|
static readonly $numTypeParams = 1;
|
|
1222
1302
|
static readonly $isPhantom: readonly [true];
|
|
1223
|
-
readonly $typeName
|
|
1303
|
+
readonly $typeName: string;
|
|
1224
1304
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::ObligationOwnerCap<${PhantomToTypeStr<P>}>`;
|
|
1225
1305
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
1226
1306
|
readonly $isPhantom: readonly [true];
|
|
@@ -1276,10 +1356,10 @@ export interface RateLimiterExemptionFields<P extends PhantomTypeArgument, T ext
|
|
|
1276
1356
|
export type RateLimiterExemptionReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<RateLimiterExemption<P, T>, RateLimiterExemptionFields<P, T>>;
|
|
1277
1357
|
export declare class RateLimiterExemption<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
|
|
1278
1358
|
__StructClass: true;
|
|
1279
|
-
static readonly $typeName
|
|
1359
|
+
static readonly $typeName: string;
|
|
1280
1360
|
static readonly $numTypeParams = 2;
|
|
1281
1361
|
static readonly $isPhantom: readonly [true, true];
|
|
1282
|
-
readonly $typeName
|
|
1362
|
+
readonly $typeName: string;
|
|
1283
1363
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::RateLimiterExemption<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
|
|
1284
1364
|
readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
|
|
1285
1365
|
readonly $isPhantom: readonly [true, true];
|
|
@@ -1311,86 +1391,6 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
1311
1391
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1312
1392
|
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArgs: [P, T], id: string): Promise<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
1313
1393
|
}
|
|
1314
|
-
export declare function isRedeemEvent(type: string): boolean;
|
|
1315
|
-
export interface RedeemEventFields {
|
|
1316
|
-
lendingMarketId: ToField<"address">;
|
|
1317
|
-
coinType: ToField<TypeName>;
|
|
1318
|
-
reserveId: ToField<"address">;
|
|
1319
|
-
ctokenAmount: ToField<"u64">;
|
|
1320
|
-
liquidityAmount: ToField<"u64">;
|
|
1321
|
-
}
|
|
1322
|
-
export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
|
|
1323
|
-
export declare class RedeemEvent implements StructClass {
|
|
1324
|
-
__StructClass: true;
|
|
1325
|
-
static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent";
|
|
1326
|
-
static readonly $numTypeParams = 0;
|
|
1327
|
-
static readonly $isPhantom: readonly [];
|
|
1328
|
-
readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent";
|
|
1329
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::RedeemEvent`;
|
|
1330
|
-
readonly $typeArgs: [];
|
|
1331
|
-
readonly $isPhantom: readonly [];
|
|
1332
|
-
readonly lendingMarketId: ToField<"address">;
|
|
1333
|
-
readonly coinType: ToField<TypeName>;
|
|
1334
|
-
readonly reserveId: ToField<"address">;
|
|
1335
|
-
readonly ctokenAmount: ToField<"u64">;
|
|
1336
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
1337
|
-
private constructor();
|
|
1338
|
-
static reified(): RedeemEventReified;
|
|
1339
|
-
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
1340
|
-
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
1341
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
|
|
1342
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1343
|
-
lending_market_id: string;
|
|
1344
|
-
coin_type: {
|
|
1345
|
-
name: {
|
|
1346
|
-
bytes: number[];
|
|
1347
|
-
};
|
|
1348
|
-
};
|
|
1349
|
-
reserve_id: string;
|
|
1350
|
-
ctoken_amount: string;
|
|
1351
|
-
liquidity_amount: string;
|
|
1352
|
-
}, {
|
|
1353
|
-
lending_market_id: string;
|
|
1354
|
-
coin_type: {
|
|
1355
|
-
name: {
|
|
1356
|
-
bytes: Iterable<number> & {
|
|
1357
|
-
length: number;
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
|
-
};
|
|
1361
|
-
reserve_id: string;
|
|
1362
|
-
ctoken_amount: string | number | bigint;
|
|
1363
|
-
liquidity_amount: string | number | bigint;
|
|
1364
|
-
}>;
|
|
1365
|
-
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
1366
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
1367
|
-
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
1368
|
-
toJSONField(): {
|
|
1369
|
-
lendingMarketId: string;
|
|
1370
|
-
coinType: {
|
|
1371
|
-
name: string;
|
|
1372
|
-
};
|
|
1373
|
-
reserveId: string;
|
|
1374
|
-
ctokenAmount: string;
|
|
1375
|
-
liquidityAmount: string;
|
|
1376
|
-
};
|
|
1377
|
-
toJSON(): {
|
|
1378
|
-
lendingMarketId: string;
|
|
1379
|
-
coinType: {
|
|
1380
|
-
name: string;
|
|
1381
|
-
};
|
|
1382
|
-
reserveId: string;
|
|
1383
|
-
ctokenAmount: string;
|
|
1384
|
-
liquidityAmount: string;
|
|
1385
|
-
$typeName: string;
|
|
1386
|
-
$typeArgs: [];
|
|
1387
|
-
};
|
|
1388
|
-
static fromJSONField(field: any): RedeemEvent;
|
|
1389
|
-
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
1390
|
-
static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
|
|
1391
|
-
static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
|
|
1392
|
-
static fetch(client: SuiClient, id: string): Promise<RedeemEvent>;
|
|
1393
|
-
}
|
|
1394
1394
|
export declare function isRepayEvent(type: string): boolean;
|
|
1395
1395
|
export interface RepayEventFields {
|
|
1396
1396
|
lendingMarketId: ToField<"address">;
|
|
@@ -1402,10 +1402,10 @@ export interface RepayEventFields {
|
|
|
1402
1402
|
export type RepayEventReified = Reified<RepayEvent, RepayEventFields>;
|
|
1403
1403
|
export declare class RepayEvent implements StructClass {
|
|
1404
1404
|
__StructClass: true;
|
|
1405
|
-
static readonly $typeName
|
|
1405
|
+
static readonly $typeName: string;
|
|
1406
1406
|
static readonly $numTypeParams = 0;
|
|
1407
1407
|
static readonly $isPhantom: readonly [];
|
|
1408
|
-
readonly $typeName
|
|
1408
|
+
readonly $typeName: string;
|
|
1409
1409
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::RepayEvent`;
|
|
1410
1410
|
readonly $typeArgs: [];
|
|
1411
1411
|
readonly $isPhantom: readonly [];
|
|
@@ -1418,7 +1418,7 @@ export declare class RepayEvent implements StructClass {
|
|
|
1418
1418
|
static reified(): RepayEventReified;
|
|
1419
1419
|
static get r(): reified.StructClassReified<RepayEvent, RepayEventFields>;
|
|
1420
1420
|
static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
1421
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent">;
|
|
1421
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RepayEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent">;
|
|
1422
1422
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1423
1423
|
lending_market_id: string;
|
|
1424
1424
|
coin_type: {
|
|
@@ -1482,10 +1482,10 @@ export interface WithdrawEventFields {
|
|
|
1482
1482
|
export type WithdrawEventReified = Reified<WithdrawEvent, WithdrawEventFields>;
|
|
1483
1483
|
export declare class WithdrawEvent implements StructClass {
|
|
1484
1484
|
__StructClass: true;
|
|
1485
|
-
static readonly $typeName
|
|
1485
|
+
static readonly $typeName: string;
|
|
1486
1486
|
static readonly $numTypeParams = 0;
|
|
1487
1487
|
static readonly $isPhantom: readonly [];
|
|
1488
|
-
readonly $typeName
|
|
1488
|
+
readonly $typeName: string;
|
|
1489
1489
|
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::WithdrawEvent`;
|
|
1490
1490
|
readonly $typeArgs: [];
|
|
1491
1491
|
readonly $isPhantom: readonly [];
|
|
@@ -1498,7 +1498,7 @@ export declare class WithdrawEvent implements StructClass {
|
|
|
1498
1498
|
static reified(): WithdrawEventReified;
|
|
1499
1499
|
static get r(): reified.StructClassReified<WithdrawEvent, WithdrawEventFields>;
|
|
1500
1500
|
static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
1501
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent">;
|
|
1501
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::WithdrawEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent">;
|
|
1502
1502
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1503
1503
|
lending_market_id: string;
|
|
1504
1504
|
coin_type: {
|