@typus/typus-perp-sdk 1.0.29 → 1.0.31
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/dist/src/fetch.d.ts +3 -0
- package/dist/src/fetch.js +3 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +52 -12
- package/dist/src/typus_perp/admin/functions.d.ts +25 -25
- package/dist/src/typus_perp/admin/functions.js +66 -53
- package/dist/src/typus_perp/admin/structs.d.ts +222 -222
- package/dist/src/typus_perp/admin/structs.js +256 -256
- package/dist/src/typus_perp/error/functions.d.ts +67 -67
- package/dist/src/typus_perp/error/functions.js +201 -134
- package/dist/src/typus_perp/escrow/functions.d.ts +3 -3
- package/dist/src/typus_perp/escrow/functions.js +9 -6
- package/dist/src/typus_perp/index.d.ts +1 -3
- package/dist/src/typus_perp/index.js +3 -3
- package/dist/src/typus_perp/lending/functions.d.ts +15 -0
- package/dist/src/typus_perp/lending/functions.js +22 -0
- package/dist/src/typus_perp/lp-pool/functions.d.ts +102 -63
- package/dist/src/typus_perp/lp-pool/functions.js +243 -123
- package/dist/src/typus_perp/lp-pool/structs.d.ts +661 -337
- package/dist/src/typus_perp/lp-pool/structs.js +1212 -766
- package/dist/src/typus_perp/math/functions.d.ts +16 -5
- package/dist/src/typus_perp/math/functions.js +33 -12
- package/dist/src/typus_perp/position/functions.d.ts +86 -86
- package/dist/src/typus_perp/position/functions.js +223 -157
- package/dist/src/typus_perp/symbol/functions.d.ts +4 -4
- package/dist/src/typus_perp/symbol/functions.js +14 -10
- package/dist/src/typus_perp/tlp/functions.d.ts +5 -5
- package/dist/src/typus_perp/tlp/functions.js +17 -12
- package/dist/src/typus_perp/token-interface/functions.d.ts +2 -2
- package/dist/src/typus_perp/token-interface/functions.js +6 -4
- package/dist/src/typus_perp/trading/functions.d.ts +75 -75
- package/dist/src/typus_perp/trading/functions.js +189 -138
- package/dist/src/typus_perp/trading/structs.d.ts +6 -0
- package/dist/src/typus_perp/trading/structs.js +6 -0
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +4 -4
- package/dist/src/typus_perp/treasury-caps/functions.js +14 -10
- package/dist/src/typus_stake_pool/index.d.ts +1 -3
- package/dist/src/typus_stake_pool/index.js +3 -3
- package/package.json +2 -2
|
@@ -7,326 +7,6 @@ import { Vector } from "../../_framework/vector";
|
|
|
7
7
|
import { UnsettledBidReceipt } from "../escrow/structs";
|
|
8
8
|
import { PKG_V1 } from "../index";
|
|
9
9
|
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
10
|
-
export declare function isConfig(type: string): boolean;
|
|
11
|
-
export interface ConfigFields {
|
|
12
|
-
oracleId: ToField<"address">;
|
|
13
|
-
liquidityTokenDecimal: ToField<"u64">;
|
|
14
|
-
spotConfig: ToField<SpotConfig>;
|
|
15
|
-
marginConfig: ToField<MarginConfig>;
|
|
16
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
17
|
-
}
|
|
18
|
-
export type ConfigReified = Reified<Config, ConfigFields>;
|
|
19
|
-
export declare class Config implements StructClass {
|
|
20
|
-
__StructClass: true;
|
|
21
|
-
static readonly $typeName: string;
|
|
22
|
-
static readonly $numTypeParams = 0;
|
|
23
|
-
static readonly $isPhantom: readonly [];
|
|
24
|
-
readonly $typeName: string;
|
|
25
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::Config`;
|
|
26
|
-
readonly $typeArgs: [];
|
|
27
|
-
readonly $isPhantom: readonly [];
|
|
28
|
-
readonly oracleId: ToField<"address">;
|
|
29
|
-
readonly liquidityTokenDecimal: ToField<"u64">;
|
|
30
|
-
readonly spotConfig: ToField<SpotConfig>;
|
|
31
|
-
readonly marginConfig: ToField<MarginConfig>;
|
|
32
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
33
|
-
private constructor();
|
|
34
|
-
static reified(): ConfigReified;
|
|
35
|
-
static get r(): reified.StructClassReified<Config, ConfigFields>;
|
|
36
|
-
static phantom(): PhantomReified<ToTypeStr<Config>>;
|
|
37
|
-
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::Config" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::Config">;
|
|
38
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
39
|
-
oracle_id: string;
|
|
40
|
-
liquidity_token_decimal: string;
|
|
41
|
-
spot_config: {
|
|
42
|
-
min_deposit: string;
|
|
43
|
-
max_capacity: string;
|
|
44
|
-
target_weight_bp: string;
|
|
45
|
-
basic_mint_fee_bp: string;
|
|
46
|
-
additional_mint_fee_bp: string;
|
|
47
|
-
basic_burn_fee_bp: string;
|
|
48
|
-
additional_burn_fee_bp: string;
|
|
49
|
-
swap_fee_bp: string;
|
|
50
|
-
swap_fee_protocol_share_bp: string;
|
|
51
|
-
u64_padding: string[];
|
|
52
|
-
};
|
|
53
|
-
margin_config: {
|
|
54
|
-
basic_borrow_rate_0: string;
|
|
55
|
-
basic_borrow_rate_1: string;
|
|
56
|
-
basic_borrow_rate_2: string;
|
|
57
|
-
utilization_threshold_bp_0: string;
|
|
58
|
-
utilization_threshold_bp_1: string;
|
|
59
|
-
borrow_interval_ts_ms: string;
|
|
60
|
-
max_order_reserve_ratio_bp: string;
|
|
61
|
-
u64_padding: string[];
|
|
62
|
-
};
|
|
63
|
-
u64_padding: string[];
|
|
64
|
-
}, {
|
|
65
|
-
oracle_id: string;
|
|
66
|
-
liquidity_token_decimal: string | number | bigint;
|
|
67
|
-
spot_config: {
|
|
68
|
-
min_deposit: string | number | bigint;
|
|
69
|
-
max_capacity: string | number | bigint;
|
|
70
|
-
target_weight_bp: string | number | bigint;
|
|
71
|
-
basic_mint_fee_bp: string | number | bigint;
|
|
72
|
-
additional_mint_fee_bp: string | number | bigint;
|
|
73
|
-
basic_burn_fee_bp: string | number | bigint;
|
|
74
|
-
additional_burn_fee_bp: string | number | bigint;
|
|
75
|
-
swap_fee_bp: string | number | bigint;
|
|
76
|
-
swap_fee_protocol_share_bp: string | number | bigint;
|
|
77
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
78
|
-
length: number;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
margin_config: {
|
|
82
|
-
basic_borrow_rate_0: string | number | bigint;
|
|
83
|
-
basic_borrow_rate_1: string | number | bigint;
|
|
84
|
-
basic_borrow_rate_2: string | number | bigint;
|
|
85
|
-
utilization_threshold_bp_0: string | number | bigint;
|
|
86
|
-
utilization_threshold_bp_1: string | number | bigint;
|
|
87
|
-
borrow_interval_ts_ms: string | number | bigint;
|
|
88
|
-
max_order_reserve_ratio_bp: string | number | bigint;
|
|
89
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
90
|
-
length: number;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
94
|
-
length: number;
|
|
95
|
-
};
|
|
96
|
-
}>;
|
|
97
|
-
static fromFields(fields: Record<string, any>): Config;
|
|
98
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Config;
|
|
99
|
-
static fromBcs(data: Uint8Array): Config;
|
|
100
|
-
toJSONField(): {
|
|
101
|
-
oracleId: string;
|
|
102
|
-
liquidityTokenDecimal: string;
|
|
103
|
-
spotConfig: {
|
|
104
|
-
minDeposit: string;
|
|
105
|
-
maxCapacity: string;
|
|
106
|
-
targetWeightBp: string;
|
|
107
|
-
basicMintFeeBp: string;
|
|
108
|
-
additionalMintFeeBp: string;
|
|
109
|
-
basicBurnFeeBp: string;
|
|
110
|
-
additionalBurnFeeBp: string;
|
|
111
|
-
swapFeeBp: string;
|
|
112
|
-
swapFeeProtocolShareBp: string;
|
|
113
|
-
u64Padding: string[];
|
|
114
|
-
};
|
|
115
|
-
marginConfig: {
|
|
116
|
-
basicBorrowRate0: string;
|
|
117
|
-
basicBorrowRate1: string;
|
|
118
|
-
basicBorrowRate2: string;
|
|
119
|
-
utilizationThresholdBp0: string;
|
|
120
|
-
utilizationThresholdBp1: string;
|
|
121
|
-
borrowIntervalTsMs: string;
|
|
122
|
-
maxOrderReserveRatioBp: string;
|
|
123
|
-
u64Padding: string[];
|
|
124
|
-
};
|
|
125
|
-
u64Padding: string[];
|
|
126
|
-
};
|
|
127
|
-
toJSON(): {
|
|
128
|
-
oracleId: string;
|
|
129
|
-
liquidityTokenDecimal: string;
|
|
130
|
-
spotConfig: {
|
|
131
|
-
minDeposit: string;
|
|
132
|
-
maxCapacity: string;
|
|
133
|
-
targetWeightBp: string;
|
|
134
|
-
basicMintFeeBp: string;
|
|
135
|
-
additionalMintFeeBp: string;
|
|
136
|
-
basicBurnFeeBp: string;
|
|
137
|
-
additionalBurnFeeBp: string;
|
|
138
|
-
swapFeeBp: string;
|
|
139
|
-
swapFeeProtocolShareBp: string;
|
|
140
|
-
u64Padding: string[];
|
|
141
|
-
};
|
|
142
|
-
marginConfig: {
|
|
143
|
-
basicBorrowRate0: string;
|
|
144
|
-
basicBorrowRate1: string;
|
|
145
|
-
basicBorrowRate2: string;
|
|
146
|
-
utilizationThresholdBp0: string;
|
|
147
|
-
utilizationThresholdBp1: string;
|
|
148
|
-
borrowIntervalTsMs: string;
|
|
149
|
-
maxOrderReserveRatioBp: string;
|
|
150
|
-
u64Padding: string[];
|
|
151
|
-
};
|
|
152
|
-
u64Padding: string[];
|
|
153
|
-
$typeName: string;
|
|
154
|
-
$typeArgs: [];
|
|
155
|
-
};
|
|
156
|
-
static fromJSONField(field: any): Config;
|
|
157
|
-
static fromJSON(json: Record<string, any>): Config;
|
|
158
|
-
static fromSuiParsedData(content: SuiParsedData): Config;
|
|
159
|
-
static fromSuiObjectData(data: SuiObjectData): Config;
|
|
160
|
-
static fetch(client: SuiClient, id: string): Promise<Config>;
|
|
161
|
-
}
|
|
162
|
-
export declare function isState(type: string): boolean;
|
|
163
|
-
export interface StateFields {
|
|
164
|
-
liquidityAmount: ToField<"u64">;
|
|
165
|
-
valueInUsd: ToField<"u64">;
|
|
166
|
-
reservedAmount: ToField<"u64">;
|
|
167
|
-
updateTsMs: ToField<"u64">;
|
|
168
|
-
isActive: ToField<"bool">;
|
|
169
|
-
lastBorrowRateTsMs: ToField<"u64">;
|
|
170
|
-
cumulativeBorrowRate: ToField<"u64">;
|
|
171
|
-
previousLastBorrowRateTsMs: ToField<"u64">;
|
|
172
|
-
previousCumulativeBorrowRate: ToField<"u64">;
|
|
173
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
174
|
-
}
|
|
175
|
-
export type StateReified = Reified<State, StateFields>;
|
|
176
|
-
export declare class State implements StructClass {
|
|
177
|
-
__StructClass: true;
|
|
178
|
-
static readonly $typeName: string;
|
|
179
|
-
static readonly $numTypeParams = 0;
|
|
180
|
-
static readonly $isPhantom: readonly [];
|
|
181
|
-
readonly $typeName: string;
|
|
182
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::State`;
|
|
183
|
-
readonly $typeArgs: [];
|
|
184
|
-
readonly $isPhantom: readonly [];
|
|
185
|
-
readonly liquidityAmount: ToField<"u64">;
|
|
186
|
-
readonly valueInUsd: ToField<"u64">;
|
|
187
|
-
readonly reservedAmount: ToField<"u64">;
|
|
188
|
-
readonly updateTsMs: ToField<"u64">;
|
|
189
|
-
readonly isActive: ToField<"bool">;
|
|
190
|
-
readonly lastBorrowRateTsMs: ToField<"u64">;
|
|
191
|
-
readonly cumulativeBorrowRate: ToField<"u64">;
|
|
192
|
-
readonly previousLastBorrowRateTsMs: ToField<"u64">;
|
|
193
|
-
readonly previousCumulativeBorrowRate: ToField<"u64">;
|
|
194
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
195
|
-
private constructor();
|
|
196
|
-
static reified(): StateReified;
|
|
197
|
-
static get r(): reified.StructClassReified<State, StateFields>;
|
|
198
|
-
static phantom(): PhantomReified<ToTypeStr<State>>;
|
|
199
|
-
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::State" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::State">;
|
|
200
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
201
|
-
liquidity_amount: string;
|
|
202
|
-
value_in_usd: string;
|
|
203
|
-
reserved_amount: string;
|
|
204
|
-
update_ts_ms: string;
|
|
205
|
-
is_active: boolean;
|
|
206
|
-
last_borrow_rate_ts_ms: string;
|
|
207
|
-
cumulative_borrow_rate: string;
|
|
208
|
-
previous_last_borrow_rate_ts_ms: string;
|
|
209
|
-
previous_cumulative_borrow_rate: string;
|
|
210
|
-
u64_padding: string[];
|
|
211
|
-
}, {
|
|
212
|
-
liquidity_amount: string | number | bigint;
|
|
213
|
-
value_in_usd: string | number | bigint;
|
|
214
|
-
reserved_amount: string | number | bigint;
|
|
215
|
-
update_ts_ms: string | number | bigint;
|
|
216
|
-
is_active: boolean;
|
|
217
|
-
last_borrow_rate_ts_ms: string | number | bigint;
|
|
218
|
-
cumulative_borrow_rate: string | number | bigint;
|
|
219
|
-
previous_last_borrow_rate_ts_ms: string | number | bigint;
|
|
220
|
-
previous_cumulative_borrow_rate: string | number | bigint;
|
|
221
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
222
|
-
length: number;
|
|
223
|
-
};
|
|
224
|
-
}>;
|
|
225
|
-
static fromFields(fields: Record<string, any>): State;
|
|
226
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): State;
|
|
227
|
-
static fromBcs(data: Uint8Array): State;
|
|
228
|
-
toJSONField(): {
|
|
229
|
-
liquidityAmount: string;
|
|
230
|
-
valueInUsd: string;
|
|
231
|
-
reservedAmount: string;
|
|
232
|
-
updateTsMs: string;
|
|
233
|
-
isActive: boolean;
|
|
234
|
-
lastBorrowRateTsMs: string;
|
|
235
|
-
cumulativeBorrowRate: string;
|
|
236
|
-
previousLastBorrowRateTsMs: string;
|
|
237
|
-
previousCumulativeBorrowRate: string;
|
|
238
|
-
u64Padding: string[];
|
|
239
|
-
};
|
|
240
|
-
toJSON(): {
|
|
241
|
-
liquidityAmount: string;
|
|
242
|
-
valueInUsd: string;
|
|
243
|
-
reservedAmount: string;
|
|
244
|
-
updateTsMs: string;
|
|
245
|
-
isActive: boolean;
|
|
246
|
-
lastBorrowRateTsMs: string;
|
|
247
|
-
cumulativeBorrowRate: string;
|
|
248
|
-
previousLastBorrowRateTsMs: string;
|
|
249
|
-
previousCumulativeBorrowRate: string;
|
|
250
|
-
u64Padding: string[];
|
|
251
|
-
$typeName: string;
|
|
252
|
-
$typeArgs: [];
|
|
253
|
-
};
|
|
254
|
-
static fromJSONField(field: any): State;
|
|
255
|
-
static fromJSON(json: Record<string, any>): State;
|
|
256
|
-
static fromSuiParsedData(content: SuiParsedData): State;
|
|
257
|
-
static fromSuiObjectData(data: SuiObjectData): State;
|
|
258
|
-
static fetch(client: SuiClient, id: string): Promise<State>;
|
|
259
|
-
}
|
|
260
|
-
export declare function isRegistry(type: string): boolean;
|
|
261
|
-
export interface RegistryFields {
|
|
262
|
-
id: ToField<UID>;
|
|
263
|
-
numPool: ToField<"u64">;
|
|
264
|
-
liquidityPoolRegistry: ToField<UID>;
|
|
265
|
-
}
|
|
266
|
-
export type RegistryReified = Reified<Registry, RegistryFields>;
|
|
267
|
-
export declare class Registry implements StructClass {
|
|
268
|
-
__StructClass: true;
|
|
269
|
-
static readonly $typeName: string;
|
|
270
|
-
static readonly $numTypeParams = 0;
|
|
271
|
-
static readonly $isPhantom: readonly [];
|
|
272
|
-
readonly $typeName: string;
|
|
273
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::Registry`;
|
|
274
|
-
readonly $typeArgs: [];
|
|
275
|
-
readonly $isPhantom: readonly [];
|
|
276
|
-
readonly id: ToField<UID>;
|
|
277
|
-
readonly numPool: ToField<"u64">;
|
|
278
|
-
readonly liquidityPoolRegistry: ToField<UID>;
|
|
279
|
-
private constructor();
|
|
280
|
-
static reified(): RegistryReified;
|
|
281
|
-
static get r(): reified.StructClassReified<Registry, RegistryFields>;
|
|
282
|
-
static phantom(): PhantomReified<ToTypeStr<Registry>>;
|
|
283
|
-
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::Registry" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::Registry">;
|
|
284
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
285
|
-
id: {
|
|
286
|
-
id: {
|
|
287
|
-
bytes: string;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
num_pool: string;
|
|
291
|
-
liquidity_pool_registry: {
|
|
292
|
-
id: {
|
|
293
|
-
bytes: string;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
}, {
|
|
297
|
-
id: {
|
|
298
|
-
id: {
|
|
299
|
-
bytes: string;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
num_pool: string | number | bigint;
|
|
303
|
-
liquidity_pool_registry: {
|
|
304
|
-
id: {
|
|
305
|
-
bytes: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
}>;
|
|
309
|
-
static fromFields(fields: Record<string, any>): Registry;
|
|
310
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Registry;
|
|
311
|
-
static fromBcs(data: Uint8Array): Registry;
|
|
312
|
-
toJSONField(): {
|
|
313
|
-
id: string;
|
|
314
|
-
numPool: string;
|
|
315
|
-
liquidityPoolRegistry: string;
|
|
316
|
-
};
|
|
317
|
-
toJSON(): {
|
|
318
|
-
id: string;
|
|
319
|
-
numPool: string;
|
|
320
|
-
liquidityPoolRegistry: string;
|
|
321
|
-
$typeName: string;
|
|
322
|
-
$typeArgs: [];
|
|
323
|
-
};
|
|
324
|
-
static fromJSONField(field: any): Registry;
|
|
325
|
-
static fromJSON(json: Record<string, any>): Registry;
|
|
326
|
-
static fromSuiParsedData(content: SuiParsedData): Registry;
|
|
327
|
-
static fromSuiObjectData(data: SuiObjectData): Registry;
|
|
328
|
-
static fetch(client: SuiClient, id: string): Promise<Registry>;
|
|
329
|
-
}
|
|
330
10
|
export declare function isAddLiquidityTokenEvent(type: string): boolean;
|
|
331
11
|
export interface AddLiquidityTokenEventFields {
|
|
332
12
|
sender: ToField<"address">;
|
|
@@ -378,6 +58,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
378
58
|
additional_burn_fee_bp: string;
|
|
379
59
|
swap_fee_bp: string;
|
|
380
60
|
swap_fee_protocol_share_bp: string;
|
|
61
|
+
lending_protocol_share_bp: string;
|
|
381
62
|
u64_padding: string[];
|
|
382
63
|
};
|
|
383
64
|
margin_config: {
|
|
@@ -402,6 +83,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
402
83
|
cumulative_borrow_rate: string;
|
|
403
84
|
previous_last_borrow_rate_ts_ms: string;
|
|
404
85
|
previous_cumulative_borrow_rate: string;
|
|
86
|
+
current_lending_amount: string[];
|
|
405
87
|
u64_padding: string[];
|
|
406
88
|
};
|
|
407
89
|
u64_padding: string[];
|
|
@@ -428,6 +110,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
428
110
|
additional_burn_fee_bp: string | number | bigint;
|
|
429
111
|
swap_fee_bp: string | number | bigint;
|
|
430
112
|
swap_fee_protocol_share_bp: string | number | bigint;
|
|
113
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
431
114
|
u64_padding: Iterable<string | number | bigint> & {
|
|
432
115
|
length: number;
|
|
433
116
|
};
|
|
@@ -458,6 +141,9 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
458
141
|
cumulative_borrow_rate: string | number | bigint;
|
|
459
142
|
previous_last_borrow_rate_ts_ms: string | number | bigint;
|
|
460
143
|
previous_cumulative_borrow_rate: string | number | bigint;
|
|
144
|
+
current_lending_amount: Iterable<string | number | bigint> & {
|
|
145
|
+
length: number;
|
|
146
|
+
};
|
|
461
147
|
u64_padding: Iterable<string | number | bigint> & {
|
|
462
148
|
length: number;
|
|
463
149
|
};
|
|
@@ -488,6 +174,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
488
174
|
additionalBurnFeeBp: string;
|
|
489
175
|
swapFeeBp: string;
|
|
490
176
|
swapFeeProtocolShareBp: string;
|
|
177
|
+
lendingProtocolShareBp: string;
|
|
491
178
|
u64Padding: string[];
|
|
492
179
|
};
|
|
493
180
|
marginConfig: {
|
|
@@ -512,6 +199,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
512
199
|
cumulativeBorrowRate: string;
|
|
513
200
|
previousLastBorrowRateTsMs: string;
|
|
514
201
|
previousCumulativeBorrowRate: string;
|
|
202
|
+
currentLendingAmount: string[];
|
|
515
203
|
u64Padding: string[];
|
|
516
204
|
};
|
|
517
205
|
u64Padding: string[];
|
|
@@ -535,6 +223,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
535
223
|
additionalBurnFeeBp: string;
|
|
536
224
|
swapFeeBp: string;
|
|
537
225
|
swapFeeProtocolShareBp: string;
|
|
226
|
+
lendingProtocolShareBp: string;
|
|
538
227
|
u64Padding: string[];
|
|
539
228
|
};
|
|
540
229
|
marginConfig: {
|
|
@@ -559,6 +248,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
559
248
|
cumulativeBorrowRate: string;
|
|
560
249
|
previousLastBorrowRateTsMs: string;
|
|
561
250
|
previousCumulativeBorrowRate: string;
|
|
251
|
+
currentLendingAmount: string[];
|
|
562
252
|
u64Padding: string[];
|
|
563
253
|
};
|
|
564
254
|
u64Padding: string[];
|
|
@@ -731,47 +421,315 @@ export declare class CompleteRemoveLiquidityTokenProcessEvent implements StructC
|
|
|
731
421
|
u64_padding: string[];
|
|
732
422
|
}, {
|
|
733
423
|
index: string | number | bigint;
|
|
734
|
-
liquidity_token: {
|
|
424
|
+
liquidity_token: {
|
|
425
|
+
name: {
|
|
426
|
+
bytes: Iterable<number> & {
|
|
427
|
+
length: number;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
removed_usd: string | number | bigint;
|
|
432
|
+
repaid_usd: string | number | bigint;
|
|
433
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
434
|
+
length: number;
|
|
435
|
+
};
|
|
436
|
+
}>;
|
|
437
|
+
static fromFields(fields: Record<string, any>): CompleteRemoveLiquidityTokenProcessEvent;
|
|
438
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): CompleteRemoveLiquidityTokenProcessEvent;
|
|
439
|
+
static fromBcs(data: Uint8Array): CompleteRemoveLiquidityTokenProcessEvent;
|
|
440
|
+
toJSONField(): {
|
|
441
|
+
index: string;
|
|
442
|
+
liquidityToken: {
|
|
443
|
+
name: string;
|
|
444
|
+
};
|
|
445
|
+
removedUsd: string;
|
|
446
|
+
repaidUsd: string;
|
|
447
|
+
u64Padding: string[];
|
|
448
|
+
};
|
|
449
|
+
toJSON(): {
|
|
450
|
+
index: string;
|
|
451
|
+
liquidityToken: {
|
|
452
|
+
name: string;
|
|
453
|
+
};
|
|
454
|
+
removedUsd: string;
|
|
455
|
+
repaidUsd: string;
|
|
456
|
+
u64Padding: string[];
|
|
457
|
+
$typeName: string;
|
|
458
|
+
$typeArgs: [];
|
|
459
|
+
};
|
|
460
|
+
static fromJSONField(field: any): CompleteRemoveLiquidityTokenProcessEvent;
|
|
461
|
+
static fromJSON(json: Record<string, any>): CompleteRemoveLiquidityTokenProcessEvent;
|
|
462
|
+
static fromSuiParsedData(content: SuiParsedData): CompleteRemoveLiquidityTokenProcessEvent;
|
|
463
|
+
static fromSuiObjectData(data: SuiObjectData): CompleteRemoveLiquidityTokenProcessEvent;
|
|
464
|
+
static fetch(client: SuiClient, id: string): Promise<CompleteRemoveLiquidityTokenProcessEvent>;
|
|
465
|
+
}
|
|
466
|
+
export declare function isConfig(type: string): boolean;
|
|
467
|
+
export interface ConfigFields {
|
|
468
|
+
oracleId: ToField<"address">;
|
|
469
|
+
liquidityTokenDecimal: ToField<"u64">;
|
|
470
|
+
spotConfig: ToField<SpotConfig>;
|
|
471
|
+
marginConfig: ToField<MarginConfig>;
|
|
472
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
473
|
+
}
|
|
474
|
+
export type ConfigReified = Reified<Config, ConfigFields>;
|
|
475
|
+
export declare class Config implements StructClass {
|
|
476
|
+
__StructClass: true;
|
|
477
|
+
static readonly $typeName: string;
|
|
478
|
+
static readonly $numTypeParams = 0;
|
|
479
|
+
static readonly $isPhantom: readonly [];
|
|
480
|
+
readonly $typeName: string;
|
|
481
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::Config`;
|
|
482
|
+
readonly $typeArgs: [];
|
|
483
|
+
readonly $isPhantom: readonly [];
|
|
484
|
+
readonly oracleId: ToField<"address">;
|
|
485
|
+
readonly liquidityTokenDecimal: ToField<"u64">;
|
|
486
|
+
readonly spotConfig: ToField<SpotConfig>;
|
|
487
|
+
readonly marginConfig: ToField<MarginConfig>;
|
|
488
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
489
|
+
private constructor();
|
|
490
|
+
static reified(): ConfigReified;
|
|
491
|
+
static get r(): reified.StructClassReified<Config, ConfigFields>;
|
|
492
|
+
static phantom(): PhantomReified<ToTypeStr<Config>>;
|
|
493
|
+
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::Config" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::Config">;
|
|
494
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
495
|
+
oracle_id: string;
|
|
496
|
+
liquidity_token_decimal: string;
|
|
497
|
+
spot_config: {
|
|
498
|
+
min_deposit: string;
|
|
499
|
+
max_capacity: string;
|
|
500
|
+
target_weight_bp: string;
|
|
501
|
+
basic_mint_fee_bp: string;
|
|
502
|
+
additional_mint_fee_bp: string;
|
|
503
|
+
basic_burn_fee_bp: string;
|
|
504
|
+
additional_burn_fee_bp: string;
|
|
505
|
+
swap_fee_bp: string;
|
|
506
|
+
swap_fee_protocol_share_bp: string;
|
|
507
|
+
lending_protocol_share_bp: string;
|
|
508
|
+
u64_padding: string[];
|
|
509
|
+
};
|
|
510
|
+
margin_config: {
|
|
511
|
+
basic_borrow_rate_0: string;
|
|
512
|
+
basic_borrow_rate_1: string;
|
|
513
|
+
basic_borrow_rate_2: string;
|
|
514
|
+
utilization_threshold_bp_0: string;
|
|
515
|
+
utilization_threshold_bp_1: string;
|
|
516
|
+
borrow_interval_ts_ms: string;
|
|
517
|
+
max_order_reserve_ratio_bp: string;
|
|
518
|
+
u64_padding: string[];
|
|
519
|
+
};
|
|
520
|
+
u64_padding: string[];
|
|
521
|
+
}, {
|
|
522
|
+
oracle_id: string;
|
|
523
|
+
liquidity_token_decimal: string | number | bigint;
|
|
524
|
+
spot_config: {
|
|
525
|
+
min_deposit: string | number | bigint;
|
|
526
|
+
max_capacity: string | number | bigint;
|
|
527
|
+
target_weight_bp: string | number | bigint;
|
|
528
|
+
basic_mint_fee_bp: string | number | bigint;
|
|
529
|
+
additional_mint_fee_bp: string | number | bigint;
|
|
530
|
+
basic_burn_fee_bp: string | number | bigint;
|
|
531
|
+
additional_burn_fee_bp: string | number | bigint;
|
|
532
|
+
swap_fee_bp: string | number | bigint;
|
|
533
|
+
swap_fee_protocol_share_bp: string | number | bigint;
|
|
534
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
535
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
536
|
+
length: number;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
margin_config: {
|
|
540
|
+
basic_borrow_rate_0: string | number | bigint;
|
|
541
|
+
basic_borrow_rate_1: string | number | bigint;
|
|
542
|
+
basic_borrow_rate_2: string | number | bigint;
|
|
543
|
+
utilization_threshold_bp_0: string | number | bigint;
|
|
544
|
+
utilization_threshold_bp_1: string | number | bigint;
|
|
545
|
+
borrow_interval_ts_ms: string | number | bigint;
|
|
546
|
+
max_order_reserve_ratio_bp: string | number | bigint;
|
|
547
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
548
|
+
length: number;
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
552
|
+
length: number;
|
|
553
|
+
};
|
|
554
|
+
}>;
|
|
555
|
+
static fromFields(fields: Record<string, any>): Config;
|
|
556
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): Config;
|
|
557
|
+
static fromBcs(data: Uint8Array): Config;
|
|
558
|
+
toJSONField(): {
|
|
559
|
+
oracleId: string;
|
|
560
|
+
liquidityTokenDecimal: string;
|
|
561
|
+
spotConfig: {
|
|
562
|
+
minDeposit: string;
|
|
563
|
+
maxCapacity: string;
|
|
564
|
+
targetWeightBp: string;
|
|
565
|
+
basicMintFeeBp: string;
|
|
566
|
+
additionalMintFeeBp: string;
|
|
567
|
+
basicBurnFeeBp: string;
|
|
568
|
+
additionalBurnFeeBp: string;
|
|
569
|
+
swapFeeBp: string;
|
|
570
|
+
swapFeeProtocolShareBp: string;
|
|
571
|
+
lendingProtocolShareBp: string;
|
|
572
|
+
u64Padding: string[];
|
|
573
|
+
};
|
|
574
|
+
marginConfig: {
|
|
575
|
+
basicBorrowRate0: string;
|
|
576
|
+
basicBorrowRate1: string;
|
|
577
|
+
basicBorrowRate2: string;
|
|
578
|
+
utilizationThresholdBp0: string;
|
|
579
|
+
utilizationThresholdBp1: string;
|
|
580
|
+
borrowIntervalTsMs: string;
|
|
581
|
+
maxOrderReserveRatioBp: string;
|
|
582
|
+
u64Padding: string[];
|
|
583
|
+
};
|
|
584
|
+
u64Padding: string[];
|
|
585
|
+
};
|
|
586
|
+
toJSON(): {
|
|
587
|
+
oracleId: string;
|
|
588
|
+
liquidityTokenDecimal: string;
|
|
589
|
+
spotConfig: {
|
|
590
|
+
minDeposit: string;
|
|
591
|
+
maxCapacity: string;
|
|
592
|
+
targetWeightBp: string;
|
|
593
|
+
basicMintFeeBp: string;
|
|
594
|
+
additionalMintFeeBp: string;
|
|
595
|
+
basicBurnFeeBp: string;
|
|
596
|
+
additionalBurnFeeBp: string;
|
|
597
|
+
swapFeeBp: string;
|
|
598
|
+
swapFeeProtocolShareBp: string;
|
|
599
|
+
lendingProtocolShareBp: string;
|
|
600
|
+
u64Padding: string[];
|
|
601
|
+
};
|
|
602
|
+
marginConfig: {
|
|
603
|
+
basicBorrowRate0: string;
|
|
604
|
+
basicBorrowRate1: string;
|
|
605
|
+
basicBorrowRate2: string;
|
|
606
|
+
utilizationThresholdBp0: string;
|
|
607
|
+
utilizationThresholdBp1: string;
|
|
608
|
+
borrowIntervalTsMs: string;
|
|
609
|
+
maxOrderReserveRatioBp: string;
|
|
610
|
+
u64Padding: string[];
|
|
611
|
+
};
|
|
612
|
+
u64Padding: string[];
|
|
613
|
+
$typeName: string;
|
|
614
|
+
$typeArgs: [];
|
|
615
|
+
};
|
|
616
|
+
static fromJSONField(field: any): Config;
|
|
617
|
+
static fromJSON(json: Record<string, any>): Config;
|
|
618
|
+
static fromSuiParsedData(content: SuiParsedData): Config;
|
|
619
|
+
static fromSuiObjectData(data: SuiObjectData): Config;
|
|
620
|
+
static fetch(client: SuiClient, id: string): Promise<Config>;
|
|
621
|
+
}
|
|
622
|
+
export declare function isDepositLendingEvent(type: string): boolean;
|
|
623
|
+
export interface DepositLendingEventFields {
|
|
624
|
+
index: ToField<"u64">;
|
|
625
|
+
lendingIndex: ToField<"u64">;
|
|
626
|
+
cTokenType: ToField<TypeName>;
|
|
627
|
+
depositAmount: ToField<"u64">;
|
|
628
|
+
mintedMarketCoinAmount: ToField<"u64">;
|
|
629
|
+
latestLendingAmount: ToField<"u64">;
|
|
630
|
+
latestMarketCoinAmount: ToField<"u64">;
|
|
631
|
+
latestReservedAmount: ToField<"u64">;
|
|
632
|
+
latestLiquidityAmount: ToField<"u64">;
|
|
633
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
634
|
+
}
|
|
635
|
+
export type DepositLendingEventReified = Reified<DepositLendingEvent, DepositLendingEventFields>;
|
|
636
|
+
export declare class DepositLendingEvent implements StructClass {
|
|
637
|
+
__StructClass: true;
|
|
638
|
+
static readonly $typeName: string;
|
|
639
|
+
static readonly $numTypeParams = 0;
|
|
640
|
+
static readonly $isPhantom: readonly [];
|
|
641
|
+
readonly $typeName: string;
|
|
642
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::DepositLendingEvent`;
|
|
643
|
+
readonly $typeArgs: [];
|
|
644
|
+
readonly $isPhantom: readonly [];
|
|
645
|
+
readonly index: ToField<"u64">;
|
|
646
|
+
readonly lendingIndex: ToField<"u64">;
|
|
647
|
+
readonly cTokenType: ToField<TypeName>;
|
|
648
|
+
readonly depositAmount: ToField<"u64">;
|
|
649
|
+
readonly mintedMarketCoinAmount: ToField<"u64">;
|
|
650
|
+
readonly latestLendingAmount: ToField<"u64">;
|
|
651
|
+
readonly latestMarketCoinAmount: ToField<"u64">;
|
|
652
|
+
readonly latestReservedAmount: ToField<"u64">;
|
|
653
|
+
readonly latestLiquidityAmount: ToField<"u64">;
|
|
654
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
655
|
+
private constructor();
|
|
656
|
+
static reified(): DepositLendingEventReified;
|
|
657
|
+
static get r(): reified.StructClassReified<DepositLendingEvent, DepositLendingEventFields>;
|
|
658
|
+
static phantom(): PhantomReified<ToTypeStr<DepositLendingEvent>>;
|
|
659
|
+
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::DepositLendingEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::DepositLendingEvent">;
|
|
660
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
661
|
+
index: string;
|
|
662
|
+
lending_index: string;
|
|
663
|
+
c_token_type: {
|
|
664
|
+
name: {
|
|
665
|
+
bytes: number[];
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
deposit_amount: string;
|
|
669
|
+
minted_market_coin_amount: string;
|
|
670
|
+
latest_lending_amount: string;
|
|
671
|
+
latest_market_coin_amount: string;
|
|
672
|
+
latest_reserved_amount: string;
|
|
673
|
+
latest_liquidity_amount: string;
|
|
674
|
+
u64_padding: string[];
|
|
675
|
+
}, {
|
|
676
|
+
index: string | number | bigint;
|
|
677
|
+
lending_index: string | number | bigint;
|
|
678
|
+
c_token_type: {
|
|
735
679
|
name: {
|
|
736
680
|
bytes: Iterable<number> & {
|
|
737
681
|
length: number;
|
|
738
682
|
};
|
|
739
683
|
};
|
|
740
684
|
};
|
|
741
|
-
|
|
742
|
-
|
|
685
|
+
deposit_amount: string | number | bigint;
|
|
686
|
+
minted_market_coin_amount: string | number | bigint;
|
|
687
|
+
latest_lending_amount: string | number | bigint;
|
|
688
|
+
latest_market_coin_amount: string | number | bigint;
|
|
689
|
+
latest_reserved_amount: string | number | bigint;
|
|
690
|
+
latest_liquidity_amount: string | number | bigint;
|
|
743
691
|
u64_padding: Iterable<string | number | bigint> & {
|
|
744
692
|
length: number;
|
|
745
693
|
};
|
|
746
694
|
}>;
|
|
747
|
-
static fromFields(fields: Record<string, any>):
|
|
748
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
749
|
-
static fromBcs(data: Uint8Array):
|
|
695
|
+
static fromFields(fields: Record<string, any>): DepositLendingEvent;
|
|
696
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DepositLendingEvent;
|
|
697
|
+
static fromBcs(data: Uint8Array): DepositLendingEvent;
|
|
750
698
|
toJSONField(): {
|
|
751
699
|
index: string;
|
|
752
|
-
|
|
700
|
+
lendingIndex: string;
|
|
701
|
+
cTokenType: {
|
|
753
702
|
name: string;
|
|
754
703
|
};
|
|
755
|
-
|
|
756
|
-
|
|
704
|
+
depositAmount: string;
|
|
705
|
+
mintedMarketCoinAmount: string;
|
|
706
|
+
latestLendingAmount: string;
|
|
707
|
+
latestMarketCoinAmount: string;
|
|
708
|
+
latestReservedAmount: string;
|
|
709
|
+
latestLiquidityAmount: string;
|
|
757
710
|
u64Padding: string[];
|
|
758
711
|
};
|
|
759
712
|
toJSON(): {
|
|
760
713
|
index: string;
|
|
761
|
-
|
|
714
|
+
lendingIndex: string;
|
|
715
|
+
cTokenType: {
|
|
762
716
|
name: string;
|
|
763
717
|
};
|
|
764
|
-
|
|
765
|
-
|
|
718
|
+
depositAmount: string;
|
|
719
|
+
mintedMarketCoinAmount: string;
|
|
720
|
+
latestLendingAmount: string;
|
|
721
|
+
latestMarketCoinAmount: string;
|
|
722
|
+
latestReservedAmount: string;
|
|
723
|
+
latestLiquidityAmount: string;
|
|
766
724
|
u64Padding: string[];
|
|
767
725
|
$typeName: string;
|
|
768
726
|
$typeArgs: [];
|
|
769
727
|
};
|
|
770
|
-
static fromJSONField(field: any):
|
|
771
|
-
static fromJSON(json: Record<string, any>):
|
|
772
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
773
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
774
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
728
|
+
static fromJSONField(field: any): DepositLendingEvent;
|
|
729
|
+
static fromJSON(json: Record<string, any>): DepositLendingEvent;
|
|
730
|
+
static fromSuiParsedData(content: SuiParsedData): DepositLendingEvent;
|
|
731
|
+
static fromSuiObjectData(data: SuiObjectData): DepositLendingEvent;
|
|
732
|
+
static fetch(client: SuiClient, id: string): Promise<DepositLendingEvent>;
|
|
775
733
|
}
|
|
776
734
|
export declare function isLiquidityPool(type: string): boolean;
|
|
777
735
|
export interface LiquidityPoolFields {
|
|
@@ -845,6 +803,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
845
803
|
additional_burn_fee_bp: string;
|
|
846
804
|
swap_fee_bp: string;
|
|
847
805
|
swap_fee_protocol_share_bp: string;
|
|
806
|
+
lending_protocol_share_bp: string;
|
|
848
807
|
u64_padding: string[];
|
|
849
808
|
};
|
|
850
809
|
margin_config: {
|
|
@@ -869,6 +828,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
869
828
|
cumulative_borrow_rate: string;
|
|
870
829
|
previous_last_borrow_rate_ts_ms: string;
|
|
871
830
|
previous_cumulative_borrow_rate: string;
|
|
831
|
+
current_lending_amount: string[];
|
|
872
832
|
u64_padding: string[];
|
|
873
833
|
};
|
|
874
834
|
}[];
|
|
@@ -955,6 +915,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
955
915
|
additional_burn_fee_bp: string | number | bigint;
|
|
956
916
|
swap_fee_bp: string | number | bigint;
|
|
957
917
|
swap_fee_protocol_share_bp: string | number | bigint;
|
|
918
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
958
919
|
u64_padding: Iterable<string | number | bigint> & {
|
|
959
920
|
length: number;
|
|
960
921
|
};
|
|
@@ -985,6 +946,9 @@ export declare class LiquidityPool implements StructClass {
|
|
|
985
946
|
cumulative_borrow_rate: string | number | bigint;
|
|
986
947
|
previous_last_borrow_rate_ts_ms: string | number | bigint;
|
|
987
948
|
previous_cumulative_borrow_rate: string | number | bigint;
|
|
949
|
+
current_lending_amount: Iterable<string | number | bigint> & {
|
|
950
|
+
length: number;
|
|
951
|
+
};
|
|
988
952
|
u64_padding: Iterable<string | number | bigint> & {
|
|
989
953
|
length: number;
|
|
990
954
|
};
|
|
@@ -1077,6 +1041,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
1077
1041
|
additionalBurnFeeBp: string;
|
|
1078
1042
|
swapFeeBp: string;
|
|
1079
1043
|
swapFeeProtocolShareBp: string;
|
|
1044
|
+
lendingProtocolShareBp: string;
|
|
1080
1045
|
u64Padding: string[];
|
|
1081
1046
|
};
|
|
1082
1047
|
marginConfig: {
|
|
@@ -1101,6 +1066,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
1101
1066
|
cumulativeBorrowRate: string;
|
|
1102
1067
|
previousLastBorrowRateTsMs: string;
|
|
1103
1068
|
previousCumulativeBorrowRate: string;
|
|
1069
|
+
currentLendingAmount: string[];
|
|
1104
1070
|
u64Padding: string[];
|
|
1105
1071
|
};
|
|
1106
1072
|
}[];
|
|
@@ -1160,6 +1126,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
1160
1126
|
additionalBurnFeeBp: string;
|
|
1161
1127
|
swapFeeBp: string;
|
|
1162
1128
|
swapFeeProtocolShareBp: string;
|
|
1129
|
+
lendingProtocolShareBp: string;
|
|
1163
1130
|
u64Padding: string[];
|
|
1164
1131
|
};
|
|
1165
1132
|
marginConfig: {
|
|
@@ -1184,6 +1151,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
1184
1151
|
cumulativeBorrowRate: string;
|
|
1185
1152
|
previousLastBorrowRateTsMs: string;
|
|
1186
1153
|
previousCumulativeBorrowRate: string;
|
|
1154
|
+
currentLendingAmount: string[];
|
|
1187
1155
|
u64Padding: string[];
|
|
1188
1156
|
};
|
|
1189
1157
|
}[];
|
|
@@ -1761,6 +1729,76 @@ export declare class NewLiquidityPoolEvent implements StructClass {
|
|
|
1761
1729
|
static fromSuiObjectData(data: SuiObjectData): NewLiquidityPoolEvent;
|
|
1762
1730
|
static fetch(client: SuiClient, id: string): Promise<NewLiquidityPoolEvent>;
|
|
1763
1731
|
}
|
|
1732
|
+
export declare function isRegistry(type: string): boolean;
|
|
1733
|
+
export interface RegistryFields {
|
|
1734
|
+
id: ToField<UID>;
|
|
1735
|
+
numPool: ToField<"u64">;
|
|
1736
|
+
liquidityPoolRegistry: ToField<UID>;
|
|
1737
|
+
}
|
|
1738
|
+
export type RegistryReified = Reified<Registry, RegistryFields>;
|
|
1739
|
+
export declare class Registry implements StructClass {
|
|
1740
|
+
__StructClass: true;
|
|
1741
|
+
static readonly $typeName: string;
|
|
1742
|
+
static readonly $numTypeParams = 0;
|
|
1743
|
+
static readonly $isPhantom: readonly [];
|
|
1744
|
+
readonly $typeName: string;
|
|
1745
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::Registry`;
|
|
1746
|
+
readonly $typeArgs: [];
|
|
1747
|
+
readonly $isPhantom: readonly [];
|
|
1748
|
+
readonly id: ToField<UID>;
|
|
1749
|
+
readonly numPool: ToField<"u64">;
|
|
1750
|
+
readonly liquidityPoolRegistry: ToField<UID>;
|
|
1751
|
+
private constructor();
|
|
1752
|
+
static reified(): RegistryReified;
|
|
1753
|
+
static get r(): reified.StructClassReified<Registry, RegistryFields>;
|
|
1754
|
+
static phantom(): PhantomReified<ToTypeStr<Registry>>;
|
|
1755
|
+
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::Registry" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::Registry">;
|
|
1756
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1757
|
+
id: {
|
|
1758
|
+
id: {
|
|
1759
|
+
bytes: string;
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
num_pool: string;
|
|
1763
|
+
liquidity_pool_registry: {
|
|
1764
|
+
id: {
|
|
1765
|
+
bytes: string;
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1768
|
+
}, {
|
|
1769
|
+
id: {
|
|
1770
|
+
id: {
|
|
1771
|
+
bytes: string;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
num_pool: string | number | bigint;
|
|
1775
|
+
liquidity_pool_registry: {
|
|
1776
|
+
id: {
|
|
1777
|
+
bytes: string;
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
}>;
|
|
1781
|
+
static fromFields(fields: Record<string, any>): Registry;
|
|
1782
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): Registry;
|
|
1783
|
+
static fromBcs(data: Uint8Array): Registry;
|
|
1784
|
+
toJSONField(): {
|
|
1785
|
+
id: string;
|
|
1786
|
+
numPool: string;
|
|
1787
|
+
liquidityPoolRegistry: string;
|
|
1788
|
+
};
|
|
1789
|
+
toJSON(): {
|
|
1790
|
+
id: string;
|
|
1791
|
+
numPool: string;
|
|
1792
|
+
liquidityPoolRegistry: string;
|
|
1793
|
+
$typeName: string;
|
|
1794
|
+
$typeArgs: [];
|
|
1795
|
+
};
|
|
1796
|
+
static fromJSONField(field: any): Registry;
|
|
1797
|
+
static fromJSON(json: Record<string, any>): Registry;
|
|
1798
|
+
static fromSuiParsedData(content: SuiParsedData): Registry;
|
|
1799
|
+
static fromSuiObjectData(data: SuiObjectData): Registry;
|
|
1800
|
+
static fetch(client: SuiClient, id: string): Promise<Registry>;
|
|
1801
|
+
}
|
|
1764
1802
|
export declare function isRemoveLiquidityTokenProcess(type: string): boolean;
|
|
1765
1803
|
export interface RemoveLiquidityTokenProcessFields {
|
|
1766
1804
|
liquidityToken: ToField<TypeName>;
|
|
@@ -2028,6 +2066,7 @@ export interface SpotConfigFields {
|
|
|
2028
2066
|
additionalBurnFeeBp: ToField<"u64">;
|
|
2029
2067
|
swapFeeBp: ToField<"u64">;
|
|
2030
2068
|
swapFeeProtocolShareBp: ToField<"u64">;
|
|
2069
|
+
lendingProtocolShareBp: ToField<"u64">;
|
|
2031
2070
|
u64Padding: ToField<Vector<"u64">>;
|
|
2032
2071
|
}
|
|
2033
2072
|
export type SpotConfigReified = Reified<SpotConfig, SpotConfigFields>;
|
|
@@ -2049,6 +2088,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2049
2088
|
readonly additionalBurnFeeBp: ToField<"u64">;
|
|
2050
2089
|
readonly swapFeeBp: ToField<"u64">;
|
|
2051
2090
|
readonly swapFeeProtocolShareBp: ToField<"u64">;
|
|
2091
|
+
readonly lendingProtocolShareBp: ToField<"u64">;
|
|
2052
2092
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2053
2093
|
private constructor();
|
|
2054
2094
|
static reified(): SpotConfigReified;
|
|
@@ -2065,6 +2105,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2065
2105
|
additional_burn_fee_bp: string;
|
|
2066
2106
|
swap_fee_bp: string;
|
|
2067
2107
|
swap_fee_protocol_share_bp: string;
|
|
2108
|
+
lending_protocol_share_bp: string;
|
|
2068
2109
|
u64_padding: string[];
|
|
2069
2110
|
}, {
|
|
2070
2111
|
min_deposit: string | number | bigint;
|
|
@@ -2076,6 +2117,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2076
2117
|
additional_burn_fee_bp: string | number | bigint;
|
|
2077
2118
|
swap_fee_bp: string | number | bigint;
|
|
2078
2119
|
swap_fee_protocol_share_bp: string | number | bigint;
|
|
2120
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
2079
2121
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2080
2122
|
length: number;
|
|
2081
2123
|
};
|
|
@@ -2093,6 +2135,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2093
2135
|
additionalBurnFeeBp: string;
|
|
2094
2136
|
swapFeeBp: string;
|
|
2095
2137
|
swapFeeProtocolShareBp: string;
|
|
2138
|
+
lendingProtocolShareBp: string;
|
|
2096
2139
|
u64Padding: string[];
|
|
2097
2140
|
};
|
|
2098
2141
|
toJSON(): {
|
|
@@ -2105,6 +2148,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2105
2148
|
additionalBurnFeeBp: string;
|
|
2106
2149
|
swapFeeBp: string;
|
|
2107
2150
|
swapFeeProtocolShareBp: string;
|
|
2151
|
+
lendingProtocolShareBp: string;
|
|
2108
2152
|
u64Padding: string[];
|
|
2109
2153
|
$typeName: string;
|
|
2110
2154
|
$typeArgs: [];
|
|
@@ -2185,6 +2229,112 @@ export declare class StartRemoveLiquidityTokenProcessEvent implements StructClas
|
|
|
2185
2229
|
static fromSuiObjectData(data: SuiObjectData): StartRemoveLiquidityTokenProcessEvent;
|
|
2186
2230
|
static fetch(client: SuiClient, id: string): Promise<StartRemoveLiquidityTokenProcessEvent>;
|
|
2187
2231
|
}
|
|
2232
|
+
export declare function isState(type: string): boolean;
|
|
2233
|
+
export interface StateFields {
|
|
2234
|
+
liquidityAmount: ToField<"u64">;
|
|
2235
|
+
valueInUsd: ToField<"u64">;
|
|
2236
|
+
reservedAmount: ToField<"u64">;
|
|
2237
|
+
updateTsMs: ToField<"u64">;
|
|
2238
|
+
isActive: ToField<"bool">;
|
|
2239
|
+
lastBorrowRateTsMs: ToField<"u64">;
|
|
2240
|
+
cumulativeBorrowRate: ToField<"u64">;
|
|
2241
|
+
previousLastBorrowRateTsMs: ToField<"u64">;
|
|
2242
|
+
previousCumulativeBorrowRate: ToField<"u64">;
|
|
2243
|
+
currentLendingAmount: ToField<Vector<"u64">>;
|
|
2244
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
2245
|
+
}
|
|
2246
|
+
export type StateReified = Reified<State, StateFields>;
|
|
2247
|
+
export declare class State implements StructClass {
|
|
2248
|
+
__StructClass: true;
|
|
2249
|
+
static readonly $typeName: string;
|
|
2250
|
+
static readonly $numTypeParams = 0;
|
|
2251
|
+
static readonly $isPhantom: readonly [];
|
|
2252
|
+
readonly $typeName: string;
|
|
2253
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::State`;
|
|
2254
|
+
readonly $typeArgs: [];
|
|
2255
|
+
readonly $isPhantom: readonly [];
|
|
2256
|
+
readonly liquidityAmount: ToField<"u64">;
|
|
2257
|
+
readonly valueInUsd: ToField<"u64">;
|
|
2258
|
+
readonly reservedAmount: ToField<"u64">;
|
|
2259
|
+
readonly updateTsMs: ToField<"u64">;
|
|
2260
|
+
readonly isActive: ToField<"bool">;
|
|
2261
|
+
readonly lastBorrowRateTsMs: ToField<"u64">;
|
|
2262
|
+
readonly cumulativeBorrowRate: ToField<"u64">;
|
|
2263
|
+
readonly previousLastBorrowRateTsMs: ToField<"u64">;
|
|
2264
|
+
readonly previousCumulativeBorrowRate: ToField<"u64">;
|
|
2265
|
+
readonly currentLendingAmount: ToField<Vector<"u64">>;
|
|
2266
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2267
|
+
private constructor();
|
|
2268
|
+
static reified(): StateReified;
|
|
2269
|
+
static get r(): reified.StructClassReified<State, StateFields>;
|
|
2270
|
+
static phantom(): PhantomReified<ToTypeStr<State>>;
|
|
2271
|
+
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::State" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::State">;
|
|
2272
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2273
|
+
liquidity_amount: string;
|
|
2274
|
+
value_in_usd: string;
|
|
2275
|
+
reserved_amount: string;
|
|
2276
|
+
update_ts_ms: string;
|
|
2277
|
+
is_active: boolean;
|
|
2278
|
+
last_borrow_rate_ts_ms: string;
|
|
2279
|
+
cumulative_borrow_rate: string;
|
|
2280
|
+
previous_last_borrow_rate_ts_ms: string;
|
|
2281
|
+
previous_cumulative_borrow_rate: string;
|
|
2282
|
+
current_lending_amount: string[];
|
|
2283
|
+
u64_padding: string[];
|
|
2284
|
+
}, {
|
|
2285
|
+
liquidity_amount: string | number | bigint;
|
|
2286
|
+
value_in_usd: string | number | bigint;
|
|
2287
|
+
reserved_amount: string | number | bigint;
|
|
2288
|
+
update_ts_ms: string | number | bigint;
|
|
2289
|
+
is_active: boolean;
|
|
2290
|
+
last_borrow_rate_ts_ms: string | number | bigint;
|
|
2291
|
+
cumulative_borrow_rate: string | number | bigint;
|
|
2292
|
+
previous_last_borrow_rate_ts_ms: string | number | bigint;
|
|
2293
|
+
previous_cumulative_borrow_rate: string | number | bigint;
|
|
2294
|
+
current_lending_amount: Iterable<string | number | bigint> & {
|
|
2295
|
+
length: number;
|
|
2296
|
+
};
|
|
2297
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
2298
|
+
length: number;
|
|
2299
|
+
};
|
|
2300
|
+
}>;
|
|
2301
|
+
static fromFields(fields: Record<string, any>): State;
|
|
2302
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): State;
|
|
2303
|
+
static fromBcs(data: Uint8Array): State;
|
|
2304
|
+
toJSONField(): {
|
|
2305
|
+
liquidityAmount: string;
|
|
2306
|
+
valueInUsd: string;
|
|
2307
|
+
reservedAmount: string;
|
|
2308
|
+
updateTsMs: string;
|
|
2309
|
+
isActive: boolean;
|
|
2310
|
+
lastBorrowRateTsMs: string;
|
|
2311
|
+
cumulativeBorrowRate: string;
|
|
2312
|
+
previousLastBorrowRateTsMs: string;
|
|
2313
|
+
previousCumulativeBorrowRate: string;
|
|
2314
|
+
currentLendingAmount: string[];
|
|
2315
|
+
u64Padding: string[];
|
|
2316
|
+
};
|
|
2317
|
+
toJSON(): {
|
|
2318
|
+
liquidityAmount: string;
|
|
2319
|
+
valueInUsd: string;
|
|
2320
|
+
reservedAmount: string;
|
|
2321
|
+
updateTsMs: string;
|
|
2322
|
+
isActive: boolean;
|
|
2323
|
+
lastBorrowRateTsMs: string;
|
|
2324
|
+
cumulativeBorrowRate: string;
|
|
2325
|
+
previousLastBorrowRateTsMs: string;
|
|
2326
|
+
previousCumulativeBorrowRate: string;
|
|
2327
|
+
currentLendingAmount: string[];
|
|
2328
|
+
u64Padding: string[];
|
|
2329
|
+
$typeName: string;
|
|
2330
|
+
$typeArgs: [];
|
|
2331
|
+
};
|
|
2332
|
+
static fromJSONField(field: any): State;
|
|
2333
|
+
static fromJSON(json: Record<string, any>): State;
|
|
2334
|
+
static fromSuiParsedData(content: SuiParsedData): State;
|
|
2335
|
+
static fromSuiObjectData(data: SuiObjectData): State;
|
|
2336
|
+
static fetch(client: SuiClient, id: string): Promise<State>;
|
|
2337
|
+
}
|
|
2188
2338
|
export declare function isSuspendPoolEvent(type: string): boolean;
|
|
2189
2339
|
export interface SuspendPoolEventFields {
|
|
2190
2340
|
sender: ToField<"address">;
|
|
@@ -2498,6 +2648,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2498
2648
|
additional_burn_fee_bp: string;
|
|
2499
2649
|
swap_fee_bp: string;
|
|
2500
2650
|
swap_fee_protocol_share_bp: string;
|
|
2651
|
+
lending_protocol_share_bp: string;
|
|
2501
2652
|
u64_padding: string[];
|
|
2502
2653
|
};
|
|
2503
2654
|
margin_config: {
|
|
@@ -2522,6 +2673,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2522
2673
|
cumulative_borrow_rate: string;
|
|
2523
2674
|
previous_last_borrow_rate_ts_ms: string;
|
|
2524
2675
|
previous_cumulative_borrow_rate: string;
|
|
2676
|
+
current_lending_amount: string[];
|
|
2525
2677
|
u64_padding: string[];
|
|
2526
2678
|
};
|
|
2527
2679
|
}, {
|
|
@@ -2545,6 +2697,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2545
2697
|
additional_burn_fee_bp: string | number | bigint;
|
|
2546
2698
|
swap_fee_bp: string | number | bigint;
|
|
2547
2699
|
swap_fee_protocol_share_bp: string | number | bigint;
|
|
2700
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
2548
2701
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2549
2702
|
length: number;
|
|
2550
2703
|
};
|
|
@@ -2575,6 +2728,9 @@ export declare class TokenPool implements StructClass {
|
|
|
2575
2728
|
cumulative_borrow_rate: string | number | bigint;
|
|
2576
2729
|
previous_last_borrow_rate_ts_ms: string | number | bigint;
|
|
2577
2730
|
previous_cumulative_borrow_rate: string | number | bigint;
|
|
2731
|
+
current_lending_amount: Iterable<string | number | bigint> & {
|
|
2732
|
+
length: number;
|
|
2733
|
+
};
|
|
2578
2734
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2579
2735
|
length: number;
|
|
2580
2736
|
};
|
|
@@ -2600,6 +2756,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2600
2756
|
additionalBurnFeeBp: string;
|
|
2601
2757
|
swapFeeBp: string;
|
|
2602
2758
|
swapFeeProtocolShareBp: string;
|
|
2759
|
+
lendingProtocolShareBp: string;
|
|
2603
2760
|
u64Padding: string[];
|
|
2604
2761
|
};
|
|
2605
2762
|
marginConfig: {
|
|
@@ -2624,6 +2781,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2624
2781
|
cumulativeBorrowRate: string;
|
|
2625
2782
|
previousLastBorrowRateTsMs: string;
|
|
2626
2783
|
previousCumulativeBorrowRate: string;
|
|
2784
|
+
currentLendingAmount: string[];
|
|
2627
2785
|
u64Padding: string[];
|
|
2628
2786
|
};
|
|
2629
2787
|
};
|
|
@@ -2644,6 +2802,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2644
2802
|
additionalBurnFeeBp: string;
|
|
2645
2803
|
swapFeeBp: string;
|
|
2646
2804
|
swapFeeProtocolShareBp: string;
|
|
2805
|
+
lendingProtocolShareBp: string;
|
|
2647
2806
|
u64Padding: string[];
|
|
2648
2807
|
};
|
|
2649
2808
|
marginConfig: {
|
|
@@ -2668,6 +2827,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2668
2827
|
cumulativeBorrowRate: string;
|
|
2669
2828
|
previousLastBorrowRateTsMs: string;
|
|
2670
2829
|
previousCumulativeBorrowRate: string;
|
|
2830
|
+
currentLendingAmount: string[];
|
|
2671
2831
|
u64Padding: string[];
|
|
2672
2832
|
};
|
|
2673
2833
|
$typeName: string;
|
|
@@ -3085,6 +3245,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3085
3245
|
additional_burn_fee_bp: string;
|
|
3086
3246
|
swap_fee_bp: string;
|
|
3087
3247
|
swap_fee_protocol_share_bp: string;
|
|
3248
|
+
lending_protocol_share_bp: string;
|
|
3088
3249
|
u64_padding: string[];
|
|
3089
3250
|
};
|
|
3090
3251
|
new_spot_config: {
|
|
@@ -3097,6 +3258,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3097
3258
|
additional_burn_fee_bp: string;
|
|
3098
3259
|
swap_fee_bp: string;
|
|
3099
3260
|
swap_fee_protocol_share_bp: string;
|
|
3261
|
+
lending_protocol_share_bp: string;
|
|
3100
3262
|
u64_padding: string[];
|
|
3101
3263
|
};
|
|
3102
3264
|
u64_padding: string[];
|
|
@@ -3120,6 +3282,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3120
3282
|
additional_burn_fee_bp: string | number | bigint;
|
|
3121
3283
|
swap_fee_bp: string | number | bigint;
|
|
3122
3284
|
swap_fee_protocol_share_bp: string | number | bigint;
|
|
3285
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
3123
3286
|
u64_padding: Iterable<string | number | bigint> & {
|
|
3124
3287
|
length: number;
|
|
3125
3288
|
};
|
|
@@ -3134,6 +3297,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3134
3297
|
additional_burn_fee_bp: string | number | bigint;
|
|
3135
3298
|
swap_fee_bp: string | number | bigint;
|
|
3136
3299
|
swap_fee_protocol_share_bp: string | number | bigint;
|
|
3300
|
+
lending_protocol_share_bp: string | number | bigint;
|
|
3137
3301
|
u64_padding: Iterable<string | number | bigint> & {
|
|
3138
3302
|
length: number;
|
|
3139
3303
|
};
|
|
@@ -3161,6 +3325,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3161
3325
|
additionalBurnFeeBp: string;
|
|
3162
3326
|
swapFeeBp: string;
|
|
3163
3327
|
swapFeeProtocolShareBp: string;
|
|
3328
|
+
lendingProtocolShareBp: string;
|
|
3164
3329
|
u64Padding: string[];
|
|
3165
3330
|
};
|
|
3166
3331
|
newSpotConfig: {
|
|
@@ -3173,6 +3338,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3173
3338
|
additionalBurnFeeBp: string;
|
|
3174
3339
|
swapFeeBp: string;
|
|
3175
3340
|
swapFeeProtocolShareBp: string;
|
|
3341
|
+
lendingProtocolShareBp: string;
|
|
3176
3342
|
u64Padding: string[];
|
|
3177
3343
|
};
|
|
3178
3344
|
u64Padding: string[];
|
|
@@ -3193,6 +3359,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3193
3359
|
additionalBurnFeeBp: string;
|
|
3194
3360
|
swapFeeBp: string;
|
|
3195
3361
|
swapFeeProtocolShareBp: string;
|
|
3362
|
+
lendingProtocolShareBp: string;
|
|
3196
3363
|
u64Padding: string[];
|
|
3197
3364
|
};
|
|
3198
3365
|
newSpotConfig: {
|
|
@@ -3205,6 +3372,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3205
3372
|
additionalBurnFeeBp: string;
|
|
3206
3373
|
swapFeeBp: string;
|
|
3207
3374
|
swapFeeProtocolShareBp: string;
|
|
3375
|
+
lendingProtocolShareBp: string;
|
|
3208
3376
|
u64Padding: string[];
|
|
3209
3377
|
};
|
|
3210
3378
|
u64Padding: string[];
|
|
@@ -3217,3 +3385,159 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3217
3385
|
static fromSuiObjectData(data: SuiObjectData): UpdateSpotConfigEvent;
|
|
3218
3386
|
static fetch(client: SuiClient, id: string): Promise<UpdateSpotConfigEvent>;
|
|
3219
3387
|
}
|
|
3388
|
+
export declare function isWithdrawLendingEvent(type: string): boolean;
|
|
3389
|
+
export interface WithdrawLendingEventFields {
|
|
3390
|
+
index: ToField<"u64">;
|
|
3391
|
+
lendingIndex: ToField<"u64">;
|
|
3392
|
+
cTokenType: ToField<TypeName>;
|
|
3393
|
+
rTokenType: ToField<TypeName>;
|
|
3394
|
+
withdrawAmount: ToField<"u64">;
|
|
3395
|
+
withdrawnCollateralAmount: ToField<"u64">;
|
|
3396
|
+
latestLendingAmount: ToField<"u64">;
|
|
3397
|
+
latestMarketCoinAmount: ToField<"u64">;
|
|
3398
|
+
latestReservedAmount: ToField<"u64">;
|
|
3399
|
+
latestLiquidityAmount: ToField<"u64">;
|
|
3400
|
+
lendingInterest: ToField<"u64">;
|
|
3401
|
+
protocolShare: ToField<"u64">;
|
|
3402
|
+
lendingReward: ToField<"u64">;
|
|
3403
|
+
rewardProtocolShare: ToField<"u64">;
|
|
3404
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
3405
|
+
}
|
|
3406
|
+
export type WithdrawLendingEventReified = Reified<WithdrawLendingEvent, WithdrawLendingEventFields>;
|
|
3407
|
+
export declare class WithdrawLendingEvent implements StructClass {
|
|
3408
|
+
__StructClass: true;
|
|
3409
|
+
static readonly $typeName: string;
|
|
3410
|
+
static readonly $numTypeParams = 0;
|
|
3411
|
+
static readonly $isPhantom: readonly [];
|
|
3412
|
+
readonly $typeName: string;
|
|
3413
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::WithdrawLendingEvent`;
|
|
3414
|
+
readonly $typeArgs: [];
|
|
3415
|
+
readonly $isPhantom: readonly [];
|
|
3416
|
+
readonly index: ToField<"u64">;
|
|
3417
|
+
readonly lendingIndex: ToField<"u64">;
|
|
3418
|
+
readonly cTokenType: ToField<TypeName>;
|
|
3419
|
+
readonly rTokenType: ToField<TypeName>;
|
|
3420
|
+
readonly withdrawAmount: ToField<"u64">;
|
|
3421
|
+
readonly withdrawnCollateralAmount: ToField<"u64">;
|
|
3422
|
+
readonly latestLendingAmount: ToField<"u64">;
|
|
3423
|
+
readonly latestMarketCoinAmount: ToField<"u64">;
|
|
3424
|
+
readonly latestReservedAmount: ToField<"u64">;
|
|
3425
|
+
readonly latestLiquidityAmount: ToField<"u64">;
|
|
3426
|
+
readonly lendingInterest: ToField<"u64">;
|
|
3427
|
+
readonly protocolShare: ToField<"u64">;
|
|
3428
|
+
readonly lendingReward: ToField<"u64">;
|
|
3429
|
+
readonly rewardProtocolShare: ToField<"u64">;
|
|
3430
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
3431
|
+
private constructor();
|
|
3432
|
+
static reified(): WithdrawLendingEventReified;
|
|
3433
|
+
static get r(): reified.StructClassReified<WithdrawLendingEvent, WithdrawLendingEventFields>;
|
|
3434
|
+
static phantom(): PhantomReified<ToTypeStr<WithdrawLendingEvent>>;
|
|
3435
|
+
static get p(): reified.PhantomReified<"0x7ea60df3452d1cec0064d3380cb6f2a9309dcf7ac1b51529de71ef427688b1c3::lp_pool::WithdrawLendingEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::lp_pool::WithdrawLendingEvent">;
|
|
3436
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3437
|
+
index: string;
|
|
3438
|
+
lending_index: string;
|
|
3439
|
+
c_token_type: {
|
|
3440
|
+
name: {
|
|
3441
|
+
bytes: number[];
|
|
3442
|
+
};
|
|
3443
|
+
};
|
|
3444
|
+
r_token_type: {
|
|
3445
|
+
name: {
|
|
3446
|
+
bytes: number[];
|
|
3447
|
+
};
|
|
3448
|
+
};
|
|
3449
|
+
withdraw_amount: string;
|
|
3450
|
+
withdrawn_collateral_amount: string;
|
|
3451
|
+
latest_lending_amount: string;
|
|
3452
|
+
latest_market_coin_amount: string;
|
|
3453
|
+
latest_reserved_amount: string;
|
|
3454
|
+
latest_liquidity_amount: string;
|
|
3455
|
+
lending_interest: string;
|
|
3456
|
+
protocol_share: string;
|
|
3457
|
+
lending_reward: string;
|
|
3458
|
+
reward_protocol_share: string;
|
|
3459
|
+
u64_padding: string[];
|
|
3460
|
+
}, {
|
|
3461
|
+
index: string | number | bigint;
|
|
3462
|
+
lending_index: string | number | bigint;
|
|
3463
|
+
c_token_type: {
|
|
3464
|
+
name: {
|
|
3465
|
+
bytes: Iterable<number> & {
|
|
3466
|
+
length: number;
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
};
|
|
3470
|
+
r_token_type: {
|
|
3471
|
+
name: {
|
|
3472
|
+
bytes: Iterable<number> & {
|
|
3473
|
+
length: number;
|
|
3474
|
+
};
|
|
3475
|
+
};
|
|
3476
|
+
};
|
|
3477
|
+
withdraw_amount: string | number | bigint;
|
|
3478
|
+
withdrawn_collateral_amount: string | number | bigint;
|
|
3479
|
+
latest_lending_amount: string | number | bigint;
|
|
3480
|
+
latest_market_coin_amount: string | number | bigint;
|
|
3481
|
+
latest_reserved_amount: string | number | bigint;
|
|
3482
|
+
latest_liquidity_amount: string | number | bigint;
|
|
3483
|
+
lending_interest: string | number | bigint;
|
|
3484
|
+
protocol_share: string | number | bigint;
|
|
3485
|
+
lending_reward: string | number | bigint;
|
|
3486
|
+
reward_protocol_share: string | number | bigint;
|
|
3487
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
3488
|
+
length: number;
|
|
3489
|
+
};
|
|
3490
|
+
}>;
|
|
3491
|
+
static fromFields(fields: Record<string, any>): WithdrawLendingEvent;
|
|
3492
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawLendingEvent;
|
|
3493
|
+
static fromBcs(data: Uint8Array): WithdrawLendingEvent;
|
|
3494
|
+
toJSONField(): {
|
|
3495
|
+
index: string;
|
|
3496
|
+
lendingIndex: string;
|
|
3497
|
+
cTokenType: {
|
|
3498
|
+
name: string;
|
|
3499
|
+
};
|
|
3500
|
+
rTokenType: {
|
|
3501
|
+
name: string;
|
|
3502
|
+
};
|
|
3503
|
+
withdrawAmount: string;
|
|
3504
|
+
withdrawnCollateralAmount: string;
|
|
3505
|
+
latestLendingAmount: string;
|
|
3506
|
+
latestMarketCoinAmount: string;
|
|
3507
|
+
latestReservedAmount: string;
|
|
3508
|
+
latestLiquidityAmount: string;
|
|
3509
|
+
lendingInterest: string;
|
|
3510
|
+
protocolShare: string;
|
|
3511
|
+
lendingReward: string;
|
|
3512
|
+
rewardProtocolShare: string;
|
|
3513
|
+
u64Padding: string[];
|
|
3514
|
+
};
|
|
3515
|
+
toJSON(): {
|
|
3516
|
+
index: string;
|
|
3517
|
+
lendingIndex: string;
|
|
3518
|
+
cTokenType: {
|
|
3519
|
+
name: string;
|
|
3520
|
+
};
|
|
3521
|
+
rTokenType: {
|
|
3522
|
+
name: string;
|
|
3523
|
+
};
|
|
3524
|
+
withdrawAmount: string;
|
|
3525
|
+
withdrawnCollateralAmount: string;
|
|
3526
|
+
latestLendingAmount: string;
|
|
3527
|
+
latestMarketCoinAmount: string;
|
|
3528
|
+
latestReservedAmount: string;
|
|
3529
|
+
latestLiquidityAmount: string;
|
|
3530
|
+
lendingInterest: string;
|
|
3531
|
+
protocolShare: string;
|
|
3532
|
+
lendingReward: string;
|
|
3533
|
+
rewardProtocolShare: string;
|
|
3534
|
+
u64Padding: string[];
|
|
3535
|
+
$typeName: string;
|
|
3536
|
+
$typeArgs: [];
|
|
3537
|
+
};
|
|
3538
|
+
static fromJSONField(field: any): WithdrawLendingEvent;
|
|
3539
|
+
static fromJSON(json: Record<string, any>): WithdrawLendingEvent;
|
|
3540
|
+
static fromSuiParsedData(content: SuiParsedData): WithdrawLendingEvent;
|
|
3541
|
+
static fromSuiObjectData(data: SuiObjectData): WithdrawLendingEvent;
|
|
3542
|
+
static fetch(client: SuiClient, id: string): Promise<WithdrawLendingEvent>;
|
|
3543
|
+
}
|