@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
@@ -24,11 +24,9 @@ export declare class Char implements StructClass {
24
24
  static get r(): reified.StructClassReified<Char, CharFields>;
25
25
  static phantom(): PhantomReified<ToTypeStr<Char>>;
26
26
  static get p(): reified.PhantomReified<"0x1::ascii::Char">;
27
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
28
- byte: number;
29
- }, {
30
- byte: number;
31
- }>;
27
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
28
+ byte: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
29
+ }, string>;
32
30
  static fromFields(fields: Record<string, any>): Char;
33
31
  static fromFieldsWithTypes(item: FieldsWithTypes): Char;
34
32
  static fromBcs(data: Uint8Array): Char;
@@ -66,13 +64,11 @@ export declare class String implements StructClass {
66
64
  static get r(): reified.StructClassReified<String, StringFields>;
67
65
  static phantom(): PhantomReified<ToTypeStr<String>>;
68
66
  static get p(): reified.PhantomReified<"0x1::ascii::String">;
69
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
70
- bytes: number[];
71
- }, {
72
- bytes: Iterable<number> & {
67
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
68
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
73
69
  length: number;
74
- };
75
- }>;
70
+ }, string>;
71
+ }, string>;
76
72
  static fromFields(fields: Record<string, any>): String;
77
73
  static fromFieldsWithTypes(item: FieldsWithTypes): String;
78
74
  static fromBcs(data: Uint8Array): String;
@@ -26,13 +26,11 @@ export declare class Option<Element extends TypeArgument> implements StructClass
26
26
  static get r(): typeof Option.reified;
27
27
  static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Option<ToTypeArgument<Element>>>>;
28
28
  static get p(): typeof Option.phantom;
29
- static get bcs(): <Element extends BcsType<any>>(Element: Element) => BcsType<{
30
- vec: any[];
31
- }, {
32
- vec: Iterable<any> & {
29
+ static get bcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/sui/bcs").BcsStruct<{
30
+ vec: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
33
31
  length: number;
34
- };
35
- }>;
32
+ }, string>;
33
+ }, string>;
36
34
  static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Option<ToTypeArgument<Element>>;
37
35
  static fromFieldsWithTypes<Element extends Reified<TypeArgument, any>>(typeArg: Element, item: FieldsWithTypes): Option<ToTypeArgument<Element>>;
38
36
  static fromBcs<Element extends Reified<TypeArgument, any>>(typeArg: Element, data: Uint8Array): Option<ToTypeArgument<Element>>;
@@ -23,17 +23,13 @@ export declare class TypeName implements StructClass {
23
23
  static get r(): import("../../../../_framework/reified").StructClassReified<TypeName, TypeNameFields>;
24
24
  static phantom(): PhantomReified<ToTypeStr<TypeName>>;
25
25
  static get p(): PhantomReified<"0x1::type_name::TypeName">;
26
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
27
- name: {
28
- bytes: number[];
29
- };
30
- }, {
31
- name: {
32
- bytes: Iterable<number> & {
26
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
27
+ name: import("@mysten/sui/bcs").BcsStruct<{
28
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
33
29
  length: number;
34
- };
35
- };
36
- }>;
30
+ }, string>;
31
+ }, string>;
32
+ }, string>;
37
33
  static fromFields(fields: Record<string, any>): TypeName;
38
34
  static fromFieldsWithTypes(item: FieldsWithTypes): TypeName;
39
35
  static fromBcs(data: Uint8Array): TypeName;
@@ -25,21 +25,14 @@ export declare class Bag implements StructClass {
25
25
  static get r(): import("../../../../_framework/reified").StructClassReified<Bag, BagFields>;
26
26
  static phantom(): PhantomReified<ToTypeStr<Bag>>;
27
27
  static get p(): PhantomReified<"0x2::bag::Bag">;
28
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
29
- id: {
30
- id: {
31
- bytes: string;
32
- };
33
- };
34
- size: string;
35
- }, {
36
- id: {
37
- id: {
38
- bytes: string;
39
- };
40
- };
41
- size: string | number | bigint;
42
- }>;
28
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
29
+ id: import("@mysten/sui/bcs").BcsStruct<{
30
+ id: import("@mysten/sui/bcs").BcsStruct<{
31
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
32
+ }, string>;
33
+ }, string>;
34
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
35
+ }, string>;
43
36
  static fromFields(fields: Record<string, any>): Bag;
44
37
  static fromFieldsWithTypes(item: FieldsWithTypes): Bag;
45
38
  static fromBcs(data: Uint8Array): Bag;
@@ -22,11 +22,9 @@ export declare class Balance<T extends PhantomTypeArgument> implements StructCla
22
22
  static get r(): typeof Balance.reified;
23
23
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Balance<ToPhantomTypeArgument<T>>>>;
24
24
  static get p(): typeof Balance.phantom;
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, "u64">;
27
+ }, string>;
30
28
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Balance<ToPhantomTypeArgument<T>>;
31
29
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Balance<ToPhantomTypeArgument<T>>;
32
30
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Balance<ToPhantomTypeArgument<T>>;
@@ -64,11 +62,9 @@ export declare class Supply<T extends PhantomTypeArgument> implements StructClas
64
62
  static get r(): typeof Supply.reified;
65
63
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Supply<ToPhantomTypeArgument<T>>>>;
66
64
  static get p(): typeof Supply.phantom;
67
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
68
- value: string;
69
- }, {
70
- value: string | number | bigint;
71
- }>;
65
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
66
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
67
+ }, string>;
72
68
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Supply<ToPhantomTypeArgument<T>>;
73
69
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Supply<ToPhantomTypeArgument<T>>;
74
70
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Supply<ToPhantomTypeArgument<T>>;
@@ -22,11 +22,9 @@ export declare class ID implements StructClass {
22
22
  static get r(): import("../../../../_framework/reified").StructClassReified<ID, IDFields>;
23
23
  static phantom(): PhantomReified<ToTypeStr<ID>>;
24
24
  static get p(): PhantomReified<"0x2::object::ID">;
25
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
26
- bytes: string;
27
- }, {
28
- bytes: string;
29
- }>;
25
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
27
+ }, string>;
30
28
  static fromFields(fields: Record<string, any>): ID;
31
29
  static fromFieldsWithTypes(item: FieldsWithTypes): ID;
32
30
  static fromBcs(data: Uint8Array): ID;
@@ -64,15 +62,11 @@ export declare class UID implements StructClass {
64
62
  static get r(): import("../../../../_framework/reified").StructClassReified<UID, UIDFields>;
65
63
  static phantom(): PhantomReified<ToTypeStr<UID>>;
66
64
  static get p(): PhantomReified<"0x2::object::UID">;
67
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
68
- id: {
69
- bytes: string;
70
- };
71
- }, {
72
- id: {
73
- bytes: string;
74
- };
75
- }>;
65
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
66
+ id: import("@mysten/sui/bcs").BcsStruct<{
67
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
68
+ }, string>;
69
+ }, string>;
76
70
  static fromFields(fields: Record<string, any>): UID;
77
71
  static fromFieldsWithTypes(item: FieldsWithTypes): UID;
78
72
  static fromBcs(data: Uint8Array): UID;
@@ -25,21 +25,14 @@ export declare class ObjectTable<K extends PhantomTypeArgument, V extends Phanto
25
25
  static get r(): typeof ObjectTable.reified;
26
26
  static phantom<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(K: K, V: V): PhantomReified<ToTypeStr<ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>>>;
27
27
  static get p(): typeof ObjectTable.phantom;
28
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
29
- id: {
30
- id: {
31
- bytes: string;
32
- };
33
- };
34
- size: string;
35
- }, {
36
- id: {
37
- id: {
38
- bytes: string;
39
- };
40
- };
41
- size: string | number | bigint;
42
- }>;
28
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
29
+ id: import("@mysten/sui/bcs").BcsStruct<{
30
+ id: import("@mysten/sui/bcs").BcsStruct<{
31
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
32
+ }, string>;
33
+ }, string>;
34
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
35
+ }, string>;
43
36
  static fromFields<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], fields: Record<string, any>): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
44
37
  static fromFieldsWithTypes<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], item: FieldsWithTypes): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
45
38
  static fromBcs<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], data: Uint8Array): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
@@ -24,13 +24,10 @@ export declare class I64 implements StructClass {
24
24
  static get r(): import("../../../../_framework/reified").StructClassReified<I64, I64Fields>;
25
25
  static phantom(): PhantomReified<ToTypeStr<I64>>;
26
26
  static get p(): PhantomReified<"0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::i64::I64">;
27
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
28
- negative: boolean;
29
- magnitude: string;
30
- }, {
31
- negative: boolean;
32
- magnitude: string | number | bigint;
33
- }>;
27
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
28
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
29
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
30
+ }, string>;
34
31
  static fromFields(fields: Record<string, any>): I64;
35
32
  static fromFieldsWithTypes(item: FieldsWithTypes): I64;
36
33
  static fromBcs(data: Uint8Array): I64;
@@ -29,29 +29,18 @@ export declare class Price implements StructClass {
29
29
  static get r(): import("../../../../_framework/reified").StructClassReified<Price, PriceFields>;
30
30
  static phantom(): PhantomReified<ToTypeStr<Price>>;
31
31
  static get p(): PhantomReified<"0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::price::Price">;
32
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
33
- price: {
34
- negative: boolean;
35
- magnitude: string;
36
- };
37
- conf: string;
38
- expo: {
39
- negative: boolean;
40
- magnitude: string;
41
- };
42
- timestamp: string;
43
- }, {
44
- price: {
45
- negative: boolean;
46
- magnitude: string | number | bigint;
47
- };
48
- conf: string | number | bigint;
49
- expo: {
50
- negative: boolean;
51
- magnitude: string | number | bigint;
52
- };
53
- timestamp: string | number | bigint;
54
- }>;
32
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
33
+ price: import("@mysten/sui/bcs").BcsStruct<{
34
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
35
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
36
+ }, string>;
37
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
38
+ expo: import("@mysten/sui/bcs").BcsStruct<{
39
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
40
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
41
+ }, string>;
42
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
43
+ }, string>;
55
44
  static fromFields(fields: Record<string, any>): Price;
56
45
  static fromFieldsWithTypes(item: FieldsWithTypes): Price;
57
46
  static fromBcs(data: Uint8Array): Price;
@@ -28,65 +28,37 @@ export declare class PriceFeed implements StructClass {
28
28
  static get r(): import("../../../../_framework/reified").StructClassReified<PriceFeed, PriceFeedFields>;
29
29
  static phantom(): PhantomReified<ToTypeStr<PriceFeed>>;
30
30
  static get p(): PhantomReified<"0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::price_feed::PriceFeed">;
31
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
32
- price_identifier: {
33
- bytes: number[];
34
- };
35
- price: {
36
- price: {
37
- negative: boolean;
38
- magnitude: string;
39
- };
40
- conf: string;
41
- expo: {
42
- negative: boolean;
43
- magnitude: string;
44
- };
45
- timestamp: string;
46
- };
47
- ema_price: {
48
- price: {
49
- negative: boolean;
50
- magnitude: string;
51
- };
52
- conf: string;
53
- expo: {
54
- negative: boolean;
55
- magnitude: string;
56
- };
57
- timestamp: string;
58
- };
59
- }, {
60
- price_identifier: {
61
- bytes: Iterable<number> & {
31
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
32
+ price_identifier: import("@mysten/sui/bcs").BcsStruct<{
33
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
62
34
  length: number;
63
- };
64
- };
65
- price: {
66
- price: {
67
- negative: boolean;
68
- magnitude: string | number | bigint;
69
- };
70
- conf: string | number | bigint;
71
- expo: {
72
- negative: boolean;
73
- magnitude: string | number | bigint;
74
- };
75
- timestamp: string | number | bigint;
76
- };
77
- ema_price: {
78
- price: {
79
- negative: boolean;
80
- magnitude: string | number | bigint;
81
- };
82
- conf: string | number | bigint;
83
- expo: {
84
- negative: boolean;
85
- magnitude: string | number | bigint;
86
- };
87
- timestamp: string | number | bigint;
88
- };
89
- }>;
35
+ }, string>;
36
+ }, string>;
37
+ price: import("@mysten/sui/bcs").BcsStruct<{
38
+ price: import("@mysten/sui/bcs").BcsStruct<{
39
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
40
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
41
+ }, string>;
42
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
43
+ expo: import("@mysten/sui/bcs").BcsStruct<{
44
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
45
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
46
+ }, string>;
47
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
48
+ }, string>;
49
+ ema_price: import("@mysten/sui/bcs").BcsStruct<{
50
+ price: import("@mysten/sui/bcs").BcsStruct<{
51
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
52
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
53
+ }, string>;
54
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
55
+ expo: import("@mysten/sui/bcs").BcsStruct<{
56
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
57
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
58
+ }, string>;
59
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
60
+ }, string>;
61
+ }, string>;
90
62
  static fromFields(fields: Record<string, any>): PriceFeed;
91
63
  static fromFieldsWithTypes(item: FieldsWithTypes): PriceFeed;
92
64
  static fromBcs(data: Uint8Array): PriceFeed;
@@ -24,13 +24,11 @@ export declare class PriceIdentifier implements StructClass {
24
24
  static get r(): reified.StructClassReified<PriceIdentifier, PriceIdentifierFields>;
25
25
  static phantom(): PhantomReified<ToTypeStr<PriceIdentifier>>;
26
26
  static get p(): reified.PhantomReified<"0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::price_identifier::PriceIdentifier">;
27
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
28
- bytes: number[];
29
- }, {
30
- bytes: Iterable<number> & {
27
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
28
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
31
29
  length: number;
32
- };
33
- }>;
30
+ }, string>;
31
+ }, string>;
34
32
  static fromFields(fields: Record<string, any>): PriceIdentifier;
35
33
  static fromFieldsWithTypes(item: FieldsWithTypes): PriceIdentifier;
36
34
  static fromBcs(data: Uint8Array): PriceIdentifier;
@@ -28,73 +28,41 @@ export declare class PriceInfo implements StructClass {
28
28
  static get r(): import("../../../../_framework/reified").StructClassReified<PriceInfo, PriceInfoFields>;
29
29
  static phantom(): PhantomReified<ToTypeStr<PriceInfo>>;
30
30
  static get p(): PhantomReified<"0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::price_info::PriceInfo">;
31
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
32
- attestation_time: string;
33
- arrival_time: string;
34
- price_feed: {
35
- price_identifier: {
36
- bytes: number[];
37
- };
38
- price: {
39
- price: {
40
- negative: boolean;
41
- magnitude: string;
42
- };
43
- conf: string;
44
- expo: {
45
- negative: boolean;
46
- magnitude: string;
47
- };
48
- timestamp: string;
49
- };
50
- ema_price: {
51
- price: {
52
- negative: boolean;
53
- magnitude: string;
54
- };
55
- conf: string;
56
- expo: {
57
- negative: boolean;
58
- magnitude: string;
59
- };
60
- timestamp: string;
61
- };
62
- };
63
- }, {
64
- attestation_time: string | number | bigint;
65
- arrival_time: string | number | bigint;
66
- price_feed: {
67
- price_identifier: {
68
- bytes: Iterable<number> & {
31
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
32
+ attestation_time: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
33
+ arrival_time: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
34
+ price_feed: import("@mysten/sui/bcs").BcsStruct<{
35
+ price_identifier: import("@mysten/sui/bcs").BcsStruct<{
36
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
69
37
  length: number;
70
- };
71
- };
72
- price: {
73
- price: {
74
- negative: boolean;
75
- magnitude: string | number | bigint;
76
- };
77
- conf: string | number | bigint;
78
- expo: {
79
- negative: boolean;
80
- magnitude: string | number | bigint;
81
- };
82
- timestamp: string | number | bigint;
83
- };
84
- ema_price: {
85
- price: {
86
- negative: boolean;
87
- magnitude: string | number | bigint;
88
- };
89
- conf: string | number | bigint;
90
- expo: {
91
- negative: boolean;
92
- magnitude: string | number | bigint;
93
- };
94
- timestamp: string | number | bigint;
95
- };
96
- };
97
- }>;
38
+ }, string>;
39
+ }, string>;
40
+ price: import("@mysten/sui/bcs").BcsStruct<{
41
+ price: import("@mysten/sui/bcs").BcsStruct<{
42
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
43
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
44
+ }, string>;
45
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
46
+ expo: import("@mysten/sui/bcs").BcsStruct<{
47
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
48
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
49
+ }, string>;
50
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
51
+ }, string>;
52
+ ema_price: import("@mysten/sui/bcs").BcsStruct<{
53
+ price: import("@mysten/sui/bcs").BcsStruct<{
54
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
55
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
56
+ }, string>;
57
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
58
+ expo: import("@mysten/sui/bcs").BcsStruct<{
59
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
60
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
61
+ }, string>;
62
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
63
+ }, string>;
64
+ }, string>;
65
+ }, string>;
98
66
  static fromFields(fields: Record<string, any>): PriceInfo;
99
67
  static fromFieldsWithTypes(item: FieldsWithTypes): PriceInfo;
100
68
  static fromBcs(data: Uint8Array): PriceInfo;
@@ -194,87 +162,48 @@ export declare class PriceInfoObject implements StructClass {
194
162
  static get r(): import("../../../../_framework/reified").StructClassReified<PriceInfoObject, PriceInfoObjectFields>;
195
163
  static phantom(): PhantomReified<ToTypeStr<PriceInfoObject>>;
196
164
  static get p(): PhantomReified<"0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::price_info::PriceInfoObject">;
197
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
198
- id: {
199
- id: {
200
- bytes: string;
201
- };
202
- };
203
- price_info: {
204
- attestation_time: string;
205
- arrival_time: string;
206
- price_feed: {
207
- price_identifier: {
208
- bytes: number[];
209
- };
210
- price: {
211
- price: {
212
- negative: boolean;
213
- magnitude: string;
214
- };
215
- conf: string;
216
- expo: {
217
- negative: boolean;
218
- magnitude: string;
219
- };
220
- timestamp: string;
221
- };
222
- ema_price: {
223
- price: {
224
- negative: boolean;
225
- magnitude: string;
226
- };
227
- conf: string;
228
- expo: {
229
- negative: boolean;
230
- magnitude: string;
231
- };
232
- timestamp: string;
233
- };
234
- };
235
- };
236
- }, {
237
- id: {
238
- id: {
239
- bytes: string;
240
- };
241
- };
242
- price_info: {
243
- attestation_time: string | number | bigint;
244
- arrival_time: string | number | bigint;
245
- price_feed: {
246
- price_identifier: {
247
- bytes: Iterable<number> & {
165
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
166
+ id: import("@mysten/sui/bcs").BcsStruct<{
167
+ id: import("@mysten/sui/bcs").BcsStruct<{
168
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
169
+ }, string>;
170
+ }, string>;
171
+ price_info: import("@mysten/sui/bcs").BcsStruct<{
172
+ attestation_time: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
173
+ arrival_time: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
174
+ price_feed: import("@mysten/sui/bcs").BcsStruct<{
175
+ price_identifier: import("@mysten/sui/bcs").BcsStruct<{
176
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
248
177
  length: number;
249
- };
250
- };
251
- price: {
252
- price: {
253
- negative: boolean;
254
- magnitude: string | number | bigint;
255
- };
256
- conf: string | number | bigint;
257
- expo: {
258
- negative: boolean;
259
- magnitude: string | number | bigint;
260
- };
261
- timestamp: string | number | bigint;
262
- };
263
- ema_price: {
264
- price: {
265
- negative: boolean;
266
- magnitude: string | number | bigint;
267
- };
268
- conf: string | number | bigint;
269
- expo: {
270
- negative: boolean;
271
- magnitude: string | number | bigint;
272
- };
273
- timestamp: string | number | bigint;
274
- };
275
- };
276
- };
277
- }>;
178
+ }, string>;
179
+ }, string>;
180
+ price: import("@mysten/sui/bcs").BcsStruct<{
181
+ price: import("@mysten/sui/bcs").BcsStruct<{
182
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
183
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
184
+ }, string>;
185
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
186
+ expo: import("@mysten/sui/bcs").BcsStruct<{
187
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
188
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
189
+ }, string>;
190
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
191
+ }, string>;
192
+ ema_price: import("@mysten/sui/bcs").BcsStruct<{
193
+ price: import("@mysten/sui/bcs").BcsStruct<{
194
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
195
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
196
+ }, string>;
197
+ conf: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
198
+ expo: import("@mysten/sui/bcs").BcsStruct<{
199
+ negative: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
200
+ magnitude: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
201
+ }, string>;
202
+ timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
203
+ }, string>;
204
+ }, string>;
205
+ }, string>;
206
+ }, string>;
278
207
  static fromFields(fields: Record<string, any>): PriceInfoObject;
279
208
  static fromFieldsWithTypes(item: FieldsWithTypes): PriceInfoObject;
280
209
  static fromBcs(data: Uint8Array): PriceInfoObject;