@suilend/sdk 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +3 -3
- package/_generated/_dependencies/source/0x1/ascii/structs.js +7 -7
- package/_generated/_dependencies/source/0x1/index.d.ts +1 -1
- package/_generated/_dependencies/source/0x1/index.js +2 -2
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -3
- package/_generated/_dependencies/source/0x1/option/structs.js +4 -4
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +2 -2
- package/_generated/_dependencies/source/0x1/type-name/structs.js +4 -4
- package/_generated/_dependencies/source/0x2/bag/structs.js +2 -2
- package/_generated/_dependencies/source/0x2/balance/structs.js +3 -3
- package/_generated/_dependencies/source/0x2/object/structs.js +3 -3
- package/_generated/_dependencies/source/0x2/object-table/structs.js +2 -2
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +2 -2
- package/_generated/_framework/reified.js +10 -10
- package/_generated/_framework/util.d.ts +11 -5
- package/_generated/_framework/util.js +13 -12
- package/_generated/_framework/vector.d.ts +1 -1
- package/_generated/_framework/vector.js +2 -2
- package/_generated/suilend/cell/structs.d.ts +3 -3
- package/_generated/suilend/cell/structs.js +2 -2
- package/_generated/suilend/decimal/structs.d.ts +3 -3
- package/_generated/suilend/decimal/structs.js +2 -2
- package/_generated/suilend/index.d.ts +3 -3
- package/_generated/suilend/index.js +11 -5
- package/_generated/suilend/lending-market/functions.d.ts +50 -6
- package/_generated/suilend/lending-market/functions.js +136 -41
- package/_generated/suilend/lending-market/structs.d.ts +192 -192
- package/_generated/suilend/lending-market/structs.js +392 -392
- package/_generated/suilend/lending-market-registry/functions.js +3 -2
- package/_generated/suilend/liquidity-mining/structs.d.ts +14 -14
- package/_generated/suilend/liquidity-mining/structs.js +6 -6
- package/_generated/suilend/obligation/structs.d.ts +17 -17
- package/_generated/suilend/obligation/structs.js +7 -7
- package/_generated/suilend/rate-limiter/functions.js +7 -6
- package/_generated/suilend/rate-limiter/structs.d.ts +6 -6
- package/_generated/suilend/rate-limiter/structs.js +3 -3
- package/_generated/suilend/reserve/structs.d.ts +179 -15
- package/_generated/suilend/reserve/structs.js +434 -7
- package/_generated/suilend/reserve-config/functions.d.ts +7 -7
- package/_generated/suilend/reserve-config/functions.js +54 -53
- package/_generated/suilend/reserve-config/structs.d.ts +6 -6
- package/_generated/suilend/reserve-config/structs.js +3 -3
- package/client.d.ts +3 -2
- package/client.js +52 -31
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +3 -3
- package/parsers/obligation.d.ts +4 -4
- package/parsers/reserve.d.ts +2 -2
- package/utils/events.js +3 -3
- package/utils/obligation.js +6 -5
|
@@ -18,10 +18,10 @@ export interface BalanceKeyFields {
|
|
|
18
18
|
export type BalanceKeyReified = Reified<BalanceKey, BalanceKeyFields>;
|
|
19
19
|
export declare class BalanceKey implements StructClass {
|
|
20
20
|
__StructClass: true;
|
|
21
|
-
static readonly $typeName
|
|
21
|
+
static readonly $typeName: string;
|
|
22
22
|
static readonly $numTypeParams = 0;
|
|
23
23
|
static readonly $isPhantom: readonly [];
|
|
24
|
-
readonly $typeName
|
|
24
|
+
readonly $typeName: string;
|
|
25
25
|
readonly $fullTypeName: `${typeof PKG_V1}::reserve::BalanceKey`;
|
|
26
26
|
readonly $typeArgs: [];
|
|
27
27
|
readonly $isPhantom: readonly [];
|
|
@@ -30,7 +30,7 @@ export declare class BalanceKey implements StructClass {
|
|
|
30
30
|
static reified(): BalanceKeyReified;
|
|
31
31
|
static get r(): reified.StructClassReified<BalanceKey, BalanceKeyFields>;
|
|
32
32
|
static phantom(): PhantomReified<ToTypeStr<BalanceKey>>;
|
|
33
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::BalanceKey">;
|
|
33
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::BalanceKey" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::BalanceKey">;
|
|
34
34
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
35
35
|
dummy_field: boolean;
|
|
36
36
|
}, {
|
|
@@ -64,10 +64,10 @@ export interface BalancesFields<P extends PhantomTypeArgument, T extends Phantom
|
|
|
64
64
|
export type BalancesReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<Balances<P, T>, BalancesFields<P, T>>;
|
|
65
65
|
export declare class Balances<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
|
|
66
66
|
__StructClass: true;
|
|
67
|
-
static readonly $typeName
|
|
67
|
+
static readonly $typeName: string;
|
|
68
68
|
static readonly $numTypeParams = 2;
|
|
69
69
|
static readonly $isPhantom: readonly [true, true];
|
|
70
|
-
readonly $typeName
|
|
70
|
+
readonly $typeName: string;
|
|
71
71
|
readonly $fullTypeName: `${typeof PKG_V1}::reserve::Balances<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
|
|
72
72
|
readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
|
|
73
73
|
readonly $isPhantom: readonly [true, true];
|
|
@@ -166,10 +166,10 @@ export interface CTokenFields<P extends PhantomTypeArgument, T extends PhantomTy
|
|
|
166
166
|
export type CTokenReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<CToken<P, T>, CTokenFields<P, T>>;
|
|
167
167
|
export declare class CToken<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
|
|
168
168
|
__StructClass: true;
|
|
169
|
-
static readonly $typeName
|
|
169
|
+
static readonly $typeName: string;
|
|
170
170
|
static readonly $numTypeParams = 2;
|
|
171
171
|
static readonly $isPhantom: readonly [true, true];
|
|
172
|
-
readonly $typeName
|
|
172
|
+
readonly $typeName: string;
|
|
173
173
|
readonly $fullTypeName: `${typeof PKG_V1}::reserve::CToken<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
|
|
174
174
|
readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
|
|
175
175
|
readonly $isPhantom: readonly [true, true];
|
|
@@ -201,6 +201,80 @@ export declare class CToken<P extends PhantomTypeArgument, T extends PhantomType
|
|
|
201
201
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
202
202
|
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArgs: [P, T], id: string): Promise<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
203
203
|
}
|
|
204
|
+
export declare function isClaimStakingRewardsEvent(type: string): boolean;
|
|
205
|
+
export interface ClaimStakingRewardsEventFields {
|
|
206
|
+
lendingMarketId: ToField<"address">;
|
|
207
|
+
coinType: ToField<TypeName>;
|
|
208
|
+
reserveId: ToField<"address">;
|
|
209
|
+
amount: ToField<"u64">;
|
|
210
|
+
}
|
|
211
|
+
export type ClaimStakingRewardsEventReified = Reified<ClaimStakingRewardsEvent, ClaimStakingRewardsEventFields>;
|
|
212
|
+
export declare class ClaimStakingRewardsEvent implements StructClass {
|
|
213
|
+
__StructClass: true;
|
|
214
|
+
static readonly $typeName: string;
|
|
215
|
+
static readonly $numTypeParams = 0;
|
|
216
|
+
static readonly $isPhantom: readonly [];
|
|
217
|
+
readonly $typeName: string;
|
|
218
|
+
readonly $fullTypeName: `${typeof PKG_V1}::reserve::ClaimStakingRewardsEvent`;
|
|
219
|
+
readonly $typeArgs: [];
|
|
220
|
+
readonly $isPhantom: readonly [];
|
|
221
|
+
readonly lendingMarketId: ToField<"address">;
|
|
222
|
+
readonly coinType: ToField<TypeName>;
|
|
223
|
+
readonly reserveId: ToField<"address">;
|
|
224
|
+
readonly amount: ToField<"u64">;
|
|
225
|
+
private constructor();
|
|
226
|
+
static reified(): ClaimStakingRewardsEventReified;
|
|
227
|
+
static get r(): reified.StructClassReified<ClaimStakingRewardsEvent, ClaimStakingRewardsEventFields>;
|
|
228
|
+
static phantom(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
|
|
229
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::ClaimStakingRewardsEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::ClaimStakingRewardsEvent">;
|
|
230
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
231
|
+
lending_market_id: string;
|
|
232
|
+
coin_type: {
|
|
233
|
+
name: {
|
|
234
|
+
bytes: number[];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
reserve_id: string;
|
|
238
|
+
amount: string;
|
|
239
|
+
}, {
|
|
240
|
+
lending_market_id: string;
|
|
241
|
+
coin_type: {
|
|
242
|
+
name: {
|
|
243
|
+
bytes: Iterable<number> & {
|
|
244
|
+
length: number;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
reserve_id: string;
|
|
249
|
+
amount: string | number | bigint;
|
|
250
|
+
}>;
|
|
251
|
+
static fromFields(fields: Record<string, any>): ClaimStakingRewardsEvent;
|
|
252
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimStakingRewardsEvent;
|
|
253
|
+
static fromBcs(data: Uint8Array): ClaimStakingRewardsEvent;
|
|
254
|
+
toJSONField(): {
|
|
255
|
+
lendingMarketId: string;
|
|
256
|
+
coinType: {
|
|
257
|
+
name: string;
|
|
258
|
+
};
|
|
259
|
+
reserveId: string;
|
|
260
|
+
amount: string;
|
|
261
|
+
};
|
|
262
|
+
toJSON(): {
|
|
263
|
+
lendingMarketId: string;
|
|
264
|
+
coinType: {
|
|
265
|
+
name: string;
|
|
266
|
+
};
|
|
267
|
+
reserveId: string;
|
|
268
|
+
amount: string;
|
|
269
|
+
$typeName: string;
|
|
270
|
+
$typeArgs: [];
|
|
271
|
+
};
|
|
272
|
+
static fromJSONField(field: any): ClaimStakingRewardsEvent;
|
|
273
|
+
static fromJSON(json: Record<string, any>): ClaimStakingRewardsEvent;
|
|
274
|
+
static fromSuiParsedData(content: SuiParsedData): ClaimStakingRewardsEvent;
|
|
275
|
+
static fromSuiObjectData(data: SuiObjectData): ClaimStakingRewardsEvent;
|
|
276
|
+
static fetch(client: SuiClient, id: string): Promise<ClaimStakingRewardsEvent>;
|
|
277
|
+
}
|
|
204
278
|
export declare function isInterestUpdateEvent(type: string): boolean;
|
|
205
279
|
export interface InterestUpdateEventFields {
|
|
206
280
|
lendingMarketId: ToField<"address">;
|
|
@@ -221,10 +295,10 @@ export interface InterestUpdateEventFields {
|
|
|
221
295
|
export type InterestUpdateEventReified = Reified<InterestUpdateEvent, InterestUpdateEventFields>;
|
|
222
296
|
export declare class InterestUpdateEvent implements StructClass {
|
|
223
297
|
__StructClass: true;
|
|
224
|
-
static readonly $typeName
|
|
298
|
+
static readonly $typeName: string;
|
|
225
299
|
static readonly $numTypeParams = 0;
|
|
226
300
|
static readonly $isPhantom: readonly [];
|
|
227
|
-
readonly $typeName
|
|
301
|
+
readonly $typeName: string;
|
|
228
302
|
readonly $fullTypeName: `${typeof PKG_V1}::reserve::InterestUpdateEvent`;
|
|
229
303
|
readonly $typeArgs: [];
|
|
230
304
|
readonly $isPhantom: readonly [];
|
|
@@ -246,7 +320,7 @@ export declare class InterestUpdateEvent implements StructClass {
|
|
|
246
320
|
static reified(): InterestUpdateEventReified;
|
|
247
321
|
static get r(): reified.StructClassReified<InterestUpdateEvent, InterestUpdateEventFields>;
|
|
248
322
|
static phantom(): PhantomReified<ToTypeStr<InterestUpdateEvent>>;
|
|
249
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::InterestUpdateEvent">;
|
|
323
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::InterestUpdateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::InterestUpdateEvent">;
|
|
250
324
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
251
325
|
lending_market_id: string;
|
|
252
326
|
coin_type: {
|
|
@@ -407,6 +481,54 @@ export declare class InterestUpdateEvent implements StructClass {
|
|
|
407
481
|
static fromSuiObjectData(data: SuiObjectData): InterestUpdateEvent;
|
|
408
482
|
static fetch(client: SuiClient, id: string): Promise<InterestUpdateEvent>;
|
|
409
483
|
}
|
|
484
|
+
export declare function isLiquidityRequest(type: string): boolean;
|
|
485
|
+
export interface LiquidityRequestFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
486
|
+
amount: ToField<"u64">;
|
|
487
|
+
fee: ToField<"u64">;
|
|
488
|
+
}
|
|
489
|
+
export type LiquidityRequestReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<LiquidityRequest<P, T>, LiquidityRequestFields<P, T>>;
|
|
490
|
+
export declare class LiquidityRequest<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
|
|
491
|
+
__StructClass: true;
|
|
492
|
+
static readonly $typeName: string;
|
|
493
|
+
static readonly $numTypeParams = 2;
|
|
494
|
+
static readonly $isPhantom: readonly [true, true];
|
|
495
|
+
readonly $typeName: string;
|
|
496
|
+
readonly $fullTypeName: `${typeof PKG_V1}::reserve::LiquidityRequest<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
|
|
497
|
+
readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
|
|
498
|
+
readonly $isPhantom: readonly [true, true];
|
|
499
|
+
readonly amount: ToField<"u64">;
|
|
500
|
+
readonly fee: ToField<"u64">;
|
|
501
|
+
private constructor();
|
|
502
|
+
static reified<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): LiquidityRequestReified<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
503
|
+
static get r(): typeof LiquidityRequest.reified;
|
|
504
|
+
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
505
|
+
static get p(): typeof LiquidityRequest.phantom;
|
|
506
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
507
|
+
amount: string;
|
|
508
|
+
fee: string;
|
|
509
|
+
}, {
|
|
510
|
+
amount: string | number | bigint;
|
|
511
|
+
fee: string | number | bigint;
|
|
512
|
+
}>;
|
|
513
|
+
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
514
|
+
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
515
|
+
static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
516
|
+
toJSONField(): {
|
|
517
|
+
amount: string;
|
|
518
|
+
fee: string;
|
|
519
|
+
};
|
|
520
|
+
toJSON(): {
|
|
521
|
+
amount: string;
|
|
522
|
+
fee: string;
|
|
523
|
+
$typeName: string;
|
|
524
|
+
$typeArgs: [reified.PhantomToTypeStr<P>, reified.PhantomToTypeStr<T>];
|
|
525
|
+
};
|
|
526
|
+
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
527
|
+
static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
528
|
+
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], content: SuiParsedData): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
529
|
+
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
530
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArgs: [P, T], id: string): Promise<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
531
|
+
}
|
|
410
532
|
export declare function isReserve(type: string): boolean;
|
|
411
533
|
export interface ReserveFields<P extends PhantomTypeArgument> {
|
|
412
534
|
id: ToField<UID>;
|
|
@@ -432,10 +554,10 @@ export interface ReserveFields<P extends PhantomTypeArgument> {
|
|
|
432
554
|
export type ReserveReified<P extends PhantomTypeArgument> = Reified<Reserve<P>, ReserveFields<P>>;
|
|
433
555
|
export declare class Reserve<P extends PhantomTypeArgument> implements StructClass {
|
|
434
556
|
__StructClass: true;
|
|
435
|
-
static readonly $typeName
|
|
557
|
+
static readonly $typeName: string;
|
|
436
558
|
static readonly $numTypeParams = 1;
|
|
437
559
|
static readonly $isPhantom: readonly [true];
|
|
438
|
-
readonly $typeName
|
|
560
|
+
readonly $typeName: string;
|
|
439
561
|
readonly $fullTypeName: `${typeof PKG_V1}::reserve::Reserve<${PhantomToTypeStr<P>}>`;
|
|
440
562
|
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
441
563
|
readonly $isPhantom: readonly [true];
|
|
@@ -875,10 +997,10 @@ export interface ReserveAssetDataEventFields {
|
|
|
875
997
|
export type ReserveAssetDataEventReified = Reified<ReserveAssetDataEvent, ReserveAssetDataEventFields>;
|
|
876
998
|
export declare class ReserveAssetDataEvent implements StructClass {
|
|
877
999
|
__StructClass: true;
|
|
878
|
-
static readonly $typeName
|
|
1000
|
+
static readonly $typeName: string;
|
|
879
1001
|
static readonly $numTypeParams = 0;
|
|
880
1002
|
static readonly $isPhantom: readonly [];
|
|
881
|
-
readonly $typeName
|
|
1003
|
+
readonly $typeName: string;
|
|
882
1004
|
readonly $fullTypeName: `${typeof PKG_V1}::reserve::ReserveAssetDataEvent`;
|
|
883
1005
|
readonly $typeArgs: [];
|
|
884
1006
|
readonly $isPhantom: readonly [];
|
|
@@ -902,7 +1024,7 @@ export declare class ReserveAssetDataEvent implements StructClass {
|
|
|
902
1024
|
static reified(): ReserveAssetDataEventReified;
|
|
903
1025
|
static get r(): reified.StructClassReified<ReserveAssetDataEvent, ReserveAssetDataEventFields>;
|
|
904
1026
|
static phantom(): PhantomReified<ToTypeStr<ReserveAssetDataEvent>>;
|
|
905
|
-
static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::ReserveAssetDataEvent">;
|
|
1027
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::ReserveAssetDataEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::ReserveAssetDataEvent">;
|
|
906
1028
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
907
1029
|
lending_market_id: string;
|
|
908
1030
|
coin_type: {
|
|
@@ -1087,3 +1209,45 @@ export declare class ReserveAssetDataEvent implements StructClass {
|
|
|
1087
1209
|
static fromSuiObjectData(data: SuiObjectData): ReserveAssetDataEvent;
|
|
1088
1210
|
static fetch(client: SuiClient, id: string): Promise<ReserveAssetDataEvent>;
|
|
1089
1211
|
}
|
|
1212
|
+
export declare function isStakerKey(type: string): boolean;
|
|
1213
|
+
export interface StakerKeyFields {
|
|
1214
|
+
dummyField: ToField<"bool">;
|
|
1215
|
+
}
|
|
1216
|
+
export type StakerKeyReified = Reified<StakerKey, StakerKeyFields>;
|
|
1217
|
+
export declare class StakerKey implements StructClass {
|
|
1218
|
+
__StructClass: true;
|
|
1219
|
+
static readonly $typeName: string;
|
|
1220
|
+
static readonly $numTypeParams = 0;
|
|
1221
|
+
static readonly $isPhantom: readonly [];
|
|
1222
|
+
readonly $typeName: string;
|
|
1223
|
+
readonly $fullTypeName: `${typeof PKG_V1}::reserve::StakerKey`;
|
|
1224
|
+
readonly $typeArgs: [];
|
|
1225
|
+
readonly $isPhantom: readonly [];
|
|
1226
|
+
readonly dummyField: ToField<"bool">;
|
|
1227
|
+
private constructor();
|
|
1228
|
+
static reified(): StakerKeyReified;
|
|
1229
|
+
static get r(): reified.StructClassReified<StakerKey, StakerKeyFields>;
|
|
1230
|
+
static phantom(): PhantomReified<ToTypeStr<StakerKey>>;
|
|
1231
|
+
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::StakerKey" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::StakerKey">;
|
|
1232
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1233
|
+
dummy_field: boolean;
|
|
1234
|
+
}, {
|
|
1235
|
+
dummy_field: boolean;
|
|
1236
|
+
}>;
|
|
1237
|
+
static fromFields(fields: Record<string, any>): StakerKey;
|
|
1238
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakerKey;
|
|
1239
|
+
static fromBcs(data: Uint8Array): StakerKey;
|
|
1240
|
+
toJSONField(): {
|
|
1241
|
+
dummyField: boolean;
|
|
1242
|
+
};
|
|
1243
|
+
toJSON(): {
|
|
1244
|
+
dummyField: boolean;
|
|
1245
|
+
$typeName: string;
|
|
1246
|
+
$typeArgs: [];
|
|
1247
|
+
};
|
|
1248
|
+
static fromJSONField(field: any): StakerKey;
|
|
1249
|
+
static fromJSON(json: Record<string, any>): StakerKey;
|
|
1250
|
+
static fromSuiParsedData(content: SuiParsedData): StakerKey;
|
|
1251
|
+
static fromSuiObjectData(data: SuiObjectData): StakerKey;
|
|
1252
|
+
static fetch(client: SuiClient, id: string): Promise<StakerKey>;
|
|
1253
|
+
}
|