@suilend/sdk 1.1.99 → 2.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 -7
- package/_generated/_dependencies/source/0x1/ascii/structs.js +35 -75
- package/_generated/_dependencies/source/0x1/index.js +3 -6
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -3
- package/_generated/_dependencies/source/0x1/option/structs.js +31 -69
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +5 -5
- package/_generated/_dependencies/source/0x1/type-name/structs.js +20 -25
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +7 -7
- package/_generated/_dependencies/source/0x2/bag/structs.js +24 -29
- package/_generated/_dependencies/source/0x2/balance/structs.d.ts +7 -7
- package/_generated/_dependencies/source/0x2/balance/structs.js +49 -56
- package/_generated/_dependencies/source/0x2/index.js +3 -6
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -8
- package/_generated/_dependencies/source/0x2/object/structs.js +34 -41
- package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +7 -7
- package/_generated/_dependencies/source/0x2/object-table/structs.js +31 -36
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +5 -5
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.js +23 -28
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/index.js +4 -7
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +11 -11
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.js +32 -37
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +23 -23
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.js +29 -34
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -4
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +21 -59
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +55 -55
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.js +46 -53
- package/_generated/_framework/reified.d.ts +2 -2
- package/_generated/_framework/reified.js +27 -40
- package/_generated/_framework/util.js +26 -40
- package/_generated/_framework/vector.d.ts +4 -4
- package/_generated/_framework/vector.js +16 -21
- package/_generated/suilend/cell/structs.d.ts +4 -4
- package/_generated/suilend/cell/structs.js +31 -36
- package/_generated/suilend/decimal/structs.d.ts +4 -4
- package/_generated/suilend/decimal/structs.js +19 -24
- package/_generated/suilend/index.js +8 -12
- package/_generated/suilend/lending-market/functions.d.ts +1 -0
- package/_generated/suilend/lending-market/functions.js +271 -302
- package/_generated/suilend/lending-market/structs.d.ts +146 -146
- package/_generated/suilend/lending-market/structs.js +549 -617
- package/_generated/suilend/lending-market-registry/functions.js +7 -11
- package/_generated/suilend/liquidity-mining/structs.d.ts +50 -50
- package/_generated/suilend/liquidity-mining/structs.js +159 -205
- package/_generated/suilend/obligation/structs.d.ts +106 -106
- package/_generated/suilend/obligation/structs.js +313 -363
- package/_generated/suilend/rate-limiter/functions.js +23 -31
- package/_generated/suilend/rate-limiter/structs.d.ts +15 -15
- package/_generated/suilend/rate-limiter/structs.js +49 -56
- package/_generated/suilend/reserve/structs.d.ts +139 -139
- package/_generated/suilend/reserve/structs.js +397 -451
- package/_generated/suilend/reserve-config/functions.js +149 -190
- package/_generated/suilend/reserve-config/structs.d.ts +33 -33
- package/_generated/suilend/reserve-config/structs.js +109 -149
- package/api/events.js +1 -5
- package/api/index.js +1 -17
- package/client.d.ts +10 -10
- package/client.js +118 -128
- package/index.js +7 -23
- package/lib/constants.js +3 -9
- package/lib/index.js +5 -21
- package/lib/initialize.d.ts +3 -3
- package/lib/initialize.js +103 -140
- package/lib/liquidityMining.d.ts +3 -3
- package/lib/liquidityMining.js +57 -72
- package/lib/pyth.js +9 -14
- package/lib/strategyOwnerCap.js +106 -119
- package/lib/transactions.js +2 -7
- package/lib/types.js +4 -7
- package/mmt.js +2 -5
- package/package.json +1 -1
- package/parsers/apiReserveAssetDataEvent.js +25 -33
- package/parsers/index.js +5 -21
- package/parsers/lendingMarket.d.ts +1 -1
- package/parsers/lendingMarket.js +12 -19
- package/parsers/obligation.js +19 -26
- package/parsers/rateLimiter.js +11 -19
- package/parsers/reserve.d.ts +1 -1
- package/parsers/reserve.js +42 -85
- package/strategies.d.ts +11 -11
- package/strategies.js +547 -586
- package/swap/index.js +2 -18
- package/swap/quote.js +57 -65
- package/swap/transaction.d.ts +2 -2
- package/swap/transaction.js +40 -35
- package/utils/events.d.ts +3 -3
- package/utils/events.js +18 -35
- package/utils/index.js +16 -40
- package/utils/obligation.d.ts +4 -4
- package/utils/obligation.js +17 -60
- package/utils/simulate.js +118 -143
|
@@ -10,7 +10,7 @@ import { PKG_V1, PKG_V10 } from "../index";
|
|
|
10
10
|
import { Obligation } from "../obligation/structs";
|
|
11
11
|
import { RateLimiter } from "../rate-limiter/structs";
|
|
12
12
|
import { Reserve } from "../reserve/structs";
|
|
13
|
-
import {
|
|
13
|
+
import { SuiJsonRpcClient, SuiObjectData, SuiParsedData } from "@mysten/sui/jsonRpc";
|
|
14
14
|
export declare function isMintEvent(type: string): boolean;
|
|
15
15
|
export interface MintEventFields {
|
|
16
16
|
lendingMarketId: ToField<"address">;
|
|
@@ -39,18 +39,18 @@ export declare class MintEvent implements StructClass {
|
|
|
39
39
|
static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
|
|
40
40
|
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
41
41
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::MintEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent">;
|
|
42
|
-
static get bcs(): import("@mysten/
|
|
43
|
-
lending_market_id: import("@mysten/
|
|
44
|
-
coin_type: import("@mysten/
|
|
45
|
-
name: import("@mysten/
|
|
46
|
-
bytes: import("@mysten/
|
|
42
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
43
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
44
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
45
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
46
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
47
47
|
length: number;
|
|
48
48
|
}, string>;
|
|
49
49
|
}, string>;
|
|
50
50
|
}, string>;
|
|
51
|
-
reserve_id: import("@mysten/
|
|
52
|
-
liquidity_amount: import("@mysten/
|
|
53
|
-
ctoken_amount: import("@mysten/
|
|
51
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
52
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
53
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
54
54
|
}, string>;
|
|
55
55
|
static fromFields(fields: Record<string, any>): MintEvent;
|
|
56
56
|
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
@@ -79,7 +79,7 @@ export declare class MintEvent implements StructClass {
|
|
|
79
79
|
static fromJSON(json: Record<string, any>): MintEvent;
|
|
80
80
|
static fromSuiParsedData(content: SuiParsedData): MintEvent;
|
|
81
81
|
static fromSuiObjectData(data: SuiObjectData): MintEvent;
|
|
82
|
-
static fetch(client:
|
|
82
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<MintEvent>;
|
|
83
83
|
}
|
|
84
84
|
export declare function isRedeemEvent(type: string): boolean;
|
|
85
85
|
export interface RedeemEventFields {
|
|
@@ -109,18 +109,18 @@ export declare class RedeemEvent implements StructClass {
|
|
|
109
109
|
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
110
110
|
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
111
111
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RedeemEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
|
|
112
|
-
static get bcs(): import("@mysten/
|
|
113
|
-
lending_market_id: import("@mysten/
|
|
114
|
-
coin_type: import("@mysten/
|
|
115
|
-
name: import("@mysten/
|
|
116
|
-
bytes: import("@mysten/
|
|
112
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
113
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
114
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
115
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
116
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
117
117
|
length: number;
|
|
118
118
|
}, string>;
|
|
119
119
|
}, string>;
|
|
120
120
|
}, string>;
|
|
121
|
-
reserve_id: import("@mysten/
|
|
122
|
-
ctoken_amount: import("@mysten/
|
|
123
|
-
liquidity_amount: import("@mysten/
|
|
121
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
122
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
123
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
124
124
|
}, string>;
|
|
125
125
|
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
126
126
|
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
@@ -149,7 +149,7 @@ export declare class RedeemEvent implements StructClass {
|
|
|
149
149
|
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
150
150
|
static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
|
|
151
151
|
static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
|
|
152
|
-
static fetch(client:
|
|
152
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<RedeemEvent>;
|
|
153
153
|
}
|
|
154
154
|
export declare function isBorrowEvent(type: string): boolean;
|
|
155
155
|
export interface BorrowEventFields {
|
|
@@ -181,19 +181,19 @@ export declare class BorrowEvent implements StructClass {
|
|
|
181
181
|
static get r(): reified.StructClassReified<BorrowEvent, BorrowEventFields>;
|
|
182
182
|
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
183
183
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::BorrowEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
|
|
184
|
-
static get bcs(): import("@mysten/
|
|
185
|
-
lending_market_id: import("@mysten/
|
|
186
|
-
coin_type: import("@mysten/
|
|
187
|
-
name: import("@mysten/
|
|
188
|
-
bytes: import("@mysten/
|
|
184
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
185
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
186
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
187
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
188
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
189
189
|
length: number;
|
|
190
190
|
}, string>;
|
|
191
191
|
}, string>;
|
|
192
192
|
}, string>;
|
|
193
|
-
reserve_id: import("@mysten/
|
|
194
|
-
obligation_id: import("@mysten/
|
|
195
|
-
liquidity_amount: import("@mysten/
|
|
196
|
-
origination_fee_amount: import("@mysten/
|
|
193
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
194
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
195
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
196
|
+
origination_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
197
197
|
}, string>;
|
|
198
198
|
static fromFields(fields: Record<string, any>): BorrowEvent;
|
|
199
199
|
static fromFieldsWithTypes(item: FieldsWithTypes): BorrowEvent;
|
|
@@ -224,7 +224,7 @@ export declare class BorrowEvent implements StructClass {
|
|
|
224
224
|
static fromJSON(json: Record<string, any>): BorrowEvent;
|
|
225
225
|
static fromSuiParsedData(content: SuiParsedData): BorrowEvent;
|
|
226
226
|
static fromSuiObjectData(data: SuiObjectData): BorrowEvent;
|
|
227
|
-
static fetch(client:
|
|
227
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<BorrowEvent>;
|
|
228
228
|
}
|
|
229
229
|
export declare function isClaimRewardEvent(type: string): boolean;
|
|
230
230
|
export interface ClaimRewardEventFields {
|
|
@@ -258,20 +258,20 @@ export declare class ClaimRewardEvent implements StructClass {
|
|
|
258
258
|
static get r(): reified.StructClassReified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
259
259
|
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
260
260
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ClaimRewardEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
|
|
261
|
-
static get bcs(): import("@mysten/
|
|
262
|
-
lending_market_id: import("@mysten/
|
|
263
|
-
reserve_id: import("@mysten/
|
|
264
|
-
obligation_id: import("@mysten/
|
|
265
|
-
is_deposit_reward: import("@mysten/
|
|
266
|
-
pool_reward_id: import("@mysten/
|
|
267
|
-
coin_type: import("@mysten/
|
|
268
|
-
name: import("@mysten/
|
|
269
|
-
bytes: import("@mysten/
|
|
261
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
262
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
263
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
264
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
265
|
+
is_deposit_reward: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
266
|
+
pool_reward_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
267
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
268
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
269
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
270
270
|
length: number;
|
|
271
271
|
}, string>;
|
|
272
272
|
}, string>;
|
|
273
273
|
}, string>;
|
|
274
|
-
liquidity_amount: import("@mysten/
|
|
274
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
275
275
|
}, string>;
|
|
276
276
|
static fromFields(fields: Record<string, any>): ClaimRewardEvent;
|
|
277
277
|
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimRewardEvent;
|
|
@@ -304,7 +304,7 @@ export declare class ClaimRewardEvent implements StructClass {
|
|
|
304
304
|
static fromJSON(json: Record<string, any>): ClaimRewardEvent;
|
|
305
305
|
static fromSuiParsedData(content: SuiParsedData): ClaimRewardEvent;
|
|
306
306
|
static fromSuiObjectData(data: SuiObjectData): ClaimRewardEvent;
|
|
307
|
-
static fetch(client:
|
|
307
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<ClaimRewardEvent>;
|
|
308
308
|
}
|
|
309
309
|
export declare function isDepositEvent(type: string): boolean;
|
|
310
310
|
export interface DepositEventFields {
|
|
@@ -334,18 +334,18 @@ export declare class DepositEvent implements StructClass {
|
|
|
334
334
|
static get r(): reified.StructClassReified<DepositEvent, DepositEventFields>;
|
|
335
335
|
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
336
336
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::DepositEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
|
|
337
|
-
static get bcs(): import("@mysten/
|
|
338
|
-
lending_market_id: import("@mysten/
|
|
339
|
-
coin_type: import("@mysten/
|
|
340
|
-
name: import("@mysten/
|
|
341
|
-
bytes: import("@mysten/
|
|
337
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
338
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
339
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
340
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
341
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
342
342
|
length: number;
|
|
343
343
|
}, string>;
|
|
344
344
|
}, string>;
|
|
345
345
|
}, string>;
|
|
346
|
-
reserve_id: import("@mysten/
|
|
347
|
-
obligation_id: import("@mysten/
|
|
348
|
-
ctoken_amount: import("@mysten/
|
|
346
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
347
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
348
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
349
349
|
}, string>;
|
|
350
350
|
static fromFields(fields: Record<string, any>): DepositEvent;
|
|
351
351
|
static fromFieldsWithTypes(item: FieldsWithTypes): DepositEvent;
|
|
@@ -374,7 +374,7 @@ export declare class DepositEvent implements StructClass {
|
|
|
374
374
|
static fromJSON(json: Record<string, any>): DepositEvent;
|
|
375
375
|
static fromSuiParsedData(content: SuiParsedData): DepositEvent;
|
|
376
376
|
static fromSuiObjectData(data: SuiObjectData): DepositEvent;
|
|
377
|
-
static fetch(client:
|
|
377
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<DepositEvent>;
|
|
378
378
|
}
|
|
379
379
|
export declare function isFeeReceivers(type: string): boolean;
|
|
380
380
|
export interface FeeReceiversFields {
|
|
@@ -400,14 +400,14 @@ export declare class FeeReceivers implements StructClass {
|
|
|
400
400
|
static get r(): reified.StructClassReified<FeeReceivers, FeeReceiversFields>;
|
|
401
401
|
static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
402
402
|
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceivers" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceivers">;
|
|
403
|
-
static get bcs(): import("@mysten/
|
|
404
|
-
receivers: import("@mysten/
|
|
403
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
404
|
+
receivers: import("@mysten/bcs").BcsType<string[], Iterable<string> & {
|
|
405
405
|
length: number;
|
|
406
406
|
}, string>;
|
|
407
|
-
weights: import("@mysten/
|
|
407
|
+
weights: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
408
408
|
length: number;
|
|
409
409
|
}, string>;
|
|
410
|
-
total_weight: import("@mysten/
|
|
410
|
+
total_weight: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
411
411
|
}, string>;
|
|
412
412
|
static fromFields(fields: Record<string, any>): FeeReceivers;
|
|
413
413
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceivers;
|
|
@@ -428,7 +428,7 @@ export declare class FeeReceivers implements StructClass {
|
|
|
428
428
|
static fromJSON(json: Record<string, any>): FeeReceivers;
|
|
429
429
|
static fromSuiParsedData(content: SuiParsedData): FeeReceivers;
|
|
430
430
|
static fromSuiObjectData(data: SuiObjectData): FeeReceivers;
|
|
431
|
-
static fetch(client:
|
|
431
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<FeeReceivers>;
|
|
432
432
|
}
|
|
433
433
|
export declare function isFeeReceiversKey(type: string): boolean;
|
|
434
434
|
export interface FeeReceiversKeyFields {
|
|
@@ -450,8 +450,8 @@ export declare class FeeReceiversKey implements StructClass {
|
|
|
450
450
|
static get r(): reified.StructClassReified<FeeReceiversKey, FeeReceiversKeyFields>;
|
|
451
451
|
static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
452
452
|
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceiversKey" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceiversKey">;
|
|
453
|
-
static get bcs(): import("@mysten/
|
|
454
|
-
dummy_field: import("@mysten/
|
|
453
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
454
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
455
455
|
}, string>;
|
|
456
456
|
static fromFields(fields: Record<string, any>): FeeReceiversKey;
|
|
457
457
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceiversKey;
|
|
@@ -468,7 +468,7 @@ export declare class FeeReceiversKey implements StructClass {
|
|
|
468
468
|
static fromJSON(json: Record<string, any>): FeeReceiversKey;
|
|
469
469
|
static fromSuiParsedData(content: SuiParsedData): FeeReceiversKey;
|
|
470
470
|
static fromSuiObjectData(data: SuiObjectData): FeeReceiversKey;
|
|
471
|
-
static fetch(client:
|
|
471
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<FeeReceiversKey>;
|
|
472
472
|
}
|
|
473
473
|
export declare function isForgiveEvent(type: string): boolean;
|
|
474
474
|
export interface ForgiveEventFields {
|
|
@@ -498,18 +498,18 @@ export declare class ForgiveEvent implements StructClass {
|
|
|
498
498
|
static get r(): reified.StructClassReified<ForgiveEvent, ForgiveEventFields>;
|
|
499
499
|
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
500
500
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ForgiveEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
|
|
501
|
-
static get bcs(): import("@mysten/
|
|
502
|
-
lending_market_id: import("@mysten/
|
|
503
|
-
coin_type: import("@mysten/
|
|
504
|
-
name: import("@mysten/
|
|
505
|
-
bytes: import("@mysten/
|
|
501
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
502
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
503
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
504
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
505
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
506
506
|
length: number;
|
|
507
507
|
}, string>;
|
|
508
508
|
}, string>;
|
|
509
509
|
}, string>;
|
|
510
|
-
reserve_id: import("@mysten/
|
|
511
|
-
obligation_id: import("@mysten/
|
|
512
|
-
liquidity_amount: import("@mysten/
|
|
510
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
511
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
512
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
513
513
|
}, string>;
|
|
514
514
|
static fromFields(fields: Record<string, any>): ForgiveEvent;
|
|
515
515
|
static fromFieldsWithTypes(item: FieldsWithTypes): ForgiveEvent;
|
|
@@ -538,7 +538,7 @@ export declare class ForgiveEvent implements StructClass {
|
|
|
538
538
|
static fromJSON(json: Record<string, any>): ForgiveEvent;
|
|
539
539
|
static fromSuiParsedData(content: SuiParsedData): ForgiveEvent;
|
|
540
540
|
static fromSuiObjectData(data: SuiObjectData): ForgiveEvent;
|
|
541
|
-
static fetch(client:
|
|
541
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<ForgiveEvent>;
|
|
542
542
|
}
|
|
543
543
|
export declare function isLENDING_MARKET(type: string): boolean;
|
|
544
544
|
export interface LENDING_MARKETFields {
|
|
@@ -560,8 +560,8 @@ export declare class LENDING_MARKET implements StructClass {
|
|
|
560
560
|
static get r(): reified.StructClassReified<LENDING_MARKET, LENDING_MARKETFields>;
|
|
561
561
|
static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
562
562
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LENDING_MARKET" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LENDING_MARKET">;
|
|
563
|
-
static get bcs(): import("@mysten/
|
|
564
|
-
dummy_field: import("@mysten/
|
|
563
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
564
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
565
565
|
}, string>;
|
|
566
566
|
static fromFields(fields: Record<string, any>): LENDING_MARKET;
|
|
567
567
|
static fromFieldsWithTypes(item: FieldsWithTypes): LENDING_MARKET;
|
|
@@ -578,7 +578,7 @@ export declare class LENDING_MARKET implements StructClass {
|
|
|
578
578
|
static fromJSON(json: Record<string, any>): LENDING_MARKET;
|
|
579
579
|
static fromSuiParsedData(content: SuiParsedData): LENDING_MARKET;
|
|
580
580
|
static fromSuiObjectData(data: SuiObjectData): LENDING_MARKET;
|
|
581
|
-
static fetch(client:
|
|
581
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<LENDING_MARKET>;
|
|
582
582
|
}
|
|
583
583
|
export declare function isLendingMarket(type: string): boolean;
|
|
584
584
|
export interface LendingMarketFields<P extends PhantomTypeArgument> {
|
|
@@ -614,14 +614,14 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
614
614
|
static get r(): typeof LendingMarket.reified;
|
|
615
615
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarket<ToPhantomTypeArgument<P>>>>;
|
|
616
616
|
static get p(): typeof LendingMarket.phantom;
|
|
617
|
-
static get bcs(): import("@mysten/
|
|
618
|
-
id: import("@mysten/
|
|
619
|
-
id: import("@mysten/
|
|
620
|
-
bytes: import("@mysten/
|
|
617
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
618
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
619
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
620
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
621
621
|
}, string>;
|
|
622
622
|
}, string>;
|
|
623
|
-
version: import("@mysten/
|
|
624
|
-
reserves: import("@mysten/
|
|
623
|
+
version: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
624
|
+
reserves: import("@mysten/bcs").BcsType<{
|
|
625
625
|
id: {
|
|
626
626
|
id: {
|
|
627
627
|
bytes: string;
|
|
@@ -968,33 +968,33 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
968
968
|
}> & {
|
|
969
969
|
length: number;
|
|
970
970
|
}, string>;
|
|
971
|
-
obligations: import("@mysten/
|
|
972
|
-
id: import("@mysten/
|
|
973
|
-
id: import("@mysten/
|
|
974
|
-
bytes: import("@mysten/
|
|
971
|
+
obligations: import("@mysten/bcs").BcsStruct<{
|
|
972
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
973
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
974
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
975
975
|
}, string>;
|
|
976
976
|
}, string>;
|
|
977
|
-
size: import("@mysten/
|
|
977
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
978
978
|
}, string>;
|
|
979
|
-
rate_limiter: import("@mysten/
|
|
980
|
-
config: import("@mysten/
|
|
981
|
-
window_duration: import("@mysten/
|
|
982
|
-
max_outflow: import("@mysten/
|
|
979
|
+
rate_limiter: import("@mysten/bcs").BcsStruct<{
|
|
980
|
+
config: import("@mysten/bcs").BcsStruct<{
|
|
981
|
+
window_duration: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
982
|
+
max_outflow: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
983
983
|
}, string>;
|
|
984
|
-
prev_qty: import("@mysten/
|
|
985
|
-
value: import("@mysten/
|
|
984
|
+
prev_qty: import("@mysten/bcs").BcsStruct<{
|
|
985
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
986
986
|
}, string>;
|
|
987
|
-
window_start: import("@mysten/
|
|
988
|
-
cur_qty: import("@mysten/
|
|
989
|
-
value: import("@mysten/
|
|
987
|
+
window_start: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
988
|
+
cur_qty: import("@mysten/bcs").BcsStruct<{
|
|
989
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
990
990
|
}, string>;
|
|
991
991
|
}, string>;
|
|
992
|
-
fee_receiver: import("@mysten/
|
|
993
|
-
bad_debt_usd: import("@mysten/
|
|
994
|
-
value: import("@mysten/
|
|
992
|
+
fee_receiver: import("@mysten/bcs").BcsType<string, string, string>;
|
|
993
|
+
bad_debt_usd: import("@mysten/bcs").BcsStruct<{
|
|
994
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
995
995
|
}, string>;
|
|
996
|
-
bad_debt_limit_usd: import("@mysten/
|
|
997
|
-
value: import("@mysten/
|
|
996
|
+
bad_debt_limit_usd: import("@mysten/bcs").BcsStruct<{
|
|
997
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
998
998
|
}, string>;
|
|
999
999
|
}, string>;
|
|
1000
1000
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
@@ -1286,7 +1286,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
1286
1286
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
1287
1287
|
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
1288
1288
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
1289
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client:
|
|
1289
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<LendingMarket<ToPhantomTypeArgument<P>>>;
|
|
1290
1290
|
}
|
|
1291
1291
|
export declare function isLendingMarketOwnerCap(type: string): boolean;
|
|
1292
1292
|
export interface LendingMarketOwnerCapFields<P extends PhantomTypeArgument> {
|
|
@@ -1310,14 +1310,14 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
|
|
|
1310
1310
|
static get r(): typeof LendingMarketOwnerCap.reified;
|
|
1311
1311
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1312
1312
|
static get p(): typeof LendingMarketOwnerCap.phantom;
|
|
1313
|
-
static get bcs(): import("@mysten/
|
|
1314
|
-
id: import("@mysten/
|
|
1315
|
-
id: import("@mysten/
|
|
1316
|
-
bytes: import("@mysten/
|
|
1313
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1314
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1315
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1316
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1317
1317
|
}, string>;
|
|
1318
1318
|
}, string>;
|
|
1319
|
-
lending_market_id: import("@mysten/
|
|
1320
|
-
bytes: import("@mysten/
|
|
1319
|
+
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
1320
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1321
1321
|
}, string>;
|
|
1322
1322
|
}, string>;
|
|
1323
1323
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -1337,7 +1337,7 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
|
|
|
1337
1337
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1338
1338
|
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1339
1339
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1340
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client:
|
|
1340
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>;
|
|
1341
1341
|
}
|
|
1342
1342
|
export declare function isLiquidateEvent(type: string): boolean;
|
|
1343
1343
|
export interface LiquidateEventFields {
|
|
@@ -1377,29 +1377,29 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
1377
1377
|
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
1378
1378
|
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
1379
1379
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LiquidateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
|
|
1380
|
-
static get bcs(): import("@mysten/
|
|
1381
|
-
lending_market_id: import("@mysten/
|
|
1382
|
-
repay_reserve_id: import("@mysten/
|
|
1383
|
-
withdraw_reserve_id: import("@mysten/
|
|
1384
|
-
obligation_id: import("@mysten/
|
|
1385
|
-
repay_coin_type: import("@mysten/
|
|
1386
|
-
name: import("@mysten/
|
|
1387
|
-
bytes: import("@mysten/
|
|
1380
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1381
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1382
|
+
repay_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1383
|
+
withdraw_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1384
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1385
|
+
repay_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1386
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1387
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1388
1388
|
length: number;
|
|
1389
1389
|
}, string>;
|
|
1390
1390
|
}, string>;
|
|
1391
1391
|
}, string>;
|
|
1392
|
-
withdraw_coin_type: import("@mysten/
|
|
1393
|
-
name: import("@mysten/
|
|
1394
|
-
bytes: import("@mysten/
|
|
1392
|
+
withdraw_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1393
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1394
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1395
1395
|
length: number;
|
|
1396
1396
|
}, string>;
|
|
1397
1397
|
}, string>;
|
|
1398
1398
|
}, string>;
|
|
1399
|
-
repay_amount: import("@mysten/
|
|
1400
|
-
withdraw_amount: import("@mysten/
|
|
1401
|
-
protocol_fee_amount: import("@mysten/
|
|
1402
|
-
liquidator_bonus_amount: import("@mysten/
|
|
1399
|
+
repay_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1400
|
+
withdraw_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1401
|
+
protocol_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1402
|
+
liquidator_bonus_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1403
1403
|
}, string>;
|
|
1404
1404
|
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
1405
1405
|
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
|
|
@@ -1442,7 +1442,7 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
1442
1442
|
static fromJSON(json: Record<string, any>): LiquidateEvent;
|
|
1443
1443
|
static fromSuiParsedData(content: SuiParsedData): LiquidateEvent;
|
|
1444
1444
|
static fromSuiObjectData(data: SuiObjectData): LiquidateEvent;
|
|
1445
|
-
static fetch(client:
|
|
1445
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<LiquidateEvent>;
|
|
1446
1446
|
}
|
|
1447
1447
|
export declare function isObligationOwnerCap(type: string): boolean;
|
|
1448
1448
|
export interface ObligationOwnerCapFields<P extends PhantomTypeArgument> {
|
|
@@ -1466,14 +1466,14 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
|
|
|
1466
1466
|
static get r(): typeof ObligationOwnerCap.reified;
|
|
1467
1467
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<ObligationOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1468
1468
|
static get p(): typeof ObligationOwnerCap.phantom;
|
|
1469
|
-
static get bcs(): import("@mysten/
|
|
1470
|
-
id: import("@mysten/
|
|
1471
|
-
id: import("@mysten/
|
|
1472
|
-
bytes: import("@mysten/
|
|
1469
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1470
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1471
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
1472
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1473
1473
|
}, string>;
|
|
1474
1474
|
}, string>;
|
|
1475
|
-
obligation_id: import("@mysten/
|
|
1476
|
-
bytes: import("@mysten/
|
|
1475
|
+
obligation_id: import("@mysten/bcs").BcsStruct<{
|
|
1476
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1477
1477
|
}, string>;
|
|
1478
1478
|
}, string>;
|
|
1479
1479
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -1493,7 +1493,7 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
|
|
|
1493
1493
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1494
1494
|
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1495
1495
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1496
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client:
|
|
1496
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<ObligationOwnerCap<ToPhantomTypeArgument<P>>>;
|
|
1497
1497
|
}
|
|
1498
1498
|
export declare function isRateLimiterExemption(type: string): boolean;
|
|
1499
1499
|
export interface RateLimiterExemptionFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
@@ -1515,8 +1515,8 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
1515
1515
|
static get r(): typeof RateLimiterExemption.reified;
|
|
1516
1516
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
1517
1517
|
static get p(): typeof RateLimiterExemption.phantom;
|
|
1518
|
-
static get bcs(): import("@mysten/
|
|
1519
|
-
amount: import("@mysten/
|
|
1518
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1519
|
+
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1520
1520
|
}, string>;
|
|
1521
1521
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1522
1522
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -1533,7 +1533,7 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
1533
1533
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1534
1534
|
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], content: SuiParsedData): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1535
1535
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1536
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
1536
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArgs: [P, T], id: string): Promise<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
1537
1537
|
}
|
|
1538
1538
|
export declare function isRepayEvent(type: string): boolean;
|
|
1539
1539
|
export interface RepayEventFields {
|
|
@@ -1563,18 +1563,18 @@ export declare class RepayEvent implements StructClass {
|
|
|
1563
1563
|
static get r(): reified.StructClassReified<RepayEvent, RepayEventFields>;
|
|
1564
1564
|
static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
1565
1565
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RepayEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent">;
|
|
1566
|
-
static get bcs(): import("@mysten/
|
|
1567
|
-
lending_market_id: import("@mysten/
|
|
1568
|
-
coin_type: import("@mysten/
|
|
1569
|
-
name: import("@mysten/
|
|
1570
|
-
bytes: import("@mysten/
|
|
1566
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1567
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1568
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1569
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1570
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1571
1571
|
length: number;
|
|
1572
1572
|
}, string>;
|
|
1573
1573
|
}, string>;
|
|
1574
1574
|
}, string>;
|
|
1575
|
-
reserve_id: import("@mysten/
|
|
1576
|
-
obligation_id: import("@mysten/
|
|
1577
|
-
liquidity_amount: import("@mysten/
|
|
1575
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1576
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1577
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1578
1578
|
}, string>;
|
|
1579
1579
|
static fromFields(fields: Record<string, any>): RepayEvent;
|
|
1580
1580
|
static fromFieldsWithTypes(item: FieldsWithTypes): RepayEvent;
|
|
@@ -1603,7 +1603,7 @@ export declare class RepayEvent implements StructClass {
|
|
|
1603
1603
|
static fromJSON(json: Record<string, any>): RepayEvent;
|
|
1604
1604
|
static fromSuiParsedData(content: SuiParsedData): RepayEvent;
|
|
1605
1605
|
static fromSuiObjectData(data: SuiObjectData): RepayEvent;
|
|
1606
|
-
static fetch(client:
|
|
1606
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<RepayEvent>;
|
|
1607
1607
|
}
|
|
1608
1608
|
export declare function isWithdrawEvent(type: string): boolean;
|
|
1609
1609
|
export interface WithdrawEventFields {
|
|
@@ -1633,18 +1633,18 @@ export declare class WithdrawEvent implements StructClass {
|
|
|
1633
1633
|
static get r(): reified.StructClassReified<WithdrawEvent, WithdrawEventFields>;
|
|
1634
1634
|
static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
1635
1635
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::WithdrawEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent">;
|
|
1636
|
-
static get bcs(): import("@mysten/
|
|
1637
|
-
lending_market_id: import("@mysten/
|
|
1638
|
-
coin_type: import("@mysten/
|
|
1639
|
-
name: import("@mysten/
|
|
1640
|
-
bytes: import("@mysten/
|
|
1636
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
1637
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1638
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1639
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1640
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1641
1641
|
length: number;
|
|
1642
1642
|
}, string>;
|
|
1643
1643
|
}, string>;
|
|
1644
1644
|
}, string>;
|
|
1645
|
-
reserve_id: import("@mysten/
|
|
1646
|
-
obligation_id: import("@mysten/
|
|
1647
|
-
ctoken_amount: import("@mysten/
|
|
1645
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1646
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1647
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1648
1648
|
}, string>;
|
|
1649
1649
|
static fromFields(fields: Record<string, any>): WithdrawEvent;
|
|
1650
1650
|
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawEvent;
|
|
@@ -1673,5 +1673,5 @@ export declare class WithdrawEvent implements StructClass {
|
|
|
1673
1673
|
static fromJSON(json: Record<string, any>): WithdrawEvent;
|
|
1674
1674
|
static fromSuiParsedData(content: SuiParsedData): WithdrawEvent;
|
|
1675
1675
|
static fromSuiObjectData(data: SuiObjectData): WithdrawEvent;
|
|
1676
|
-
static fetch(client:
|
|
1676
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<WithdrawEvent>;
|
|
1677
1677
|
}
|