@suilend/sdk 1.1.85 → 1.1.86

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 (31) hide show
  1. package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
  2. package/_generated/_dependencies/source/0x1/option/structs.d.ts +4 -6
  3. package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
  4. package/_generated/_dependencies/source/0x2/bag/structs.d.ts +8 -15
  5. package/_generated/_dependencies/source/0x2/balance/structs.d.ts +6 -10
  6. package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -14
  7. package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +8 -15
  8. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +4 -7
  9. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +12 -23
  10. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +30 -58
  11. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -6
  12. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +75 -146
  13. package/_generated/_framework/util.d.ts +4 -16
  14. package/_generated/_framework/vector.d.ts +12 -5
  15. package/_generated/suilend/cell/structs.d.ts +6 -10
  16. package/_generated/suilend/decimal/structs.d.ts +3 -5
  17. package/_generated/suilend/lending-market/structs.d.ts +392 -368
  18. package/_generated/suilend/liquidity-mining/structs.d.ts +160 -134
  19. package/_generated/suilend/obligation/structs.d.ts +217 -332
  20. package/_generated/suilend/rate-limiter/structs.d.ts +17 -32
  21. package/_generated/suilend/reserve/structs.d.ts +393 -383
  22. package/_generated/suilend/reserve-config/structs.d.ts +40 -76
  23. package/client.d.ts +1 -1
  24. package/client.js +2 -2
  25. package/lib/initialize.d.ts +1 -2
  26. package/lib/initialize.js +62 -54
  27. package/lib/strategyOwnerCap.js +24 -16
  28. package/lib/types.d.ts +0 -1
  29. package/package.json +1 -1
  30. package/parsers/lendingMarket.d.ts +0 -1
  31. package/parsers/lendingMarket.js +2 -3
@@ -1,4 +1,4 @@
1
- import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
1
+ import { Transaction, TransactionArgument, TransactionObjectArgument, TransactionObjectInput } from "@mysten/sui/transactions";
2
2
  export interface FieldsWithTypes {
3
3
  fields: Record<string, any>;
4
4
  type: string;
@@ -12,22 +12,10 @@ export declare function parseTypeName(name: string): {
12
12
  typeArgs: string[];
13
13
  };
14
14
  export declare function isTransactionArgument(arg: GenericArg): arg is TransactionArgument;
15
- export declare function obj(tx: Transaction, arg: TransactionObjectInput): {
16
- GasCoin: true;
17
- } | {
18
- Input: number;
19
- type?: "pure" | "object";
20
- } | {
21
- Result: number;
22
- } | {
23
- NestedResult: [number, number];
24
- } | ((tx: Transaction) => Exclude<import("valibot").InferInput<typeof import("@mysten/sui/transactions").Argument>, {
25
- Input: unknown;
26
- type?: "pure";
27
- }>);
15
+ export declare function obj(tx: Transaction, arg: TransactionObjectInput): TransactionObjectArgument;
28
16
  export declare function pure(tx: Transaction, arg: PureArg, type: string): TransactionArgument;
29
- export declare function option(tx: Transaction, type: string, arg: GenericArg | null): TransactionArgument;
30
- export declare function generic(tx: Transaction, type: string, arg: GenericArg): TransactionArgument;
17
+ export declare function option(tx: Transaction, type: string, arg: GenericArg | null): TransactionObjectArgument | TransactionArgument;
18
+ export declare function generic(tx: Transaction, type: string, arg: GenericArg): TransactionObjectArgument | TransactionArgument;
31
19
  export declare function vector(tx: Transaction, itemType: string, items: Array<GenericArg> | TransactionArgument): TransactionArgument;
32
20
  export declare function typeArgIsPure(type: string): boolean;
33
21
  export declare function compressSuiAddress(addr: string): string;
@@ -15,11 +15,18 @@ export declare class Vector<T extends TypeArgument> implements VectorClass {
15
15
  constructor(typeArgs: [ToTypeStr<T>], elements: VectorElements<T>);
16
16
  static reified<T extends Reified<TypeArgument, any>>(T: T): VectorReified<ToTypeArgument<T>>;
17
17
  static get r(): typeof Vector.reified;
18
- static get bcs(): <T, Input>(type: import("@mysten/sui/bcs").BcsType<T, Input>, options?: import("@mysten/sui/bcs").BcsTypeOptions<T[], Iterable<Input> & {
19
- length: number;
20
- }>) => import("@mysten/sui/bcs").BcsType<T[], Iterable<Input> & {
21
- length: number;
22
- }>;
18
+ static get bcs(): {
19
+ <T extends import("@mysten/sui/bcs").BcsType<any>, Name extends string = `vector<${T["name"]}>`>(type: T, options?: import("@mysten/sui/bcs").BcsTypeOptions<import("@mysten/bcs").InferBcsType<T>[], Iterable<import("@mysten/bcs").InferBcsInput<T>> & {
20
+ length: number;
21
+ }, Name>): import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").InferBcsType<T>[], Iterable<import("@mysten/bcs").InferBcsInput<T>> & {
22
+ length: number;
23
+ }, Name>;
24
+ <T, Input, Name extends string = string>(type: import("@mysten/sui/bcs").BcsType<T, Input, Name>, options?: import("@mysten/sui/bcs").BcsTypeOptions<T[], Iterable<Input> & {
25
+ length: number;
26
+ }, `vector<${Name}>`>): import("@mysten/sui/bcs").BcsType<T[], Iterable<Input> & {
27
+ length: number;
28
+ }, `vector<${Name}>`>;
29
+ };
23
30
  static fromFields<T extends Reified<TypeArgument, any>>(typeArg: T, elements: any[]): Vector<ToTypeArgument<T>>;
24
31
  static fromFieldsWithTypes<T extends Reified<TypeArgument, any>>(typeArg: T, item: FieldsWithTypes): Vector<ToTypeArgument<T>>;
25
32
  static fromBcs<T extends Reified<TypeArgument, any>>(typeArg: T, data: Uint8Array): Vector<ToTypeArgument<T>>;
@@ -24,17 +24,13 @@ export declare class Cell<Element extends TypeArgument> implements StructClass {
24
24
  static get r(): typeof Cell.reified;
25
25
  static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Cell<ToTypeArgument<Element>>>>;
26
26
  static get p(): typeof Cell.phantom;
27
- static get bcs(): <Element extends BcsType<any>>(Element: Element) => BcsType<{
28
- element: {
29
- vec: any[];
30
- };
31
- }, {
32
- element: {
33
- vec: Iterable<any> & {
27
+ static get bcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/sui/bcs").BcsStruct<{
28
+ element: import("@mysten/sui/bcs").BcsStruct<{
29
+ vec: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
34
30
  length: number;
35
- };
36
- };
37
- }>;
31
+ }, string>;
32
+ }, string>;
33
+ }, string>;
38
34
  static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Cell<ToTypeArgument<Element>>;
39
35
  static fromFieldsWithTypes<Element extends Reified<TypeArgument, any>>(typeArg: Element, item: FieldsWithTypes): Cell<ToTypeArgument<Element>>;
40
36
  static fromBcs<Element extends Reified<TypeArgument, any>>(typeArg: Element, data: Uint8Array): Cell<ToTypeArgument<Element>>;
@@ -22,11 +22,9 @@ export declare class Decimal implements StructClass {
22
22
  static get r(): import("../../_framework/reified").StructClassReified<Decimal, DecimalFields>;
23
23
  static phantom(): PhantomReified<ToTypeStr<Decimal>>;
24
24
  static get p(): PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::decimal::Decimal" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::decimal::Decimal">;
25
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
26
- value: string;
27
- }, {
28
- value: string | number | bigint;
29
- }>;
25
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
27
+ }, string>;
30
28
  static fromFields(fields: Record<string, any>): Decimal;
31
29
  static fromFieldsWithTypes(item: FieldsWithTypes): Decimal;
32
30
  static fromBcs(data: Uint8Array): Decimal;