@suilend/sdk 12.7.0 → 13.0.0-next.g803bba0
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/pyth-2/price-identifier/structs.d.ts +46 -0
- package/_generated/_dependencies/{source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e → pyth-2}/price-identifier/structs.js +45 -25
- package/_generated/_dependencies/std/ascii/structs.d.ts +100 -0
- package/_generated/_dependencies/{source/0x1 → std}/ascii/structs.js +153 -103
- package/_generated/_dependencies/{source/0x1 → std}/option/structs.d.ts +29 -21
- package/_generated/_dependencies/std/option/structs.js +155 -0
- package/_generated/_dependencies/std/type-name/structs.d.ts +65 -0
- package/_generated/_dependencies/{source/0x1 → std}/type-name/structs.js +49 -22
- package/_generated/_dependencies/sui/bag/structs.d.ts +75 -0
- package/_generated/_dependencies/sui/bag/structs.js +154 -0
- package/_generated/_dependencies/{source/0x2 → sui}/balance/structs.d.ts +80 -60
- package/_generated/_dependencies/sui/balance/structs.js +306 -0
- package/_generated/_dependencies/sui/object/structs.d.ts +104 -0
- package/_generated/_dependencies/{source/0x2 → sui}/object/structs.js +98 -46
- package/_generated/_dependencies/{source/0x2 → sui}/object-table/structs.d.ts +37 -30
- package/_generated/_dependencies/sui/object-table/structs.js +164 -0
- package/_generated/_envs/index.d.ts +3 -0
- package/_generated/_envs/index.js +18 -0
- package/_generated/_envs/mainnet.d.ts +2 -0
- package/_generated/_envs/mainnet.js +490 -0
- package/_generated/_framework/env.d.ts +137 -0
- package/_generated/_framework/env.js +261 -0
- package/_generated/_framework/reified.d.ts +68 -36
- package/_generated/_framework/reified.js +110 -98
- package/_generated/_framework/util.d.ts +4 -4
- package/_generated/_framework/util.js +82 -79
- package/_generated/_framework/vector.d.ts +11 -9
- package/_generated/_framework/vector.js +10 -10
- package/_generated/suilend/cell/structs.d.ts +24 -22
- package/_generated/suilend/cell/structs.js +68 -24
- package/_generated/suilend/decimal/structs.d.ts +28 -24
- package/_generated/suilend/decimal/structs.js +45 -24
- package/_generated/suilend/index.d.ts +5 -6
- package/_generated/suilend/index.js +10 -19
- package/_generated/suilend/lending-market/functions.d.ts +1123 -149
- package/_generated/suilend/lending-market/functions.js +1121 -207
- package/_generated/suilend/lending-market/structs.d.ts +985 -1290
- package/_generated/suilend/lending-market/structs.js +2482 -1282
- package/_generated/suilend/lending-market-registry/functions.d.ts +32 -3
- package/_generated/suilend/lending-market-registry/functions.js +30 -6
- package/_generated/suilend/liquidity-mining/structs.d.ts +200 -333
- package/_generated/suilend/liquidity-mining/structs.js +449 -319
- package/_generated/suilend/obligation/structs.d.ts +406 -918
- package/_generated/suilend/obligation/structs.js +786 -596
- package/_generated/suilend/rate-limiter/functions.d.ts +134 -15
- package/_generated/suilend/rate-limiter/functions.js +139 -21
- package/_generated/suilend/rate-limiter/structs.d.ts +72 -80
- package/_generated/suilend/rate-limiter/structs.js +98 -48
- package/_generated/suilend/reserve/structs.d.ts +611 -904
- package/_generated/suilend/reserve/structs.js +1528 -736
- package/_generated/suilend/reserve-config/functions.d.ts +718 -96
- package/_generated/suilend/reserve-config/functions.js +751 -157
- package/_generated/suilend/reserve-config/structs.d.ts +148 -163
- package/_generated/suilend/reserve-config/structs.js +260 -94
- package/client.d.ts +2 -2
- package/client.js +22 -39
- package/lib/initialize.d.ts +76 -76
- package/lib/initialize.js +10 -10
- package/lib/proCompatible.js +5 -5
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +9 -9
- package/parsers/obligation.d.ts +14 -14
- package/parsers/obligation.js +4 -4
- package/parsers/rateLimiter.d.ts +1 -1
- package/parsers/reserve.d.ts +12 -12
- package/parsers/reserve.js +2 -2
- package/strategies.d.ts +14 -14
- package/utils/simulate.d.ts +1 -1
- package/utils/simulate.js +5 -5
- package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +0 -84
- package/_generated/_dependencies/source/0x1/index.d.ts +0 -3
- package/_generated/_dependencies/source/0x1/index.js +0 -3
- package/_generated/_dependencies/source/0x1/option/structs.js +0 -110
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +0 -47
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +0 -52
- package/_generated/_dependencies/source/0x2/bag/structs.js +0 -113
- package/_generated/_dependencies/source/0x2/balance/structs.js +0 -210
- package/_generated/_dependencies/source/0x2/index.d.ts +0 -3
- package/_generated/_dependencies/source/0x2/index.js +0 -3
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +0 -82
- package/_generated/_dependencies/source/0x2/object-table/structs.js +0 -115
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/index.d.ts +0 -4
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/index.js +0 -4
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +0 -46
|
@@ -1,1064 +1,122 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TypeName } from
|
|
3
|
-
import { ObjectTable } from
|
|
4
|
-
import { ID, UID } from
|
|
5
|
-
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr, ToTypeStr as ToPhantom } from
|
|
6
|
-
import { FieldsWithTypes } from
|
|
7
|
-
import { Vector } from
|
|
8
|
-
import { Decimal } from
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { Reserve } from "../reserve/structs";
|
|
13
|
-
import { SuiGrpcClient } from "@mysten/sui/grpc";
|
|
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/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
|
-
length: number;
|
|
48
|
-
}, string>;
|
|
49
|
-
}, string>;
|
|
50
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
55
|
-
static fromFields(fields: Record<string, any>): MintEvent;
|
|
56
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
57
|
-
static fromBcs(data: Uint8Array): MintEvent;
|
|
58
|
-
toJSONField(): {
|
|
59
|
-
lendingMarketId: string;
|
|
60
|
-
coinType: {
|
|
61
|
-
name: string;
|
|
62
|
-
};
|
|
63
|
-
reserveId: string;
|
|
64
|
-
liquidityAmount: string;
|
|
65
|
-
ctokenAmount: string;
|
|
66
|
-
};
|
|
67
|
-
toJSON(): {
|
|
68
|
-
lendingMarketId: string;
|
|
69
|
-
coinType: {
|
|
70
|
-
name: string;
|
|
71
|
-
};
|
|
72
|
-
reserveId: string;
|
|
73
|
-
liquidityAmount: string;
|
|
74
|
-
ctokenAmount: string;
|
|
75
|
-
$typeName: string;
|
|
76
|
-
$typeArgs: [];
|
|
77
|
-
};
|
|
78
|
-
static fromJSONField(field: any): MintEvent;
|
|
79
|
-
static fromJSON(json: Record<string, any>): MintEvent;
|
|
80
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<MintEvent>;
|
|
81
|
-
}
|
|
82
|
-
export declare function isRedeemEvent(type: string): boolean;
|
|
83
|
-
export interface RedeemEventFields {
|
|
84
|
-
lendingMarketId: ToField<"address">;
|
|
85
|
-
coinType: ToField<TypeName>;
|
|
86
|
-
reserveId: ToField<"address">;
|
|
87
|
-
ctokenAmount: ToField<"u64">;
|
|
88
|
-
liquidityAmount: ToField<"u64">;
|
|
89
|
-
}
|
|
90
|
-
export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
|
|
91
|
-
export declare class RedeemEvent implements StructClass {
|
|
92
|
-
__StructClass: true;
|
|
93
|
-
static readonly $typeName: string;
|
|
94
|
-
static readonly $numTypeParams = 0;
|
|
95
|
-
static readonly $isPhantom: readonly [];
|
|
96
|
-
readonly $typeName: string;
|
|
97
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::RedeemEvent`;
|
|
98
|
-
readonly $typeArgs: [];
|
|
99
|
-
readonly $isPhantom: readonly [];
|
|
100
|
-
readonly lendingMarketId: ToField<"address">;
|
|
101
|
-
readonly coinType: ToField<TypeName>;
|
|
102
|
-
readonly reserveId: ToField<"address">;
|
|
103
|
-
readonly ctokenAmount: ToField<"u64">;
|
|
104
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
105
|
-
private constructor();
|
|
106
|
-
static reified(): RedeemEventReified;
|
|
107
|
-
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
108
|
-
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
109
|
-
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RedeemEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
|
|
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
|
-
length: number;
|
|
116
|
-
}, string>;
|
|
117
|
-
}, string>;
|
|
118
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
123
|
-
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
124
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
125
|
-
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
126
|
-
toJSONField(): {
|
|
127
|
-
lendingMarketId: string;
|
|
128
|
-
coinType: {
|
|
129
|
-
name: string;
|
|
130
|
-
};
|
|
131
|
-
reserveId: string;
|
|
132
|
-
ctokenAmount: string;
|
|
133
|
-
liquidityAmount: string;
|
|
134
|
-
};
|
|
135
|
-
toJSON(): {
|
|
136
|
-
lendingMarketId: string;
|
|
137
|
-
coinType: {
|
|
138
|
-
name: string;
|
|
139
|
-
};
|
|
140
|
-
reserveId: string;
|
|
141
|
-
ctokenAmount: string;
|
|
142
|
-
liquidityAmount: string;
|
|
143
|
-
$typeName: string;
|
|
144
|
-
$typeArgs: [];
|
|
145
|
-
};
|
|
146
|
-
static fromJSONField(field: any): RedeemEvent;
|
|
147
|
-
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
148
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<RedeemEvent>;
|
|
149
|
-
}
|
|
150
|
-
export declare function isBorrowEvent(type: string): boolean;
|
|
151
|
-
export interface BorrowEventFields {
|
|
152
|
-
lendingMarketId: ToField<"address">;
|
|
153
|
-
coinType: ToField<TypeName>;
|
|
154
|
-
reserveId: ToField<"address">;
|
|
155
|
-
obligationId: ToField<"address">;
|
|
156
|
-
liquidityAmount: ToField<"u64">;
|
|
157
|
-
originationFeeAmount: ToField<"u64">;
|
|
158
|
-
}
|
|
159
|
-
export type BorrowEventReified = Reified<BorrowEvent, BorrowEventFields>;
|
|
160
|
-
export declare class BorrowEvent implements StructClass {
|
|
161
|
-
__StructClass: true;
|
|
162
|
-
static readonly $typeName: string;
|
|
163
|
-
static readonly $numTypeParams = 0;
|
|
164
|
-
static readonly $isPhantom: readonly [];
|
|
165
|
-
readonly $typeName: string;
|
|
166
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::BorrowEvent`;
|
|
167
|
-
readonly $typeArgs: [];
|
|
168
|
-
readonly $isPhantom: readonly [];
|
|
169
|
-
readonly lendingMarketId: ToField<"address">;
|
|
170
|
-
readonly coinType: ToField<TypeName>;
|
|
171
|
-
readonly reserveId: ToField<"address">;
|
|
172
|
-
readonly obligationId: ToField<"address">;
|
|
173
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
174
|
-
readonly originationFeeAmount: ToField<"u64">;
|
|
175
|
-
private constructor();
|
|
176
|
-
static reified(): BorrowEventReified;
|
|
177
|
-
static get r(): reified.StructClassReified<BorrowEvent, BorrowEventFields>;
|
|
178
|
-
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
179
|
-
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::BorrowEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
|
|
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
|
-
length: number;
|
|
186
|
-
}, string>;
|
|
187
|
-
}, string>;
|
|
188
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
194
|
-
static fromFields(fields: Record<string, any>): BorrowEvent;
|
|
195
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): BorrowEvent;
|
|
196
|
-
static fromBcs(data: Uint8Array): BorrowEvent;
|
|
197
|
-
toJSONField(): {
|
|
198
|
-
lendingMarketId: string;
|
|
199
|
-
coinType: {
|
|
200
|
-
name: string;
|
|
201
|
-
};
|
|
202
|
-
reserveId: string;
|
|
203
|
-
obligationId: string;
|
|
204
|
-
liquidityAmount: string;
|
|
205
|
-
originationFeeAmount: string;
|
|
206
|
-
};
|
|
207
|
-
toJSON(): {
|
|
208
|
-
lendingMarketId: string;
|
|
209
|
-
coinType: {
|
|
210
|
-
name: string;
|
|
211
|
-
};
|
|
212
|
-
reserveId: string;
|
|
213
|
-
obligationId: string;
|
|
214
|
-
liquidityAmount: string;
|
|
215
|
-
originationFeeAmount: string;
|
|
216
|
-
$typeName: string;
|
|
217
|
-
$typeArgs: [];
|
|
218
|
-
};
|
|
219
|
-
static fromJSONField(field: any): BorrowEvent;
|
|
220
|
-
static fromJSON(json: Record<string, any>): BorrowEvent;
|
|
221
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<BorrowEvent>;
|
|
222
|
-
}
|
|
223
|
-
export declare function isClaimRewardEvent(type: string): boolean;
|
|
224
|
-
export interface ClaimRewardEventFields {
|
|
225
|
-
lendingMarketId: ToField<"address">;
|
|
226
|
-
reserveId: ToField<"address">;
|
|
227
|
-
obligationId: ToField<"address">;
|
|
228
|
-
isDepositReward: ToField<"bool">;
|
|
229
|
-
poolRewardId: ToField<"address">;
|
|
230
|
-
coinType: ToField<TypeName>;
|
|
231
|
-
liquidityAmount: ToField<"u64">;
|
|
232
|
-
}
|
|
233
|
-
export type ClaimRewardEventReified = Reified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
234
|
-
export declare class ClaimRewardEvent implements StructClass {
|
|
235
|
-
__StructClass: true;
|
|
236
|
-
static readonly $typeName: string;
|
|
237
|
-
static readonly $numTypeParams = 0;
|
|
238
|
-
static readonly $isPhantom: readonly [];
|
|
239
|
-
readonly $typeName: string;
|
|
240
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::ClaimRewardEvent`;
|
|
241
|
-
readonly $typeArgs: [];
|
|
242
|
-
readonly $isPhantom: readonly [];
|
|
243
|
-
readonly lendingMarketId: ToField<"address">;
|
|
244
|
-
readonly reserveId: ToField<"address">;
|
|
245
|
-
readonly obligationId: ToField<"address">;
|
|
246
|
-
readonly isDepositReward: ToField<"bool">;
|
|
247
|
-
readonly poolRewardId: ToField<"address">;
|
|
248
|
-
readonly coinType: ToField<TypeName>;
|
|
249
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
250
|
-
private constructor();
|
|
251
|
-
static reified(): ClaimRewardEventReified;
|
|
252
|
-
static get r(): reified.StructClassReified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
253
|
-
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
254
|
-
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ClaimRewardEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
|
|
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
|
-
length: number;
|
|
265
|
-
}, string>;
|
|
266
|
-
}, string>;
|
|
267
|
-
}, string>;
|
|
268
|
-
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
269
|
-
}, string>;
|
|
270
|
-
static fromFields(fields: Record<string, any>): ClaimRewardEvent;
|
|
271
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimRewardEvent;
|
|
272
|
-
static fromBcs(data: Uint8Array): ClaimRewardEvent;
|
|
273
|
-
toJSONField(): {
|
|
274
|
-
lendingMarketId: string;
|
|
275
|
-
reserveId: string;
|
|
276
|
-
obligationId: string;
|
|
277
|
-
isDepositReward: boolean;
|
|
278
|
-
poolRewardId: string;
|
|
279
|
-
coinType: {
|
|
280
|
-
name: string;
|
|
281
|
-
};
|
|
282
|
-
liquidityAmount: string;
|
|
283
|
-
};
|
|
284
|
-
toJSON(): {
|
|
285
|
-
lendingMarketId: string;
|
|
286
|
-
reserveId: string;
|
|
287
|
-
obligationId: string;
|
|
288
|
-
isDepositReward: boolean;
|
|
289
|
-
poolRewardId: string;
|
|
290
|
-
coinType: {
|
|
291
|
-
name: string;
|
|
292
|
-
};
|
|
293
|
-
liquidityAmount: string;
|
|
294
|
-
$typeName: string;
|
|
295
|
-
$typeArgs: [];
|
|
296
|
-
};
|
|
297
|
-
static fromJSONField(field: any): ClaimRewardEvent;
|
|
298
|
-
static fromJSON(json: Record<string, any>): ClaimRewardEvent;
|
|
299
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<ClaimRewardEvent>;
|
|
300
|
-
}
|
|
301
|
-
export declare function isDepositEvent(type: string): boolean;
|
|
302
|
-
export interface DepositEventFields {
|
|
303
|
-
lendingMarketId: ToField<"address">;
|
|
304
|
-
coinType: ToField<TypeName>;
|
|
305
|
-
reserveId: ToField<"address">;
|
|
306
|
-
obligationId: ToField<"address">;
|
|
307
|
-
ctokenAmount: ToField<"u64">;
|
|
308
|
-
}
|
|
309
|
-
export type DepositEventReified = Reified<DepositEvent, DepositEventFields>;
|
|
310
|
-
export declare class DepositEvent implements StructClass {
|
|
311
|
-
__StructClass: true;
|
|
312
|
-
static readonly $typeName: string;
|
|
313
|
-
static readonly $numTypeParams = 0;
|
|
314
|
-
static readonly $isPhantom: readonly [];
|
|
315
|
-
readonly $typeName: string;
|
|
316
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::DepositEvent`;
|
|
317
|
-
readonly $typeArgs: [];
|
|
318
|
-
readonly $isPhantom: readonly [];
|
|
319
|
-
readonly lendingMarketId: ToField<"address">;
|
|
320
|
-
readonly coinType: ToField<TypeName>;
|
|
321
|
-
readonly reserveId: ToField<"address">;
|
|
322
|
-
readonly obligationId: ToField<"address">;
|
|
323
|
-
readonly ctokenAmount: ToField<"u64">;
|
|
324
|
-
private constructor();
|
|
325
|
-
static reified(): DepositEventReified;
|
|
326
|
-
static get r(): reified.StructClassReified<DepositEvent, DepositEventFields>;
|
|
327
|
-
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
328
|
-
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::DepositEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
|
|
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
|
-
length: number;
|
|
335
|
-
}, string>;
|
|
336
|
-
}, string>;
|
|
337
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
342
|
-
static fromFields(fields: Record<string, any>): DepositEvent;
|
|
343
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): DepositEvent;
|
|
344
|
-
static fromBcs(data: Uint8Array): DepositEvent;
|
|
345
|
-
toJSONField(): {
|
|
346
|
-
lendingMarketId: string;
|
|
347
|
-
coinType: {
|
|
348
|
-
name: string;
|
|
349
|
-
};
|
|
350
|
-
reserveId: string;
|
|
351
|
-
obligationId: string;
|
|
352
|
-
ctokenAmount: string;
|
|
353
|
-
};
|
|
354
|
-
toJSON(): {
|
|
355
|
-
lendingMarketId: string;
|
|
356
|
-
coinType: {
|
|
357
|
-
name: string;
|
|
358
|
-
};
|
|
359
|
-
reserveId: string;
|
|
360
|
-
obligationId: string;
|
|
361
|
-
ctokenAmount: string;
|
|
362
|
-
$typeName: string;
|
|
363
|
-
$typeArgs: [];
|
|
364
|
-
};
|
|
365
|
-
static fromJSONField(field: any): DepositEvent;
|
|
366
|
-
static fromJSON(json: Record<string, any>): DepositEvent;
|
|
367
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<DepositEvent>;
|
|
368
|
-
}
|
|
369
|
-
export declare function isFeeReceivers(type: string): boolean;
|
|
370
|
-
export interface FeeReceiversFields {
|
|
371
|
-
receivers: ToField<Vector<"address">>;
|
|
372
|
-
weights: ToField<Vector<"u64">>;
|
|
373
|
-
totalWeight: ToField<"u64">;
|
|
374
|
-
}
|
|
375
|
-
export type FeeReceiversReified = Reified<FeeReceivers, FeeReceiversFields>;
|
|
376
|
-
export declare class FeeReceivers implements StructClass {
|
|
377
|
-
__StructClass: true;
|
|
378
|
-
static readonly $typeName: string;
|
|
379
|
-
static readonly $numTypeParams = 0;
|
|
380
|
-
static readonly $isPhantom: readonly [];
|
|
381
|
-
readonly $typeName: string;
|
|
382
|
-
readonly $fullTypeName: `${typeof PKG_V10}::lending_market::FeeReceivers`;
|
|
383
|
-
readonly $typeArgs: [];
|
|
384
|
-
readonly $isPhantom: readonly [];
|
|
385
|
-
readonly receivers: ToField<Vector<"address">>;
|
|
386
|
-
readonly weights: ToField<Vector<"u64">>;
|
|
387
|
-
readonly totalWeight: ToField<"u64">;
|
|
388
|
-
private constructor();
|
|
389
|
-
static reified(): FeeReceiversReified;
|
|
390
|
-
static get r(): reified.StructClassReified<FeeReceivers, FeeReceiversFields>;
|
|
391
|
-
static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
392
|
-
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceivers" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceivers">;
|
|
393
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
394
|
-
receivers: import("@mysten/bcs").BcsType<string[], Iterable<string> & {
|
|
395
|
-
length: number;
|
|
396
|
-
}, string>;
|
|
397
|
-
weights: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
398
|
-
length: number;
|
|
399
|
-
}, string>;
|
|
400
|
-
total_weight: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
401
|
-
}, string>;
|
|
402
|
-
static fromFields(fields: Record<string, any>): FeeReceivers;
|
|
403
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceivers;
|
|
404
|
-
static fromBcs(data: Uint8Array): FeeReceivers;
|
|
405
|
-
toJSONField(): {
|
|
406
|
-
receivers: string[];
|
|
407
|
-
weights: string[];
|
|
408
|
-
totalWeight: string;
|
|
409
|
-
};
|
|
410
|
-
toJSON(): {
|
|
411
|
-
receivers: string[];
|
|
412
|
-
weights: string[];
|
|
413
|
-
totalWeight: string;
|
|
414
|
-
$typeName: string;
|
|
415
|
-
$typeArgs: [];
|
|
416
|
-
};
|
|
417
|
-
static fromJSONField(field: any): FeeReceivers;
|
|
418
|
-
static fromJSON(json: Record<string, any>): FeeReceivers;
|
|
419
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<FeeReceivers>;
|
|
420
|
-
}
|
|
421
|
-
export declare function isFeeReceiversKey(type: string): boolean;
|
|
422
|
-
export interface FeeReceiversKeyFields {
|
|
423
|
-
dummyField: ToField<"bool">;
|
|
424
|
-
}
|
|
425
|
-
export type FeeReceiversKeyReified = Reified<FeeReceiversKey, FeeReceiversKeyFields>;
|
|
426
|
-
export declare class FeeReceiversKey implements StructClass {
|
|
427
|
-
__StructClass: true;
|
|
428
|
-
static readonly $typeName: string;
|
|
429
|
-
static readonly $numTypeParams = 0;
|
|
430
|
-
static readonly $isPhantom: readonly [];
|
|
431
|
-
readonly $typeName: string;
|
|
432
|
-
readonly $fullTypeName: `${typeof PKG_V10}::lending_market::FeeReceiversKey`;
|
|
433
|
-
readonly $typeArgs: [];
|
|
434
|
-
readonly $isPhantom: readonly [];
|
|
435
|
-
readonly dummyField: ToField<"bool">;
|
|
436
|
-
private constructor();
|
|
437
|
-
static reified(): FeeReceiversKeyReified;
|
|
438
|
-
static get r(): reified.StructClassReified<FeeReceiversKey, FeeReceiversKeyFields>;
|
|
439
|
-
static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
440
|
-
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceiversKey" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceiversKey">;
|
|
441
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
442
|
-
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
443
|
-
}, string>;
|
|
444
|
-
static fromFields(fields: Record<string, any>): FeeReceiversKey;
|
|
445
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceiversKey;
|
|
446
|
-
static fromBcs(data: Uint8Array): FeeReceiversKey;
|
|
447
|
-
toJSONField(): {
|
|
448
|
-
dummyField: boolean;
|
|
449
|
-
};
|
|
450
|
-
toJSON(): {
|
|
451
|
-
dummyField: boolean;
|
|
452
|
-
$typeName: string;
|
|
453
|
-
$typeArgs: [];
|
|
454
|
-
};
|
|
455
|
-
static fromJSONField(field: any): FeeReceiversKey;
|
|
456
|
-
static fromJSON(json: Record<string, any>): FeeReceiversKey;
|
|
457
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<FeeReceiversKey>;
|
|
458
|
-
}
|
|
459
|
-
export declare function isForgiveEvent(type: string): boolean;
|
|
460
|
-
export interface ForgiveEventFields {
|
|
461
|
-
lendingMarketId: ToField<"address">;
|
|
462
|
-
coinType: ToField<TypeName>;
|
|
463
|
-
reserveId: ToField<"address">;
|
|
464
|
-
obligationId: ToField<"address">;
|
|
465
|
-
liquidityAmount: ToField<"u64">;
|
|
466
|
-
}
|
|
467
|
-
export type ForgiveEventReified = Reified<ForgiveEvent, ForgiveEventFields>;
|
|
468
|
-
export declare class ForgiveEvent implements StructClass {
|
|
469
|
-
__StructClass: true;
|
|
470
|
-
static readonly $typeName: string;
|
|
471
|
-
static readonly $numTypeParams = 0;
|
|
472
|
-
static readonly $isPhantom: readonly [];
|
|
473
|
-
readonly $typeName: string;
|
|
474
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::ForgiveEvent`;
|
|
475
|
-
readonly $typeArgs: [];
|
|
476
|
-
readonly $isPhantom: readonly [];
|
|
477
|
-
readonly lendingMarketId: ToField<"address">;
|
|
478
|
-
readonly coinType: ToField<TypeName>;
|
|
479
|
-
readonly reserveId: ToField<"address">;
|
|
480
|
-
readonly obligationId: ToField<"address">;
|
|
481
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
482
|
-
private constructor();
|
|
483
|
-
static reified(): ForgiveEventReified;
|
|
484
|
-
static get r(): reified.StructClassReified<ForgiveEvent, ForgiveEventFields>;
|
|
485
|
-
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
486
|
-
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ForgiveEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
|
|
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
|
-
length: number;
|
|
493
|
-
}, string>;
|
|
494
|
-
}, string>;
|
|
495
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
500
|
-
static fromFields(fields: Record<string, any>): ForgiveEvent;
|
|
501
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ForgiveEvent;
|
|
502
|
-
static fromBcs(data: Uint8Array): ForgiveEvent;
|
|
503
|
-
toJSONField(): {
|
|
504
|
-
lendingMarketId: string;
|
|
505
|
-
coinType: {
|
|
506
|
-
name: string;
|
|
507
|
-
};
|
|
508
|
-
reserveId: string;
|
|
509
|
-
obligationId: string;
|
|
510
|
-
liquidityAmount: string;
|
|
511
|
-
};
|
|
512
|
-
toJSON(): {
|
|
513
|
-
lendingMarketId: string;
|
|
514
|
-
coinType: {
|
|
515
|
-
name: string;
|
|
516
|
-
};
|
|
517
|
-
reserveId: string;
|
|
518
|
-
obligationId: string;
|
|
519
|
-
liquidityAmount: string;
|
|
520
|
-
$typeName: string;
|
|
521
|
-
$typeArgs: [];
|
|
522
|
-
};
|
|
523
|
-
static fromJSONField(field: any): ForgiveEvent;
|
|
524
|
-
static fromJSON(json: Record<string, any>): ForgiveEvent;
|
|
525
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<ForgiveEvent>;
|
|
526
|
-
}
|
|
1
|
+
import type { ClientWithCoreApi, SuiClientTypes } from '@mysten/sui/client';
|
|
2
|
+
import { TypeName } from '../../_dependencies/std/type-name/structs';
|
|
3
|
+
import { ObjectTable } from '../../_dependencies/sui/object-table/structs';
|
|
4
|
+
import { ID, UID } from '../../_dependencies/sui/object/structs';
|
|
5
|
+
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToJSON, ToPhantomTypeArgument, ToTypeStr, ToTypeStr as ToPhantom } from '../../_framework/reified';
|
|
6
|
+
import { FieldsWithTypes } from '../../_framework/util';
|
|
7
|
+
import { Vector } from '../../_framework/vector';
|
|
8
|
+
import { Decimal } from '../decimal/structs';
|
|
9
|
+
import { Obligation } from '../obligation/structs';
|
|
10
|
+
import { RateLimiter } from '../rate-limiter/structs';
|
|
11
|
+
import { Reserve } from '../reserve/structs';
|
|
527
12
|
export declare function isLENDING_MARKET(type: string): boolean;
|
|
528
13
|
export interface LENDING_MARKETFields {
|
|
529
|
-
dummyField: ToField<
|
|
14
|
+
dummyField: ToField<'bool'>;
|
|
530
15
|
}
|
|
531
16
|
export type LENDING_MARKETReified = Reified<LENDING_MARKET, LENDING_MARKETFields>;
|
|
17
|
+
export type LENDING_MARKETJSONField = {
|
|
18
|
+
dummyField: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type LENDING_MARKETJSON = {
|
|
21
|
+
$typeName: typeof LENDING_MARKET.$typeName;
|
|
22
|
+
$typeArgs: [];
|
|
23
|
+
} & LENDING_MARKETJSONField;
|
|
532
24
|
export declare class LENDING_MARKET implements StructClass {
|
|
533
25
|
__StructClass: true;
|
|
534
|
-
static
|
|
26
|
+
static get $typeName(): `${string}::lending_market::LENDING_MARKET`;
|
|
535
27
|
static readonly $numTypeParams = 0;
|
|
536
28
|
static readonly $isPhantom: readonly [];
|
|
537
|
-
readonly $typeName:
|
|
538
|
-
readonly $fullTypeName: `${
|
|
29
|
+
readonly $typeName: typeof LENDING_MARKET.$typeName;
|
|
30
|
+
readonly $fullTypeName: `${string}::lending_market::LENDING_MARKET`;
|
|
539
31
|
readonly $typeArgs: [];
|
|
540
|
-
readonly $isPhantom:
|
|
541
|
-
readonly dummyField: ToField<
|
|
32
|
+
readonly $isPhantom: typeof LENDING_MARKET.$isPhantom;
|
|
33
|
+
readonly dummyField: ToField<'bool'>;
|
|
542
34
|
private constructor();
|
|
543
35
|
static reified(): LENDING_MARKETReified;
|
|
544
|
-
static get r():
|
|
36
|
+
static get r(): LENDING_MARKETReified;
|
|
545
37
|
static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
546
|
-
static get p():
|
|
547
|
-
static
|
|
548
|
-
|
|
549
|
-
|
|
38
|
+
static get p(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
39
|
+
private static instantiateBcs;
|
|
40
|
+
private static cachedBcs;
|
|
41
|
+
static get bcs(): ReturnType<typeof LENDING_MARKET.instantiateBcs>;
|
|
550
42
|
static fromFields(fields: Record<string, any>): LENDING_MARKET;
|
|
551
43
|
static fromFieldsWithTypes(item: FieldsWithTypes): LENDING_MARKET;
|
|
552
44
|
static fromBcs(data: Uint8Array): LENDING_MARKET;
|
|
553
|
-
toJSONField():
|
|
554
|
-
|
|
555
|
-
};
|
|
556
|
-
toJSON(): {
|
|
557
|
-
dummyField: boolean;
|
|
558
|
-
$typeName: string;
|
|
559
|
-
$typeArgs: [];
|
|
560
|
-
};
|
|
45
|
+
toJSONField(): LENDING_MARKETJSONField;
|
|
46
|
+
toJSON(): LENDING_MARKETJSON;
|
|
561
47
|
static fromJSONField(field: any): LENDING_MARKET;
|
|
562
48
|
static fromJSON(json: Record<string, any>): LENDING_MARKET;
|
|
563
|
-
static
|
|
49
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
50
|
+
content: true;
|
|
51
|
+
}>): LENDING_MARKET;
|
|
52
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<LENDING_MARKET>;
|
|
564
53
|
}
|
|
565
54
|
export declare function isLendingMarket(type: string): boolean;
|
|
566
55
|
export interface LendingMarketFields<P extends PhantomTypeArgument> {
|
|
567
56
|
id: ToField<UID>;
|
|
568
|
-
version: ToField<
|
|
57
|
+
version: ToField<'u64'>;
|
|
569
58
|
reserves: ToField<Vector<Reserve<P>>>;
|
|
570
59
|
obligations: ToField<ObjectTable<ToPhantom<ID>, ToPhantom<Obligation<P>>>>;
|
|
571
60
|
rateLimiter: ToField<RateLimiter>;
|
|
572
|
-
feeReceiver: ToField<
|
|
61
|
+
feeReceiver: ToField<'address'>;
|
|
62
|
+
/** unused */
|
|
573
63
|
badDebtUsd: ToField<Decimal>;
|
|
64
|
+
/** unused */
|
|
574
65
|
badDebtLimitUsd: ToField<Decimal>;
|
|
575
66
|
}
|
|
576
67
|
export type LendingMarketReified<P extends PhantomTypeArgument> = Reified<LendingMarket<P>, LendingMarketFields<P>>;
|
|
68
|
+
export type LendingMarketJSONField<P extends PhantomTypeArgument> = {
|
|
69
|
+
id: string;
|
|
70
|
+
version: string;
|
|
71
|
+
reserves: ToJSON<Reserve<P>>[];
|
|
72
|
+
obligations: ToJSON<ObjectTable<ToPhantom<ID>, ToPhantom<Obligation<P>>>>;
|
|
73
|
+
rateLimiter: ToJSON<RateLimiter>;
|
|
74
|
+
feeReceiver: string;
|
|
75
|
+
badDebtUsd: ToJSON<Decimal>;
|
|
76
|
+
badDebtLimitUsd: ToJSON<Decimal>;
|
|
77
|
+
};
|
|
78
|
+
export type LendingMarketJSON<P extends PhantomTypeArgument> = {
|
|
79
|
+
$typeName: typeof LendingMarket.$typeName;
|
|
80
|
+
$typeArgs: [PhantomToTypeStr<P>];
|
|
81
|
+
} & LendingMarketJSONField<P>;
|
|
577
82
|
export declare class LendingMarket<P extends PhantomTypeArgument> implements StructClass {
|
|
578
83
|
__StructClass: true;
|
|
579
|
-
static
|
|
84
|
+
static get $typeName(): `${string}::lending_market::LendingMarket`;
|
|
580
85
|
static readonly $numTypeParams = 1;
|
|
581
86
|
static readonly $isPhantom: readonly [true];
|
|
582
|
-
readonly $typeName:
|
|
583
|
-
readonly $fullTypeName: `${
|
|
87
|
+
readonly $typeName: typeof LendingMarket.$typeName;
|
|
88
|
+
readonly $fullTypeName: `${string}::lending_market::LendingMarket<${PhantomToTypeStr<P>}>`;
|
|
584
89
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
585
|
-
readonly $isPhantom:
|
|
90
|
+
readonly $isPhantom: typeof LendingMarket.$isPhantom;
|
|
586
91
|
readonly id: ToField<UID>;
|
|
587
|
-
readonly version: ToField<
|
|
92
|
+
readonly version: ToField<'u64'>;
|
|
588
93
|
readonly reserves: ToField<Vector<Reserve<P>>>;
|
|
589
94
|
readonly obligations: ToField<ObjectTable<ToPhantom<ID>, ToPhantom<Obligation<P>>>>;
|
|
590
95
|
readonly rateLimiter: ToField<RateLimiter>;
|
|
591
|
-
readonly feeReceiver: ToField<
|
|
96
|
+
readonly feeReceiver: ToField<'address'>;
|
|
97
|
+
/** unused */
|
|
592
98
|
readonly badDebtUsd: ToField<Decimal>;
|
|
99
|
+
/** unused */
|
|
593
100
|
readonly badDebtLimitUsd: ToField<Decimal>;
|
|
594
101
|
private constructor();
|
|
595
102
|
static reified<P extends PhantomReified<PhantomTypeArgument>>(P: P): LendingMarketReified<ToPhantomTypeArgument<P>>;
|
|
596
103
|
static get r(): typeof LendingMarket.reified;
|
|
597
104
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarket<ToPhantomTypeArgument<P>>>>;
|
|
598
105
|
static get p(): typeof LendingMarket.phantom;
|
|
599
|
-
static
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
603
|
-
}, string>;
|
|
604
|
-
}, string>;
|
|
605
|
-
version: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
606
|
-
reserves: import("@mysten/bcs").BcsType<{
|
|
607
|
-
id: {
|
|
608
|
-
id: {
|
|
609
|
-
bytes: string;
|
|
610
|
-
};
|
|
611
|
-
};
|
|
612
|
-
lending_market_id: {
|
|
613
|
-
bytes: string;
|
|
614
|
-
};
|
|
615
|
-
array_index: string;
|
|
616
|
-
coin_type: {
|
|
617
|
-
name: {
|
|
618
|
-
bytes: number[];
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
config: {
|
|
622
|
-
element: any;
|
|
623
|
-
};
|
|
624
|
-
mint_decimals: number;
|
|
625
|
-
price_identifier: {
|
|
626
|
-
bytes: number[];
|
|
627
|
-
};
|
|
628
|
-
price: {
|
|
629
|
-
value: string;
|
|
630
|
-
};
|
|
631
|
-
smoothed_price: {
|
|
632
|
-
value: string;
|
|
633
|
-
};
|
|
634
|
-
price_last_update_timestamp_s: string;
|
|
635
|
-
available_amount: string;
|
|
636
|
-
ctoken_supply: string;
|
|
637
|
-
borrowed_amount: {
|
|
638
|
-
value: string;
|
|
639
|
-
};
|
|
640
|
-
cumulative_borrow_rate: {
|
|
641
|
-
value: string;
|
|
642
|
-
};
|
|
643
|
-
interest_last_update_timestamp_s: string;
|
|
644
|
-
unclaimed_spread_fees: {
|
|
645
|
-
value: string;
|
|
646
|
-
};
|
|
647
|
-
attributed_borrow_value: {
|
|
648
|
-
value: string;
|
|
649
|
-
};
|
|
650
|
-
deposits_pool_reward_manager: {
|
|
651
|
-
id: {
|
|
652
|
-
id: {
|
|
653
|
-
bytes: string;
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
total_shares: string;
|
|
657
|
-
pool_rewards: any[];
|
|
658
|
-
last_update_time_ms: string;
|
|
659
|
-
};
|
|
660
|
-
borrows_pool_reward_manager: {
|
|
661
|
-
id: {
|
|
662
|
-
id: {
|
|
663
|
-
bytes: string;
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
total_shares: string;
|
|
667
|
-
pool_rewards: any[];
|
|
668
|
-
last_update_time_ms: string;
|
|
669
|
-
};
|
|
670
|
-
}[], Iterable<{
|
|
671
|
-
id: {
|
|
672
|
-
id: {
|
|
673
|
-
bytes: string;
|
|
674
|
-
};
|
|
675
|
-
};
|
|
676
|
-
lending_market_id: {
|
|
677
|
-
bytes: string;
|
|
678
|
-
};
|
|
679
|
-
array_index: string | number | bigint;
|
|
680
|
-
coin_type: {
|
|
681
|
-
name: {
|
|
682
|
-
bytes: Iterable<number> & {
|
|
683
|
-
length: number;
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
|
-
config: {
|
|
688
|
-
element: any;
|
|
689
|
-
};
|
|
690
|
-
mint_decimals: number;
|
|
691
|
-
price_identifier: {
|
|
692
|
-
bytes: Iterable<number> & {
|
|
693
|
-
length: number;
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
|
-
price: {
|
|
697
|
-
value: string | number | bigint;
|
|
698
|
-
};
|
|
699
|
-
smoothed_price: {
|
|
700
|
-
value: string | number | bigint;
|
|
701
|
-
};
|
|
702
|
-
price_last_update_timestamp_s: string | number | bigint;
|
|
703
|
-
available_amount: string | number | bigint;
|
|
704
|
-
ctoken_supply: string | number | bigint;
|
|
705
|
-
borrowed_amount: {
|
|
706
|
-
value: string | number | bigint;
|
|
707
|
-
};
|
|
708
|
-
cumulative_borrow_rate: {
|
|
709
|
-
value: string | number | bigint;
|
|
710
|
-
};
|
|
711
|
-
interest_last_update_timestamp_s: string | number | bigint;
|
|
712
|
-
unclaimed_spread_fees: {
|
|
713
|
-
value: string | number | bigint;
|
|
714
|
-
};
|
|
715
|
-
attributed_borrow_value: {
|
|
716
|
-
value: string | number | bigint;
|
|
717
|
-
};
|
|
718
|
-
deposits_pool_reward_manager: {
|
|
719
|
-
id: {
|
|
720
|
-
id: {
|
|
721
|
-
bytes: string;
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
total_shares: string | number | bigint;
|
|
725
|
-
pool_rewards: Iterable<any> & {
|
|
726
|
-
length: number;
|
|
727
|
-
};
|
|
728
|
-
last_update_time_ms: string | number | bigint;
|
|
729
|
-
};
|
|
730
|
-
borrows_pool_reward_manager: {
|
|
731
|
-
id: {
|
|
732
|
-
id: {
|
|
733
|
-
bytes: string;
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
total_shares: string | number | bigint;
|
|
737
|
-
pool_rewards: Iterable<any> & {
|
|
738
|
-
length: number;
|
|
739
|
-
};
|
|
740
|
-
last_update_time_ms: string | number | bigint;
|
|
741
|
-
};
|
|
742
|
-
}> & {
|
|
743
|
-
length: number;
|
|
744
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
750
|
-
}, string>;
|
|
751
|
-
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
752
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
758
|
-
prev_qty: import("@mysten/bcs").BcsStruct<{
|
|
759
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
760
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
765
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
770
|
-
bad_debt_limit_usd: import("@mysten/bcs").BcsStruct<{
|
|
771
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
772
|
-
}, string>;
|
|
773
|
-
}, string>;
|
|
106
|
+
private static instantiateBcs;
|
|
107
|
+
private static cachedBcs;
|
|
108
|
+
static get bcs(): ReturnType<typeof LendingMarket.instantiateBcs>;
|
|
774
109
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
775
110
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
776
111
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
777
|
-
toJSONField():
|
|
778
|
-
|
|
779
|
-
version: string;
|
|
780
|
-
reserves: {
|
|
781
|
-
id: string;
|
|
782
|
-
lendingMarketId: string;
|
|
783
|
-
arrayIndex: string;
|
|
784
|
-
coinType: {
|
|
785
|
-
name: string;
|
|
786
|
-
};
|
|
787
|
-
config: {
|
|
788
|
-
element: {
|
|
789
|
-
openLtvPct: number;
|
|
790
|
-
closeLtvPct: number;
|
|
791
|
-
maxCloseLtvPct: number;
|
|
792
|
-
borrowWeightBps: string;
|
|
793
|
-
depositLimit: string;
|
|
794
|
-
borrowLimit: string;
|
|
795
|
-
liquidationBonusBps: string;
|
|
796
|
-
maxLiquidationBonusBps: string;
|
|
797
|
-
depositLimitUsd: string;
|
|
798
|
-
borrowLimitUsd: string;
|
|
799
|
-
interestRateUtils: number[];
|
|
800
|
-
interestRateAprs: string[];
|
|
801
|
-
borrowFeeBps: string;
|
|
802
|
-
spreadFeeBps: string;
|
|
803
|
-
protocolLiquidationFeeBps: string;
|
|
804
|
-
isolated: boolean;
|
|
805
|
-
openAttributedBorrowLimitUsd: string;
|
|
806
|
-
closeAttributedBorrowLimitUsd: string;
|
|
807
|
-
additionalFields: {
|
|
808
|
-
id: string;
|
|
809
|
-
size: string;
|
|
810
|
-
};
|
|
811
|
-
} | null;
|
|
812
|
-
};
|
|
813
|
-
mintDecimals: number;
|
|
814
|
-
priceIdentifier: {
|
|
815
|
-
bytes: number[];
|
|
816
|
-
};
|
|
817
|
-
price: {
|
|
818
|
-
value: string;
|
|
819
|
-
};
|
|
820
|
-
smoothedPrice: {
|
|
821
|
-
value: string;
|
|
822
|
-
};
|
|
823
|
-
priceLastUpdateTimestampS: string;
|
|
824
|
-
availableAmount: string;
|
|
825
|
-
ctokenSupply: string;
|
|
826
|
-
borrowedAmount: {
|
|
827
|
-
value: string;
|
|
828
|
-
};
|
|
829
|
-
cumulativeBorrowRate: {
|
|
830
|
-
value: string;
|
|
831
|
-
};
|
|
832
|
-
interestLastUpdateTimestampS: string;
|
|
833
|
-
unclaimedSpreadFees: {
|
|
834
|
-
value: string;
|
|
835
|
-
};
|
|
836
|
-
attributedBorrowValue: {
|
|
837
|
-
value: string;
|
|
838
|
-
};
|
|
839
|
-
depositsPoolRewardManager: {
|
|
840
|
-
id: string;
|
|
841
|
-
totalShares: string;
|
|
842
|
-
poolRewards: ({
|
|
843
|
-
id: string;
|
|
844
|
-
poolRewardManagerId: string;
|
|
845
|
-
coinType: {
|
|
846
|
-
name: string;
|
|
847
|
-
};
|
|
848
|
-
startTimeMs: string;
|
|
849
|
-
endTimeMs: string;
|
|
850
|
-
totalRewards: string;
|
|
851
|
-
allocatedRewards: {
|
|
852
|
-
value: string;
|
|
853
|
-
};
|
|
854
|
-
cumulativeRewardsPerShare: {
|
|
855
|
-
value: string;
|
|
856
|
-
};
|
|
857
|
-
numUserRewardManagers: string;
|
|
858
|
-
additionalFields: {
|
|
859
|
-
id: string;
|
|
860
|
-
size: string;
|
|
861
|
-
};
|
|
862
|
-
} | null)[];
|
|
863
|
-
lastUpdateTimeMs: string;
|
|
864
|
-
};
|
|
865
|
-
borrowsPoolRewardManager: {
|
|
866
|
-
id: string;
|
|
867
|
-
totalShares: string;
|
|
868
|
-
poolRewards: ({
|
|
869
|
-
id: string;
|
|
870
|
-
poolRewardManagerId: string;
|
|
871
|
-
coinType: {
|
|
872
|
-
name: string;
|
|
873
|
-
};
|
|
874
|
-
startTimeMs: string;
|
|
875
|
-
endTimeMs: string;
|
|
876
|
-
totalRewards: string;
|
|
877
|
-
allocatedRewards: {
|
|
878
|
-
value: string;
|
|
879
|
-
};
|
|
880
|
-
cumulativeRewardsPerShare: {
|
|
881
|
-
value: string;
|
|
882
|
-
};
|
|
883
|
-
numUserRewardManagers: string;
|
|
884
|
-
additionalFields: {
|
|
885
|
-
id: string;
|
|
886
|
-
size: string;
|
|
887
|
-
};
|
|
888
|
-
} | null)[];
|
|
889
|
-
lastUpdateTimeMs: string;
|
|
890
|
-
};
|
|
891
|
-
}[];
|
|
892
|
-
obligations: {
|
|
893
|
-
id: string;
|
|
894
|
-
size: string;
|
|
895
|
-
};
|
|
896
|
-
rateLimiter: {
|
|
897
|
-
config: {
|
|
898
|
-
windowDuration: string;
|
|
899
|
-
maxOutflow: string;
|
|
900
|
-
};
|
|
901
|
-
prevQty: {
|
|
902
|
-
value: string;
|
|
903
|
-
};
|
|
904
|
-
windowStart: string;
|
|
905
|
-
curQty: {
|
|
906
|
-
value: string;
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
feeReceiver: string;
|
|
910
|
-
badDebtUsd: {
|
|
911
|
-
value: string;
|
|
912
|
-
};
|
|
913
|
-
badDebtLimitUsd: {
|
|
914
|
-
value: string;
|
|
915
|
-
};
|
|
916
|
-
};
|
|
917
|
-
toJSON(): {
|
|
918
|
-
id: string;
|
|
919
|
-
version: string;
|
|
920
|
-
reserves: {
|
|
921
|
-
id: string;
|
|
922
|
-
lendingMarketId: string;
|
|
923
|
-
arrayIndex: string;
|
|
924
|
-
coinType: {
|
|
925
|
-
name: string;
|
|
926
|
-
};
|
|
927
|
-
config: {
|
|
928
|
-
element: {
|
|
929
|
-
openLtvPct: number;
|
|
930
|
-
closeLtvPct: number;
|
|
931
|
-
maxCloseLtvPct: number;
|
|
932
|
-
borrowWeightBps: string;
|
|
933
|
-
depositLimit: string;
|
|
934
|
-
borrowLimit: string;
|
|
935
|
-
liquidationBonusBps: string;
|
|
936
|
-
maxLiquidationBonusBps: string;
|
|
937
|
-
depositLimitUsd: string;
|
|
938
|
-
borrowLimitUsd: string;
|
|
939
|
-
interestRateUtils: number[];
|
|
940
|
-
interestRateAprs: string[];
|
|
941
|
-
borrowFeeBps: string;
|
|
942
|
-
spreadFeeBps: string;
|
|
943
|
-
protocolLiquidationFeeBps: string;
|
|
944
|
-
isolated: boolean;
|
|
945
|
-
openAttributedBorrowLimitUsd: string;
|
|
946
|
-
closeAttributedBorrowLimitUsd: string;
|
|
947
|
-
additionalFields: {
|
|
948
|
-
id: string;
|
|
949
|
-
size: string;
|
|
950
|
-
};
|
|
951
|
-
} | null;
|
|
952
|
-
};
|
|
953
|
-
mintDecimals: number;
|
|
954
|
-
priceIdentifier: {
|
|
955
|
-
bytes: number[];
|
|
956
|
-
};
|
|
957
|
-
price: {
|
|
958
|
-
value: string;
|
|
959
|
-
};
|
|
960
|
-
smoothedPrice: {
|
|
961
|
-
value: string;
|
|
962
|
-
};
|
|
963
|
-
priceLastUpdateTimestampS: string;
|
|
964
|
-
availableAmount: string;
|
|
965
|
-
ctokenSupply: string;
|
|
966
|
-
borrowedAmount: {
|
|
967
|
-
value: string;
|
|
968
|
-
};
|
|
969
|
-
cumulativeBorrowRate: {
|
|
970
|
-
value: string;
|
|
971
|
-
};
|
|
972
|
-
interestLastUpdateTimestampS: string;
|
|
973
|
-
unclaimedSpreadFees: {
|
|
974
|
-
value: string;
|
|
975
|
-
};
|
|
976
|
-
attributedBorrowValue: {
|
|
977
|
-
value: string;
|
|
978
|
-
};
|
|
979
|
-
depositsPoolRewardManager: {
|
|
980
|
-
id: string;
|
|
981
|
-
totalShares: string;
|
|
982
|
-
poolRewards: ({
|
|
983
|
-
id: string;
|
|
984
|
-
poolRewardManagerId: string;
|
|
985
|
-
coinType: {
|
|
986
|
-
name: string;
|
|
987
|
-
};
|
|
988
|
-
startTimeMs: string;
|
|
989
|
-
endTimeMs: string;
|
|
990
|
-
totalRewards: string;
|
|
991
|
-
allocatedRewards: {
|
|
992
|
-
value: string;
|
|
993
|
-
};
|
|
994
|
-
cumulativeRewardsPerShare: {
|
|
995
|
-
value: string;
|
|
996
|
-
};
|
|
997
|
-
numUserRewardManagers: string;
|
|
998
|
-
additionalFields: {
|
|
999
|
-
id: string;
|
|
1000
|
-
size: string;
|
|
1001
|
-
};
|
|
1002
|
-
} | null)[];
|
|
1003
|
-
lastUpdateTimeMs: string;
|
|
1004
|
-
};
|
|
1005
|
-
borrowsPoolRewardManager: {
|
|
1006
|
-
id: string;
|
|
1007
|
-
totalShares: string;
|
|
1008
|
-
poolRewards: ({
|
|
1009
|
-
id: string;
|
|
1010
|
-
poolRewardManagerId: string;
|
|
1011
|
-
coinType: {
|
|
1012
|
-
name: string;
|
|
1013
|
-
};
|
|
1014
|
-
startTimeMs: string;
|
|
1015
|
-
endTimeMs: string;
|
|
1016
|
-
totalRewards: string;
|
|
1017
|
-
allocatedRewards: {
|
|
1018
|
-
value: string;
|
|
1019
|
-
};
|
|
1020
|
-
cumulativeRewardsPerShare: {
|
|
1021
|
-
value: string;
|
|
1022
|
-
};
|
|
1023
|
-
numUserRewardManagers: string;
|
|
1024
|
-
additionalFields: {
|
|
1025
|
-
id: string;
|
|
1026
|
-
size: string;
|
|
1027
|
-
};
|
|
1028
|
-
} | null)[];
|
|
1029
|
-
lastUpdateTimeMs: string;
|
|
1030
|
-
};
|
|
1031
|
-
}[];
|
|
1032
|
-
obligations: {
|
|
1033
|
-
id: string;
|
|
1034
|
-
size: string;
|
|
1035
|
-
};
|
|
1036
|
-
rateLimiter: {
|
|
1037
|
-
config: {
|
|
1038
|
-
windowDuration: string;
|
|
1039
|
-
maxOutflow: string;
|
|
1040
|
-
};
|
|
1041
|
-
prevQty: {
|
|
1042
|
-
value: string;
|
|
1043
|
-
};
|
|
1044
|
-
windowStart: string;
|
|
1045
|
-
curQty: {
|
|
1046
|
-
value: string;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
feeReceiver: string;
|
|
1050
|
-
badDebtUsd: {
|
|
1051
|
-
value: string;
|
|
1052
|
-
};
|
|
1053
|
-
badDebtLimitUsd: {
|
|
1054
|
-
value: string;
|
|
1055
|
-
};
|
|
1056
|
-
$typeName: string;
|
|
1057
|
-
$typeArgs: [reified.PhantomToTypeStr<P>];
|
|
1058
|
-
};
|
|
112
|
+
toJSONField(): LendingMarketJSONField<P>;
|
|
113
|
+
toJSON(): LendingMarketJSON<P>;
|
|
1059
114
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
1060
115
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
1061
|
-
static
|
|
116
|
+
static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, obj: SuiClientTypes.Object<{
|
|
117
|
+
content: true;
|
|
118
|
+
}>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
119
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArg: P, id: string): Promise<LendingMarket<ToPhantomTypeArgument<P>>>;
|
|
1062
120
|
}
|
|
1063
121
|
export declare function isLendingMarketOwnerCap(type: string): boolean;
|
|
1064
122
|
export interface LendingMarketOwnerCapFields<P extends PhantomTypeArgument> {
|
|
@@ -1066,15 +124,23 @@ export interface LendingMarketOwnerCapFields<P extends PhantomTypeArgument> {
|
|
|
1066
124
|
lendingMarketId: ToField<ID>;
|
|
1067
125
|
}
|
|
1068
126
|
export type LendingMarketOwnerCapReified<P extends PhantomTypeArgument> = Reified<LendingMarketOwnerCap<P>, LendingMarketOwnerCapFields<P>>;
|
|
127
|
+
export type LendingMarketOwnerCapJSONField<P extends PhantomTypeArgument> = {
|
|
128
|
+
id: string;
|
|
129
|
+
lendingMarketId: string;
|
|
130
|
+
};
|
|
131
|
+
export type LendingMarketOwnerCapJSON<P extends PhantomTypeArgument> = {
|
|
132
|
+
$typeName: typeof LendingMarketOwnerCap.$typeName;
|
|
133
|
+
$typeArgs: [PhantomToTypeStr<P>];
|
|
134
|
+
} & LendingMarketOwnerCapJSONField<P>;
|
|
1069
135
|
export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implements StructClass {
|
|
1070
136
|
__StructClass: true;
|
|
1071
|
-
static
|
|
137
|
+
static get $typeName(): `${string}::lending_market::LendingMarketOwnerCap`;
|
|
1072
138
|
static readonly $numTypeParams = 1;
|
|
1073
139
|
static readonly $isPhantom: readonly [true];
|
|
1074
|
-
readonly $typeName:
|
|
1075
|
-
readonly $fullTypeName: `${
|
|
140
|
+
readonly $typeName: typeof LendingMarketOwnerCap.$typeName;
|
|
141
|
+
readonly $fullTypeName: `${string}::lending_market::LendingMarketOwnerCap<${PhantomToTypeStr<P>}>`;
|
|
1076
142
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
1077
|
-
readonly $isPhantom:
|
|
143
|
+
readonly $isPhantom: typeof LendingMarketOwnerCap.$isPhantom;
|
|
1078
144
|
readonly id: ToField<UID>;
|
|
1079
145
|
readonly lendingMarketId: ToField<ID>;
|
|
1080
146
|
private constructor();
|
|
@@ -1082,135 +148,20 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
|
|
|
1082
148
|
static get r(): typeof LendingMarketOwnerCap.reified;
|
|
1083
149
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1084
150
|
static get p(): typeof LendingMarketOwnerCap.phantom;
|
|
1085
|
-
static
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1089
|
-
}, string>;
|
|
1090
|
-
}, string>;
|
|
1091
|
-
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
1092
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1093
|
-
}, string>;
|
|
1094
|
-
}, string>;
|
|
151
|
+
private static instantiateBcs;
|
|
152
|
+
private static cachedBcs;
|
|
153
|
+
static get bcs(): ReturnType<typeof LendingMarketOwnerCap.instantiateBcs>;
|
|
1095
154
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1096
155
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1097
156
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1098
|
-
toJSONField():
|
|
1099
|
-
|
|
1100
|
-
lendingMarketId: string;
|
|
1101
|
-
};
|
|
1102
|
-
toJSON(): {
|
|
1103
|
-
id: string;
|
|
1104
|
-
lendingMarketId: string;
|
|
1105
|
-
$typeName: string;
|
|
1106
|
-
$typeArgs: [reified.PhantomToTypeStr<P>];
|
|
1107
|
-
};
|
|
157
|
+
toJSONField(): LendingMarketOwnerCapJSONField<P>;
|
|
158
|
+
toJSON(): LendingMarketOwnerCapJSON<P>;
|
|
1108
159
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1109
160
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1110
|
-
static
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
lendingMarketId: ToField<"address">;
|
|
1115
|
-
repayReserveId: ToField<"address">;
|
|
1116
|
-
withdrawReserveId: ToField<"address">;
|
|
1117
|
-
obligationId: ToField<"address">;
|
|
1118
|
-
repayCoinType: ToField<TypeName>;
|
|
1119
|
-
withdrawCoinType: ToField<TypeName>;
|
|
1120
|
-
repayAmount: ToField<"u64">;
|
|
1121
|
-
withdrawAmount: ToField<"u64">;
|
|
1122
|
-
protocolFeeAmount: ToField<"u64">;
|
|
1123
|
-
liquidatorBonusAmount: ToField<"u64">;
|
|
1124
|
-
}
|
|
1125
|
-
export type LiquidateEventReified = Reified<LiquidateEvent, LiquidateEventFields>;
|
|
1126
|
-
export declare class LiquidateEvent implements StructClass {
|
|
1127
|
-
__StructClass: true;
|
|
1128
|
-
static readonly $typeName: string;
|
|
1129
|
-
static readonly $numTypeParams = 0;
|
|
1130
|
-
static readonly $isPhantom: readonly [];
|
|
1131
|
-
readonly $typeName: string;
|
|
1132
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lending_market::LiquidateEvent`;
|
|
1133
|
-
readonly $typeArgs: [];
|
|
1134
|
-
readonly $isPhantom: readonly [];
|
|
1135
|
-
readonly lendingMarketId: ToField<"address">;
|
|
1136
|
-
readonly repayReserveId: ToField<"address">;
|
|
1137
|
-
readonly withdrawReserveId: ToField<"address">;
|
|
1138
|
-
readonly obligationId: ToField<"address">;
|
|
1139
|
-
readonly repayCoinType: ToField<TypeName>;
|
|
1140
|
-
readonly withdrawCoinType: ToField<TypeName>;
|
|
1141
|
-
readonly repayAmount: ToField<"u64">;
|
|
1142
|
-
readonly withdrawAmount: ToField<"u64">;
|
|
1143
|
-
readonly protocolFeeAmount: ToField<"u64">;
|
|
1144
|
-
readonly liquidatorBonusAmount: ToField<"u64">;
|
|
1145
|
-
private constructor();
|
|
1146
|
-
static reified(): LiquidateEventReified;
|
|
1147
|
-
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
1148
|
-
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
1149
|
-
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LiquidateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
|
|
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
|
-
length: number;
|
|
1159
|
-
}, string>;
|
|
1160
|
-
}, string>;
|
|
1161
|
-
}, string>;
|
|
1162
|
-
withdraw_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1163
|
-
name: import("@mysten/bcs").BcsStruct<{
|
|
1164
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1165
|
-
length: number;
|
|
1166
|
-
}, string>;
|
|
1167
|
-
}, string>;
|
|
1168
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
1174
|
-
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
1175
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
|
|
1176
|
-
static fromBcs(data: Uint8Array): LiquidateEvent;
|
|
1177
|
-
toJSONField(): {
|
|
1178
|
-
lendingMarketId: string;
|
|
1179
|
-
repayReserveId: string;
|
|
1180
|
-
withdrawReserveId: string;
|
|
1181
|
-
obligationId: string;
|
|
1182
|
-
repayCoinType: {
|
|
1183
|
-
name: string;
|
|
1184
|
-
};
|
|
1185
|
-
withdrawCoinType: {
|
|
1186
|
-
name: string;
|
|
1187
|
-
};
|
|
1188
|
-
repayAmount: string;
|
|
1189
|
-
withdrawAmount: string;
|
|
1190
|
-
protocolFeeAmount: string;
|
|
1191
|
-
liquidatorBonusAmount: string;
|
|
1192
|
-
};
|
|
1193
|
-
toJSON(): {
|
|
1194
|
-
lendingMarketId: string;
|
|
1195
|
-
repayReserveId: string;
|
|
1196
|
-
withdrawReserveId: string;
|
|
1197
|
-
obligationId: string;
|
|
1198
|
-
repayCoinType: {
|
|
1199
|
-
name: string;
|
|
1200
|
-
};
|
|
1201
|
-
withdrawCoinType: {
|
|
1202
|
-
name: string;
|
|
1203
|
-
};
|
|
1204
|
-
repayAmount: string;
|
|
1205
|
-
withdrawAmount: string;
|
|
1206
|
-
protocolFeeAmount: string;
|
|
1207
|
-
liquidatorBonusAmount: string;
|
|
1208
|
-
$typeName: string;
|
|
1209
|
-
$typeArgs: [];
|
|
1210
|
-
};
|
|
1211
|
-
static fromJSONField(field: any): LiquidateEvent;
|
|
1212
|
-
static fromJSON(json: Record<string, any>): LiquidateEvent;
|
|
1213
|
-
static fetch(client: SuiGrpcClient, id: string): Promise<LiquidateEvent>;
|
|
161
|
+
static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, obj: SuiClientTypes.Object<{
|
|
162
|
+
content: true;
|
|
163
|
+
}>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
164
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArg: P, id: string): Promise<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>;
|
|
1214
165
|
}
|
|
1215
166
|
export declare function isObligationOwnerCap(type: string): boolean;
|
|
1216
167
|
export interface ObligationOwnerCapFields<P extends PhantomTypeArgument> {
|
|
@@ -1218,15 +169,23 @@ export interface ObligationOwnerCapFields<P extends PhantomTypeArgument> {
|
|
|
1218
169
|
obligationId: ToField<ID>;
|
|
1219
170
|
}
|
|
1220
171
|
export type ObligationOwnerCapReified<P extends PhantomTypeArgument> = Reified<ObligationOwnerCap<P>, ObligationOwnerCapFields<P>>;
|
|
172
|
+
export type ObligationOwnerCapJSONField<P extends PhantomTypeArgument> = {
|
|
173
|
+
id: string;
|
|
174
|
+
obligationId: string;
|
|
175
|
+
};
|
|
176
|
+
export type ObligationOwnerCapJSON<P extends PhantomTypeArgument> = {
|
|
177
|
+
$typeName: typeof ObligationOwnerCap.$typeName;
|
|
178
|
+
$typeArgs: [PhantomToTypeStr<P>];
|
|
179
|
+
} & ObligationOwnerCapJSONField<P>;
|
|
1221
180
|
export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implements StructClass {
|
|
1222
181
|
__StructClass: true;
|
|
1223
|
-
static
|
|
182
|
+
static get $typeName(): `${string}::lending_market::ObligationOwnerCap`;
|
|
1224
183
|
static readonly $numTypeParams = 1;
|
|
1225
184
|
static readonly $isPhantom: readonly [true];
|
|
1226
|
-
readonly $typeName:
|
|
1227
|
-
readonly $fullTypeName: `${
|
|
185
|
+
readonly $typeName: typeof ObligationOwnerCap.$typeName;
|
|
186
|
+
readonly $fullTypeName: `${string}::lending_market::ObligationOwnerCap<${PhantomToTypeStr<P>}>`;
|
|
1228
187
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
1229
|
-
readonly $isPhantom:
|
|
188
|
+
readonly $isPhantom: typeof ObligationOwnerCap.$isPhantom;
|
|
1230
189
|
readonly id: ToField<UID>;
|
|
1231
190
|
readonly obligationId: ToField<ID>;
|
|
1232
191
|
private constructor();
|
|
@@ -1234,204 +193,940 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
|
|
|
1234
193
|
static get r(): typeof ObligationOwnerCap.reified;
|
|
1235
194
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<ObligationOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1236
195
|
static get p(): typeof ObligationOwnerCap.phantom;
|
|
1237
|
-
static
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1241
|
-
}, string>;
|
|
1242
|
-
}, string>;
|
|
1243
|
-
obligation_id: import("@mysten/bcs").BcsStruct<{
|
|
1244
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1245
|
-
}, string>;
|
|
1246
|
-
}, string>;
|
|
196
|
+
private static instantiateBcs;
|
|
197
|
+
private static cachedBcs;
|
|
198
|
+
static get bcs(): ReturnType<typeof ObligationOwnerCap.instantiateBcs>;
|
|
1247
199
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1248
200
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1249
201
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1250
|
-
toJSONField():
|
|
1251
|
-
|
|
1252
|
-
obligationId: string;
|
|
1253
|
-
};
|
|
1254
|
-
toJSON(): {
|
|
1255
|
-
id: string;
|
|
1256
|
-
obligationId: string;
|
|
1257
|
-
$typeName: string;
|
|
1258
|
-
$typeArgs: [reified.PhantomToTypeStr<P>];
|
|
1259
|
-
};
|
|
202
|
+
toJSONField(): ObligationOwnerCapJSONField<P>;
|
|
203
|
+
toJSON(): ObligationOwnerCapJSON<P>;
|
|
1260
204
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1261
205
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1262
|
-
static
|
|
206
|
+
static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, obj: SuiClientTypes.Object<{
|
|
207
|
+
content: true;
|
|
208
|
+
}>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
209
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArg: P, id: string): Promise<ObligationOwnerCap<ToPhantomTypeArgument<P>>>;
|
|
210
|
+
}
|
|
211
|
+
export declare function isEmergencyPauseCap(type: string): boolean;
|
|
212
|
+
export interface EmergencyPauseCapFields<P extends PhantomTypeArgument> {
|
|
213
|
+
id: ToField<UID>;
|
|
214
|
+
lendingMarketId: ToField<ID>;
|
|
215
|
+
generation: ToField<'u64'>;
|
|
216
|
+
}
|
|
217
|
+
export type EmergencyPauseCapReified<P extends PhantomTypeArgument> = Reified<EmergencyPauseCap<P>, EmergencyPauseCapFields<P>>;
|
|
218
|
+
export type EmergencyPauseCapJSONField<P extends PhantomTypeArgument> = {
|
|
219
|
+
id: string;
|
|
220
|
+
lendingMarketId: string;
|
|
221
|
+
generation: string;
|
|
222
|
+
};
|
|
223
|
+
export type EmergencyPauseCapJSON<P extends PhantomTypeArgument> = {
|
|
224
|
+
$typeName: typeof EmergencyPauseCap.$typeName;
|
|
225
|
+
$typeArgs: [PhantomToTypeStr<P>];
|
|
226
|
+
} & EmergencyPauseCapJSONField<P>;
|
|
227
|
+
/**
|
|
228
|
+
* No `store`: can only be held directly by an address, never wrapped into another
|
|
229
|
+
* object, and can never satisfy a `&LendingMarketOwnerCap<P>` parameter -- so it is
|
|
230
|
+
* compile-time incapable of minting an `ObligationOwnerCap` or touching reserve
|
|
231
|
+
* config/price feeds. Revocation is minting the next generation via `new_pause_cap`,
|
|
232
|
+
* no package upgrade needed.
|
|
233
|
+
*/
|
|
234
|
+
export declare class EmergencyPauseCap<P extends PhantomTypeArgument> implements StructClass {
|
|
235
|
+
__StructClass: true;
|
|
236
|
+
static get $typeName(): `${string}::lending_market::EmergencyPauseCap`;
|
|
237
|
+
static readonly $numTypeParams = 1;
|
|
238
|
+
static readonly $isPhantom: readonly [true];
|
|
239
|
+
readonly $typeName: typeof EmergencyPauseCap.$typeName;
|
|
240
|
+
readonly $fullTypeName: `${string}::lending_market::EmergencyPauseCap<${PhantomToTypeStr<P>}>`;
|
|
241
|
+
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
242
|
+
readonly $isPhantom: typeof EmergencyPauseCap.$isPhantom;
|
|
243
|
+
readonly id: ToField<UID>;
|
|
244
|
+
readonly lendingMarketId: ToField<ID>;
|
|
245
|
+
readonly generation: ToField<'u64'>;
|
|
246
|
+
private constructor();
|
|
247
|
+
static reified<P extends PhantomReified<PhantomTypeArgument>>(P: P): EmergencyPauseCapReified<ToPhantomTypeArgument<P>>;
|
|
248
|
+
static get r(): typeof EmergencyPauseCap.reified;
|
|
249
|
+
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<EmergencyPauseCap<ToPhantomTypeArgument<P>>>>;
|
|
250
|
+
static get p(): typeof EmergencyPauseCap.phantom;
|
|
251
|
+
private static instantiateBcs;
|
|
252
|
+
private static cachedBcs;
|
|
253
|
+
static get bcs(): ReturnType<typeof EmergencyPauseCap.instantiateBcs>;
|
|
254
|
+
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
255
|
+
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
256
|
+
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
257
|
+
toJSONField(): EmergencyPauseCapJSONField<P>;
|
|
258
|
+
toJSON(): EmergencyPauseCapJSON<P>;
|
|
259
|
+
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
260
|
+
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
261
|
+
static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, obj: SuiClientTypes.Object<{
|
|
262
|
+
content: true;
|
|
263
|
+
}>): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
264
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArg: P, id: string): Promise<EmergencyPauseCap<ToPhantomTypeArgument<P>>>;
|
|
265
|
+
}
|
|
266
|
+
export declare function isFeeReceiversKey(type: string): boolean;
|
|
267
|
+
export interface FeeReceiversKeyFields {
|
|
268
|
+
dummyField: ToField<'bool'>;
|
|
269
|
+
}
|
|
270
|
+
export type FeeReceiversKeyReified = Reified<FeeReceiversKey, FeeReceiversKeyFields>;
|
|
271
|
+
export type FeeReceiversKeyJSONField = {
|
|
272
|
+
dummyField: boolean;
|
|
273
|
+
};
|
|
274
|
+
export type FeeReceiversKeyJSON = {
|
|
275
|
+
$typeName: typeof FeeReceiversKey.$typeName;
|
|
276
|
+
$typeArgs: [];
|
|
277
|
+
} & FeeReceiversKeyJSONField;
|
|
278
|
+
export declare class FeeReceiversKey implements StructClass {
|
|
279
|
+
__StructClass: true;
|
|
280
|
+
static get $typeName(): `${string}::lending_market::FeeReceiversKey`;
|
|
281
|
+
static readonly $numTypeParams = 0;
|
|
282
|
+
static readonly $isPhantom: readonly [];
|
|
283
|
+
readonly $typeName: typeof FeeReceiversKey.$typeName;
|
|
284
|
+
readonly $fullTypeName: `${string}::lending_market::FeeReceiversKey`;
|
|
285
|
+
readonly $typeArgs: [];
|
|
286
|
+
readonly $isPhantom: typeof FeeReceiversKey.$isPhantom;
|
|
287
|
+
readonly dummyField: ToField<'bool'>;
|
|
288
|
+
private constructor();
|
|
289
|
+
static reified(): FeeReceiversKeyReified;
|
|
290
|
+
static get r(): FeeReceiversKeyReified;
|
|
291
|
+
static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
292
|
+
static get p(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
293
|
+
private static instantiateBcs;
|
|
294
|
+
private static cachedBcs;
|
|
295
|
+
static get bcs(): ReturnType<typeof FeeReceiversKey.instantiateBcs>;
|
|
296
|
+
static fromFields(fields: Record<string, any>): FeeReceiversKey;
|
|
297
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceiversKey;
|
|
298
|
+
static fromBcs(data: Uint8Array): FeeReceiversKey;
|
|
299
|
+
toJSONField(): FeeReceiversKeyJSONField;
|
|
300
|
+
toJSON(): FeeReceiversKeyJSON;
|
|
301
|
+
static fromJSONField(field: any): FeeReceiversKey;
|
|
302
|
+
static fromJSON(json: Record<string, any>): FeeReceiversKey;
|
|
303
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
304
|
+
content: true;
|
|
305
|
+
}>): FeeReceiversKey;
|
|
306
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<FeeReceiversKey>;
|
|
307
|
+
}
|
|
308
|
+
export declare function isPauseKey(type: string): boolean;
|
|
309
|
+
export interface PauseKeyFields {
|
|
310
|
+
dummyField: ToField<'bool'>;
|
|
311
|
+
}
|
|
312
|
+
export type PauseKeyReified = Reified<PauseKey, PauseKeyFields>;
|
|
313
|
+
export type PauseKeyJSONField = {
|
|
314
|
+
dummyField: boolean;
|
|
315
|
+
};
|
|
316
|
+
export type PauseKeyJSON = {
|
|
317
|
+
$typeName: typeof PauseKey.$typeName;
|
|
318
|
+
$typeArgs: [];
|
|
319
|
+
} & PauseKeyJSONField;
|
|
320
|
+
export declare class PauseKey implements StructClass {
|
|
321
|
+
__StructClass: true;
|
|
322
|
+
static get $typeName(): `${string}::lending_market::PauseKey`;
|
|
323
|
+
static readonly $numTypeParams = 0;
|
|
324
|
+
static readonly $isPhantom: readonly [];
|
|
325
|
+
readonly $typeName: typeof PauseKey.$typeName;
|
|
326
|
+
readonly $fullTypeName: `${string}::lending_market::PauseKey`;
|
|
327
|
+
readonly $typeArgs: [];
|
|
328
|
+
readonly $isPhantom: typeof PauseKey.$isPhantom;
|
|
329
|
+
readonly dummyField: ToField<'bool'>;
|
|
330
|
+
private constructor();
|
|
331
|
+
static reified(): PauseKeyReified;
|
|
332
|
+
static get r(): PauseKeyReified;
|
|
333
|
+
static phantom(): PhantomReified<ToTypeStr<PauseKey>>;
|
|
334
|
+
static get p(): PhantomReified<ToTypeStr<PauseKey>>;
|
|
335
|
+
private static instantiateBcs;
|
|
336
|
+
private static cachedBcs;
|
|
337
|
+
static get bcs(): ReturnType<typeof PauseKey.instantiateBcs>;
|
|
338
|
+
static fromFields(fields: Record<string, any>): PauseKey;
|
|
339
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): PauseKey;
|
|
340
|
+
static fromBcs(data: Uint8Array): PauseKey;
|
|
341
|
+
toJSONField(): PauseKeyJSONField;
|
|
342
|
+
toJSON(): PauseKeyJSON;
|
|
343
|
+
static fromJSONField(field: any): PauseKey;
|
|
344
|
+
static fromJSON(json: Record<string, any>): PauseKey;
|
|
345
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
346
|
+
content: true;
|
|
347
|
+
}>): PauseKey;
|
|
348
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<PauseKey>;
|
|
349
|
+
}
|
|
350
|
+
export declare function isPauseCapGenerationKey(type: string): boolean;
|
|
351
|
+
export interface PauseCapGenerationKeyFields {
|
|
352
|
+
dummyField: ToField<'bool'>;
|
|
353
|
+
}
|
|
354
|
+
export type PauseCapGenerationKeyReified = Reified<PauseCapGenerationKey, PauseCapGenerationKeyFields>;
|
|
355
|
+
export type PauseCapGenerationKeyJSONField = {
|
|
356
|
+
dummyField: boolean;
|
|
357
|
+
};
|
|
358
|
+
export type PauseCapGenerationKeyJSON = {
|
|
359
|
+
$typeName: typeof PauseCapGenerationKey.$typeName;
|
|
360
|
+
$typeArgs: [];
|
|
361
|
+
} & PauseCapGenerationKeyJSONField;
|
|
362
|
+
export declare class PauseCapGenerationKey implements StructClass {
|
|
363
|
+
__StructClass: true;
|
|
364
|
+
static get $typeName(): `${string}::lending_market::PauseCapGenerationKey`;
|
|
365
|
+
static readonly $numTypeParams = 0;
|
|
366
|
+
static readonly $isPhantom: readonly [];
|
|
367
|
+
readonly $typeName: typeof PauseCapGenerationKey.$typeName;
|
|
368
|
+
readonly $fullTypeName: `${string}::lending_market::PauseCapGenerationKey`;
|
|
369
|
+
readonly $typeArgs: [];
|
|
370
|
+
readonly $isPhantom: typeof PauseCapGenerationKey.$isPhantom;
|
|
371
|
+
readonly dummyField: ToField<'bool'>;
|
|
372
|
+
private constructor();
|
|
373
|
+
static reified(): PauseCapGenerationKeyReified;
|
|
374
|
+
static get r(): PauseCapGenerationKeyReified;
|
|
375
|
+
static phantom(): PhantomReified<ToTypeStr<PauseCapGenerationKey>>;
|
|
376
|
+
static get p(): PhantomReified<ToTypeStr<PauseCapGenerationKey>>;
|
|
377
|
+
private static instantiateBcs;
|
|
378
|
+
private static cachedBcs;
|
|
379
|
+
static get bcs(): ReturnType<typeof PauseCapGenerationKey.instantiateBcs>;
|
|
380
|
+
static fromFields(fields: Record<string, any>): PauseCapGenerationKey;
|
|
381
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): PauseCapGenerationKey;
|
|
382
|
+
static fromBcs(data: Uint8Array): PauseCapGenerationKey;
|
|
383
|
+
toJSONField(): PauseCapGenerationKeyJSONField;
|
|
384
|
+
toJSON(): PauseCapGenerationKeyJSON;
|
|
385
|
+
static fromJSONField(field: any): PauseCapGenerationKey;
|
|
386
|
+
static fromJSON(json: Record<string, any>): PauseCapGenerationKey;
|
|
387
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
388
|
+
content: true;
|
|
389
|
+
}>): PauseCapGenerationKey;
|
|
390
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<PauseCapGenerationKey>;
|
|
391
|
+
}
|
|
392
|
+
export declare function isFeeReceivers(type: string): boolean;
|
|
393
|
+
export interface FeeReceiversFields {
|
|
394
|
+
receivers: ToField<Vector<'address'>>;
|
|
395
|
+
weights: ToField<Vector<'u64'>>;
|
|
396
|
+
totalWeight: ToField<'u64'>;
|
|
397
|
+
}
|
|
398
|
+
export type FeeReceiversReified = Reified<FeeReceivers, FeeReceiversFields>;
|
|
399
|
+
export type FeeReceiversJSONField = {
|
|
400
|
+
receivers: string[];
|
|
401
|
+
weights: string[];
|
|
402
|
+
totalWeight: string;
|
|
403
|
+
};
|
|
404
|
+
export type FeeReceiversJSON = {
|
|
405
|
+
$typeName: typeof FeeReceivers.$typeName;
|
|
406
|
+
$typeArgs: [];
|
|
407
|
+
} & FeeReceiversJSONField;
|
|
408
|
+
export declare class FeeReceivers implements StructClass {
|
|
409
|
+
__StructClass: true;
|
|
410
|
+
static get $typeName(): `${string}::lending_market::FeeReceivers`;
|
|
411
|
+
static readonly $numTypeParams = 0;
|
|
412
|
+
static readonly $isPhantom: readonly [];
|
|
413
|
+
readonly $typeName: typeof FeeReceivers.$typeName;
|
|
414
|
+
readonly $fullTypeName: `${string}::lending_market::FeeReceivers`;
|
|
415
|
+
readonly $typeArgs: [];
|
|
416
|
+
readonly $isPhantom: typeof FeeReceivers.$isPhantom;
|
|
417
|
+
readonly receivers: ToField<Vector<'address'>>;
|
|
418
|
+
readonly weights: ToField<Vector<'u64'>>;
|
|
419
|
+
readonly totalWeight: ToField<'u64'>;
|
|
420
|
+
private constructor();
|
|
421
|
+
static reified(): FeeReceiversReified;
|
|
422
|
+
static get r(): FeeReceiversReified;
|
|
423
|
+
static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
424
|
+
static get p(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
425
|
+
private static instantiateBcs;
|
|
426
|
+
private static cachedBcs;
|
|
427
|
+
static get bcs(): ReturnType<typeof FeeReceivers.instantiateBcs>;
|
|
428
|
+
static fromFields(fields: Record<string, any>): FeeReceivers;
|
|
429
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceivers;
|
|
430
|
+
static fromBcs(data: Uint8Array): FeeReceivers;
|
|
431
|
+
toJSONField(): FeeReceiversJSONField;
|
|
432
|
+
toJSON(): FeeReceiversJSON;
|
|
433
|
+
static fromJSONField(field: any): FeeReceivers;
|
|
434
|
+
static fromJSON(json: Record<string, any>): FeeReceivers;
|
|
435
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
436
|
+
content: true;
|
|
437
|
+
}>): FeeReceivers;
|
|
438
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<FeeReceivers>;
|
|
1263
439
|
}
|
|
1264
440
|
export declare function isRateLimiterExemption(type: string): boolean;
|
|
1265
441
|
export interface RateLimiterExemptionFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
1266
|
-
amount: ToField<
|
|
442
|
+
amount: ToField<'u64'>;
|
|
1267
443
|
}
|
|
1268
444
|
export type RateLimiterExemptionReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<RateLimiterExemption<P, T>, RateLimiterExemptionFields<P, T>>;
|
|
445
|
+
export type RateLimiterExemptionJSONField<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
|
|
446
|
+
amount: string;
|
|
447
|
+
};
|
|
448
|
+
export type RateLimiterExemptionJSON<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
|
|
449
|
+
$typeName: typeof RateLimiterExemption.$typeName;
|
|
450
|
+
$typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
|
|
451
|
+
} & RateLimiterExemptionJSONField<P, T>;
|
|
1269
452
|
export declare class RateLimiterExemption<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
|
|
1270
453
|
__StructClass: true;
|
|
1271
|
-
static
|
|
454
|
+
static get $typeName(): `${string}::lending_market::RateLimiterExemption`;
|
|
1272
455
|
static readonly $numTypeParams = 2;
|
|
1273
456
|
static readonly $isPhantom: readonly [true, true];
|
|
1274
|
-
readonly $typeName:
|
|
1275
|
-
readonly $fullTypeName: `${
|
|
457
|
+
readonly $typeName: typeof RateLimiterExemption.$typeName;
|
|
458
|
+
readonly $fullTypeName: `${string}::lending_market::RateLimiterExemption<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
|
|
1276
459
|
readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
|
|
1277
|
-
readonly $isPhantom:
|
|
1278
|
-
readonly amount: ToField<
|
|
460
|
+
readonly $isPhantom: typeof RateLimiterExemption.$isPhantom;
|
|
461
|
+
readonly amount: ToField<'u64'>;
|
|
1279
462
|
private constructor();
|
|
1280
463
|
static reified<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): RateLimiterExemptionReified<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1281
464
|
static get r(): typeof RateLimiterExemption.reified;
|
|
1282
465
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
1283
466
|
static get p(): typeof RateLimiterExemption.phantom;
|
|
1284
|
-
static
|
|
1285
|
-
|
|
1286
|
-
|
|
467
|
+
private static instantiateBcs;
|
|
468
|
+
private static cachedBcs;
|
|
469
|
+
static get bcs(): ReturnType<typeof RateLimiterExemption.instantiateBcs>;
|
|
1287
470
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1288
471
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1289
472
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1290
|
-
toJSONField():
|
|
1291
|
-
|
|
1292
|
-
};
|
|
1293
|
-
toJSON(): {
|
|
1294
|
-
amount: string;
|
|
1295
|
-
$typeName: string;
|
|
1296
|
-
$typeArgs: [reified.PhantomToTypeStr<P>, reified.PhantomToTypeStr<T>];
|
|
1297
|
-
};
|
|
473
|
+
toJSONField(): RateLimiterExemptionJSONField<P, T>;
|
|
474
|
+
toJSON(): RateLimiterExemptionJSON<P, T>;
|
|
1298
475
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1299
476
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1300
|
-
static
|
|
477
|
+
static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], obj: SuiClientTypes.Object<{
|
|
478
|
+
content: true;
|
|
479
|
+
}>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
480
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArgs: [P, T], id: string): Promise<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
1301
481
|
}
|
|
1302
|
-
export declare function
|
|
1303
|
-
export interface
|
|
1304
|
-
lendingMarketId: ToField<
|
|
482
|
+
export declare function isMintEvent(type: string): boolean;
|
|
483
|
+
export interface MintEventFields {
|
|
484
|
+
lendingMarketId: ToField<'address'>;
|
|
1305
485
|
coinType: ToField<TypeName>;
|
|
1306
|
-
reserveId: ToField<
|
|
1307
|
-
|
|
1308
|
-
|
|
486
|
+
reserveId: ToField<'address'>;
|
|
487
|
+
liquidityAmount: ToField<'u64'>;
|
|
488
|
+
ctokenAmount: ToField<'u64'>;
|
|
1309
489
|
}
|
|
1310
|
-
export type
|
|
1311
|
-
export
|
|
490
|
+
export type MintEventReified = Reified<MintEvent, MintEventFields>;
|
|
491
|
+
export type MintEventJSONField = {
|
|
492
|
+
lendingMarketId: string;
|
|
493
|
+
coinType: string;
|
|
494
|
+
reserveId: string;
|
|
495
|
+
liquidityAmount: string;
|
|
496
|
+
ctokenAmount: string;
|
|
497
|
+
};
|
|
498
|
+
export type MintEventJSON = {
|
|
499
|
+
$typeName: typeof MintEvent.$typeName;
|
|
500
|
+
$typeArgs: [];
|
|
501
|
+
} & MintEventJSONField;
|
|
502
|
+
export declare class MintEvent implements StructClass {
|
|
1312
503
|
__StructClass: true;
|
|
1313
|
-
static
|
|
504
|
+
static get $typeName(): `${string}::lending_market::MintEvent`;
|
|
1314
505
|
static readonly $numTypeParams = 0;
|
|
1315
506
|
static readonly $isPhantom: readonly [];
|
|
1316
|
-
readonly $typeName:
|
|
1317
|
-
readonly $fullTypeName: `${
|
|
507
|
+
readonly $typeName: typeof MintEvent.$typeName;
|
|
508
|
+
readonly $fullTypeName: `${string}::lending_market::MintEvent`;
|
|
1318
509
|
readonly $typeArgs: [];
|
|
1319
|
-
readonly $isPhantom:
|
|
1320
|
-
readonly lendingMarketId: ToField<
|
|
510
|
+
readonly $isPhantom: typeof MintEvent.$isPhantom;
|
|
511
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
1321
512
|
readonly coinType: ToField<TypeName>;
|
|
1322
|
-
readonly reserveId: ToField<
|
|
1323
|
-
readonly
|
|
1324
|
-
readonly
|
|
513
|
+
readonly reserveId: ToField<'address'>;
|
|
514
|
+
readonly liquidityAmount: ToField<'u64'>;
|
|
515
|
+
readonly ctokenAmount: ToField<'u64'>;
|
|
1325
516
|
private constructor();
|
|
1326
|
-
static reified():
|
|
1327
|
-
static get r():
|
|
1328
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1329
|
-
static get p():
|
|
1330
|
-
static
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
}
|
|
1343
|
-
static
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
static
|
|
1368
|
-
static
|
|
517
|
+
static reified(): MintEventReified;
|
|
518
|
+
static get r(): MintEventReified;
|
|
519
|
+
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
520
|
+
static get p(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
521
|
+
private static instantiateBcs;
|
|
522
|
+
private static cachedBcs;
|
|
523
|
+
static get bcs(): ReturnType<typeof MintEvent.instantiateBcs>;
|
|
524
|
+
static fromFields(fields: Record<string, any>): MintEvent;
|
|
525
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
526
|
+
static fromBcs(data: Uint8Array): MintEvent;
|
|
527
|
+
toJSONField(): MintEventJSONField;
|
|
528
|
+
toJSON(): MintEventJSON;
|
|
529
|
+
static fromJSONField(field: any): MintEvent;
|
|
530
|
+
static fromJSON(json: Record<string, any>): MintEvent;
|
|
531
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
532
|
+
content: true;
|
|
533
|
+
}>): MintEvent;
|
|
534
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<MintEvent>;
|
|
535
|
+
}
|
|
536
|
+
export declare function isRedeemEvent(type: string): boolean;
|
|
537
|
+
export interface RedeemEventFields {
|
|
538
|
+
lendingMarketId: ToField<'address'>;
|
|
539
|
+
coinType: ToField<TypeName>;
|
|
540
|
+
reserveId: ToField<'address'>;
|
|
541
|
+
ctokenAmount: ToField<'u64'>;
|
|
542
|
+
liquidityAmount: ToField<'u64'>;
|
|
543
|
+
}
|
|
544
|
+
export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
|
|
545
|
+
export type RedeemEventJSONField = {
|
|
546
|
+
lendingMarketId: string;
|
|
547
|
+
coinType: string;
|
|
548
|
+
reserveId: string;
|
|
549
|
+
ctokenAmount: string;
|
|
550
|
+
liquidityAmount: string;
|
|
551
|
+
};
|
|
552
|
+
export type RedeemEventJSON = {
|
|
553
|
+
$typeName: typeof RedeemEvent.$typeName;
|
|
554
|
+
$typeArgs: [];
|
|
555
|
+
} & RedeemEventJSONField;
|
|
556
|
+
export declare class RedeemEvent implements StructClass {
|
|
557
|
+
__StructClass: true;
|
|
558
|
+
static get $typeName(): `${string}::lending_market::RedeemEvent`;
|
|
559
|
+
static readonly $numTypeParams = 0;
|
|
560
|
+
static readonly $isPhantom: readonly [];
|
|
561
|
+
readonly $typeName: typeof RedeemEvent.$typeName;
|
|
562
|
+
readonly $fullTypeName: `${string}::lending_market::RedeemEvent`;
|
|
563
|
+
readonly $typeArgs: [];
|
|
564
|
+
readonly $isPhantom: typeof RedeemEvent.$isPhantom;
|
|
565
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
566
|
+
readonly coinType: ToField<TypeName>;
|
|
567
|
+
readonly reserveId: ToField<'address'>;
|
|
568
|
+
readonly ctokenAmount: ToField<'u64'>;
|
|
569
|
+
readonly liquidityAmount: ToField<'u64'>;
|
|
570
|
+
private constructor();
|
|
571
|
+
static reified(): RedeemEventReified;
|
|
572
|
+
static get r(): RedeemEventReified;
|
|
573
|
+
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
574
|
+
static get p(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
575
|
+
private static instantiateBcs;
|
|
576
|
+
private static cachedBcs;
|
|
577
|
+
static get bcs(): ReturnType<typeof RedeemEvent.instantiateBcs>;
|
|
578
|
+
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
579
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
580
|
+
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
581
|
+
toJSONField(): RedeemEventJSONField;
|
|
582
|
+
toJSON(): RedeemEventJSON;
|
|
583
|
+
static fromJSONField(field: any): RedeemEvent;
|
|
584
|
+
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
585
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
586
|
+
content: true;
|
|
587
|
+
}>): RedeemEvent;
|
|
588
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<RedeemEvent>;
|
|
589
|
+
}
|
|
590
|
+
export declare function isDepositEvent(type: string): boolean;
|
|
591
|
+
export interface DepositEventFields {
|
|
592
|
+
lendingMarketId: ToField<'address'>;
|
|
593
|
+
coinType: ToField<TypeName>;
|
|
594
|
+
reserveId: ToField<'address'>;
|
|
595
|
+
obligationId: ToField<'address'>;
|
|
596
|
+
ctokenAmount: ToField<'u64'>;
|
|
597
|
+
}
|
|
598
|
+
export type DepositEventReified = Reified<DepositEvent, DepositEventFields>;
|
|
599
|
+
export type DepositEventJSONField = {
|
|
600
|
+
lendingMarketId: string;
|
|
601
|
+
coinType: string;
|
|
602
|
+
reserveId: string;
|
|
603
|
+
obligationId: string;
|
|
604
|
+
ctokenAmount: string;
|
|
605
|
+
};
|
|
606
|
+
export type DepositEventJSON = {
|
|
607
|
+
$typeName: typeof DepositEvent.$typeName;
|
|
608
|
+
$typeArgs: [];
|
|
609
|
+
} & DepositEventJSONField;
|
|
610
|
+
export declare class DepositEvent implements StructClass {
|
|
611
|
+
__StructClass: true;
|
|
612
|
+
static get $typeName(): `${string}::lending_market::DepositEvent`;
|
|
613
|
+
static readonly $numTypeParams = 0;
|
|
614
|
+
static readonly $isPhantom: readonly [];
|
|
615
|
+
readonly $typeName: typeof DepositEvent.$typeName;
|
|
616
|
+
readonly $fullTypeName: `${string}::lending_market::DepositEvent`;
|
|
617
|
+
readonly $typeArgs: [];
|
|
618
|
+
readonly $isPhantom: typeof DepositEvent.$isPhantom;
|
|
619
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
620
|
+
readonly coinType: ToField<TypeName>;
|
|
621
|
+
readonly reserveId: ToField<'address'>;
|
|
622
|
+
readonly obligationId: ToField<'address'>;
|
|
623
|
+
readonly ctokenAmount: ToField<'u64'>;
|
|
624
|
+
private constructor();
|
|
625
|
+
static reified(): DepositEventReified;
|
|
626
|
+
static get r(): DepositEventReified;
|
|
627
|
+
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
628
|
+
static get p(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
629
|
+
private static instantiateBcs;
|
|
630
|
+
private static cachedBcs;
|
|
631
|
+
static get bcs(): ReturnType<typeof DepositEvent.instantiateBcs>;
|
|
632
|
+
static fromFields(fields: Record<string, any>): DepositEvent;
|
|
633
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DepositEvent;
|
|
634
|
+
static fromBcs(data: Uint8Array): DepositEvent;
|
|
635
|
+
toJSONField(): DepositEventJSONField;
|
|
636
|
+
toJSON(): DepositEventJSON;
|
|
637
|
+
static fromJSONField(field: any): DepositEvent;
|
|
638
|
+
static fromJSON(json: Record<string, any>): DepositEvent;
|
|
639
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
640
|
+
content: true;
|
|
641
|
+
}>): DepositEvent;
|
|
642
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<DepositEvent>;
|
|
1369
643
|
}
|
|
1370
644
|
export declare function isWithdrawEvent(type: string): boolean;
|
|
1371
645
|
export interface WithdrawEventFields {
|
|
1372
|
-
lendingMarketId: ToField<
|
|
646
|
+
lendingMarketId: ToField<'address'>;
|
|
1373
647
|
coinType: ToField<TypeName>;
|
|
1374
|
-
reserveId: ToField<
|
|
1375
|
-
obligationId: ToField<
|
|
1376
|
-
ctokenAmount: ToField<
|
|
648
|
+
reserveId: ToField<'address'>;
|
|
649
|
+
obligationId: ToField<'address'>;
|
|
650
|
+
ctokenAmount: ToField<'u64'>;
|
|
1377
651
|
}
|
|
1378
652
|
export type WithdrawEventReified = Reified<WithdrawEvent, WithdrawEventFields>;
|
|
653
|
+
export type WithdrawEventJSONField = {
|
|
654
|
+
lendingMarketId: string;
|
|
655
|
+
coinType: string;
|
|
656
|
+
reserveId: string;
|
|
657
|
+
obligationId: string;
|
|
658
|
+
ctokenAmount: string;
|
|
659
|
+
};
|
|
660
|
+
export type WithdrawEventJSON = {
|
|
661
|
+
$typeName: typeof WithdrawEvent.$typeName;
|
|
662
|
+
$typeArgs: [];
|
|
663
|
+
} & WithdrawEventJSONField;
|
|
1379
664
|
export declare class WithdrawEvent implements StructClass {
|
|
1380
665
|
__StructClass: true;
|
|
1381
|
-
static
|
|
666
|
+
static get $typeName(): `${string}::lending_market::WithdrawEvent`;
|
|
1382
667
|
static readonly $numTypeParams = 0;
|
|
1383
668
|
static readonly $isPhantom: readonly [];
|
|
1384
|
-
readonly $typeName:
|
|
1385
|
-
readonly $fullTypeName: `${
|
|
669
|
+
readonly $typeName: typeof WithdrawEvent.$typeName;
|
|
670
|
+
readonly $fullTypeName: `${string}::lending_market::WithdrawEvent`;
|
|
1386
671
|
readonly $typeArgs: [];
|
|
1387
|
-
readonly $isPhantom:
|
|
1388
|
-
readonly lendingMarketId: ToField<
|
|
672
|
+
readonly $isPhantom: typeof WithdrawEvent.$isPhantom;
|
|
673
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
1389
674
|
readonly coinType: ToField<TypeName>;
|
|
1390
|
-
readonly reserveId: ToField<
|
|
1391
|
-
readonly obligationId: ToField<
|
|
1392
|
-
readonly ctokenAmount: ToField<
|
|
675
|
+
readonly reserveId: ToField<'address'>;
|
|
676
|
+
readonly obligationId: ToField<'address'>;
|
|
677
|
+
readonly ctokenAmount: ToField<'u64'>;
|
|
1393
678
|
private constructor();
|
|
1394
679
|
static reified(): WithdrawEventReified;
|
|
1395
|
-
static get r():
|
|
680
|
+
static get r(): WithdrawEventReified;
|
|
1396
681
|
static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
1397
|
-
static get p():
|
|
1398
|
-
static
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
name: import("@mysten/bcs").BcsStruct<{
|
|
1402
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1403
|
-
length: number;
|
|
1404
|
-
}, string>;
|
|
1405
|
-
}, string>;
|
|
1406
|
-
}, string>;
|
|
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
|
-
}, string>;
|
|
682
|
+
static get p(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
683
|
+
private static instantiateBcs;
|
|
684
|
+
private static cachedBcs;
|
|
685
|
+
static get bcs(): ReturnType<typeof WithdrawEvent.instantiateBcs>;
|
|
1411
686
|
static fromFields(fields: Record<string, any>): WithdrawEvent;
|
|
1412
687
|
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawEvent;
|
|
1413
688
|
static fromBcs(data: Uint8Array): WithdrawEvent;
|
|
1414
|
-
toJSONField():
|
|
1415
|
-
|
|
1416
|
-
coinType: {
|
|
1417
|
-
name: string;
|
|
1418
|
-
};
|
|
1419
|
-
reserveId: string;
|
|
1420
|
-
obligationId: string;
|
|
1421
|
-
ctokenAmount: string;
|
|
1422
|
-
};
|
|
1423
|
-
toJSON(): {
|
|
1424
|
-
lendingMarketId: string;
|
|
1425
|
-
coinType: {
|
|
1426
|
-
name: string;
|
|
1427
|
-
};
|
|
1428
|
-
reserveId: string;
|
|
1429
|
-
obligationId: string;
|
|
1430
|
-
ctokenAmount: string;
|
|
1431
|
-
$typeName: string;
|
|
1432
|
-
$typeArgs: [];
|
|
1433
|
-
};
|
|
689
|
+
toJSONField(): WithdrawEventJSONField;
|
|
690
|
+
toJSON(): WithdrawEventJSON;
|
|
1434
691
|
static fromJSONField(field: any): WithdrawEvent;
|
|
1435
692
|
static fromJSON(json: Record<string, any>): WithdrawEvent;
|
|
1436
|
-
static
|
|
693
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
694
|
+
content: true;
|
|
695
|
+
}>): WithdrawEvent;
|
|
696
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<WithdrawEvent>;
|
|
697
|
+
}
|
|
698
|
+
export declare function isBorrowEvent(type: string): boolean;
|
|
699
|
+
export interface BorrowEventFields {
|
|
700
|
+
lendingMarketId: ToField<'address'>;
|
|
701
|
+
coinType: ToField<TypeName>;
|
|
702
|
+
reserveId: ToField<'address'>;
|
|
703
|
+
obligationId: ToField<'address'>;
|
|
704
|
+
liquidityAmount: ToField<'u64'>;
|
|
705
|
+
originationFeeAmount: ToField<'u64'>;
|
|
706
|
+
}
|
|
707
|
+
export type BorrowEventReified = Reified<BorrowEvent, BorrowEventFields>;
|
|
708
|
+
export type BorrowEventJSONField = {
|
|
709
|
+
lendingMarketId: string;
|
|
710
|
+
coinType: string;
|
|
711
|
+
reserveId: string;
|
|
712
|
+
obligationId: string;
|
|
713
|
+
liquidityAmount: string;
|
|
714
|
+
originationFeeAmount: string;
|
|
715
|
+
};
|
|
716
|
+
export type BorrowEventJSON = {
|
|
717
|
+
$typeName: typeof BorrowEvent.$typeName;
|
|
718
|
+
$typeArgs: [];
|
|
719
|
+
} & BorrowEventJSONField;
|
|
720
|
+
export declare class BorrowEvent implements StructClass {
|
|
721
|
+
__StructClass: true;
|
|
722
|
+
static get $typeName(): `${string}::lending_market::BorrowEvent`;
|
|
723
|
+
static readonly $numTypeParams = 0;
|
|
724
|
+
static readonly $isPhantom: readonly [];
|
|
725
|
+
readonly $typeName: typeof BorrowEvent.$typeName;
|
|
726
|
+
readonly $fullTypeName: `${string}::lending_market::BorrowEvent`;
|
|
727
|
+
readonly $typeArgs: [];
|
|
728
|
+
readonly $isPhantom: typeof BorrowEvent.$isPhantom;
|
|
729
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
730
|
+
readonly coinType: ToField<TypeName>;
|
|
731
|
+
readonly reserveId: ToField<'address'>;
|
|
732
|
+
readonly obligationId: ToField<'address'>;
|
|
733
|
+
readonly liquidityAmount: ToField<'u64'>;
|
|
734
|
+
readonly originationFeeAmount: ToField<'u64'>;
|
|
735
|
+
private constructor();
|
|
736
|
+
static reified(): BorrowEventReified;
|
|
737
|
+
static get r(): BorrowEventReified;
|
|
738
|
+
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
739
|
+
static get p(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
740
|
+
private static instantiateBcs;
|
|
741
|
+
private static cachedBcs;
|
|
742
|
+
static get bcs(): ReturnType<typeof BorrowEvent.instantiateBcs>;
|
|
743
|
+
static fromFields(fields: Record<string, any>): BorrowEvent;
|
|
744
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): BorrowEvent;
|
|
745
|
+
static fromBcs(data: Uint8Array): BorrowEvent;
|
|
746
|
+
toJSONField(): BorrowEventJSONField;
|
|
747
|
+
toJSON(): BorrowEventJSON;
|
|
748
|
+
static fromJSONField(field: any): BorrowEvent;
|
|
749
|
+
static fromJSON(json: Record<string, any>): BorrowEvent;
|
|
750
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
751
|
+
content: true;
|
|
752
|
+
}>): BorrowEvent;
|
|
753
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<BorrowEvent>;
|
|
754
|
+
}
|
|
755
|
+
export declare function isRepayEvent(type: string): boolean;
|
|
756
|
+
export interface RepayEventFields {
|
|
757
|
+
lendingMarketId: ToField<'address'>;
|
|
758
|
+
coinType: ToField<TypeName>;
|
|
759
|
+
reserveId: ToField<'address'>;
|
|
760
|
+
obligationId: ToField<'address'>;
|
|
761
|
+
liquidityAmount: ToField<'u64'>;
|
|
762
|
+
}
|
|
763
|
+
export type RepayEventReified = Reified<RepayEvent, RepayEventFields>;
|
|
764
|
+
export type RepayEventJSONField = {
|
|
765
|
+
lendingMarketId: string;
|
|
766
|
+
coinType: string;
|
|
767
|
+
reserveId: string;
|
|
768
|
+
obligationId: string;
|
|
769
|
+
liquidityAmount: string;
|
|
770
|
+
};
|
|
771
|
+
export type RepayEventJSON = {
|
|
772
|
+
$typeName: typeof RepayEvent.$typeName;
|
|
773
|
+
$typeArgs: [];
|
|
774
|
+
} & RepayEventJSONField;
|
|
775
|
+
export declare class RepayEvent implements StructClass {
|
|
776
|
+
__StructClass: true;
|
|
777
|
+
static get $typeName(): `${string}::lending_market::RepayEvent`;
|
|
778
|
+
static readonly $numTypeParams = 0;
|
|
779
|
+
static readonly $isPhantom: readonly [];
|
|
780
|
+
readonly $typeName: typeof RepayEvent.$typeName;
|
|
781
|
+
readonly $fullTypeName: `${string}::lending_market::RepayEvent`;
|
|
782
|
+
readonly $typeArgs: [];
|
|
783
|
+
readonly $isPhantom: typeof RepayEvent.$isPhantom;
|
|
784
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
785
|
+
readonly coinType: ToField<TypeName>;
|
|
786
|
+
readonly reserveId: ToField<'address'>;
|
|
787
|
+
readonly obligationId: ToField<'address'>;
|
|
788
|
+
readonly liquidityAmount: ToField<'u64'>;
|
|
789
|
+
private constructor();
|
|
790
|
+
static reified(): RepayEventReified;
|
|
791
|
+
static get r(): RepayEventReified;
|
|
792
|
+
static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
793
|
+
static get p(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
794
|
+
private static instantiateBcs;
|
|
795
|
+
private static cachedBcs;
|
|
796
|
+
static get bcs(): ReturnType<typeof RepayEvent.instantiateBcs>;
|
|
797
|
+
static fromFields(fields: Record<string, any>): RepayEvent;
|
|
798
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RepayEvent;
|
|
799
|
+
static fromBcs(data: Uint8Array): RepayEvent;
|
|
800
|
+
toJSONField(): RepayEventJSONField;
|
|
801
|
+
toJSON(): RepayEventJSON;
|
|
802
|
+
static fromJSONField(field: any): RepayEvent;
|
|
803
|
+
static fromJSON(json: Record<string, any>): RepayEvent;
|
|
804
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
805
|
+
content: true;
|
|
806
|
+
}>): RepayEvent;
|
|
807
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<RepayEvent>;
|
|
808
|
+
}
|
|
809
|
+
export declare function isForgiveEvent(type: string): boolean;
|
|
810
|
+
export interface ForgiveEventFields {
|
|
811
|
+
lendingMarketId: ToField<'address'>;
|
|
812
|
+
coinType: ToField<TypeName>;
|
|
813
|
+
reserveId: ToField<'address'>;
|
|
814
|
+
obligationId: ToField<'address'>;
|
|
815
|
+
liquidityAmount: ToField<'u64'>;
|
|
816
|
+
}
|
|
817
|
+
export type ForgiveEventReified = Reified<ForgiveEvent, ForgiveEventFields>;
|
|
818
|
+
export type ForgiveEventJSONField = {
|
|
819
|
+
lendingMarketId: string;
|
|
820
|
+
coinType: string;
|
|
821
|
+
reserveId: string;
|
|
822
|
+
obligationId: string;
|
|
823
|
+
liquidityAmount: string;
|
|
824
|
+
};
|
|
825
|
+
export type ForgiveEventJSON = {
|
|
826
|
+
$typeName: typeof ForgiveEvent.$typeName;
|
|
827
|
+
$typeArgs: [];
|
|
828
|
+
} & ForgiveEventJSONField;
|
|
829
|
+
export declare class ForgiveEvent implements StructClass {
|
|
830
|
+
__StructClass: true;
|
|
831
|
+
static get $typeName(): `${string}::lending_market::ForgiveEvent`;
|
|
832
|
+
static readonly $numTypeParams = 0;
|
|
833
|
+
static readonly $isPhantom: readonly [];
|
|
834
|
+
readonly $typeName: typeof ForgiveEvent.$typeName;
|
|
835
|
+
readonly $fullTypeName: `${string}::lending_market::ForgiveEvent`;
|
|
836
|
+
readonly $typeArgs: [];
|
|
837
|
+
readonly $isPhantom: typeof ForgiveEvent.$isPhantom;
|
|
838
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
839
|
+
readonly coinType: ToField<TypeName>;
|
|
840
|
+
readonly reserveId: ToField<'address'>;
|
|
841
|
+
readonly obligationId: ToField<'address'>;
|
|
842
|
+
readonly liquidityAmount: ToField<'u64'>;
|
|
843
|
+
private constructor();
|
|
844
|
+
static reified(): ForgiveEventReified;
|
|
845
|
+
static get r(): ForgiveEventReified;
|
|
846
|
+
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
847
|
+
static get p(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
848
|
+
private static instantiateBcs;
|
|
849
|
+
private static cachedBcs;
|
|
850
|
+
static get bcs(): ReturnType<typeof ForgiveEvent.instantiateBcs>;
|
|
851
|
+
static fromFields(fields: Record<string, any>): ForgiveEvent;
|
|
852
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ForgiveEvent;
|
|
853
|
+
static fromBcs(data: Uint8Array): ForgiveEvent;
|
|
854
|
+
toJSONField(): ForgiveEventJSONField;
|
|
855
|
+
toJSON(): ForgiveEventJSON;
|
|
856
|
+
static fromJSONField(field: any): ForgiveEvent;
|
|
857
|
+
static fromJSON(json: Record<string, any>): ForgiveEvent;
|
|
858
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
859
|
+
content: true;
|
|
860
|
+
}>): ForgiveEvent;
|
|
861
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<ForgiveEvent>;
|
|
862
|
+
}
|
|
863
|
+
export declare function isLiquidateEvent(type: string): boolean;
|
|
864
|
+
export interface LiquidateEventFields {
|
|
865
|
+
lendingMarketId: ToField<'address'>;
|
|
866
|
+
repayReserveId: ToField<'address'>;
|
|
867
|
+
withdrawReserveId: ToField<'address'>;
|
|
868
|
+
obligationId: ToField<'address'>;
|
|
869
|
+
repayCoinType: ToField<TypeName>;
|
|
870
|
+
withdrawCoinType: ToField<TypeName>;
|
|
871
|
+
repayAmount: ToField<'u64'>;
|
|
872
|
+
withdrawAmount: ToField<'u64'>;
|
|
873
|
+
protocolFeeAmount: ToField<'u64'>;
|
|
874
|
+
liquidatorBonusAmount: ToField<'u64'>;
|
|
875
|
+
}
|
|
876
|
+
export type LiquidateEventReified = Reified<LiquidateEvent, LiquidateEventFields>;
|
|
877
|
+
export type LiquidateEventJSONField = {
|
|
878
|
+
lendingMarketId: string;
|
|
879
|
+
repayReserveId: string;
|
|
880
|
+
withdrawReserveId: string;
|
|
881
|
+
obligationId: string;
|
|
882
|
+
repayCoinType: string;
|
|
883
|
+
withdrawCoinType: string;
|
|
884
|
+
repayAmount: string;
|
|
885
|
+
withdrawAmount: string;
|
|
886
|
+
protocolFeeAmount: string;
|
|
887
|
+
liquidatorBonusAmount: string;
|
|
888
|
+
};
|
|
889
|
+
export type LiquidateEventJSON = {
|
|
890
|
+
$typeName: typeof LiquidateEvent.$typeName;
|
|
891
|
+
$typeArgs: [];
|
|
892
|
+
} & LiquidateEventJSONField;
|
|
893
|
+
export declare class LiquidateEvent implements StructClass {
|
|
894
|
+
__StructClass: true;
|
|
895
|
+
static get $typeName(): `${string}::lending_market::LiquidateEvent`;
|
|
896
|
+
static readonly $numTypeParams = 0;
|
|
897
|
+
static readonly $isPhantom: readonly [];
|
|
898
|
+
readonly $typeName: typeof LiquidateEvent.$typeName;
|
|
899
|
+
readonly $fullTypeName: `${string}::lending_market::LiquidateEvent`;
|
|
900
|
+
readonly $typeArgs: [];
|
|
901
|
+
readonly $isPhantom: typeof LiquidateEvent.$isPhantom;
|
|
902
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
903
|
+
readonly repayReserveId: ToField<'address'>;
|
|
904
|
+
readonly withdrawReserveId: ToField<'address'>;
|
|
905
|
+
readonly obligationId: ToField<'address'>;
|
|
906
|
+
readonly repayCoinType: ToField<TypeName>;
|
|
907
|
+
readonly withdrawCoinType: ToField<TypeName>;
|
|
908
|
+
readonly repayAmount: ToField<'u64'>;
|
|
909
|
+
readonly withdrawAmount: ToField<'u64'>;
|
|
910
|
+
readonly protocolFeeAmount: ToField<'u64'>;
|
|
911
|
+
readonly liquidatorBonusAmount: ToField<'u64'>;
|
|
912
|
+
private constructor();
|
|
913
|
+
static reified(): LiquidateEventReified;
|
|
914
|
+
static get r(): LiquidateEventReified;
|
|
915
|
+
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
916
|
+
static get p(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
917
|
+
private static instantiateBcs;
|
|
918
|
+
private static cachedBcs;
|
|
919
|
+
static get bcs(): ReturnType<typeof LiquidateEvent.instantiateBcs>;
|
|
920
|
+
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
921
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
|
|
922
|
+
static fromBcs(data: Uint8Array): LiquidateEvent;
|
|
923
|
+
toJSONField(): LiquidateEventJSONField;
|
|
924
|
+
toJSON(): LiquidateEventJSON;
|
|
925
|
+
static fromJSONField(field: any): LiquidateEvent;
|
|
926
|
+
static fromJSON(json: Record<string, any>): LiquidateEvent;
|
|
927
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
928
|
+
content: true;
|
|
929
|
+
}>): LiquidateEvent;
|
|
930
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<LiquidateEvent>;
|
|
931
|
+
}
|
|
932
|
+
export declare function isClaimRewardEvent(type: string): boolean;
|
|
933
|
+
export interface ClaimRewardEventFields {
|
|
934
|
+
lendingMarketId: ToField<'address'>;
|
|
935
|
+
reserveId: ToField<'address'>;
|
|
936
|
+
obligationId: ToField<'address'>;
|
|
937
|
+
isDepositReward: ToField<'bool'>;
|
|
938
|
+
poolRewardId: ToField<'address'>;
|
|
939
|
+
coinType: ToField<TypeName>;
|
|
940
|
+
liquidityAmount: ToField<'u64'>;
|
|
941
|
+
}
|
|
942
|
+
export type ClaimRewardEventReified = Reified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
943
|
+
export type ClaimRewardEventJSONField = {
|
|
944
|
+
lendingMarketId: string;
|
|
945
|
+
reserveId: string;
|
|
946
|
+
obligationId: string;
|
|
947
|
+
isDepositReward: boolean;
|
|
948
|
+
poolRewardId: string;
|
|
949
|
+
coinType: string;
|
|
950
|
+
liquidityAmount: string;
|
|
951
|
+
};
|
|
952
|
+
export type ClaimRewardEventJSON = {
|
|
953
|
+
$typeName: typeof ClaimRewardEvent.$typeName;
|
|
954
|
+
$typeArgs: [];
|
|
955
|
+
} & ClaimRewardEventJSONField;
|
|
956
|
+
export declare class ClaimRewardEvent implements StructClass {
|
|
957
|
+
__StructClass: true;
|
|
958
|
+
static get $typeName(): `${string}::lending_market::ClaimRewardEvent`;
|
|
959
|
+
static readonly $numTypeParams = 0;
|
|
960
|
+
static readonly $isPhantom: readonly [];
|
|
961
|
+
readonly $typeName: typeof ClaimRewardEvent.$typeName;
|
|
962
|
+
readonly $fullTypeName: `${string}::lending_market::ClaimRewardEvent`;
|
|
963
|
+
readonly $typeArgs: [];
|
|
964
|
+
readonly $isPhantom: typeof ClaimRewardEvent.$isPhantom;
|
|
965
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
966
|
+
readonly reserveId: ToField<'address'>;
|
|
967
|
+
readonly obligationId: ToField<'address'>;
|
|
968
|
+
readonly isDepositReward: ToField<'bool'>;
|
|
969
|
+
readonly poolRewardId: ToField<'address'>;
|
|
970
|
+
readonly coinType: ToField<TypeName>;
|
|
971
|
+
readonly liquidityAmount: ToField<'u64'>;
|
|
972
|
+
private constructor();
|
|
973
|
+
static reified(): ClaimRewardEventReified;
|
|
974
|
+
static get r(): ClaimRewardEventReified;
|
|
975
|
+
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
976
|
+
static get p(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
977
|
+
private static instantiateBcs;
|
|
978
|
+
private static cachedBcs;
|
|
979
|
+
static get bcs(): ReturnType<typeof ClaimRewardEvent.instantiateBcs>;
|
|
980
|
+
static fromFields(fields: Record<string, any>): ClaimRewardEvent;
|
|
981
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimRewardEvent;
|
|
982
|
+
static fromBcs(data: Uint8Array): ClaimRewardEvent;
|
|
983
|
+
toJSONField(): ClaimRewardEventJSONField;
|
|
984
|
+
toJSON(): ClaimRewardEventJSON;
|
|
985
|
+
static fromJSONField(field: any): ClaimRewardEvent;
|
|
986
|
+
static fromJSON(json: Record<string, any>): ClaimRewardEvent;
|
|
987
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
988
|
+
content: true;
|
|
989
|
+
}>): ClaimRewardEvent;
|
|
990
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<ClaimRewardEvent>;
|
|
991
|
+
}
|
|
992
|
+
export declare function isMarketPauseEvent(type: string): boolean;
|
|
993
|
+
export interface MarketPauseEventFields {
|
|
994
|
+
lendingMarketId: ToField<'address'>;
|
|
995
|
+
paused: ToField<'bool'>;
|
|
996
|
+
}
|
|
997
|
+
export type MarketPauseEventReified = Reified<MarketPauseEvent, MarketPauseEventFields>;
|
|
998
|
+
export type MarketPauseEventJSONField = {
|
|
999
|
+
lendingMarketId: string;
|
|
1000
|
+
paused: boolean;
|
|
1001
|
+
};
|
|
1002
|
+
export type MarketPauseEventJSON = {
|
|
1003
|
+
$typeName: typeof MarketPauseEvent.$typeName;
|
|
1004
|
+
$typeArgs: [];
|
|
1005
|
+
} & MarketPauseEventJSONField;
|
|
1006
|
+
export declare class MarketPauseEvent implements StructClass {
|
|
1007
|
+
__StructClass: true;
|
|
1008
|
+
static get $typeName(): `${string}::lending_market::MarketPauseEvent`;
|
|
1009
|
+
static readonly $numTypeParams = 0;
|
|
1010
|
+
static readonly $isPhantom: readonly [];
|
|
1011
|
+
readonly $typeName: typeof MarketPauseEvent.$typeName;
|
|
1012
|
+
readonly $fullTypeName: `${string}::lending_market::MarketPauseEvent`;
|
|
1013
|
+
readonly $typeArgs: [];
|
|
1014
|
+
readonly $isPhantom: typeof MarketPauseEvent.$isPhantom;
|
|
1015
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
1016
|
+
readonly paused: ToField<'bool'>;
|
|
1017
|
+
private constructor();
|
|
1018
|
+
static reified(): MarketPauseEventReified;
|
|
1019
|
+
static get r(): MarketPauseEventReified;
|
|
1020
|
+
static phantom(): PhantomReified<ToTypeStr<MarketPauseEvent>>;
|
|
1021
|
+
static get p(): PhantomReified<ToTypeStr<MarketPauseEvent>>;
|
|
1022
|
+
private static instantiateBcs;
|
|
1023
|
+
private static cachedBcs;
|
|
1024
|
+
static get bcs(): ReturnType<typeof MarketPauseEvent.instantiateBcs>;
|
|
1025
|
+
static fromFields(fields: Record<string, any>): MarketPauseEvent;
|
|
1026
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): MarketPauseEvent;
|
|
1027
|
+
static fromBcs(data: Uint8Array): MarketPauseEvent;
|
|
1028
|
+
toJSONField(): MarketPauseEventJSONField;
|
|
1029
|
+
toJSON(): MarketPauseEventJSON;
|
|
1030
|
+
static fromJSONField(field: any): MarketPauseEvent;
|
|
1031
|
+
static fromJSON(json: Record<string, any>): MarketPauseEvent;
|
|
1032
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
1033
|
+
content: true;
|
|
1034
|
+
}>): MarketPauseEvent;
|
|
1035
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<MarketPauseEvent>;
|
|
1036
|
+
}
|
|
1037
|
+
export declare function isReservePauseEvent(type: string): boolean;
|
|
1038
|
+
export interface ReservePauseEventFields {
|
|
1039
|
+
lendingMarketId: ToField<'address'>;
|
|
1040
|
+
reserveId: ToField<'address'>;
|
|
1041
|
+
paused: ToField<'bool'>;
|
|
1042
|
+
}
|
|
1043
|
+
export type ReservePauseEventReified = Reified<ReservePauseEvent, ReservePauseEventFields>;
|
|
1044
|
+
export type ReservePauseEventJSONField = {
|
|
1045
|
+
lendingMarketId: string;
|
|
1046
|
+
reserveId: string;
|
|
1047
|
+
paused: boolean;
|
|
1048
|
+
};
|
|
1049
|
+
export type ReservePauseEventJSON = {
|
|
1050
|
+
$typeName: typeof ReservePauseEvent.$typeName;
|
|
1051
|
+
$typeArgs: [];
|
|
1052
|
+
} & ReservePauseEventJSONField;
|
|
1053
|
+
export declare class ReservePauseEvent implements StructClass {
|
|
1054
|
+
__StructClass: true;
|
|
1055
|
+
static get $typeName(): `${string}::lending_market::ReservePauseEvent`;
|
|
1056
|
+
static readonly $numTypeParams = 0;
|
|
1057
|
+
static readonly $isPhantom: readonly [];
|
|
1058
|
+
readonly $typeName: typeof ReservePauseEvent.$typeName;
|
|
1059
|
+
readonly $fullTypeName: `${string}::lending_market::ReservePauseEvent`;
|
|
1060
|
+
readonly $typeArgs: [];
|
|
1061
|
+
readonly $isPhantom: typeof ReservePauseEvent.$isPhantom;
|
|
1062
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
1063
|
+
readonly reserveId: ToField<'address'>;
|
|
1064
|
+
readonly paused: ToField<'bool'>;
|
|
1065
|
+
private constructor();
|
|
1066
|
+
static reified(): ReservePauseEventReified;
|
|
1067
|
+
static get r(): ReservePauseEventReified;
|
|
1068
|
+
static phantom(): PhantomReified<ToTypeStr<ReservePauseEvent>>;
|
|
1069
|
+
static get p(): PhantomReified<ToTypeStr<ReservePauseEvent>>;
|
|
1070
|
+
private static instantiateBcs;
|
|
1071
|
+
private static cachedBcs;
|
|
1072
|
+
static get bcs(): ReturnType<typeof ReservePauseEvent.instantiateBcs>;
|
|
1073
|
+
static fromFields(fields: Record<string, any>): ReservePauseEvent;
|
|
1074
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ReservePauseEvent;
|
|
1075
|
+
static fromBcs(data: Uint8Array): ReservePauseEvent;
|
|
1076
|
+
toJSONField(): ReservePauseEventJSONField;
|
|
1077
|
+
toJSON(): ReservePauseEventJSON;
|
|
1078
|
+
static fromJSONField(field: any): ReservePauseEvent;
|
|
1079
|
+
static fromJSON(json: Record<string, any>): ReservePauseEvent;
|
|
1080
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
1081
|
+
content: true;
|
|
1082
|
+
}>): ReservePauseEvent;
|
|
1083
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<ReservePauseEvent>;
|
|
1084
|
+
}
|
|
1085
|
+
export declare function isPauseCapRotatedEvent(type: string): boolean;
|
|
1086
|
+
export interface PauseCapRotatedEventFields {
|
|
1087
|
+
lendingMarketId: ToField<'address'>;
|
|
1088
|
+
newCapId: ToField<'address'>;
|
|
1089
|
+
generation: ToField<'u64'>;
|
|
1090
|
+
}
|
|
1091
|
+
export type PauseCapRotatedEventReified = Reified<PauseCapRotatedEvent, PauseCapRotatedEventFields>;
|
|
1092
|
+
export type PauseCapRotatedEventJSONField = {
|
|
1093
|
+
lendingMarketId: string;
|
|
1094
|
+
newCapId: string;
|
|
1095
|
+
generation: string;
|
|
1096
|
+
};
|
|
1097
|
+
export type PauseCapRotatedEventJSON = {
|
|
1098
|
+
$typeName: typeof PauseCapRotatedEvent.$typeName;
|
|
1099
|
+
$typeArgs: [];
|
|
1100
|
+
} & PauseCapRotatedEventJSONField;
|
|
1101
|
+
export declare class PauseCapRotatedEvent implements StructClass {
|
|
1102
|
+
__StructClass: true;
|
|
1103
|
+
static get $typeName(): `${string}::lending_market::PauseCapRotatedEvent`;
|
|
1104
|
+
static readonly $numTypeParams = 0;
|
|
1105
|
+
static readonly $isPhantom: readonly [];
|
|
1106
|
+
readonly $typeName: typeof PauseCapRotatedEvent.$typeName;
|
|
1107
|
+
readonly $fullTypeName: `${string}::lending_market::PauseCapRotatedEvent`;
|
|
1108
|
+
readonly $typeArgs: [];
|
|
1109
|
+
readonly $isPhantom: typeof PauseCapRotatedEvent.$isPhantom;
|
|
1110
|
+
readonly lendingMarketId: ToField<'address'>;
|
|
1111
|
+
readonly newCapId: ToField<'address'>;
|
|
1112
|
+
readonly generation: ToField<'u64'>;
|
|
1113
|
+
private constructor();
|
|
1114
|
+
static reified(): PauseCapRotatedEventReified;
|
|
1115
|
+
static get r(): PauseCapRotatedEventReified;
|
|
1116
|
+
static phantom(): PhantomReified<ToTypeStr<PauseCapRotatedEvent>>;
|
|
1117
|
+
static get p(): PhantomReified<ToTypeStr<PauseCapRotatedEvent>>;
|
|
1118
|
+
private static instantiateBcs;
|
|
1119
|
+
private static cachedBcs;
|
|
1120
|
+
static get bcs(): ReturnType<typeof PauseCapRotatedEvent.instantiateBcs>;
|
|
1121
|
+
static fromFields(fields: Record<string, any>): PauseCapRotatedEvent;
|
|
1122
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): PauseCapRotatedEvent;
|
|
1123
|
+
static fromBcs(data: Uint8Array): PauseCapRotatedEvent;
|
|
1124
|
+
toJSONField(): PauseCapRotatedEventJSONField;
|
|
1125
|
+
toJSON(): PauseCapRotatedEventJSON;
|
|
1126
|
+
static fromJSONField(field: any): PauseCapRotatedEvent;
|
|
1127
|
+
static fromJSON(json: Record<string, any>): PauseCapRotatedEvent;
|
|
1128
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
1129
|
+
content: true;
|
|
1130
|
+
}>): PauseCapRotatedEvent;
|
|
1131
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<PauseCapRotatedEvent>;
|
|
1437
1132
|
}
|