@suilend/sdk 1.1.85 → 1.1.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +8 -15
- package/_generated/_dependencies/source/0x2/balance/structs.d.ts +6 -10
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -14
- package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +8 -15
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +4 -7
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +12 -23
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +30 -58
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +75 -146
- package/_generated/_framework/util.d.ts +4 -16
- package/_generated/_framework/vector.d.ts +12 -5
- package/_generated/suilend/cell/structs.d.ts +6 -10
- package/_generated/suilend/decimal/structs.d.ts +3 -5
- package/_generated/suilend/lending-market/structs.d.ts +392 -368
- package/_generated/suilend/liquidity-mining/structs.d.ts +160 -134
- package/_generated/suilend/obligation/structs.d.ts +217 -332
- package/_generated/suilend/rate-limiter/structs.d.ts +17 -32
- package/_generated/suilend/reserve/structs.d.ts +393 -383
- package/_generated/suilend/reserve-config/structs.d.ts +40 -76
- package/client.d.ts +1 -1
- package/client.js +15 -7
- package/lib/initialize.d.ts +1 -2
- package/lib/initialize.js +67 -54
- package/lib/liquidityMining.d.ts +2 -2
- package/lib/liquidityMining.js +3 -3
- package/lib/strategyOwnerCap.js +24 -16
- package/lib/types.d.ts +0 -1
- package/mmt.d.ts +2 -0
- package/mmt.js +5 -0
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +0 -1
- package/parsers/lendingMarket.js +2 -3
- package/strategies.d.ts +86 -1
- package/strategies.js +1788 -1
- package/swap/quote.js +0 -35
- package/swap/transaction.js +0 -35
- package/utils/index.d.ts +10 -0
- package/utils/index.js +34 -1
- package/utils/obligation.d.ts +2 -0
- package/utils/obligation.js +8 -0
|
@@ -29,31 +29,19 @@ export declare class RateLimiter implements StructClass {
|
|
|
29
29
|
static get r(): import("../../_framework/reified").StructClassReified<RateLimiter, RateLimiterFields>;
|
|
30
30
|
static phantom(): PhantomReified<ToTypeStr<RateLimiter>>;
|
|
31
31
|
static get p(): PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::rate_limiter::RateLimiter" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiter">;
|
|
32
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
33
|
-
config: {
|
|
34
|
-
window_duration: string
|
|
35
|
-
max_outflow: string
|
|
36
|
-
}
|
|
37
|
-
prev_qty: {
|
|
38
|
-
value: string
|
|
39
|
-
}
|
|
40
|
-
window_start: string
|
|
41
|
-
cur_qty: {
|
|
42
|
-
value: string
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
config: {
|
|
46
|
-
window_duration: string | number | bigint;
|
|
47
|
-
max_outflow: string | number | bigint;
|
|
48
|
-
};
|
|
49
|
-
prev_qty: {
|
|
50
|
-
value: string | number | bigint;
|
|
51
|
-
};
|
|
52
|
-
window_start: string | number | bigint;
|
|
53
|
-
cur_qty: {
|
|
54
|
-
value: string | number | bigint;
|
|
55
|
-
};
|
|
56
|
-
}>;
|
|
32
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
33
|
+
config: import("@mysten/sui/bcs").BcsStruct<{
|
|
34
|
+
window_duration: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
35
|
+
max_outflow: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
36
|
+
}, string>;
|
|
37
|
+
prev_qty: import("@mysten/sui/bcs").BcsStruct<{
|
|
38
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
39
|
+
}, string>;
|
|
40
|
+
window_start: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
41
|
+
cur_qty: import("@mysten/sui/bcs").BcsStruct<{
|
|
42
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
43
|
+
}, string>;
|
|
44
|
+
}, string>;
|
|
57
45
|
static fromFields(fields: Record<string, any>): RateLimiter;
|
|
58
46
|
static fromFieldsWithTypes(item: FieldsWithTypes): RateLimiter;
|
|
59
47
|
static fromBcs(data: Uint8Array): RateLimiter;
|
|
@@ -113,13 +101,10 @@ export declare class RateLimiterConfig implements StructClass {
|
|
|
113
101
|
static get r(): import("../../_framework/reified").StructClassReified<RateLimiterConfig, RateLimiterConfigFields>;
|
|
114
102
|
static phantom(): PhantomReified<ToTypeStr<RateLimiterConfig>>;
|
|
115
103
|
static get p(): PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::rate_limiter::RateLimiterConfig" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiterConfig">;
|
|
116
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
117
|
-
window_duration: string
|
|
118
|
-
max_outflow: string
|
|
119
|
-
},
|
|
120
|
-
window_duration: string | number | bigint;
|
|
121
|
-
max_outflow: string | number | bigint;
|
|
122
|
-
}>;
|
|
104
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
105
|
+
window_duration: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
106
|
+
max_outflow: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
107
|
+
}, string>;
|
|
123
108
|
static fromFields(fields: Record<string, any>): RateLimiterConfig;
|
|
124
109
|
static fromFieldsWithTypes(item: FieldsWithTypes): RateLimiterConfig;
|
|
125
110
|
static fromBcs(data: Uint8Array): RateLimiterConfig;
|