@suilend/sdk 12.7.0 → 13.0.0-next.g803bba0

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.
Files changed (84) hide show
  1. package/_generated/_dependencies/pyth-2/price-identifier/structs.d.ts +46 -0
  2. package/_generated/_dependencies/{source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e → pyth-2}/price-identifier/structs.js +45 -25
  3. package/_generated/_dependencies/std/ascii/structs.d.ts +100 -0
  4. package/_generated/_dependencies/{source/0x1 → std}/ascii/structs.js +153 -103
  5. package/_generated/_dependencies/{source/0x1 → std}/option/structs.d.ts +29 -21
  6. package/_generated/_dependencies/std/option/structs.js +155 -0
  7. package/_generated/_dependencies/std/type-name/structs.d.ts +65 -0
  8. package/_generated/_dependencies/{source/0x1 → std}/type-name/structs.js +49 -22
  9. package/_generated/_dependencies/sui/bag/structs.d.ts +75 -0
  10. package/_generated/_dependencies/sui/bag/structs.js +154 -0
  11. package/_generated/_dependencies/{source/0x2 → sui}/balance/structs.d.ts +80 -60
  12. package/_generated/_dependencies/sui/balance/structs.js +306 -0
  13. package/_generated/_dependencies/sui/object/structs.d.ts +104 -0
  14. package/_generated/_dependencies/{source/0x2 → sui}/object/structs.js +98 -46
  15. package/_generated/_dependencies/{source/0x2 → sui}/object-table/structs.d.ts +37 -30
  16. package/_generated/_dependencies/sui/object-table/structs.js +164 -0
  17. package/_generated/_envs/index.d.ts +3 -0
  18. package/_generated/_envs/index.js +18 -0
  19. package/_generated/_envs/mainnet.d.ts +2 -0
  20. package/_generated/_envs/mainnet.js +490 -0
  21. package/_generated/_framework/env.d.ts +137 -0
  22. package/_generated/_framework/env.js +261 -0
  23. package/_generated/_framework/reified.d.ts +68 -36
  24. package/_generated/_framework/reified.js +110 -98
  25. package/_generated/_framework/util.d.ts +4 -4
  26. package/_generated/_framework/util.js +82 -79
  27. package/_generated/_framework/vector.d.ts +11 -9
  28. package/_generated/_framework/vector.js +10 -10
  29. package/_generated/suilend/cell/structs.d.ts +24 -22
  30. package/_generated/suilend/cell/structs.js +68 -24
  31. package/_generated/suilend/decimal/structs.d.ts +28 -24
  32. package/_generated/suilend/decimal/structs.js +45 -24
  33. package/_generated/suilend/index.d.ts +5 -6
  34. package/_generated/suilend/index.js +10 -19
  35. package/_generated/suilend/lending-market/functions.d.ts +1123 -149
  36. package/_generated/suilend/lending-market/functions.js +1121 -207
  37. package/_generated/suilend/lending-market/structs.d.ts +985 -1290
  38. package/_generated/suilend/lending-market/structs.js +2482 -1282
  39. package/_generated/suilend/lending-market-registry/functions.d.ts +32 -3
  40. package/_generated/suilend/lending-market-registry/functions.js +30 -6
  41. package/_generated/suilend/liquidity-mining/structs.d.ts +200 -333
  42. package/_generated/suilend/liquidity-mining/structs.js +449 -319
  43. package/_generated/suilend/obligation/structs.d.ts +406 -918
  44. package/_generated/suilend/obligation/structs.js +786 -596
  45. package/_generated/suilend/rate-limiter/functions.d.ts +134 -15
  46. package/_generated/suilend/rate-limiter/functions.js +139 -21
  47. package/_generated/suilend/rate-limiter/structs.d.ts +72 -80
  48. package/_generated/suilend/rate-limiter/structs.js +98 -48
  49. package/_generated/suilend/reserve/structs.d.ts +611 -904
  50. package/_generated/suilend/reserve/structs.js +1528 -736
  51. package/_generated/suilend/reserve-config/functions.d.ts +718 -96
  52. package/_generated/suilend/reserve-config/functions.js +751 -157
  53. package/_generated/suilend/reserve-config/structs.d.ts +148 -163
  54. package/_generated/suilend/reserve-config/structs.js +260 -94
  55. package/client.d.ts +2 -2
  56. package/client.js +22 -39
  57. package/lib/initialize.d.ts +76 -76
  58. package/lib/initialize.js +10 -10
  59. package/lib/proCompatible.js +5 -5
  60. package/package.json +1 -1
  61. package/parsers/lendingMarket.d.ts +9 -9
  62. package/parsers/obligation.d.ts +14 -14
  63. package/parsers/obligation.js +4 -4
  64. package/parsers/rateLimiter.d.ts +1 -1
  65. package/parsers/reserve.d.ts +12 -12
  66. package/parsers/reserve.js +2 -2
  67. package/strategies.d.ts +14 -14
  68. package/utils/simulate.d.ts +1 -1
  69. package/utils/simulate.js +5 -5
  70. package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +0 -84
  71. package/_generated/_dependencies/source/0x1/index.d.ts +0 -3
  72. package/_generated/_dependencies/source/0x1/index.js +0 -3
  73. package/_generated/_dependencies/source/0x1/option/structs.js +0 -110
  74. package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +0 -47
  75. package/_generated/_dependencies/source/0x2/bag/structs.d.ts +0 -52
  76. package/_generated/_dependencies/source/0x2/bag/structs.js +0 -113
  77. package/_generated/_dependencies/source/0x2/balance/structs.js +0 -210
  78. package/_generated/_dependencies/source/0x2/index.d.ts +0 -3
  79. package/_generated/_dependencies/source/0x2/index.js +0 -3
  80. package/_generated/_dependencies/source/0x2/object/structs.d.ts +0 -82
  81. package/_generated/_dependencies/source/0x2/object-table/structs.js +0 -115
  82. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/index.d.ts +0 -4
  83. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/index.js +0 -4
  84. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +0 -46
@@ -1,53 +1,474 @@
1
- import * as reified from "../../_framework/reified";
2
- import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
3
- import { Balance, Supply } from "../../_dependencies/source/0x2/balance/structs";
4
- import { ID, UID } from "../../_dependencies/source/0x2/object/structs";
5
- import { PriceIdentifier } from "../../_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs";
6
- import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr, ToTypeStr as ToPhantom } from "../../_framework/reified";
7
- import { FieldsWithTypes } from "../../_framework/util";
8
- import { Cell } from "../cell/structs";
9
- import { Decimal } from "../decimal/structs";
10
- import { PKG_V1, PKG_V8 } from "../index";
11
- import { PoolRewardManager } from "../liquidity-mining/structs";
12
- import { ReserveConfig } from "../reserve-config/structs";
13
- import { SuiGrpcClient } from "@mysten/sui/grpc";
1
+ /** The reserve module holds the coins of a certain type for a given lending market. */
2
+ import type { ClientWithCoreApi, SuiClientTypes } from '@mysten/sui/client';
3
+ import { PriceIdentifier } from '../../_dependencies/pyth-2/price-identifier/structs';
4
+ import { TypeName } from '../../_dependencies/std/type-name/structs';
5
+ import { Balance, Supply } from '../../_dependencies/sui/balance/structs';
6
+ import { ID, UID } from '../../_dependencies/sui/object/structs';
7
+ import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToJSON, ToPhantomTypeArgument, ToTypeStr, ToTypeStr as ToPhantom } from '../../_framework/reified';
8
+ import { FieldsWithTypes } from '../../_framework/util';
9
+ import { Cell } from '../cell/structs';
10
+ import { Decimal } from '../decimal/structs';
11
+ import { PoolRewardManager } from '../liquidity-mining/structs';
12
+ import { ReserveConfig } from '../reserve-config/structs';
13
+ export declare function isReserve(type: string): boolean;
14
+ export interface ReserveFields<P extends PhantomTypeArgument> {
15
+ id: ToField<UID>;
16
+ lendingMarketId: ToField<ID>;
17
+ arrayIndex: ToField<'u64'>;
18
+ coinType: ToField<TypeName>;
19
+ config: ToField<Cell<ReserveConfig>>;
20
+ mintDecimals: ToField<'u8'>;
21
+ priceIdentifier: ToField<PriceIdentifier>;
22
+ price: ToField<Decimal>;
23
+ smoothedPrice: ToField<Decimal>;
24
+ priceLastUpdateTimestampS: ToField<'u64'>;
25
+ availableAmount: ToField<'u64'>;
26
+ ctokenSupply: ToField<'u64'>;
27
+ borrowedAmount: ToField<Decimal>;
28
+ cumulativeBorrowRate: ToField<Decimal>;
29
+ interestLastUpdateTimestampS: ToField<'u64'>;
30
+ unclaimedSpreadFees: ToField<Decimal>;
31
+ /** unused */
32
+ attributedBorrowValue: ToField<Decimal>;
33
+ depositsPoolRewardManager: ToField<PoolRewardManager>;
34
+ borrowsPoolRewardManager: ToField<PoolRewardManager>;
35
+ }
36
+ export type ReserveReified<P extends PhantomTypeArgument> = Reified<Reserve<P>, ReserveFields<P>>;
37
+ export type ReserveJSONField<P extends PhantomTypeArgument> = {
38
+ id: string;
39
+ lendingMarketId: string;
40
+ arrayIndex: string;
41
+ coinType: string;
42
+ config: ToJSON<Cell<ReserveConfig>>;
43
+ mintDecimals: number;
44
+ priceIdentifier: ToJSON<PriceIdentifier>;
45
+ price: ToJSON<Decimal>;
46
+ smoothedPrice: ToJSON<Decimal>;
47
+ priceLastUpdateTimestampS: string;
48
+ availableAmount: string;
49
+ ctokenSupply: string;
50
+ borrowedAmount: ToJSON<Decimal>;
51
+ cumulativeBorrowRate: ToJSON<Decimal>;
52
+ interestLastUpdateTimestampS: string;
53
+ unclaimedSpreadFees: ToJSON<Decimal>;
54
+ attributedBorrowValue: ToJSON<Decimal>;
55
+ depositsPoolRewardManager: ToJSON<PoolRewardManager>;
56
+ borrowsPoolRewardManager: ToJSON<PoolRewardManager>;
57
+ };
58
+ export type ReserveJSON<P extends PhantomTypeArgument> = {
59
+ $typeName: typeof Reserve.$typeName;
60
+ $typeArgs: [PhantomToTypeStr<P>];
61
+ } & ReserveJSONField<P>;
62
+ export declare class Reserve<P extends PhantomTypeArgument> implements StructClass {
63
+ __StructClass: true;
64
+ static get $typeName(): `${string}::reserve::Reserve`;
65
+ static readonly $numTypeParams = 1;
66
+ static readonly $isPhantom: readonly [true];
67
+ readonly $typeName: typeof Reserve.$typeName;
68
+ readonly $fullTypeName: `${string}::reserve::Reserve<${PhantomToTypeStr<P>}>`;
69
+ readonly $typeArgs: [PhantomToTypeStr<P>];
70
+ readonly $isPhantom: typeof Reserve.$isPhantom;
71
+ readonly id: ToField<UID>;
72
+ readonly lendingMarketId: ToField<ID>;
73
+ readonly arrayIndex: ToField<'u64'>;
74
+ readonly coinType: ToField<TypeName>;
75
+ readonly config: ToField<Cell<ReserveConfig>>;
76
+ readonly mintDecimals: ToField<'u8'>;
77
+ readonly priceIdentifier: ToField<PriceIdentifier>;
78
+ readonly price: ToField<Decimal>;
79
+ readonly smoothedPrice: ToField<Decimal>;
80
+ readonly priceLastUpdateTimestampS: ToField<'u64'>;
81
+ readonly availableAmount: ToField<'u64'>;
82
+ readonly ctokenSupply: ToField<'u64'>;
83
+ readonly borrowedAmount: ToField<Decimal>;
84
+ readonly cumulativeBorrowRate: ToField<Decimal>;
85
+ readonly interestLastUpdateTimestampS: ToField<'u64'>;
86
+ readonly unclaimedSpreadFees: ToField<Decimal>;
87
+ /** unused */
88
+ readonly attributedBorrowValue: ToField<Decimal>;
89
+ readonly depositsPoolRewardManager: ToField<PoolRewardManager>;
90
+ readonly borrowsPoolRewardManager: ToField<PoolRewardManager>;
91
+ private constructor();
92
+ static reified<P extends PhantomReified<PhantomTypeArgument>>(P: P): ReserveReified<ToPhantomTypeArgument<P>>;
93
+ static get r(): typeof Reserve.reified;
94
+ static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<Reserve<ToPhantomTypeArgument<P>>>>;
95
+ static get p(): typeof Reserve.phantom;
96
+ private static instantiateBcs;
97
+ private static cachedBcs;
98
+ static get bcs(): ReturnType<typeof Reserve.instantiateBcs>;
99
+ static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
100
+ static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): Reserve<ToPhantomTypeArgument<P>>;
101
+ static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): Reserve<ToPhantomTypeArgument<P>>;
102
+ toJSONField(): ReserveJSONField<P>;
103
+ toJSON(): ReserveJSON<P>;
104
+ static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): Reserve<ToPhantomTypeArgument<P>>;
105
+ static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
106
+ static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, obj: SuiClientTypes.Object<{
107
+ content: true;
108
+ }>): Reserve<ToPhantomTypeArgument<P>>;
109
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArg: P, id: string): Promise<Reserve<ToPhantomTypeArgument<P>>>;
110
+ }
111
+ export declare function isCToken(type: string): boolean;
112
+ export interface CTokenFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
113
+ dummyField: ToField<'bool'>;
114
+ }
115
+ export type CTokenReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<CToken<P, T>, CTokenFields<P, T>>;
116
+ export type CTokenJSONField<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
117
+ dummyField: boolean;
118
+ };
119
+ export type CTokenJSON<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
120
+ $typeName: typeof CToken.$typeName;
121
+ $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
122
+ } & CTokenJSONField<P, T>;
123
+ /**
124
+ * Interest bearing token on the underlying Coin<T>. The ctoken can be redeemed for
125
+ * the underlying token + any interest earned.
126
+ */
127
+ export declare class CToken<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
128
+ __StructClass: true;
129
+ static get $typeName(): `${string}::reserve::CToken`;
130
+ static readonly $numTypeParams = 2;
131
+ static readonly $isPhantom: readonly [true, true];
132
+ readonly $typeName: typeof CToken.$typeName;
133
+ readonly $fullTypeName: `${string}::reserve::CToken<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
134
+ readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
135
+ readonly $isPhantom: typeof CToken.$isPhantom;
136
+ readonly dummyField: ToField<'bool'>;
137
+ private constructor();
138
+ static reified<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): CTokenReified<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
139
+ static get r(): typeof CToken.reified;
140
+ static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
141
+ static get p(): typeof CToken.phantom;
142
+ private static instantiateBcs;
143
+ private static cachedBcs;
144
+ static get bcs(): ReturnType<typeof CToken.instantiateBcs>;
145
+ static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
146
+ static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
147
+ static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
148
+ toJSONField(): CTokenJSONField<P, T>;
149
+ toJSON(): CTokenJSON<P, T>;
150
+ static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
151
+ static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
152
+ static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], obj: SuiClientTypes.Object<{
153
+ content: true;
154
+ }>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
155
+ static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArgs: [P, T], id: string): Promise<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
156
+ }
157
+ export declare function isLiquidityRequest(type: string): boolean;
158
+ export interface LiquidityRequestFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
159
+ amount: ToField<'u64'>;
160
+ fee: ToField<'u64'>;
161
+ }
162
+ export type LiquidityRequestReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<LiquidityRequest<P, T>, LiquidityRequestFields<P, T>>;
163
+ export type LiquidityRequestJSONField<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
164
+ amount: string;
165
+ fee: string;
166
+ };
167
+ export type LiquidityRequestJSON<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
168
+ $typeName: typeof LiquidityRequest.$typeName;
169
+ $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
170
+ } & LiquidityRequestJSONField<P, T>;
171
+ /** A request to withdraw liquidity from the reserve. This is a hot potato object. */
172
+ export declare class LiquidityRequest<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
173
+ __StructClass: true;
174
+ static get $typeName(): `${string}::reserve::LiquidityRequest`;
175
+ static readonly $numTypeParams = 2;
176
+ static readonly $isPhantom: readonly [true, true];
177
+ readonly $typeName: typeof LiquidityRequest.$typeName;
178
+ readonly $fullTypeName: `${string}::reserve::LiquidityRequest<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
179
+ readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
180
+ readonly $isPhantom: typeof LiquidityRequest.$isPhantom;
181
+ readonly amount: ToField<'u64'>;
182
+ readonly fee: ToField<'u64'>;
183
+ private constructor();
184
+ static reified<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): LiquidityRequestReified<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
185
+ static get r(): typeof LiquidityRequest.reified;
186
+ static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
187
+ static get p(): typeof LiquidityRequest.phantom;
188
+ private static instantiateBcs;
189
+ private static cachedBcs;
190
+ static get bcs(): ReturnType<typeof LiquidityRequest.instantiateBcs>;
191
+ static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
192
+ static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
193
+ static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
194
+ toJSONField(): LiquidityRequestJSONField<P, T>;
195
+ toJSON(): LiquidityRequestJSON<P, T>;
196
+ static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
197
+ static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
198
+ static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], obj: SuiClientTypes.Object<{
199
+ content: true;
200
+ }>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
201
+ static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArgs: [P, T], id: string): Promise<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
202
+ }
14
203
  export declare function isBalanceKey(type: string): boolean;
15
204
  export interface BalanceKeyFields {
16
- dummyField: ToField<"bool">;
205
+ dummyField: ToField<'bool'>;
17
206
  }
18
207
  export type BalanceKeyReified = Reified<BalanceKey, BalanceKeyFields>;
208
+ export type BalanceKeyJSONField = {
209
+ dummyField: boolean;
210
+ };
211
+ export type BalanceKeyJSON = {
212
+ $typeName: typeof BalanceKey.$typeName;
213
+ $typeArgs: [];
214
+ } & BalanceKeyJSONField;
19
215
  export declare class BalanceKey implements StructClass {
20
216
  __StructClass: true;
21
- static readonly $typeName: string;
217
+ static get $typeName(): `${string}::reserve::BalanceKey`;
22
218
  static readonly $numTypeParams = 0;
23
219
  static readonly $isPhantom: readonly [];
24
- readonly $typeName: string;
25
- readonly $fullTypeName: `${typeof PKG_V1}::reserve::BalanceKey`;
220
+ readonly $typeName: typeof BalanceKey.$typeName;
221
+ readonly $fullTypeName: `${string}::reserve::BalanceKey`;
26
222
  readonly $typeArgs: [];
27
- readonly $isPhantom: readonly [];
28
- readonly dummyField: ToField<"bool">;
223
+ readonly $isPhantom: typeof BalanceKey.$isPhantom;
224
+ readonly dummyField: ToField<'bool'>;
29
225
  private constructor();
30
226
  static reified(): BalanceKeyReified;
31
- static get r(): reified.StructClassReified<BalanceKey, BalanceKeyFields>;
227
+ static get r(): BalanceKeyReified;
32
228
  static phantom(): PhantomReified<ToTypeStr<BalanceKey>>;
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">;
36
- }, string>;
229
+ static get p(): PhantomReified<ToTypeStr<BalanceKey>>;
230
+ private static instantiateBcs;
231
+ private static cachedBcs;
232
+ static get bcs(): ReturnType<typeof BalanceKey.instantiateBcs>;
37
233
  static fromFields(fields: Record<string, any>): BalanceKey;
38
234
  static fromFieldsWithTypes(item: FieldsWithTypes): BalanceKey;
39
235
  static fromBcs(data: Uint8Array): BalanceKey;
40
- toJSONField(): {
41
- dummyField: boolean;
42
- };
43
- toJSON(): {
44
- dummyField: boolean;
45
- $typeName: string;
46
- $typeArgs: [];
47
- };
236
+ toJSONField(): BalanceKeyJSONField;
237
+ toJSON(): BalanceKeyJSON;
48
238
  static fromJSONField(field: any): BalanceKey;
49
239
  static fromJSON(json: Record<string, any>): BalanceKey;
50
- static fetch(client: SuiGrpcClient, id: string): Promise<BalanceKey>;
240
+ static fromCoreObject(obj: SuiClientTypes.Object<{
241
+ content: true;
242
+ }>): BalanceKey;
243
+ static fetch(client: ClientWithCoreApi, id: string): Promise<BalanceKey>;
244
+ }
245
+ export declare function isStakerKey(type: string): boolean;
246
+ export interface StakerKeyFields {
247
+ dummyField: ToField<'bool'>;
248
+ }
249
+ export type StakerKeyReified = Reified<StakerKey, StakerKeyFields>;
250
+ export type StakerKeyJSONField = {
251
+ dummyField: boolean;
252
+ };
253
+ export type StakerKeyJSON = {
254
+ $typeName: typeof StakerKey.$typeName;
255
+ $typeArgs: [];
256
+ } & StakerKeyJSONField;
257
+ export declare class StakerKey implements StructClass {
258
+ __StructClass: true;
259
+ static get $typeName(): `${string}::reserve::StakerKey`;
260
+ static readonly $numTypeParams = 0;
261
+ static readonly $isPhantom: readonly [];
262
+ readonly $typeName: typeof StakerKey.$typeName;
263
+ readonly $fullTypeName: `${string}::reserve::StakerKey`;
264
+ readonly $typeArgs: [];
265
+ readonly $isPhantom: typeof StakerKey.$isPhantom;
266
+ readonly dummyField: ToField<'bool'>;
267
+ private constructor();
268
+ static reified(): StakerKeyReified;
269
+ static get r(): StakerKeyReified;
270
+ static phantom(): PhantomReified<ToTypeStr<StakerKey>>;
271
+ static get p(): PhantomReified<ToTypeStr<StakerKey>>;
272
+ private static instantiateBcs;
273
+ private static cachedBcs;
274
+ static get bcs(): ReturnType<typeof StakerKey.instantiateBcs>;
275
+ static fromFields(fields: Record<string, any>): StakerKey;
276
+ static fromFieldsWithTypes(item: FieldsWithTypes): StakerKey;
277
+ static fromBcs(data: Uint8Array): StakerKey;
278
+ toJSONField(): StakerKeyJSONField;
279
+ toJSON(): StakerKeyJSON;
280
+ static fromJSONField(field: any): StakerKey;
281
+ static fromJSON(json: Record<string, any>): StakerKey;
282
+ static fromCoreObject(obj: SuiClientTypes.Object<{
283
+ content: true;
284
+ }>): StakerKey;
285
+ static fetch(client: ClientWithCoreApi, id: string): Promise<StakerKey>;
286
+ }
287
+ export declare function isReservePauseKey(type: string): boolean;
288
+ export interface ReservePauseKeyFields {
289
+ dummyField: ToField<'bool'>;
290
+ }
291
+ export type ReservePauseKeyReified = Reified<ReservePauseKey, ReservePauseKeyFields>;
292
+ export type ReservePauseKeyJSONField = {
293
+ dummyField: boolean;
294
+ };
295
+ export type ReservePauseKeyJSON = {
296
+ $typeName: typeof ReservePauseKey.$typeName;
297
+ $typeArgs: [];
298
+ } & ReservePauseKeyJSONField;
299
+ export declare class ReservePauseKey implements StructClass {
300
+ __StructClass: true;
301
+ static get $typeName(): `${string}::reserve::ReservePauseKey`;
302
+ static readonly $numTypeParams = 0;
303
+ static readonly $isPhantom: readonly [];
304
+ readonly $typeName: typeof ReservePauseKey.$typeName;
305
+ readonly $fullTypeName: `${string}::reserve::ReservePauseKey`;
306
+ readonly $typeArgs: [];
307
+ readonly $isPhantom: typeof ReservePauseKey.$isPhantom;
308
+ readonly dummyField: ToField<'bool'>;
309
+ private constructor();
310
+ static reified(): ReservePauseKeyReified;
311
+ static get r(): ReservePauseKeyReified;
312
+ static phantom(): PhantomReified<ToTypeStr<ReservePauseKey>>;
313
+ static get p(): PhantomReified<ToTypeStr<ReservePauseKey>>;
314
+ private static instantiateBcs;
315
+ private static cachedBcs;
316
+ static get bcs(): ReturnType<typeof ReservePauseKey.instantiateBcs>;
317
+ static fromFields(fields: Record<string, any>): ReservePauseKey;
318
+ static fromFieldsWithTypes(item: FieldsWithTypes): ReservePauseKey;
319
+ static fromBcs(data: Uint8Array): ReservePauseKey;
320
+ toJSONField(): ReservePauseKeyJSONField;
321
+ toJSON(): ReservePauseKeyJSON;
322
+ static fromJSONField(field: any): ReservePauseKey;
323
+ static fromJSON(json: Record<string, any>): ReservePauseKey;
324
+ static fromCoreObject(obj: SuiClientTypes.Object<{
325
+ content: true;
326
+ }>): ReservePauseKey;
327
+ static fetch(client: ClientWithCoreApi, id: string): Promise<ReservePauseKey>;
328
+ }
329
+ export declare function isPriceGuardKey(type: string): boolean;
330
+ export interface PriceGuardKeyFields {
331
+ dummyField: ToField<'bool'>;
332
+ }
333
+ export type PriceGuardKeyReified = Reified<PriceGuardKey, PriceGuardKeyFields>;
334
+ export type PriceGuardKeyJSONField = {
335
+ dummyField: boolean;
336
+ };
337
+ export type PriceGuardKeyJSON = {
338
+ $typeName: typeof PriceGuardKey.$typeName;
339
+ $typeArgs: [];
340
+ } & PriceGuardKeyJSONField;
341
+ export declare class PriceGuardKey implements StructClass {
342
+ __StructClass: true;
343
+ static get $typeName(): `${string}::reserve::PriceGuardKey`;
344
+ static readonly $numTypeParams = 0;
345
+ static readonly $isPhantom: readonly [];
346
+ readonly $typeName: typeof PriceGuardKey.$typeName;
347
+ readonly $fullTypeName: `${string}::reserve::PriceGuardKey`;
348
+ readonly $typeArgs: [];
349
+ readonly $isPhantom: typeof PriceGuardKey.$isPhantom;
350
+ readonly dummyField: ToField<'bool'>;
351
+ private constructor();
352
+ static reified(): PriceGuardKeyReified;
353
+ static get r(): PriceGuardKeyReified;
354
+ static phantom(): PhantomReified<ToTypeStr<PriceGuardKey>>;
355
+ static get p(): PhantomReified<ToTypeStr<PriceGuardKey>>;
356
+ private static instantiateBcs;
357
+ private static cachedBcs;
358
+ static get bcs(): ReturnType<typeof PriceGuardKey.instantiateBcs>;
359
+ static fromFields(fields: Record<string, any>): PriceGuardKey;
360
+ static fromFieldsWithTypes(item: FieldsWithTypes): PriceGuardKey;
361
+ static fromBcs(data: Uint8Array): PriceGuardKey;
362
+ toJSONField(): PriceGuardKeyJSONField;
363
+ toJSON(): PriceGuardKeyJSON;
364
+ static fromJSONField(field: any): PriceGuardKey;
365
+ static fromJSON(json: Record<string, any>): PriceGuardKey;
366
+ static fromCoreObject(obj: SuiClientTypes.Object<{
367
+ content: true;
368
+ }>): PriceGuardKey;
369
+ static fetch(client: ClientWithCoreApi, id: string): Promise<PriceGuardKey>;
370
+ }
371
+ export declare function isConfidenceKey(type: string): boolean;
372
+ export interface ConfidenceKeyFields {
373
+ dummyField: ToField<'bool'>;
374
+ }
375
+ export type ConfidenceKeyReified = Reified<ConfidenceKey, ConfidenceKeyFields>;
376
+ export type ConfidenceKeyJSONField = {
377
+ dummyField: boolean;
378
+ };
379
+ export type ConfidenceKeyJSON = {
380
+ $typeName: typeof ConfidenceKey.$typeName;
381
+ $typeArgs: [];
382
+ } & ConfidenceKeyJSONField;
383
+ export declare class ConfidenceKey implements StructClass {
384
+ __StructClass: true;
385
+ static get $typeName(): `${string}::reserve::ConfidenceKey`;
386
+ static readonly $numTypeParams = 0;
387
+ static readonly $isPhantom: readonly [];
388
+ readonly $typeName: typeof ConfidenceKey.$typeName;
389
+ readonly $fullTypeName: `${string}::reserve::ConfidenceKey`;
390
+ readonly $typeArgs: [];
391
+ readonly $isPhantom: typeof ConfidenceKey.$isPhantom;
392
+ readonly dummyField: ToField<'bool'>;
393
+ private constructor();
394
+ static reified(): ConfidenceKeyReified;
395
+ static get r(): ConfidenceKeyReified;
396
+ static phantom(): PhantomReified<ToTypeStr<ConfidenceKey>>;
397
+ static get p(): PhantomReified<ToTypeStr<ConfidenceKey>>;
398
+ private static instantiateBcs;
399
+ private static cachedBcs;
400
+ static get bcs(): ReturnType<typeof ConfidenceKey.instantiateBcs>;
401
+ static fromFields(fields: Record<string, any>): ConfidenceKey;
402
+ static fromFieldsWithTypes(item: FieldsWithTypes): ConfidenceKey;
403
+ static fromBcs(data: Uint8Array): ConfidenceKey;
404
+ toJSONField(): ConfidenceKeyJSONField;
405
+ toJSON(): ConfidenceKeyJSON;
406
+ static fromJSONField(field: any): ConfidenceKey;
407
+ static fromJSON(json: Record<string, any>): ConfidenceKey;
408
+ static fromCoreObject(obj: SuiClientTypes.Object<{
409
+ content: true;
410
+ }>): ConfidenceKey;
411
+ static fetch(client: ClientWithCoreApi, id: string): Promise<ConfidenceKey>;
412
+ }
413
+ export declare function isPriceGuard(type: string): boolean;
414
+ export interface PriceGuardFields {
415
+ maxPriceChangeBps: ToField<'u64'>;
416
+ minUpdateIntervalS: ToField<'u64'>;
417
+ priceAnchor: ToField<Decimal>;
418
+ smoothedPriceAnchor: ToField<Decimal>;
419
+ anchorTimestampS: ToField<'u64'>;
420
+ }
421
+ export type PriceGuardReified = Reified<PriceGuard, PriceGuardFields>;
422
+ export type PriceGuardJSONField = {
423
+ maxPriceChangeBps: string;
424
+ minUpdateIntervalS: string;
425
+ priceAnchor: ToJSON<Decimal>;
426
+ smoothedPriceAnchor: ToJSON<Decimal>;
427
+ anchorTimestampS: string;
428
+ };
429
+ export type PriceGuardJSON = {
430
+ $typeName: typeof PriceGuard.$typeName;
431
+ $typeArgs: [];
432
+ } & PriceGuardJSONField;
433
+ /**
434
+ * Bounds how far `price` and `smoothed_price` may move per
435
+ * `min_update_interval_s`. Each anchor moves at most one band per interval and is
436
+ * advanced to the clamped value, so repeating a refresh inside one PTB cannot walk
437
+ * either price further than a single band.
438
+ */
439
+ export declare class PriceGuard implements StructClass {
440
+ __StructClass: true;
441
+ static get $typeName(): `${string}::reserve::PriceGuard`;
442
+ static readonly $numTypeParams = 0;
443
+ static readonly $isPhantom: readonly [];
444
+ readonly $typeName: typeof PriceGuard.$typeName;
445
+ readonly $fullTypeName: `${string}::reserve::PriceGuard`;
446
+ readonly $typeArgs: [];
447
+ readonly $isPhantom: typeof PriceGuard.$isPhantom;
448
+ readonly maxPriceChangeBps: ToField<'u64'>;
449
+ readonly minUpdateIntervalS: ToField<'u64'>;
450
+ readonly priceAnchor: ToField<Decimal>;
451
+ readonly smoothedPriceAnchor: ToField<Decimal>;
452
+ readonly anchorTimestampS: ToField<'u64'>;
453
+ private constructor();
454
+ static reified(): PriceGuardReified;
455
+ static get r(): PriceGuardReified;
456
+ static phantom(): PhantomReified<ToTypeStr<PriceGuard>>;
457
+ static get p(): PhantomReified<ToTypeStr<PriceGuard>>;
458
+ private static instantiateBcs;
459
+ private static cachedBcs;
460
+ static get bcs(): ReturnType<typeof PriceGuard.instantiateBcs>;
461
+ static fromFields(fields: Record<string, any>): PriceGuard;
462
+ static fromFieldsWithTypes(item: FieldsWithTypes): PriceGuard;
463
+ static fromBcs(data: Uint8Array): PriceGuard;
464
+ toJSONField(): PriceGuardJSONField;
465
+ toJSON(): PriceGuardJSON;
466
+ static fromJSONField(field: any): PriceGuard;
467
+ static fromJSON(json: Record<string, any>): PriceGuard;
468
+ static fromCoreObject(obj: SuiClientTypes.Object<{
469
+ content: true;
470
+ }>): PriceGuard;
471
+ static fetch(client: ClientWithCoreApi, id: string): Promise<PriceGuard>;
51
472
  }
52
473
  export declare function isBalances(type: string): boolean;
53
474
  export interface BalancesFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
@@ -58,15 +479,27 @@ export interface BalancesFields<P extends PhantomTypeArgument, T extends Phantom
58
479
  depositedCtokens: ToField<Balance<ToPhantom<CToken<P, T>>>>;
59
480
  }
60
481
  export type BalancesReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<Balances<P, T>, BalancesFields<P, T>>;
482
+ export type BalancesJSONField<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
483
+ availableAmount: ToJSON<Balance<T>>;
484
+ ctokenSupply: ToJSON<Supply<ToPhantom<CToken<P, T>>>>;
485
+ fees: ToJSON<Balance<T>>;
486
+ ctokenFees: ToJSON<Balance<ToPhantom<CToken<P, T>>>>;
487
+ depositedCtokens: ToJSON<Balance<ToPhantom<CToken<P, T>>>>;
488
+ };
489
+ export type BalancesJSON<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = {
490
+ $typeName: typeof Balances.$typeName;
491
+ $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
492
+ } & BalancesJSONField<P, T>;
493
+ /** Balances are stored in a dynamic field to avoid typing the Reserve with CoinType */
61
494
  export declare class Balances<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
62
495
  __StructClass: true;
63
- static readonly $typeName: string;
496
+ static get $typeName(): `${string}::reserve::Balances`;
64
497
  static readonly $numTypeParams = 2;
65
498
  static readonly $isPhantom: readonly [true, true];
66
- readonly $typeName: string;
67
- readonly $fullTypeName: `${typeof PKG_V1}::reserve::Balances<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
499
+ readonly $typeName: typeof Balances.$typeName;
500
+ readonly $fullTypeName: `${string}::reserve::Balances<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
68
501
  readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
69
- readonly $isPhantom: readonly [true, true];
502
+ readonly $isPhantom: typeof Balances.$isPhantom;
70
503
  readonly availableAmount: ToField<Balance<T>>;
71
504
  readonly ctokenSupply: ToField<Supply<ToPhantom<CToken<P, T>>>>;
72
505
  readonly fees: ToField<Balance<T>>;
@@ -77,177 +510,31 @@ export declare class Balances<P extends PhantomTypeArgument, T extends PhantomTy
77
510
  static get r(): typeof Balances.reified;
78
511
  static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
79
512
  static get p(): typeof Balances.phantom;
80
- static get bcs(): import("@mysten/bcs").BcsStruct<{
81
- available_amount: import("@mysten/bcs").BcsStruct<{
82
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
83
- }, string>;
84
- ctoken_supply: import("@mysten/bcs").BcsStruct<{
85
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
86
- }, string>;
87
- fees: import("@mysten/bcs").BcsStruct<{
88
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
89
- }, string>;
90
- ctoken_fees: import("@mysten/bcs").BcsStruct<{
91
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
92
- }, string>;
93
- deposited_ctokens: import("@mysten/bcs").BcsStruct<{
94
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
95
- }, string>;
96
- }, string>;
513
+ private static instantiateBcs;
514
+ private static cachedBcs;
515
+ static get bcs(): ReturnType<typeof Balances.instantiateBcs>;
97
516
  static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
98
517
  static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
99
518
  static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
100
- toJSONField(): {
101
- availableAmount: {
102
- value: string;
103
- };
104
- ctokenSupply: {
105
- value: string;
106
- };
107
- fees: {
108
- value: string;
109
- };
110
- ctokenFees: {
111
- value: string;
112
- };
113
- depositedCtokens: {
114
- value: string;
115
- };
116
- };
117
- toJSON(): {
118
- availableAmount: {
119
- value: string;
120
- };
121
- ctokenSupply: {
122
- value: string;
123
- };
124
- fees: {
125
- value: string;
126
- };
127
- ctokenFees: {
128
- value: string;
129
- };
130
- depositedCtokens: {
131
- value: string;
132
- };
133
- $typeName: string;
134
- $typeArgs: [reified.PhantomToTypeStr<P>, reified.PhantomToTypeStr<T>];
135
- };
519
+ toJSONField(): BalancesJSONField<P, T>;
520
+ toJSON(): BalancesJSON<P, T>;
136
521
  static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
137
522
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): 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>>>;
139
- }
140
- export declare function isCToken(type: string): boolean;
141
- export interface CTokenFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
142
- dummyField: ToField<"bool">;
143
- }
144
- export type CTokenReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<CToken<P, T>, CTokenFields<P, T>>;
145
- export declare class CToken<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
146
- __StructClass: true;
147
- static readonly $typeName: string;
148
- static readonly $numTypeParams = 2;
149
- static readonly $isPhantom: readonly [true, true];
150
- readonly $typeName: string;
151
- readonly $fullTypeName: `${typeof PKG_V1}::reserve::CToken<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
152
- readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
153
- readonly $isPhantom: readonly [true, true];
154
- readonly dummyField: ToField<"bool">;
155
- private constructor();
156
- static reified<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): CTokenReified<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
157
- static get r(): typeof CToken.reified;
158
- static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
159
- static get p(): typeof CToken.phantom;
160
- static get bcs(): import("@mysten/bcs").BcsStruct<{
161
- dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
162
- }, string>;
163
- static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
164
- static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
165
- static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
166
- toJSONField(): {
167
- dummyField: boolean;
168
- };
169
- toJSON(): {
170
- dummyField: boolean;
171
- $typeName: string;
172
- $typeArgs: [reified.PhantomToTypeStr<P>, reified.PhantomToTypeStr<T>];
173
- };
174
- static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
175
- static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): 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>>>;
177
- }
178
- export declare function isClaimStakingRewardsEvent(type: string): boolean;
179
- export interface ClaimStakingRewardsEventFields {
180
- lendingMarketId: ToField<"address">;
181
- coinType: ToField<TypeName>;
182
- reserveId: ToField<"address">;
183
- amount: ToField<"u64">;
184
- }
185
- export type ClaimStakingRewardsEventReified = Reified<ClaimStakingRewardsEvent, ClaimStakingRewardsEventFields>;
186
- export declare class ClaimStakingRewardsEvent implements StructClass {
187
- __StructClass: true;
188
- static readonly $typeName: string;
189
- static readonly $numTypeParams = 0;
190
- static readonly $isPhantom: readonly [];
191
- readonly $typeName: string;
192
- readonly $fullTypeName: `${typeof PKG_V8}::reserve::ClaimStakingRewardsEvent`;
193
- readonly $typeArgs: [];
194
- readonly $isPhantom: readonly [];
195
- readonly lendingMarketId: ToField<"address">;
196
- readonly coinType: ToField<TypeName>;
197
- readonly reserveId: ToField<"address">;
198
- readonly amount: ToField<"u64">;
199
- private constructor();
200
- static reified(): ClaimStakingRewardsEventReified;
201
- static get r(): reified.StructClassReified<ClaimStakingRewardsEvent, ClaimStakingRewardsEventFields>;
202
- static phantom(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
203
- static get p(): reified.PhantomReified<"0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::reserve::ClaimStakingRewardsEvent" | "0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb::reserve::ClaimStakingRewardsEvent">;
204
- static get bcs(): import("@mysten/bcs").BcsStruct<{
205
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
206
- coin_type: import("@mysten/bcs").BcsStruct<{
207
- name: import("@mysten/bcs").BcsStruct<{
208
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
209
- length: number;
210
- }, string>;
211
- }, string>;
212
- }, string>;
213
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
214
- amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
215
- }, string>;
216
- static fromFields(fields: Record<string, any>): ClaimStakingRewardsEvent;
217
- static fromFieldsWithTypes(item: FieldsWithTypes): ClaimStakingRewardsEvent;
218
- static fromBcs(data: Uint8Array): ClaimStakingRewardsEvent;
219
- toJSONField(): {
220
- lendingMarketId: string;
221
- coinType: {
222
- name: string;
223
- };
224
- reserveId: string;
225
- amount: string;
226
- };
227
- toJSON(): {
228
- lendingMarketId: string;
229
- coinType: {
230
- name: string;
231
- };
232
- reserveId: string;
233
- amount: string;
234
- $typeName: string;
235
- $typeArgs: [];
236
- };
237
- static fromJSONField(field: any): ClaimStakingRewardsEvent;
238
- static fromJSON(json: Record<string, any>): ClaimStakingRewardsEvent;
239
- static fetch(client: SuiGrpcClient, id: string): Promise<ClaimStakingRewardsEvent>;
523
+ static fromCoreObject<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], obj: SuiClientTypes.Object<{
524
+ content: true;
525
+ }>): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
526
+ static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArgs: [P, T], id: string): Promise<Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
240
527
  }
241
528
  export declare function isInterestUpdateEvent(type: string): boolean;
242
529
  export interface InterestUpdateEventFields {
243
- lendingMarketId: ToField<"address">;
530
+ lendingMarketId: ToField<'address'>;
244
531
  coinType: ToField<TypeName>;
245
- reserveId: ToField<"address">;
532
+ reserveId: ToField<'address'>;
246
533
  cumulativeBorrowRate: ToField<Decimal>;
247
- availableAmount: ToField<"u64">;
534
+ availableAmount: ToField<'u64'>;
248
535
  borrowedAmount: ToField<Decimal>;
249
536
  unclaimedSpreadFees: ToField<Decimal>;
250
- ctokenSupply: ToField<"u64">;
537
+ ctokenSupply: ToField<'u64'>;
251
538
  borrowInterestPaid: ToField<Decimal>;
252
539
  spreadFee: ToField<Decimal>;
253
540
  supplyInterestEarned: ToField<Decimal>;
@@ -256,23 +543,43 @@ export interface InterestUpdateEventFields {
256
543
  supplyInterestEarnedUsdEstimate: ToField<Decimal>;
257
544
  }
258
545
  export type InterestUpdateEventReified = Reified<InterestUpdateEvent, InterestUpdateEventFields>;
546
+ export type InterestUpdateEventJSONField = {
547
+ lendingMarketId: string;
548
+ coinType: string;
549
+ reserveId: string;
550
+ cumulativeBorrowRate: ToJSON<Decimal>;
551
+ availableAmount: string;
552
+ borrowedAmount: ToJSON<Decimal>;
553
+ unclaimedSpreadFees: ToJSON<Decimal>;
554
+ ctokenSupply: string;
555
+ borrowInterestPaid: ToJSON<Decimal>;
556
+ spreadFee: ToJSON<Decimal>;
557
+ supplyInterestEarned: ToJSON<Decimal>;
558
+ borrowInterestPaidUsdEstimate: ToJSON<Decimal>;
559
+ protocolFeeUsdEstimate: ToJSON<Decimal>;
560
+ supplyInterestEarnedUsdEstimate: ToJSON<Decimal>;
561
+ };
562
+ export type InterestUpdateEventJSON = {
563
+ $typeName: typeof InterestUpdateEvent.$typeName;
564
+ $typeArgs: [];
565
+ } & InterestUpdateEventJSONField;
259
566
  export declare class InterestUpdateEvent implements StructClass {
260
567
  __StructClass: true;
261
- static readonly $typeName: string;
568
+ static get $typeName(): `${string}::reserve::InterestUpdateEvent`;
262
569
  static readonly $numTypeParams = 0;
263
570
  static readonly $isPhantom: readonly [];
264
- readonly $typeName: string;
265
- readonly $fullTypeName: `${typeof PKG_V1}::reserve::InterestUpdateEvent`;
571
+ readonly $typeName: typeof InterestUpdateEvent.$typeName;
572
+ readonly $fullTypeName: `${string}::reserve::InterestUpdateEvent`;
266
573
  readonly $typeArgs: [];
267
- readonly $isPhantom: readonly [];
268
- readonly lendingMarketId: ToField<"address">;
574
+ readonly $isPhantom: typeof InterestUpdateEvent.$isPhantom;
575
+ readonly lendingMarketId: ToField<'address'>;
269
576
  readonly coinType: ToField<TypeName>;
270
- readonly reserveId: ToField<"address">;
577
+ readonly reserveId: ToField<'address'>;
271
578
  readonly cumulativeBorrowRate: ToField<Decimal>;
272
- readonly availableAmount: ToField<"u64">;
579
+ readonly availableAmount: ToField<'u64'>;
273
580
  readonly borrowedAmount: ToField<Decimal>;
274
581
  readonly unclaimedSpreadFees: ToField<Decimal>;
275
- readonly ctokenSupply: ToField<"u64">;
582
+ readonly ctokenSupply: ToField<'u64'>;
276
583
  readonly borrowInterestPaid: ToField<Decimal>;
277
584
  readonly spreadFee: ToField<Decimal>;
278
585
  readonly supplyInterestEarned: ToField<Decimal>;
@@ -281,540 +588,29 @@ export declare class InterestUpdateEvent implements StructClass {
281
588
  readonly supplyInterestEarnedUsdEstimate: ToField<Decimal>;
282
589
  private constructor();
283
590
  static reified(): InterestUpdateEventReified;
284
- static get r(): reified.StructClassReified<InterestUpdateEvent, InterestUpdateEventFields>;
591
+ static get r(): InterestUpdateEventReified;
285
592
  static phantom(): PhantomReified<ToTypeStr<InterestUpdateEvent>>;
286
- static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::InterestUpdateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::InterestUpdateEvent">;
287
- static get bcs(): import("@mysten/bcs").BcsStruct<{
288
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
289
- coin_type: import("@mysten/bcs").BcsStruct<{
290
- name: import("@mysten/bcs").BcsStruct<{
291
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
292
- length: number;
293
- }, string>;
294
- }, string>;
295
- }, string>;
296
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
297
- cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
298
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
299
- }, string>;
300
- available_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
301
- borrowed_amount: import("@mysten/bcs").BcsStruct<{
302
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
303
- }, string>;
304
- unclaimed_spread_fees: import("@mysten/bcs").BcsStruct<{
305
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
306
- }, string>;
307
- ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
308
- borrow_interest_paid: import("@mysten/bcs").BcsStruct<{
309
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
310
- }, string>;
311
- spread_fee: import("@mysten/bcs").BcsStruct<{
312
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
313
- }, string>;
314
- supply_interest_earned: import("@mysten/bcs").BcsStruct<{
315
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
316
- }, string>;
317
- borrow_interest_paid_usd_estimate: import("@mysten/bcs").BcsStruct<{
318
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
319
- }, string>;
320
- protocol_fee_usd_estimate: import("@mysten/bcs").BcsStruct<{
321
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
322
- }, string>;
323
- supply_interest_earned_usd_estimate: import("@mysten/bcs").BcsStruct<{
324
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
325
- }, string>;
326
- }, string>;
593
+ static get p(): PhantomReified<ToTypeStr<InterestUpdateEvent>>;
594
+ private static instantiateBcs;
595
+ private static cachedBcs;
596
+ static get bcs(): ReturnType<typeof InterestUpdateEvent.instantiateBcs>;
327
597
  static fromFields(fields: Record<string, any>): InterestUpdateEvent;
328
598
  static fromFieldsWithTypes(item: FieldsWithTypes): InterestUpdateEvent;
329
599
  static fromBcs(data: Uint8Array): InterestUpdateEvent;
330
- toJSONField(): {
331
- lendingMarketId: string;
332
- coinType: {
333
- name: string;
334
- };
335
- reserveId: string;
336
- cumulativeBorrowRate: {
337
- value: string;
338
- };
339
- availableAmount: string;
340
- borrowedAmount: {
341
- value: string;
342
- };
343
- unclaimedSpreadFees: {
344
- value: string;
345
- };
346
- ctokenSupply: string;
347
- borrowInterestPaid: {
348
- value: string;
349
- };
350
- spreadFee: {
351
- value: string;
352
- };
353
- supplyInterestEarned: {
354
- value: string;
355
- };
356
- borrowInterestPaidUsdEstimate: {
357
- value: string;
358
- };
359
- protocolFeeUsdEstimate: {
360
- value: string;
361
- };
362
- supplyInterestEarnedUsdEstimate: {
363
- value: string;
364
- };
365
- };
366
- toJSON(): {
367
- lendingMarketId: string;
368
- coinType: {
369
- name: string;
370
- };
371
- reserveId: string;
372
- cumulativeBorrowRate: {
373
- value: string;
374
- };
375
- availableAmount: string;
376
- borrowedAmount: {
377
- value: string;
378
- };
379
- unclaimedSpreadFees: {
380
- value: string;
381
- };
382
- ctokenSupply: string;
383
- borrowInterestPaid: {
384
- value: string;
385
- };
386
- spreadFee: {
387
- value: string;
388
- };
389
- supplyInterestEarned: {
390
- value: string;
391
- };
392
- borrowInterestPaidUsdEstimate: {
393
- value: string;
394
- };
395
- protocolFeeUsdEstimate: {
396
- value: string;
397
- };
398
- supplyInterestEarnedUsdEstimate: {
399
- value: string;
400
- };
401
- $typeName: string;
402
- $typeArgs: [];
403
- };
600
+ toJSONField(): InterestUpdateEventJSONField;
601
+ toJSON(): InterestUpdateEventJSON;
404
602
  static fromJSONField(field: any): InterestUpdateEvent;
405
603
  static fromJSON(json: Record<string, any>): InterestUpdateEvent;
406
- static fetch(client: SuiGrpcClient, id: string): Promise<InterestUpdateEvent>;
407
- }
408
- export declare function isLiquidityRequest(type: string): boolean;
409
- export interface LiquidityRequestFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
410
- amount: ToField<"u64">;
411
- fee: ToField<"u64">;
412
- }
413
- export type LiquidityRequestReified<P extends PhantomTypeArgument, T extends PhantomTypeArgument> = Reified<LiquidityRequest<P, T>, LiquidityRequestFields<P, T>>;
414
- export declare class LiquidityRequest<P extends PhantomTypeArgument, T extends PhantomTypeArgument> implements StructClass {
415
- __StructClass: true;
416
- static readonly $typeName: string;
417
- static readonly $numTypeParams = 2;
418
- static readonly $isPhantom: readonly [true, true];
419
- readonly $typeName: string;
420
- readonly $fullTypeName: `${typeof PKG_V8}::reserve::LiquidityRequest<${PhantomToTypeStr<P>}, ${PhantomToTypeStr<T>}>`;
421
- readonly $typeArgs: [PhantomToTypeStr<P>, PhantomToTypeStr<T>];
422
- readonly $isPhantom: readonly [true, true];
423
- readonly amount: ToField<"u64">;
424
- readonly fee: ToField<"u64">;
425
- private constructor();
426
- static reified<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): LiquidityRequestReified<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
427
- static get r(): typeof LiquidityRequest.reified;
428
- static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
429
- static get p(): typeof LiquidityRequest.phantom;
430
- static get bcs(): import("@mysten/bcs").BcsStruct<{
431
- amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
432
- fee: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
433
- }, string>;
434
- static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
435
- static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
436
- static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
437
- toJSONField(): {
438
- amount: string;
439
- fee: string;
440
- };
441
- toJSON(): {
442
- amount: string;
443
- fee: string;
444
- $typeName: string;
445
- $typeArgs: [reified.PhantomToTypeStr<P>, reified.PhantomToTypeStr<T>];
446
- };
447
- static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
448
- static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): 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>>>;
450
- }
451
- export declare function isReserve(type: string): boolean;
452
- export interface ReserveFields<P extends PhantomTypeArgument> {
453
- id: ToField<UID>;
454
- lendingMarketId: ToField<ID>;
455
- arrayIndex: ToField<"u64">;
456
- coinType: ToField<TypeName>;
457
- config: ToField<Cell<ReserveConfig>>;
458
- mintDecimals: ToField<"u8">;
459
- priceIdentifier: ToField<PriceIdentifier>;
460
- price: ToField<Decimal>;
461
- smoothedPrice: ToField<Decimal>;
462
- priceLastUpdateTimestampS: ToField<"u64">;
463
- availableAmount: ToField<"u64">;
464
- ctokenSupply: ToField<"u64">;
465
- borrowedAmount: ToField<Decimal>;
466
- cumulativeBorrowRate: ToField<Decimal>;
467
- interestLastUpdateTimestampS: ToField<"u64">;
468
- unclaimedSpreadFees: ToField<Decimal>;
469
- attributedBorrowValue: ToField<Decimal>;
470
- depositsPoolRewardManager: ToField<PoolRewardManager>;
471
- borrowsPoolRewardManager: ToField<PoolRewardManager>;
472
- }
473
- export type ReserveReified<P extends PhantomTypeArgument> = Reified<Reserve<P>, ReserveFields<P>>;
474
- export declare class Reserve<P extends PhantomTypeArgument> implements StructClass {
475
- __StructClass: true;
476
- static readonly $typeName: string;
477
- static readonly $numTypeParams = 1;
478
- static readonly $isPhantom: readonly [true];
479
- readonly $typeName: string;
480
- readonly $fullTypeName: `${typeof PKG_V1}::reserve::Reserve<${PhantomToTypeStr<P>}>`;
481
- readonly $typeArgs: [PhantomToTypeStr<P>];
482
- readonly $isPhantom: readonly [true];
483
- readonly id: ToField<UID>;
484
- readonly lendingMarketId: ToField<ID>;
485
- readonly arrayIndex: ToField<"u64">;
486
- readonly coinType: ToField<TypeName>;
487
- readonly config: ToField<Cell<ReserveConfig>>;
488
- readonly mintDecimals: ToField<"u8">;
489
- readonly priceIdentifier: ToField<PriceIdentifier>;
490
- readonly price: ToField<Decimal>;
491
- readonly smoothedPrice: ToField<Decimal>;
492
- readonly priceLastUpdateTimestampS: ToField<"u64">;
493
- readonly availableAmount: ToField<"u64">;
494
- readonly ctokenSupply: ToField<"u64">;
495
- readonly borrowedAmount: ToField<Decimal>;
496
- readonly cumulativeBorrowRate: ToField<Decimal>;
497
- readonly interestLastUpdateTimestampS: ToField<"u64">;
498
- readonly unclaimedSpreadFees: ToField<Decimal>;
499
- readonly attributedBorrowValue: ToField<Decimal>;
500
- readonly depositsPoolRewardManager: ToField<PoolRewardManager>;
501
- readonly borrowsPoolRewardManager: ToField<PoolRewardManager>;
502
- private constructor();
503
- static reified<P extends PhantomReified<PhantomTypeArgument>>(P: P): ReserveReified<ToPhantomTypeArgument<P>>;
504
- static get r(): typeof Reserve.reified;
505
- static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<Reserve<ToPhantomTypeArgument<P>>>>;
506
- static get p(): typeof Reserve.phantom;
507
- static get bcs(): import("@mysten/bcs").BcsStruct<{
508
- id: import("@mysten/bcs").BcsStruct<{
509
- id: import("@mysten/bcs").BcsStruct<{
510
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
511
- }, string>;
512
- }, string>;
513
- lending_market_id: import("@mysten/bcs").BcsStruct<{
514
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
515
- }, string>;
516
- array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
517
- coin_type: import("@mysten/bcs").BcsStruct<{
518
- name: import("@mysten/bcs").BcsStruct<{
519
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
520
- length: number;
521
- }, string>;
522
- }, string>;
523
- }, string>;
524
- config: import("@mysten/bcs").BcsStruct<{
525
- element: import("@mysten/bcs").BcsType<any, any, string>;
526
- }, string>;
527
- mint_decimals: import("@mysten/bcs").BcsType<number, number, "u8">;
528
- price_identifier: import("@mysten/bcs").BcsStruct<{
529
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
530
- length: number;
531
- }, string>;
532
- }, string>;
533
- price: import("@mysten/bcs").BcsStruct<{
534
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
535
- }, string>;
536
- smoothed_price: import("@mysten/bcs").BcsStruct<{
537
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
538
- }, string>;
539
- price_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
540
- available_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
541
- ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
542
- borrowed_amount: import("@mysten/bcs").BcsStruct<{
543
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
544
- }, string>;
545
- cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
546
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
547
- }, string>;
548
- interest_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
549
- unclaimed_spread_fees: import("@mysten/bcs").BcsStruct<{
550
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
551
- }, string>;
552
- attributed_borrow_value: import("@mysten/bcs").BcsStruct<{
553
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
554
- }, string>;
555
- deposits_pool_reward_manager: import("@mysten/bcs").BcsStruct<{
556
- id: import("@mysten/bcs").BcsStruct<{
557
- id: import("@mysten/bcs").BcsStruct<{
558
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
559
- }, string>;
560
- }, string>;
561
- total_shares: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
562
- pool_rewards: import("@mysten/bcs").BcsType<any[], Iterable<any> & {
563
- length: number;
564
- }, string>;
565
- last_update_time_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
566
- }, string>;
567
- borrows_pool_reward_manager: import("@mysten/bcs").BcsStruct<{
568
- id: import("@mysten/bcs").BcsStruct<{
569
- id: import("@mysten/bcs").BcsStruct<{
570
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
571
- }, string>;
572
- }, string>;
573
- total_shares: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
574
- pool_rewards: import("@mysten/bcs").BcsType<any[], Iterable<any> & {
575
- length: number;
576
- }, string>;
577
- last_update_time_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
578
- }, string>;
579
- }, string>;
580
- static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
581
- static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): Reserve<ToPhantomTypeArgument<P>>;
582
- static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): Reserve<ToPhantomTypeArgument<P>>;
583
- toJSONField(): {
584
- id: string;
585
- lendingMarketId: string;
586
- arrayIndex: string;
587
- coinType: {
588
- name: string;
589
- };
590
- config: {
591
- element: {
592
- openLtvPct: number;
593
- closeLtvPct: number;
594
- maxCloseLtvPct: number;
595
- borrowWeightBps: string;
596
- depositLimit: string;
597
- borrowLimit: string;
598
- liquidationBonusBps: string;
599
- maxLiquidationBonusBps: string;
600
- depositLimitUsd: string;
601
- borrowLimitUsd: string;
602
- interestRateUtils: number[];
603
- interestRateAprs: string[];
604
- borrowFeeBps: string;
605
- spreadFeeBps: string;
606
- protocolLiquidationFeeBps: string;
607
- isolated: boolean;
608
- openAttributedBorrowLimitUsd: string;
609
- closeAttributedBorrowLimitUsd: string;
610
- additionalFields: {
611
- id: string;
612
- size: string;
613
- };
614
- } | null;
615
- };
616
- mintDecimals: number;
617
- priceIdentifier: {
618
- bytes: number[];
619
- };
620
- price: {
621
- value: string;
622
- };
623
- smoothedPrice: {
624
- value: string;
625
- };
626
- priceLastUpdateTimestampS: string;
627
- availableAmount: string;
628
- ctokenSupply: string;
629
- borrowedAmount: {
630
- value: string;
631
- };
632
- cumulativeBorrowRate: {
633
- value: string;
634
- };
635
- interestLastUpdateTimestampS: string;
636
- unclaimedSpreadFees: {
637
- value: string;
638
- };
639
- attributedBorrowValue: {
640
- value: string;
641
- };
642
- depositsPoolRewardManager: {
643
- id: string;
644
- totalShares: string;
645
- poolRewards: ({
646
- id: string;
647
- poolRewardManagerId: string;
648
- coinType: {
649
- name: string;
650
- };
651
- startTimeMs: string;
652
- endTimeMs: string;
653
- totalRewards: string;
654
- allocatedRewards: {
655
- value: string;
656
- };
657
- cumulativeRewardsPerShare: {
658
- value: string;
659
- };
660
- numUserRewardManagers: string;
661
- additionalFields: {
662
- id: string;
663
- size: string;
664
- };
665
- } | null)[];
666
- lastUpdateTimeMs: string;
667
- };
668
- borrowsPoolRewardManager: {
669
- id: string;
670
- totalShares: string;
671
- poolRewards: ({
672
- id: string;
673
- poolRewardManagerId: string;
674
- coinType: {
675
- name: string;
676
- };
677
- startTimeMs: string;
678
- endTimeMs: string;
679
- totalRewards: string;
680
- allocatedRewards: {
681
- value: string;
682
- };
683
- cumulativeRewardsPerShare: {
684
- value: string;
685
- };
686
- numUserRewardManagers: string;
687
- additionalFields: {
688
- id: string;
689
- size: string;
690
- };
691
- } | null)[];
692
- lastUpdateTimeMs: string;
693
- };
694
- };
695
- toJSON(): {
696
- id: string;
697
- lendingMarketId: string;
698
- arrayIndex: string;
699
- coinType: {
700
- name: string;
701
- };
702
- config: {
703
- element: {
704
- openLtvPct: number;
705
- closeLtvPct: number;
706
- maxCloseLtvPct: number;
707
- borrowWeightBps: string;
708
- depositLimit: string;
709
- borrowLimit: string;
710
- liquidationBonusBps: string;
711
- maxLiquidationBonusBps: string;
712
- depositLimitUsd: string;
713
- borrowLimitUsd: string;
714
- interestRateUtils: number[];
715
- interestRateAprs: string[];
716
- borrowFeeBps: string;
717
- spreadFeeBps: string;
718
- protocolLiquidationFeeBps: string;
719
- isolated: boolean;
720
- openAttributedBorrowLimitUsd: string;
721
- closeAttributedBorrowLimitUsd: string;
722
- additionalFields: {
723
- id: string;
724
- size: string;
725
- };
726
- } | null;
727
- };
728
- mintDecimals: number;
729
- priceIdentifier: {
730
- bytes: number[];
731
- };
732
- price: {
733
- value: string;
734
- };
735
- smoothedPrice: {
736
- value: string;
737
- };
738
- priceLastUpdateTimestampS: string;
739
- availableAmount: string;
740
- ctokenSupply: string;
741
- borrowedAmount: {
742
- value: string;
743
- };
744
- cumulativeBorrowRate: {
745
- value: string;
746
- };
747
- interestLastUpdateTimestampS: string;
748
- unclaimedSpreadFees: {
749
- value: string;
750
- };
751
- attributedBorrowValue: {
752
- value: string;
753
- };
754
- depositsPoolRewardManager: {
755
- id: string;
756
- totalShares: string;
757
- poolRewards: ({
758
- id: string;
759
- poolRewardManagerId: string;
760
- coinType: {
761
- name: string;
762
- };
763
- startTimeMs: string;
764
- endTimeMs: string;
765
- totalRewards: string;
766
- allocatedRewards: {
767
- value: string;
768
- };
769
- cumulativeRewardsPerShare: {
770
- value: string;
771
- };
772
- numUserRewardManagers: string;
773
- additionalFields: {
774
- id: string;
775
- size: string;
776
- };
777
- } | null)[];
778
- lastUpdateTimeMs: string;
779
- };
780
- borrowsPoolRewardManager: {
781
- id: string;
782
- totalShares: string;
783
- poolRewards: ({
784
- id: string;
785
- poolRewardManagerId: string;
786
- coinType: {
787
- name: string;
788
- };
789
- startTimeMs: string;
790
- endTimeMs: string;
791
- totalRewards: string;
792
- allocatedRewards: {
793
- value: string;
794
- };
795
- cumulativeRewardsPerShare: {
796
- value: string;
797
- };
798
- numUserRewardManagers: string;
799
- additionalFields: {
800
- id: string;
801
- size: string;
802
- };
803
- } | null)[];
804
- lastUpdateTimeMs: string;
805
- };
806
- $typeName: string;
807
- $typeArgs: [reified.PhantomToTypeStr<P>];
808
- };
809
- static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): Reserve<ToPhantomTypeArgument<P>>;
810
- static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
811
- static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArg: P, id: string): Promise<Reserve<ToPhantomTypeArgument<P>>>;
604
+ static fromCoreObject(obj: SuiClientTypes.Object<{
605
+ content: true;
606
+ }>): InterestUpdateEvent;
607
+ static fetch(client: ClientWithCoreApi, id: string): Promise<InterestUpdateEvent>;
812
608
  }
813
609
  export declare function isReserveAssetDataEvent(type: string): boolean;
814
610
  export interface ReserveAssetDataEventFields {
815
- lendingMarketId: ToField<"address">;
611
+ lendingMarketId: ToField<'address'>;
816
612
  coinType: ToField<TypeName>;
817
- reserveId: ToField<"address">;
613
+ reserveId: ToField<'address'>;
818
614
  availableAmount: ToField<Decimal>;
819
615
  supplyAmount: ToField<Decimal>;
820
616
  borrowedAmount: ToField<Decimal>;
@@ -823,25 +619,47 @@ export interface ReserveAssetDataEventFields {
823
619
  borrowedAmountUsdEstimate: ToField<Decimal>;
824
620
  borrowApr: ToField<Decimal>;
825
621
  supplyApr: ToField<Decimal>;
826
- ctokenSupply: ToField<"u64">;
622
+ ctokenSupply: ToField<'u64'>;
827
623
  cumulativeBorrowRate: ToField<Decimal>;
828
624
  price: ToField<Decimal>;
829
625
  smoothedPrice: ToField<Decimal>;
830
- priceLastUpdateTimestampS: ToField<"u64">;
626
+ priceLastUpdateTimestampS: ToField<'u64'>;
831
627
  }
832
628
  export type ReserveAssetDataEventReified = Reified<ReserveAssetDataEvent, ReserveAssetDataEventFields>;
629
+ export type ReserveAssetDataEventJSONField = {
630
+ lendingMarketId: string;
631
+ coinType: string;
632
+ reserveId: string;
633
+ availableAmount: ToJSON<Decimal>;
634
+ supplyAmount: ToJSON<Decimal>;
635
+ borrowedAmount: ToJSON<Decimal>;
636
+ availableAmountUsdEstimate: ToJSON<Decimal>;
637
+ supplyAmountUsdEstimate: ToJSON<Decimal>;
638
+ borrowedAmountUsdEstimate: ToJSON<Decimal>;
639
+ borrowApr: ToJSON<Decimal>;
640
+ supplyApr: ToJSON<Decimal>;
641
+ ctokenSupply: string;
642
+ cumulativeBorrowRate: ToJSON<Decimal>;
643
+ price: ToJSON<Decimal>;
644
+ smoothedPrice: ToJSON<Decimal>;
645
+ priceLastUpdateTimestampS: string;
646
+ };
647
+ export type ReserveAssetDataEventJSON = {
648
+ $typeName: typeof ReserveAssetDataEvent.$typeName;
649
+ $typeArgs: [];
650
+ } & ReserveAssetDataEventJSONField;
833
651
  export declare class ReserveAssetDataEvent implements StructClass {
834
652
  __StructClass: true;
835
- static readonly $typeName: string;
653
+ static get $typeName(): `${string}::reserve::ReserveAssetDataEvent`;
836
654
  static readonly $numTypeParams = 0;
837
655
  static readonly $isPhantom: readonly [];
838
- readonly $typeName: string;
839
- readonly $fullTypeName: `${typeof PKG_V1}::reserve::ReserveAssetDataEvent`;
656
+ readonly $typeName: typeof ReserveAssetDataEvent.$typeName;
657
+ readonly $fullTypeName: `${string}::reserve::ReserveAssetDataEvent`;
840
658
  readonly $typeArgs: [];
841
- readonly $isPhantom: readonly [];
842
- readonly lendingMarketId: ToField<"address">;
659
+ readonly $isPhantom: typeof ReserveAssetDataEvent.$isPhantom;
660
+ readonly lendingMarketId: ToField<'address'>;
843
661
  readonly coinType: ToField<TypeName>;
844
- readonly reserveId: ToField<"address">;
662
+ readonly reserveId: ToField<'address'>;
845
663
  readonly availableAmount: ToField<Decimal>;
846
664
  readonly supplyAmount: ToField<Decimal>;
847
665
  readonly borrowedAmount: ToField<Decimal>;
@@ -850,190 +668,79 @@ export declare class ReserveAssetDataEvent implements StructClass {
850
668
  readonly borrowedAmountUsdEstimate: ToField<Decimal>;
851
669
  readonly borrowApr: ToField<Decimal>;
852
670
  readonly supplyApr: ToField<Decimal>;
853
- readonly ctokenSupply: ToField<"u64">;
671
+ readonly ctokenSupply: ToField<'u64'>;
854
672
  readonly cumulativeBorrowRate: ToField<Decimal>;
855
673
  readonly price: ToField<Decimal>;
856
674
  readonly smoothedPrice: ToField<Decimal>;
857
- readonly priceLastUpdateTimestampS: ToField<"u64">;
675
+ readonly priceLastUpdateTimestampS: ToField<'u64'>;
858
676
  private constructor();
859
677
  static reified(): ReserveAssetDataEventReified;
860
- static get r(): reified.StructClassReified<ReserveAssetDataEvent, ReserveAssetDataEventFields>;
678
+ static get r(): ReserveAssetDataEventReified;
861
679
  static phantom(): PhantomReified<ToTypeStr<ReserveAssetDataEvent>>;
862
- static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::reserve::ReserveAssetDataEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::reserve::ReserveAssetDataEvent">;
863
- static get bcs(): import("@mysten/bcs").BcsStruct<{
864
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
865
- coin_type: import("@mysten/bcs").BcsStruct<{
866
- name: import("@mysten/bcs").BcsStruct<{
867
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
868
- length: number;
869
- }, string>;
870
- }, string>;
871
- }, string>;
872
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
873
- available_amount: import("@mysten/bcs").BcsStruct<{
874
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
875
- }, string>;
876
- supply_amount: import("@mysten/bcs").BcsStruct<{
877
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
878
- }, string>;
879
- borrowed_amount: import("@mysten/bcs").BcsStruct<{
880
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
881
- }, string>;
882
- available_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
883
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
884
- }, string>;
885
- supply_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
886
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
887
- }, string>;
888
- borrowed_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
889
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
890
- }, string>;
891
- borrow_apr: import("@mysten/bcs").BcsStruct<{
892
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
893
- }, string>;
894
- supply_apr: import("@mysten/bcs").BcsStruct<{
895
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
896
- }, string>;
897
- ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
898
- cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
899
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
900
- }, string>;
901
- price: import("@mysten/bcs").BcsStruct<{
902
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
903
- }, string>;
904
- smoothed_price: import("@mysten/bcs").BcsStruct<{
905
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
906
- }, string>;
907
- price_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
908
- }, string>;
680
+ static get p(): PhantomReified<ToTypeStr<ReserveAssetDataEvent>>;
681
+ private static instantiateBcs;
682
+ private static cachedBcs;
683
+ static get bcs(): ReturnType<typeof ReserveAssetDataEvent.instantiateBcs>;
909
684
  static fromFields(fields: Record<string, any>): ReserveAssetDataEvent;
910
685
  static fromFieldsWithTypes(item: FieldsWithTypes): ReserveAssetDataEvent;
911
686
  static fromBcs(data: Uint8Array): ReserveAssetDataEvent;
912
- toJSONField(): {
913
- lendingMarketId: string;
914
- coinType: {
915
- name: string;
916
- };
917
- reserveId: string;
918
- availableAmount: {
919
- value: string;
920
- };
921
- supplyAmount: {
922
- value: string;
923
- };
924
- borrowedAmount: {
925
- value: string;
926
- };
927
- availableAmountUsdEstimate: {
928
- value: string;
929
- };
930
- supplyAmountUsdEstimate: {
931
- value: string;
932
- };
933
- borrowedAmountUsdEstimate: {
934
- value: string;
935
- };
936
- borrowApr: {
937
- value: string;
938
- };
939
- supplyApr: {
940
- value: string;
941
- };
942
- ctokenSupply: string;
943
- cumulativeBorrowRate: {
944
- value: string;
945
- };
946
- price: {
947
- value: string;
948
- };
949
- smoothedPrice: {
950
- value: string;
951
- };
952
- priceLastUpdateTimestampS: string;
953
- };
954
- toJSON(): {
955
- lendingMarketId: string;
956
- coinType: {
957
- name: string;
958
- };
959
- reserveId: string;
960
- availableAmount: {
961
- value: string;
962
- };
963
- supplyAmount: {
964
- value: string;
965
- };
966
- borrowedAmount: {
967
- value: string;
968
- };
969
- availableAmountUsdEstimate: {
970
- value: string;
971
- };
972
- supplyAmountUsdEstimate: {
973
- value: string;
974
- };
975
- borrowedAmountUsdEstimate: {
976
- value: string;
977
- };
978
- borrowApr: {
979
- value: string;
980
- };
981
- supplyApr: {
982
- value: string;
983
- };
984
- ctokenSupply: string;
985
- cumulativeBorrowRate: {
986
- value: string;
987
- };
988
- price: {
989
- value: string;
990
- };
991
- smoothedPrice: {
992
- value: string;
993
- };
994
- priceLastUpdateTimestampS: string;
995
- $typeName: string;
996
- $typeArgs: [];
997
- };
687
+ toJSONField(): ReserveAssetDataEventJSONField;
688
+ toJSON(): ReserveAssetDataEventJSON;
998
689
  static fromJSONField(field: any): ReserveAssetDataEvent;
999
690
  static fromJSON(json: Record<string, any>): ReserveAssetDataEvent;
1000
- static fetch(client: SuiGrpcClient, id: string): Promise<ReserveAssetDataEvent>;
691
+ static fromCoreObject(obj: SuiClientTypes.Object<{
692
+ content: true;
693
+ }>): ReserveAssetDataEvent;
694
+ static fetch(client: ClientWithCoreApi, id: string): Promise<ReserveAssetDataEvent>;
1001
695
  }
1002
- export declare function isStakerKey(type: string): boolean;
1003
- export interface StakerKeyFields {
1004
- dummyField: ToField<"bool">;
696
+ export declare function isClaimStakingRewardsEvent(type: string): boolean;
697
+ export interface ClaimStakingRewardsEventFields {
698
+ lendingMarketId: ToField<'address'>;
699
+ coinType: ToField<TypeName>;
700
+ reserveId: ToField<'address'>;
701
+ amount: ToField<'u64'>;
1005
702
  }
1006
- export type StakerKeyReified = Reified<StakerKey, StakerKeyFields>;
1007
- export declare class StakerKey implements StructClass {
703
+ export type ClaimStakingRewardsEventReified = Reified<ClaimStakingRewardsEvent, ClaimStakingRewardsEventFields>;
704
+ export type ClaimStakingRewardsEventJSONField = {
705
+ lendingMarketId: string;
706
+ coinType: string;
707
+ reserveId: string;
708
+ amount: string;
709
+ };
710
+ export type ClaimStakingRewardsEventJSON = {
711
+ $typeName: typeof ClaimStakingRewardsEvent.$typeName;
712
+ $typeArgs: [];
713
+ } & ClaimStakingRewardsEventJSONField;
714
+ export declare class ClaimStakingRewardsEvent implements StructClass {
1008
715
  __StructClass: true;
1009
- static readonly $typeName: string;
716
+ static get $typeName(): `${string}::reserve::ClaimStakingRewardsEvent`;
1010
717
  static readonly $numTypeParams = 0;
1011
718
  static readonly $isPhantom: readonly [];
1012
- readonly $typeName: string;
1013
- readonly $fullTypeName: `${typeof PKG_V8}::reserve::StakerKey`;
719
+ readonly $typeName: typeof ClaimStakingRewardsEvent.$typeName;
720
+ readonly $fullTypeName: `${string}::reserve::ClaimStakingRewardsEvent`;
1014
721
  readonly $typeArgs: [];
1015
- readonly $isPhantom: readonly [];
1016
- readonly dummyField: ToField<"bool">;
722
+ readonly $isPhantom: typeof ClaimStakingRewardsEvent.$isPhantom;
723
+ readonly lendingMarketId: ToField<'address'>;
724
+ readonly coinType: ToField<TypeName>;
725
+ readonly reserveId: ToField<'address'>;
726
+ readonly amount: ToField<'u64'>;
1017
727
  private constructor();
1018
- static reified(): StakerKeyReified;
1019
- static get r(): reified.StructClassReified<StakerKey, StakerKeyFields>;
1020
- static phantom(): PhantomReified<ToTypeStr<StakerKey>>;
1021
- static get p(): reified.PhantomReified<"0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::reserve::StakerKey" | "0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb::reserve::StakerKey">;
1022
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1023
- dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
1024
- }, string>;
1025
- static fromFields(fields: Record<string, any>): StakerKey;
1026
- static fromFieldsWithTypes(item: FieldsWithTypes): StakerKey;
1027
- static fromBcs(data: Uint8Array): StakerKey;
1028
- toJSONField(): {
1029
- dummyField: boolean;
1030
- };
1031
- toJSON(): {
1032
- dummyField: boolean;
1033
- $typeName: string;
1034
- $typeArgs: [];
1035
- };
1036
- static fromJSONField(field: any): StakerKey;
1037
- static fromJSON(json: Record<string, any>): StakerKey;
1038
- static fetch(client: SuiGrpcClient, id: string): Promise<StakerKey>;
728
+ static reified(): ClaimStakingRewardsEventReified;
729
+ static get r(): ClaimStakingRewardsEventReified;
730
+ static phantom(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
731
+ static get p(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
732
+ private static instantiateBcs;
733
+ private static cachedBcs;
734
+ static get bcs(): ReturnType<typeof ClaimStakingRewardsEvent.instantiateBcs>;
735
+ static fromFields(fields: Record<string, any>): ClaimStakingRewardsEvent;
736
+ static fromFieldsWithTypes(item: FieldsWithTypes): ClaimStakingRewardsEvent;
737
+ static fromBcs(data: Uint8Array): ClaimStakingRewardsEvent;
738
+ toJSONField(): ClaimStakingRewardsEventJSONField;
739
+ toJSON(): ClaimStakingRewardsEventJSON;
740
+ static fromJSONField(field: any): ClaimStakingRewardsEvent;
741
+ static fromJSON(json: Record<string, any>): ClaimStakingRewardsEvent;
742
+ static fromCoreObject(obj: SuiClientTypes.Object<{
743
+ content: true;
744
+ }>): ClaimStakingRewardsEvent;
745
+ static fetch(client: ClientWithCoreApi, id: string): Promise<ClaimStakingRewardsEvent>;
1039
746
  }