@suilend/sdk 1.1.85 → 1.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +8 -15
- package/_generated/_dependencies/source/0x2/balance/structs.d.ts +6 -10
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -14
- package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +8 -15
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +4 -7
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +12 -23
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +30 -58
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +75 -146
- package/_generated/_framework/util.d.ts +4 -16
- package/_generated/_framework/vector.d.ts +12 -5
- package/_generated/suilend/cell/structs.d.ts +6 -10
- package/_generated/suilend/decimal/structs.d.ts +3 -5
- package/_generated/suilend/lending-market/structs.d.ts +392 -368
- package/_generated/suilend/liquidity-mining/structs.d.ts +160 -134
- package/_generated/suilend/obligation/structs.d.ts +217 -332
- package/_generated/suilend/rate-limiter/structs.d.ts +17 -32
- package/_generated/suilend/reserve/structs.d.ts +393 -383
- package/_generated/suilend/reserve-config/structs.d.ts +40 -76
- package/client.d.ts +1 -1
- package/client.js +2 -2
- package/lib/initialize.d.ts +1 -2
- package/lib/initialize.js +62 -54
- package/lib/strategyOwnerCap.js +24 -16
- package/lib/types.d.ts +0 -1
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +0 -1
- package/parsers/lendingMarket.js +2 -3
|
@@ -47,73 +47,41 @@ export declare class PoolReward implements StructClass {
|
|
|
47
47
|
static get r(): reified.StructClassReified<PoolReward, PoolRewardFields>;
|
|
48
48
|
static phantom(): PhantomReified<ToTypeStr<PoolReward>>;
|
|
49
49
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::PoolReward" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolReward">;
|
|
50
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
51
|
-
id: {
|
|
52
|
-
id: {
|
|
53
|
-
bytes: string
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
pool_reward_manager_id: {
|
|
57
|
-
bytes: string
|
|
58
|
-
}
|
|
59
|
-
coin_type: {
|
|
60
|
-
name: {
|
|
61
|
-
bytes: number[]
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
start_time_ms: string;
|
|
65
|
-
end_time_ms: string;
|
|
66
|
-
total_rewards: string;
|
|
67
|
-
allocated_rewards: {
|
|
68
|
-
value: string;
|
|
69
|
-
};
|
|
70
|
-
cumulative_rewards_per_share: {
|
|
71
|
-
value: string;
|
|
72
|
-
};
|
|
73
|
-
num_user_reward_managers: string;
|
|
74
|
-
additional_fields: {
|
|
75
|
-
id: {
|
|
76
|
-
id: {
|
|
77
|
-
bytes: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
size: string;
|
|
81
|
-
};
|
|
82
|
-
}, {
|
|
83
|
-
id: {
|
|
84
|
-
id: {
|
|
85
|
-
bytes: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
pool_reward_manager_id: {
|
|
89
|
-
bytes: string;
|
|
90
|
-
};
|
|
91
|
-
coin_type: {
|
|
92
|
-
name: {
|
|
93
|
-
bytes: Iterable<number> & {
|
|
50
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
51
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
52
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
53
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
54
|
+
}, string>;
|
|
55
|
+
}, string>;
|
|
56
|
+
pool_reward_manager_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
57
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
58
|
+
}, string>;
|
|
59
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
60
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
61
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
94
62
|
length: number;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
start_time_ms: string | number | bigint
|
|
99
|
-
end_time_ms: string | number | bigint
|
|
100
|
-
total_rewards: string | number | bigint
|
|
101
|
-
allocated_rewards: {
|
|
102
|
-
value: string | number | bigint
|
|
103
|
-
}
|
|
104
|
-
cumulative_rewards_per_share: {
|
|
105
|
-
value: string | number | bigint
|
|
106
|
-
}
|
|
107
|
-
num_user_reward_managers: string | number | bigint
|
|
108
|
-
additional_fields: {
|
|
109
|
-
id: {
|
|
110
|
-
id: {
|
|
111
|
-
bytes: string
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
size: string | number | bigint
|
|
115
|
-
}
|
|
116
|
-
}>;
|
|
63
|
+
}, string>;
|
|
64
|
+
}, string>;
|
|
65
|
+
}, string>;
|
|
66
|
+
start_time_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
67
|
+
end_time_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
68
|
+
total_rewards: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
69
|
+
allocated_rewards: import("@mysten/sui/bcs").BcsStruct<{
|
|
70
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
71
|
+
}, string>;
|
|
72
|
+
cumulative_rewards_per_share: import("@mysten/sui/bcs").BcsStruct<{
|
|
73
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
74
|
+
}, string>;
|
|
75
|
+
num_user_reward_managers: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
76
|
+
additional_fields: import("@mysten/sui/bcs").BcsStruct<{
|
|
77
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
78
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
79
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
80
|
+
}, string>;
|
|
81
|
+
}, string>;
|
|
82
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
83
|
+
}, string>;
|
|
84
|
+
}, string>;
|
|
117
85
|
static fromFields(fields: Record<string, any>): PoolReward;
|
|
118
86
|
static fromFieldsWithTypes(item: FieldsWithTypes): PoolReward;
|
|
119
87
|
static fromBcs(data: Uint8Array): PoolReward;
|
|
@@ -193,33 +161,90 @@ export declare class PoolRewardManager implements StructClass {
|
|
|
193
161
|
static get r(): reified.StructClassReified<PoolRewardManager, PoolRewardManagerFields>;
|
|
194
162
|
static phantom(): PhantomReified<ToTypeStr<PoolRewardManager>>;
|
|
195
163
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::PoolRewardManager" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolRewardManager">;
|
|
196
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
197
|
-
id: {
|
|
198
|
-
id: {
|
|
199
|
-
bytes: string
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
total_shares: string
|
|
203
|
-
pool_rewards: {
|
|
204
|
-
vec:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
164
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
165
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
166
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
167
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
168
|
+
}, string>;
|
|
169
|
+
}, string>;
|
|
170
|
+
total_shares: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
171
|
+
pool_rewards: import("@mysten/sui/bcs").BcsType<{
|
|
172
|
+
vec: {
|
|
173
|
+
id: {
|
|
174
|
+
id: {
|
|
175
|
+
bytes: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
pool_reward_manager_id: {
|
|
179
|
+
bytes: string;
|
|
180
|
+
};
|
|
181
|
+
coin_type: {
|
|
182
|
+
name: {
|
|
183
|
+
bytes: number[];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
start_time_ms: string;
|
|
187
|
+
end_time_ms: string;
|
|
188
|
+
total_rewards: string;
|
|
189
|
+
allocated_rewards: {
|
|
190
|
+
value: string;
|
|
191
|
+
};
|
|
192
|
+
cumulative_rewards_per_share: {
|
|
193
|
+
value: string;
|
|
194
|
+
};
|
|
195
|
+
num_user_reward_managers: string;
|
|
196
|
+
additional_fields: {
|
|
197
|
+
id: {
|
|
198
|
+
id: {
|
|
199
|
+
bytes: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
size: string;
|
|
203
|
+
};
|
|
204
|
+
}[];
|
|
205
|
+
}[], Iterable<{
|
|
206
|
+
vec: Iterable<{
|
|
207
|
+
id: {
|
|
208
|
+
id: {
|
|
209
|
+
bytes: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
pool_reward_manager_id: {
|
|
213
|
+
bytes: string;
|
|
214
|
+
};
|
|
215
|
+
coin_type: {
|
|
216
|
+
name: {
|
|
217
|
+
bytes: Iterable<number> & {
|
|
218
|
+
length: number;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
start_time_ms: string | number | bigint;
|
|
223
|
+
end_time_ms: string | number | bigint;
|
|
224
|
+
total_rewards: string | number | bigint;
|
|
225
|
+
allocated_rewards: {
|
|
226
|
+
value: string | number | bigint;
|
|
227
|
+
};
|
|
228
|
+
cumulative_rewards_per_share: {
|
|
229
|
+
value: string | number | bigint;
|
|
230
|
+
};
|
|
231
|
+
num_user_reward_managers: string | number | bigint;
|
|
232
|
+
additional_fields: {
|
|
233
|
+
id: {
|
|
234
|
+
id: {
|
|
235
|
+
bytes: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
size: string | number | bigint;
|
|
239
|
+
};
|
|
240
|
+
}> & {
|
|
216
241
|
length: number;
|
|
217
242
|
};
|
|
218
243
|
}> & {
|
|
219
244
|
length: number;
|
|
220
|
-
}
|
|
221
|
-
last_update_time_ms: string | number | bigint
|
|
222
|
-
}>;
|
|
245
|
+
}, string>;
|
|
246
|
+
last_update_time_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
247
|
+
}, string>;
|
|
223
248
|
static fromFields(fields: Record<string, any>): PoolRewardManager;
|
|
224
249
|
static fromFieldsWithTypes(item: FieldsWithTypes): PoolRewardManager;
|
|
225
250
|
static fromBcs(data: Uint8Array): PoolRewardManager;
|
|
@@ -303,11 +328,9 @@ export declare class RewardBalance<T extends PhantomTypeArgument> implements Str
|
|
|
303
328
|
static get r(): typeof RewardBalance.reified;
|
|
304
329
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<RewardBalance<ToPhantomTypeArgument<T>>>>;
|
|
305
330
|
static get p(): typeof RewardBalance.phantom;
|
|
306
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
307
|
-
dummy_field: boolean
|
|
308
|
-
},
|
|
309
|
-
dummy_field: boolean;
|
|
310
|
-
}>;
|
|
331
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
332
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
333
|
+
}, string>;
|
|
311
334
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): RewardBalance<ToPhantomTypeArgument<T>>;
|
|
312
335
|
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): RewardBalance<ToPhantomTypeArgument<T>>;
|
|
313
336
|
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): RewardBalance<ToPhantomTypeArgument<T>>;
|
|
@@ -349,27 +372,17 @@ export declare class UserReward implements StructClass {
|
|
|
349
372
|
static get r(): reified.StructClassReified<UserReward, UserRewardFields>;
|
|
350
373
|
static phantom(): PhantomReified<ToTypeStr<UserReward>>;
|
|
351
374
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::UserReward" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserReward">;
|
|
352
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
353
|
-
pool_reward_id: {
|
|
354
|
-
bytes: string
|
|
355
|
-
}
|
|
356
|
-
earned_rewards: {
|
|
357
|
-
value: string
|
|
358
|
-
}
|
|
359
|
-
cumulative_rewards_per_share: {
|
|
360
|
-
value: string
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
pool_reward_id: {
|
|
364
|
-
bytes: string;
|
|
365
|
-
};
|
|
366
|
-
earned_rewards: {
|
|
367
|
-
value: string | number | bigint;
|
|
368
|
-
};
|
|
369
|
-
cumulative_rewards_per_share: {
|
|
370
|
-
value: string | number | bigint;
|
|
371
|
-
};
|
|
372
|
-
}>;
|
|
375
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
376
|
+
pool_reward_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
377
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
378
|
+
}, string>;
|
|
379
|
+
earned_rewards: import("@mysten/sui/bcs").BcsStruct<{
|
|
380
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
381
|
+
}, string>;
|
|
382
|
+
cumulative_rewards_per_share: import("@mysten/sui/bcs").BcsStruct<{
|
|
383
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
384
|
+
}, string>;
|
|
385
|
+
}, string>;
|
|
373
386
|
static fromFields(fields: Record<string, any>): UserReward;
|
|
374
387
|
static fromFieldsWithTypes(item: FieldsWithTypes): UserReward;
|
|
375
388
|
static fromBcs(data: Uint8Array): UserReward;
|
|
@@ -425,29 +438,42 @@ export declare class UserRewardManager implements StructClass {
|
|
|
425
438
|
static get r(): reified.StructClassReified<UserRewardManager, UserRewardManagerFields>;
|
|
426
439
|
static phantom(): PhantomReified<ToTypeStr<UserRewardManager>>;
|
|
427
440
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::UserRewardManager" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserRewardManager">;
|
|
428
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
429
|
-
pool_reward_manager_id: {
|
|
430
|
-
bytes: string
|
|
431
|
-
}
|
|
432
|
-
share: string
|
|
433
|
-
rewards: {
|
|
434
|
-
vec:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
442
|
+
pool_reward_manager_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
443
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
444
|
+
}, string>;
|
|
445
|
+
share: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
446
|
+
rewards: import("@mysten/sui/bcs").BcsType<{
|
|
447
|
+
vec: {
|
|
448
|
+
pool_reward_id: {
|
|
449
|
+
bytes: string;
|
|
450
|
+
};
|
|
451
|
+
earned_rewards: {
|
|
452
|
+
value: string;
|
|
453
|
+
};
|
|
454
|
+
cumulative_rewards_per_share: {
|
|
455
|
+
value: string;
|
|
456
|
+
};
|
|
457
|
+
}[];
|
|
458
|
+
}[], Iterable<{
|
|
459
|
+
vec: Iterable<{
|
|
460
|
+
pool_reward_id: {
|
|
461
|
+
bytes: string;
|
|
462
|
+
};
|
|
463
|
+
earned_rewards: {
|
|
464
|
+
value: string | number | bigint;
|
|
465
|
+
};
|
|
466
|
+
cumulative_rewards_per_share: {
|
|
467
|
+
value: string | number | bigint;
|
|
468
|
+
};
|
|
469
|
+
}> & {
|
|
444
470
|
length: number;
|
|
445
471
|
};
|
|
446
472
|
}> & {
|
|
447
473
|
length: number;
|
|
448
|
-
}
|
|
449
|
-
last_update_time_ms: string | number | bigint
|
|
450
|
-
}>;
|
|
474
|
+
}, string>;
|
|
475
|
+
last_update_time_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
476
|
+
}, string>;
|
|
451
477
|
static fromFields(fields: Record<string, any>): UserRewardManager;
|
|
452
478
|
static fromFieldsWithTypes(item: FieldsWithTypes): UserRewardManager;
|
|
453
479
|
static fromBcs(data: Uint8Array): UserRewardManager;
|