@suilend/sdk 2.0.3 → 3.0.1
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/ascii/structs.js +6 -63
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -9
- package/_generated/_dependencies/source/0x1/option/structs.js +4 -42
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +5 -7
- package/_generated/_dependencies/source/0x1/type-name/structs.js +3 -32
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +7 -9
- package/_generated/_dependencies/source/0x2/bag/structs.js +3 -31
- package/_generated/_dependencies/source/0x2/balance/structs.d.ts +7 -11
- package/_generated/_dependencies/source/0x2/balance/structs.js +7 -82
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -12
- package/_generated/_dependencies/source/0x2/object/structs.js +7 -61
- package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +7 -9
- package/_generated/_dependencies/source/0x2/object-table/structs.js +4 -44
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +5 -7
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.js +3 -31
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +11 -13
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.js +3 -32
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +23 -25
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.js +3 -32
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +3 -33
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +55 -59
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.js +6 -64
- package/_generated/_framework/reified.d.ts +2 -4
- package/_generated/_framework/vector.d.ts +2 -12
- package/_generated/suilend/cell/structs.d.ts +4 -10
- package/_generated/suilend/cell/structs.js +4 -42
- package/_generated/suilend/decimal/structs.d.ts +4 -6
- package/_generated/suilend/decimal/structs.js +3 -32
- package/_generated/suilend/lending-market/structs.d.ts +152 -392
- package/_generated/suilend/lending-market/structs.js +50 -548
- package/_generated/suilend/liquidity-mining/structs.d.ts +50 -158
- package/_generated/suilend/liquidity-mining/structs.js +16 -169
- package/_generated/suilend/obligation/structs.d.ts +108 -148
- package/_generated/suilend/obligation/structs.js +23 -232
- package/_generated/suilend/rate-limiter/structs.d.ts +15 -19
- package/_generated/suilend/rate-limiter/structs.js +6 -64
- package/_generated/suilend/reserve/structs.d.ts +138 -362
- package/_generated/suilend/reserve/structs.js +29 -327
- package/_generated/suilend/reserve-config/structs.d.ts +33 -37
- package/_generated/suilend/reserve-config/structs.js +6 -65
- package/client.d.ts +8 -8
- package/client.js +55 -88
- package/lib/initialize.d.ts +29 -28
- package/lib/initialize.js +16 -12
- package/lib/liquidityMining.d.ts +3 -3
- package/lib/pythAdapter.d.ts +9 -0
- package/lib/pythAdapter.js +121 -0
- package/lib/strategyOwnerCap.d.ts +12 -7
- package/lib/strategyOwnerCap.js +159 -156
- package/margin/margin/admin_cap.d.ts +2 -2
- package/margin/margin/deps/std/type_name.d.ts +1 -1
- package/margin/margin/deps/sui/vec_set.d.ts +3 -5
- package/margin/margin/deps/suilend/lending_market.d.ts +2 -2
- package/margin/margin/market.d.ts +21 -38
- package/margin/margin/position.d.ts +47 -47
- package/margin/margin/router.d.ts +5 -5
- package/margin/margin/version.d.ts +1 -1
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +6 -6
- package/parsers/obligation.d.ts +8 -8
- package/parsers/reserve.d.ts +8 -8
- package/strategies.d.ts +38 -21
- package/strategies.js +239 -79
- package/swap/quote.d.ts +1 -9
- package/swap/quote.js +1 -52
- package/swap/transaction.d.ts +2 -4
- package/swap/transaction.js +9 -25
- package/utils/events.d.ts +6 -5
- package/utils/events.js +11 -8
- package/utils/obligation.d.ts +6 -5
- package/utils/obligation.js +118 -117
|
@@ -10,7 +10,7 @@ import { Decimal } from "../decimal/structs";
|
|
|
10
10
|
import { PKG_V1, PKG_V8 } from "../index";
|
|
11
11
|
import { PoolRewardManager } from "../liquidity-mining/structs";
|
|
12
12
|
import { ReserveConfig } from "../reserve-config/structs";
|
|
13
|
-
import {
|
|
13
|
+
import { SuiGrpcClient } from "@mysten/sui/grpc";
|
|
14
14
|
export declare function isBalanceKey(type: string): boolean;
|
|
15
15
|
export interface BalanceKeyFields {
|
|
16
16
|
dummyField: ToField<"bool">;
|
|
@@ -31,8 +31,8 @@ export declare class BalanceKey implements StructClass {
|
|
|
31
31
|
static get r(): reified.StructClassReified<BalanceKey, BalanceKeyFields>;
|
|
32
32
|
static phantom(): PhantomReified<ToTypeStr<BalanceKey>>;
|
|
33
33
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::BalanceKey" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::BalanceKey">;
|
|
34
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
35
|
-
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
34
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
35
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
36
36
|
}, string>;
|
|
37
37
|
static fromFields(fields: Record<string, any>): BalanceKey;
|
|
38
38
|
static fromFieldsWithTypes(item: FieldsWithTypes): BalanceKey;
|
|
@@ -47,9 +47,7 @@ export declare class BalanceKey implements StructClass {
|
|
|
47
47
|
};
|
|
48
48
|
static fromJSONField(field: any): BalanceKey;
|
|
49
49
|
static fromJSON(json: Record<string, any>): BalanceKey;
|
|
50
|
-
static
|
|
51
|
-
static fromSuiObjectData(data: SuiObjectData): BalanceKey;
|
|
52
|
-
static fetch(client: SuiJsonRpcClient, id: string): Promise<BalanceKey>;
|
|
50
|
+
static fetch(client: SuiGrpcClient, id: string): Promise<BalanceKey>;
|
|
53
51
|
}
|
|
54
52
|
export declare function isBalances(type: string): boolean;
|
|
55
53
|
export interface BalancesFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
@@ -79,21 +77,21 @@ export declare class Balances<P extends PhantomTypeArgument, T extends PhantomTy
|
|
|
79
77
|
static get r(): typeof Balances.reified;
|
|
80
78
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
81
79
|
static get p(): typeof Balances.phantom;
|
|
82
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
83
|
-
available_amount: import("@mysten/bcs").BcsStruct<{
|
|
84
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
80
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
81
|
+
available_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
82
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
85
83
|
}, string>;
|
|
86
|
-
ctoken_supply: import("@mysten/bcs").BcsStruct<{
|
|
87
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
84
|
+
ctoken_supply: import("@mysten/sui/bcs").BcsStruct<{
|
|
85
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
88
86
|
}, string>;
|
|
89
|
-
fees: import("@mysten/bcs").BcsStruct<{
|
|
90
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
87
|
+
fees: import("@mysten/sui/bcs").BcsStruct<{
|
|
88
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
91
89
|
}, string>;
|
|
92
|
-
ctoken_fees: import("@mysten/bcs").BcsStruct<{
|
|
93
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
90
|
+
ctoken_fees: import("@mysten/sui/bcs").BcsStruct<{
|
|
91
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
94
92
|
}, string>;
|
|
95
|
-
deposited_ctokens: import("@mysten/bcs").BcsStruct<{
|
|
96
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
93
|
+
deposited_ctokens: import("@mysten/sui/bcs").BcsStruct<{
|
|
94
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
97
95
|
}, string>;
|
|
98
96
|
}, string>;
|
|
99
97
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -137,9 +135,7 @@ export declare class Balances<P extends PhantomTypeArgument, T extends PhantomTy
|
|
|
137
135
|
};
|
|
138
136
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
139
137
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
140
|
-
static
|
|
141
|
-
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
142
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArgs: [P, T], id: string): Promise<Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
138
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArgs: [P, T], id: string): Promise<Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
143
139
|
}
|
|
144
140
|
export declare function isCToken(type: string): boolean;
|
|
145
141
|
export interface CTokenFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
@@ -161,8 +157,8 @@ export declare class CToken<P extends PhantomTypeArgument, T extends PhantomType
|
|
|
161
157
|
static get r(): typeof CToken.reified;
|
|
162
158
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
163
159
|
static get p(): typeof CToken.phantom;
|
|
164
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
165
|
-
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
160
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
161
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
166
162
|
}, string>;
|
|
167
163
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
168
164
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -177,9 +173,7 @@ export declare class CToken<P extends PhantomTypeArgument, T extends PhantomType
|
|
|
177
173
|
};
|
|
178
174
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
179
175
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
180
|
-
static
|
|
181
|
-
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
182
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArgs: [P, T], id: string): Promise<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
176
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArgs: [P, T], id: string): Promise<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
183
177
|
}
|
|
184
178
|
export declare function isClaimStakingRewardsEvent(type: string): boolean;
|
|
185
179
|
export interface ClaimStakingRewardsEventFields {
|
|
@@ -207,17 +201,17 @@ export declare class ClaimStakingRewardsEvent implements StructClass {
|
|
|
207
201
|
static get r(): reified.StructClassReified<ClaimStakingRewardsEvent, ClaimStakingRewardsEventFields>;
|
|
208
202
|
static phantom(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
|
|
209
203
|
static get p(): reified.PhantomReified<"0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::reserve::ClaimStakingRewardsEvent" | "0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb::reserve::ClaimStakingRewardsEvent">;
|
|
210
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
211
|
-
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
212
|
-
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
213
|
-
name: import("@mysten/bcs").BcsStruct<{
|
|
214
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
204
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
205
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
206
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
207
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
208
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
215
209
|
length: number;
|
|
216
210
|
}, string>;
|
|
217
211
|
}, string>;
|
|
218
212
|
}, string>;
|
|
219
|
-
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
220
|
-
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
213
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
214
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
221
215
|
}, string>;
|
|
222
216
|
static fromFields(fields: Record<string, any>): ClaimStakingRewardsEvent;
|
|
223
217
|
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimStakingRewardsEvent;
|
|
@@ -242,9 +236,7 @@ export declare class ClaimStakingRewardsEvent implements StructClass {
|
|
|
242
236
|
};
|
|
243
237
|
static fromJSONField(field: any): ClaimStakingRewardsEvent;
|
|
244
238
|
static fromJSON(json: Record<string, any>): ClaimStakingRewardsEvent;
|
|
245
|
-
static
|
|
246
|
-
static fromSuiObjectData(data: SuiObjectData): ClaimStakingRewardsEvent;
|
|
247
|
-
static fetch(client: SuiJsonRpcClient, id: string): Promise<ClaimStakingRewardsEvent>;
|
|
239
|
+
static fetch(client: SuiGrpcClient, id: string): Promise<ClaimStakingRewardsEvent>;
|
|
248
240
|
}
|
|
249
241
|
export declare function isInterestUpdateEvent(type: string): boolean;
|
|
250
242
|
export interface InterestUpdateEventFields {
|
|
@@ -292,44 +284,44 @@ export declare class InterestUpdateEvent implements StructClass {
|
|
|
292
284
|
static get r(): reified.StructClassReified<InterestUpdateEvent, InterestUpdateEventFields>;
|
|
293
285
|
static phantom(): PhantomReified<ToTypeStr<InterestUpdateEvent>>;
|
|
294
286
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::InterestUpdateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::InterestUpdateEvent">;
|
|
295
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
296
|
-
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
297
|
-
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
298
|
-
name: import("@mysten/bcs").BcsStruct<{
|
|
299
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
287
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
288
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
289
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
290
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
291
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
300
292
|
length: number;
|
|
301
293
|
}, string>;
|
|
302
294
|
}, string>;
|
|
303
295
|
}, string>;
|
|
304
|
-
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
305
|
-
cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
|
|
306
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
296
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
297
|
+
cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
|
|
298
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
307
299
|
}, string>;
|
|
308
|
-
available_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
309
|
-
borrowed_amount: import("@mysten/bcs").BcsStruct<{
|
|
310
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
300
|
+
available_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
301
|
+
borrowed_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
302
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
311
303
|
}, string>;
|
|
312
|
-
unclaimed_spread_fees: import("@mysten/bcs").BcsStruct<{
|
|
313
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
304
|
+
unclaimed_spread_fees: import("@mysten/sui/bcs").BcsStruct<{
|
|
305
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
314
306
|
}, string>;
|
|
315
|
-
ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
316
|
-
borrow_interest_paid: import("@mysten/bcs").BcsStruct<{
|
|
317
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
307
|
+
ctoken_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
308
|
+
borrow_interest_paid: import("@mysten/sui/bcs").BcsStruct<{
|
|
309
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
318
310
|
}, string>;
|
|
319
|
-
spread_fee: import("@mysten/bcs").BcsStruct<{
|
|
320
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
311
|
+
spread_fee: import("@mysten/sui/bcs").BcsStruct<{
|
|
312
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
321
313
|
}, string>;
|
|
322
|
-
supply_interest_earned: import("@mysten/bcs").BcsStruct<{
|
|
323
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
314
|
+
supply_interest_earned: import("@mysten/sui/bcs").BcsStruct<{
|
|
315
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
324
316
|
}, string>;
|
|
325
|
-
borrow_interest_paid_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
326
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
317
|
+
borrow_interest_paid_usd_estimate: import("@mysten/sui/bcs").BcsStruct<{
|
|
318
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
327
319
|
}, string>;
|
|
328
|
-
protocol_fee_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
329
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
320
|
+
protocol_fee_usd_estimate: import("@mysten/sui/bcs").BcsStruct<{
|
|
321
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
330
322
|
}, string>;
|
|
331
|
-
supply_interest_earned_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
332
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
323
|
+
supply_interest_earned_usd_estimate: import("@mysten/sui/bcs").BcsStruct<{
|
|
324
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
333
325
|
}, string>;
|
|
334
326
|
}, string>;
|
|
335
327
|
static fromFields(fields: Record<string, any>): InterestUpdateEvent;
|
|
@@ -411,9 +403,7 @@ export declare class InterestUpdateEvent implements StructClass {
|
|
|
411
403
|
};
|
|
412
404
|
static fromJSONField(field: any): InterestUpdateEvent;
|
|
413
405
|
static fromJSON(json: Record<string, any>): InterestUpdateEvent;
|
|
414
|
-
static
|
|
415
|
-
static fromSuiObjectData(data: SuiObjectData): InterestUpdateEvent;
|
|
416
|
-
static fetch(client: SuiJsonRpcClient, id: string): Promise<InterestUpdateEvent>;
|
|
406
|
+
static fetch(client: SuiGrpcClient, id: string): Promise<InterestUpdateEvent>;
|
|
417
407
|
}
|
|
418
408
|
export declare function isLiquidityRequest(type: string): boolean;
|
|
419
409
|
export interface LiquidityRequestFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
@@ -437,9 +427,9 @@ export declare class LiquidityRequest<P extends PhantomTypeArgument, T extends P
|
|
|
437
427
|
static get r(): typeof LiquidityRequest.reified;
|
|
438
428
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
439
429
|
static get p(): typeof LiquidityRequest.phantom;
|
|
440
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
441
|
-
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
442
|
-
fee: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
430
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
431
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
432
|
+
fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
443
433
|
}, string>;
|
|
444
434
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
445
435
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -456,9 +446,7 @@ export declare class LiquidityRequest<P extends PhantomTypeArgument, T extends P
|
|
|
456
446
|
};
|
|
457
447
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
458
448
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
459
|
-
static
|
|
460
|
-
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
461
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArgs: [P, T], id: string): Promise<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
449
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArgs: [P, T], id: string): Promise<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
462
450
|
}
|
|
463
451
|
export declare function isReserve(type: string): boolean;
|
|
464
452
|
export interface ReserveFields<P extends PhantomTypeArgument> {
|
|
@@ -516,283 +504,77 @@ export declare class Reserve<P extends PhantomTypeArgument> implements StructCla
|
|
|
516
504
|
static get r(): typeof Reserve.reified;
|
|
517
505
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<Reserve<ToPhantomTypeArgument<P>>>>;
|
|
518
506
|
static get p(): typeof Reserve.phantom;
|
|
519
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
520
|
-
id: import("@mysten/bcs").BcsStruct<{
|
|
521
|
-
id: import("@mysten/bcs").BcsStruct<{
|
|
522
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
507
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
508
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
509
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
510
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
523
511
|
}, string>;
|
|
524
512
|
}, string>;
|
|
525
|
-
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
526
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
513
|
+
lending_market_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
514
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
527
515
|
}, string>;
|
|
528
|
-
array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
529
|
-
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
530
|
-
name: import("@mysten/bcs").BcsStruct<{
|
|
531
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
516
|
+
array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
517
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
518
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
519
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
532
520
|
length: number;
|
|
533
521
|
}, string>;
|
|
534
522
|
}, string>;
|
|
535
523
|
}, string>;
|
|
536
|
-
config: import("@mysten/bcs").BcsStruct<{
|
|
537
|
-
element: import("@mysten/bcs").
|
|
538
|
-
vec: import("@mysten/bcs").BcsType<{
|
|
539
|
-
open_ltv_pct: number;
|
|
540
|
-
close_ltv_pct: number;
|
|
541
|
-
max_close_ltv_pct: number;
|
|
542
|
-
borrow_weight_bps: string;
|
|
543
|
-
deposit_limit: string;
|
|
544
|
-
borrow_limit: string;
|
|
545
|
-
liquidation_bonus_bps: string;
|
|
546
|
-
max_liquidation_bonus_bps: string;
|
|
547
|
-
deposit_limit_usd: string;
|
|
548
|
-
borrow_limit_usd: string;
|
|
549
|
-
interest_rate_utils: number[];
|
|
550
|
-
interest_rate_aprs: string[];
|
|
551
|
-
borrow_fee_bps: string;
|
|
552
|
-
spread_fee_bps: string;
|
|
553
|
-
protocol_liquidation_fee_bps: string;
|
|
554
|
-
isolated: boolean;
|
|
555
|
-
open_attributed_borrow_limit_usd: string;
|
|
556
|
-
close_attributed_borrow_limit_usd: string;
|
|
557
|
-
additional_fields: {
|
|
558
|
-
id: {
|
|
559
|
-
id: {
|
|
560
|
-
bytes: string;
|
|
561
|
-
};
|
|
562
|
-
};
|
|
563
|
-
size: string;
|
|
564
|
-
};
|
|
565
|
-
}[], Iterable<{
|
|
566
|
-
open_ltv_pct: number;
|
|
567
|
-
close_ltv_pct: number;
|
|
568
|
-
max_close_ltv_pct: number;
|
|
569
|
-
borrow_weight_bps: string | number | bigint;
|
|
570
|
-
deposit_limit: string | number | bigint;
|
|
571
|
-
borrow_limit: string | number | bigint;
|
|
572
|
-
liquidation_bonus_bps: string | number | bigint;
|
|
573
|
-
max_liquidation_bonus_bps: string | number | bigint;
|
|
574
|
-
deposit_limit_usd: string | number | bigint;
|
|
575
|
-
borrow_limit_usd: string | number | bigint;
|
|
576
|
-
interest_rate_utils: Iterable<number> & {
|
|
577
|
-
length: number;
|
|
578
|
-
};
|
|
579
|
-
interest_rate_aprs: Iterable<string | number | bigint> & {
|
|
580
|
-
length: number;
|
|
581
|
-
};
|
|
582
|
-
borrow_fee_bps: string | number | bigint;
|
|
583
|
-
spread_fee_bps: string | number | bigint;
|
|
584
|
-
protocol_liquidation_fee_bps: string | number | bigint;
|
|
585
|
-
isolated: boolean;
|
|
586
|
-
open_attributed_borrow_limit_usd: string | number | bigint;
|
|
587
|
-
close_attributed_borrow_limit_usd: string | number | bigint;
|
|
588
|
-
additional_fields: {
|
|
589
|
-
id: {
|
|
590
|
-
id: {
|
|
591
|
-
bytes: string;
|
|
592
|
-
};
|
|
593
|
-
};
|
|
594
|
-
size: string | number | bigint;
|
|
595
|
-
};
|
|
596
|
-
}> & {
|
|
597
|
-
length: number;
|
|
598
|
-
}, string>;
|
|
599
|
-
}, string>;
|
|
524
|
+
config: import("@mysten/sui/bcs").BcsStruct<{
|
|
525
|
+
element: import("@mysten/sui/bcs").BcsType<any, any, string>;
|
|
600
526
|
}, string>;
|
|
601
|
-
mint_decimals: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
602
|
-
price_identifier: import("@mysten/bcs").BcsStruct<{
|
|
603
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
527
|
+
mint_decimals: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
528
|
+
price_identifier: import("@mysten/sui/bcs").BcsStruct<{
|
|
529
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
604
530
|
length: number;
|
|
605
531
|
}, string>;
|
|
606
532
|
}, string>;
|
|
607
|
-
price: import("@mysten/bcs").BcsStruct<{
|
|
608
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
533
|
+
price: import("@mysten/sui/bcs").BcsStruct<{
|
|
534
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
609
535
|
}, string>;
|
|
610
|
-
smoothed_price: import("@mysten/bcs").BcsStruct<{
|
|
611
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
536
|
+
smoothed_price: import("@mysten/sui/bcs").BcsStruct<{
|
|
537
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
612
538
|
}, string>;
|
|
613
|
-
price_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
614
|
-
available_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
615
|
-
ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
616
|
-
borrowed_amount: import("@mysten/bcs").BcsStruct<{
|
|
617
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
539
|
+
price_last_update_timestamp_s: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
540
|
+
available_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
541
|
+
ctoken_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
542
|
+
borrowed_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
543
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
618
544
|
}, string>;
|
|
619
|
-
cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
|
|
620
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
545
|
+
cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
|
|
546
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
621
547
|
}, string>;
|
|
622
|
-
interest_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
623
|
-
unclaimed_spread_fees: import("@mysten/bcs").BcsStruct<{
|
|
624
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
548
|
+
interest_last_update_timestamp_s: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
549
|
+
unclaimed_spread_fees: import("@mysten/sui/bcs").BcsStruct<{
|
|
550
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
625
551
|
}, string>;
|
|
626
|
-
attributed_borrow_value: import("@mysten/bcs").BcsStruct<{
|
|
627
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
552
|
+
attributed_borrow_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
553
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
628
554
|
}, string>;
|
|
629
|
-
deposits_pool_reward_manager: import("@mysten/bcs").BcsStruct<{
|
|
630
|
-
id: import("@mysten/bcs").BcsStruct<{
|
|
631
|
-
id: import("@mysten/bcs").BcsStruct<{
|
|
632
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
555
|
+
deposits_pool_reward_manager: import("@mysten/sui/bcs").BcsStruct<{
|
|
556
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
557
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
558
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
633
559
|
}, string>;
|
|
634
560
|
}, string>;
|
|
635
|
-
total_shares: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
636
|
-
pool_rewards: import("@mysten/bcs").BcsType<{
|
|
637
|
-
vec: {
|
|
638
|
-
id: {
|
|
639
|
-
id: {
|
|
640
|
-
bytes: string;
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
pool_reward_manager_id: {
|
|
644
|
-
bytes: string;
|
|
645
|
-
};
|
|
646
|
-
coin_type: {
|
|
647
|
-
name: {
|
|
648
|
-
bytes: number[];
|
|
649
|
-
};
|
|
650
|
-
};
|
|
651
|
-
start_time_ms: string;
|
|
652
|
-
end_time_ms: string;
|
|
653
|
-
total_rewards: string;
|
|
654
|
-
allocated_rewards: {
|
|
655
|
-
value: string;
|
|
656
|
-
};
|
|
657
|
-
cumulative_rewards_per_share: {
|
|
658
|
-
value: string;
|
|
659
|
-
};
|
|
660
|
-
num_user_reward_managers: string;
|
|
661
|
-
additional_fields: {
|
|
662
|
-
id: {
|
|
663
|
-
id: {
|
|
664
|
-
bytes: string;
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
size: string;
|
|
668
|
-
};
|
|
669
|
-
}[];
|
|
670
|
-
}[], Iterable<{
|
|
671
|
-
vec: Iterable<{
|
|
672
|
-
id: {
|
|
673
|
-
id: {
|
|
674
|
-
bytes: string;
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
|
-
pool_reward_manager_id: {
|
|
678
|
-
bytes: string;
|
|
679
|
-
};
|
|
680
|
-
coin_type: {
|
|
681
|
-
name: {
|
|
682
|
-
bytes: Iterable<number> & {
|
|
683
|
-
length: number;
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
|
-
start_time_ms: string | number | bigint;
|
|
688
|
-
end_time_ms: string | number | bigint;
|
|
689
|
-
total_rewards: string | number | bigint;
|
|
690
|
-
allocated_rewards: {
|
|
691
|
-
value: string | number | bigint;
|
|
692
|
-
};
|
|
693
|
-
cumulative_rewards_per_share: {
|
|
694
|
-
value: string | number | bigint;
|
|
695
|
-
};
|
|
696
|
-
num_user_reward_managers: string | number | bigint;
|
|
697
|
-
additional_fields: {
|
|
698
|
-
id: {
|
|
699
|
-
id: {
|
|
700
|
-
bytes: string;
|
|
701
|
-
};
|
|
702
|
-
};
|
|
703
|
-
size: string | number | bigint;
|
|
704
|
-
};
|
|
705
|
-
}> & {
|
|
706
|
-
length: number;
|
|
707
|
-
};
|
|
708
|
-
}> & {
|
|
561
|
+
total_shares: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
562
|
+
pool_rewards: import("@mysten/sui/bcs").BcsType<any[], Iterable<any> & {
|
|
709
563
|
length: number;
|
|
710
564
|
}, string>;
|
|
711
|
-
last_update_time_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
565
|
+
last_update_time_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
712
566
|
}, string>;
|
|
713
|
-
borrows_pool_reward_manager: import("@mysten/bcs").BcsStruct<{
|
|
714
|
-
id: import("@mysten/bcs").BcsStruct<{
|
|
715
|
-
id: import("@mysten/bcs").BcsStruct<{
|
|
716
|
-
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
567
|
+
borrows_pool_reward_manager: import("@mysten/sui/bcs").BcsStruct<{
|
|
568
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
569
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
570
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
717
571
|
}, string>;
|
|
718
572
|
}, string>;
|
|
719
|
-
total_shares: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
720
|
-
pool_rewards: import("@mysten/bcs").BcsType<{
|
|
721
|
-
vec: {
|
|
722
|
-
id: {
|
|
723
|
-
id: {
|
|
724
|
-
bytes: string;
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
pool_reward_manager_id: {
|
|
728
|
-
bytes: string;
|
|
729
|
-
};
|
|
730
|
-
coin_type: {
|
|
731
|
-
name: {
|
|
732
|
-
bytes: number[];
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
start_time_ms: string;
|
|
736
|
-
end_time_ms: string;
|
|
737
|
-
total_rewards: string;
|
|
738
|
-
allocated_rewards: {
|
|
739
|
-
value: string;
|
|
740
|
-
};
|
|
741
|
-
cumulative_rewards_per_share: {
|
|
742
|
-
value: string;
|
|
743
|
-
};
|
|
744
|
-
num_user_reward_managers: string;
|
|
745
|
-
additional_fields: {
|
|
746
|
-
id: {
|
|
747
|
-
id: {
|
|
748
|
-
bytes: string;
|
|
749
|
-
};
|
|
750
|
-
};
|
|
751
|
-
size: string;
|
|
752
|
-
};
|
|
753
|
-
}[];
|
|
754
|
-
}[], Iterable<{
|
|
755
|
-
vec: Iterable<{
|
|
756
|
-
id: {
|
|
757
|
-
id: {
|
|
758
|
-
bytes: string;
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
|
-
pool_reward_manager_id: {
|
|
762
|
-
bytes: string;
|
|
763
|
-
};
|
|
764
|
-
coin_type: {
|
|
765
|
-
name: {
|
|
766
|
-
bytes: Iterable<number> & {
|
|
767
|
-
length: number;
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
|
-
start_time_ms: string | number | bigint;
|
|
772
|
-
end_time_ms: string | number | bigint;
|
|
773
|
-
total_rewards: string | number | bigint;
|
|
774
|
-
allocated_rewards: {
|
|
775
|
-
value: string | number | bigint;
|
|
776
|
-
};
|
|
777
|
-
cumulative_rewards_per_share: {
|
|
778
|
-
value: string | number | bigint;
|
|
779
|
-
};
|
|
780
|
-
num_user_reward_managers: string | number | bigint;
|
|
781
|
-
additional_fields: {
|
|
782
|
-
id: {
|
|
783
|
-
id: {
|
|
784
|
-
bytes: string;
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
size: string | number | bigint;
|
|
788
|
-
};
|
|
789
|
-
}> & {
|
|
790
|
-
length: number;
|
|
791
|
-
};
|
|
792
|
-
}> & {
|
|
573
|
+
total_shares: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
574
|
+
pool_rewards: import("@mysten/sui/bcs").BcsType<any[], Iterable<any> & {
|
|
793
575
|
length: number;
|
|
794
576
|
}, string>;
|
|
795
|
-
last_update_time_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
577
|
+
last_update_time_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
796
578
|
}, string>;
|
|
797
579
|
}, string>;
|
|
798
580
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
|
|
@@ -1026,9 +808,7 @@ export declare class Reserve<P extends PhantomTypeArgument> implements StructCla
|
|
|
1026
808
|
};
|
|
1027
809
|
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): Reserve<ToPhantomTypeArgument<P>>;
|
|
1028
810
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
|
|
1029
|
-
static
|
|
1030
|
-
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): Reserve<ToPhantomTypeArgument<P>>;
|
|
1031
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<Reserve<ToPhantomTypeArgument<P>>>;
|
|
811
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArg: P, id: string): Promise<Reserve<ToPhantomTypeArgument<P>>>;
|
|
1032
812
|
}
|
|
1033
813
|
export declare function isReserveAssetDataEvent(type: string): boolean;
|
|
1034
814
|
export interface ReserveAssetDataEventFields {
|
|
@@ -1080,51 +860,51 @@ export declare class ReserveAssetDataEvent implements StructClass {
|
|
|
1080
860
|
static get r(): reified.StructClassReified<ReserveAssetDataEvent, ReserveAssetDataEventFields>;
|
|
1081
861
|
static phantom(): PhantomReified<ToTypeStr<ReserveAssetDataEvent>>;
|
|
1082
862
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::ReserveAssetDataEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::ReserveAssetDataEvent">;
|
|
1083
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1084
|
-
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1085
|
-
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1086
|
-
name: import("@mysten/bcs").BcsStruct<{
|
|
1087
|
-
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
863
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
864
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
865
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
866
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
867
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
1088
868
|
length: number;
|
|
1089
869
|
}, string>;
|
|
1090
870
|
}, string>;
|
|
1091
871
|
}, string>;
|
|
1092
|
-
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1093
|
-
available_amount: import("@mysten/bcs").BcsStruct<{
|
|
1094
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
872
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
873
|
+
available_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
874
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1095
875
|
}, string>;
|
|
1096
|
-
supply_amount: import("@mysten/bcs").BcsStruct<{
|
|
1097
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
876
|
+
supply_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
877
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1098
878
|
}, string>;
|
|
1099
|
-
borrowed_amount: import("@mysten/bcs").BcsStruct<{
|
|
1100
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
879
|
+
borrowed_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
880
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1101
881
|
}, string>;
|
|
1102
|
-
available_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1103
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
882
|
+
available_amount_usd_estimate: import("@mysten/sui/bcs").BcsStruct<{
|
|
883
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1104
884
|
}, string>;
|
|
1105
|
-
supply_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1106
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
885
|
+
supply_amount_usd_estimate: import("@mysten/sui/bcs").BcsStruct<{
|
|
886
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1107
887
|
}, string>;
|
|
1108
|
-
borrowed_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1109
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
888
|
+
borrowed_amount_usd_estimate: import("@mysten/sui/bcs").BcsStruct<{
|
|
889
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1110
890
|
}, string>;
|
|
1111
|
-
borrow_apr: import("@mysten/bcs").BcsStruct<{
|
|
1112
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
891
|
+
borrow_apr: import("@mysten/sui/bcs").BcsStruct<{
|
|
892
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1113
893
|
}, string>;
|
|
1114
|
-
supply_apr: import("@mysten/bcs").BcsStruct<{
|
|
1115
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
894
|
+
supply_apr: import("@mysten/sui/bcs").BcsStruct<{
|
|
895
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1116
896
|
}, string>;
|
|
1117
|
-
ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1118
|
-
cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
|
|
1119
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
897
|
+
ctoken_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
898
|
+
cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
|
|
899
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1120
900
|
}, string>;
|
|
1121
|
-
price: import("@mysten/bcs").BcsStruct<{
|
|
1122
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
901
|
+
price: import("@mysten/sui/bcs").BcsStruct<{
|
|
902
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1123
903
|
}, string>;
|
|
1124
|
-
smoothed_price: import("@mysten/bcs").BcsStruct<{
|
|
1125
|
-
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
904
|
+
smoothed_price: import("@mysten/sui/bcs").BcsStruct<{
|
|
905
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1126
906
|
}, string>;
|
|
1127
|
-
price_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
907
|
+
price_last_update_timestamp_s: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1128
908
|
}, string>;
|
|
1129
909
|
static fromFields(fields: Record<string, any>): ReserveAssetDataEvent;
|
|
1130
910
|
static fromFieldsWithTypes(item: FieldsWithTypes): ReserveAssetDataEvent;
|
|
@@ -1217,9 +997,7 @@ export declare class ReserveAssetDataEvent implements StructClass {
|
|
|
1217
997
|
};
|
|
1218
998
|
static fromJSONField(field: any): ReserveAssetDataEvent;
|
|
1219
999
|
static fromJSON(json: Record<string, any>): ReserveAssetDataEvent;
|
|
1220
|
-
static
|
|
1221
|
-
static fromSuiObjectData(data: SuiObjectData): ReserveAssetDataEvent;
|
|
1222
|
-
static fetch(client: SuiJsonRpcClient, id: string): Promise<ReserveAssetDataEvent>;
|
|
1000
|
+
static fetch(client: SuiGrpcClient, id: string): Promise<ReserveAssetDataEvent>;
|
|
1223
1001
|
}
|
|
1224
1002
|
export declare function isStakerKey(type: string): boolean;
|
|
1225
1003
|
export interface StakerKeyFields {
|
|
@@ -1241,8 +1019,8 @@ export declare class StakerKey implements StructClass {
|
|
|
1241
1019
|
static get r(): reified.StructClassReified<StakerKey, StakerKeyFields>;
|
|
1242
1020
|
static phantom(): PhantomReified<ToTypeStr<StakerKey>>;
|
|
1243
1021
|
static get p(): reified.PhantomReified<"0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::reserve::StakerKey" | "0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb::reserve::StakerKey">;
|
|
1244
|
-
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1245
|
-
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
1022
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1023
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
1246
1024
|
}, string>;
|
|
1247
1025
|
static fromFields(fields: Record<string, any>): StakerKey;
|
|
1248
1026
|
static fromFieldsWithTypes(item: FieldsWithTypes): StakerKey;
|
|
@@ -1257,7 +1035,5 @@ export declare class StakerKey implements StructClass {
|
|
|
1257
1035
|
};
|
|
1258
1036
|
static fromJSONField(field: any): StakerKey;
|
|
1259
1037
|
static fromJSON(json: Record<string, any>): StakerKey;
|
|
1260
|
-
static
|
|
1261
|
-
static fromSuiObjectData(data: SuiObjectData): StakerKey;
|
|
1262
|
-
static fetch(client: SuiJsonRpcClient, id: string): Promise<StakerKey>;
|
|
1038
|
+
static fetch(client: SuiGrpcClient, id: string): Promise<StakerKey>;
|
|
1263
1039
|
}
|