@typus/typus-perp-sdk 1.2.2 → 1.3.0

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 (71) hide show
  1. package/dist/src/client.d.ts +22 -3
  2. package/dist/src/client.js +66 -8
  3. package/dist/src/fetch.d.ts +61 -20
  4. package/dist/src/fetch.js +20 -14
  5. package/dist/src/generated/typus_perp/admin.d.ts +65 -21
  6. package/dist/src/generated/typus_perp/admin.js +139 -123
  7. package/dist/src/generated/typus_perp/competition.d.ts +5 -17
  8. package/dist/src/generated/typus_perp/competition.js +63 -39
  9. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +9 -9
  10. package/dist/src/generated/typus_perp/deps/std/type_name.js +13 -16
  11. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +2 -2
  12. package/dist/src/generated/typus_perp/deps/sui/balance.js +5 -8
  13. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
  14. package/dist/src/generated/typus_perp/deps/sui/object.js +13 -0
  15. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +5 -3
  16. package/dist/src/generated/typus_perp/deps/sui/object_table.js +40 -9
  17. package/dist/src/generated/typus_perp/deps/sui/table.d.ts +5 -3
  18. package/dist/src/generated/typus_perp/deps/sui/table.js +40 -9
  19. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +5 -3
  20. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +5 -8
  21. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +4 -2
  22. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +9 -12
  23. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +12 -6
  24. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +41 -10
  25. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +4 -2
  26. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +40 -9
  27. package/dist/src/generated/typus_perp/error.d.ts +201 -94
  28. package/dist/src/generated/typus_perp/error.js +300 -273
  29. package/dist/src/generated/typus_perp/escrow.d.ts +14 -6
  30. package/dist/src/generated/typus_perp/escrow.js +38 -37
  31. package/dist/src/generated/typus_perp/lending.d.ts +1 -1
  32. package/dist/src/generated/typus_perp/lending.js +3 -3
  33. package/dist/src/generated/typus_perp/lp_pool.d.ts +438 -392
  34. package/dist/src/generated/typus_perp/lp_pool.js +987 -934
  35. package/dist/src/generated/typus_perp/math.d.ts +13 -16
  36. package/dist/src/generated/typus_perp/math.js +51 -50
  37. package/dist/src/generated/typus_perp/position.d.ts +194 -106
  38. package/dist/src/generated/typus_perp/position.js +714 -733
  39. package/dist/src/generated/typus_perp/profit_vault.d.ts +62 -20
  40. package/dist/src/generated/typus_perp/profit_vault.js +162 -148
  41. package/dist/src/generated/typus_perp/symbol.d.ts +12 -5
  42. package/dist/src/generated/typus_perp/symbol.js +28 -25
  43. package/dist/src/generated/typus_perp/trading.d.ts +956 -139
  44. package/dist/src/generated/typus_perp/trading.js +1577 -1151
  45. package/dist/src/generated/typus_perp/treasury_caps.d.ts +16 -7
  46. package/dist/src/generated/typus_perp/treasury_caps.js +60 -24
  47. package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
  48. package/dist/src/generated/typus_perp/user_account.js +66 -0
  49. package/dist/src/generated/typus_stake_pool/admin.d.ts +144 -10
  50. package/dist/src/generated/typus_stake_pool/admin.js +132 -49
  51. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +9 -9
  52. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +13 -16
  53. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
  54. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +13 -0
  55. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +36 -0
  56. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +31 -0
  57. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +5 -3
  58. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +5 -8
  59. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +180 -79
  60. package/dist/src/generated/typus_stake_pool/stake_pool.js +446 -414
  61. package/dist/src/generated/utils/index.d.ts +4 -23
  62. package/dist/src/generated/utils/index.js +34 -54
  63. package/dist/src/index.d.ts +5 -0
  64. package/dist/src/index.js +35 -13
  65. package/dist/src/user/order.d.ts +0 -4
  66. package/dist/src/user/order.js +31 -74
  67. package/dist/src/user/orderWithBidReceipt.d.ts +0 -3
  68. package/dist/src/user/orderWithBidReceipt.js +24 -45
  69. package/dist/src/user/tlp.d.ts +0 -5
  70. package/dist/src/user/tlp.js +28 -73
  71. package/package.json +42 -40
@@ -1,10 +1,12 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
- import { MoveStruct, type RawTransactionArgument } from "../utils/index.js";
5
- import { type Transaction } from "@mysten/sui/transactions";
4
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index';
5
+ import { type Transaction } from '@mysten/sui/transactions';
6
6
  export declare const StakePoolRegistry: MoveStruct<{
7
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
7
+ id: MoveStruct<{
8
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
9
+ }, "0x2::object::UID">;
8
10
  /** The number of pools in the registry. */
9
11
  num_pool: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
10
12
  }, "@typus/stake-pool::stake_pool::StakePoolRegistry">;
@@ -97,7 +99,9 @@ export declare const Incentive: MoveStruct<{
97
99
  }, "@typus/stake-pool::stake_pool::IncentiveInfo">;
98
100
  }, "@typus/stake-pool::stake_pool::Incentive">;
99
101
  export declare const StakePool: MoveStruct<{
100
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
102
+ id: MoveStruct<{
103
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
104
+ }, "0x2::object::UID">;
101
105
  /** Information about the stake pool. */
102
106
  pool_info: MoveStruct<{
103
107
  /** The type name of the stake token. */
@@ -184,13 +188,22 @@ export declare const DeactivatingShares: MoveStruct<{
184
188
  unsubscribed_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
185
189
  /** The timestamp when the shares can be unlocked. */
186
190
  unlocked_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
187
- /**
188
- * The unsubscribed incentive price index (aligned with StakePool.incentives by
189
- * index).
190
- */
191
- unsubscribed_incentive_price_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
192
- length: number;
193
- }, string>;
191
+ /** The unsubscribed incentive price index. */
192
+ unsubscribed_incentive_price_index: MoveStruct<{
193
+ contents: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
194
+ key: {
195
+ name: string;
196
+ };
197
+ value: string;
198
+ }[], Iterable<{
199
+ key: {
200
+ name: string;
201
+ };
202
+ value: string | number | bigint;
203
+ }> & {
204
+ length: number;
205
+ }, string>;
206
+ }, "0x2::vec_map::VecMap<std::type_name::TypeName, u64>">;
194
207
  /** Padding for future use. */
195
208
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
196
209
  length: number;
@@ -212,14 +225,28 @@ export declare const LpUserShare: MoveStruct<{
212
225
  shares: string;
213
226
  unsubscribed_ts_ms: string;
214
227
  unlocked_ts_ms: string;
215
- unsubscribed_incentive_price_index: string[];
228
+ unsubscribed_incentive_price_index: {
229
+ contents: {
230
+ key: {
231
+ name: string;
232
+ };
233
+ value: string;
234
+ }[];
235
+ };
216
236
  u64_padding: string[];
217
237
  }[], Iterable<{
218
238
  shares: string | number | bigint;
219
239
  unsubscribed_ts_ms: string | number | bigint;
220
240
  unlocked_ts_ms: string | number | bigint;
221
- unsubscribed_incentive_price_index: Iterable<string | number | bigint> & {
222
- length: number;
241
+ unsubscribed_incentive_price_index: {
242
+ contents: Iterable<{
243
+ key: {
244
+ name: string;
245
+ };
246
+ value: string | number | bigint;
247
+ }> & {
248
+ length: number;
249
+ };
223
250
  };
224
251
  u64_padding: Iterable<string | number | bigint> & {
225
252
  length: number;
@@ -227,10 +254,22 @@ export declare const LpUserShare: MoveStruct<{
227
254
  }> & {
228
255
  length: number;
229
256
  }, string>;
230
- /** The last incentive price index (aligned with StakePool.incentives by index). */
231
- last_incentive_price_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
232
- length: number;
233
- }, string>;
257
+ /** The last incentive price index. */
258
+ last_incentive_price_index: MoveStruct<{
259
+ contents: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
260
+ key: {
261
+ name: string;
262
+ };
263
+ value: string;
264
+ }[], Iterable<{
265
+ key: {
266
+ name: string;
267
+ };
268
+ value: string | number | bigint;
269
+ }> & {
270
+ length: number;
271
+ }, string>;
272
+ }, "0x2::vec_map::VecMap<std::type_name::TypeName, u64>">;
234
273
  /** The last snapshot ts for exp. */
235
274
  snapshot_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
236
275
  /** old tlp price for exp with decimal 4 */
@@ -440,9 +479,21 @@ export declare const StakeEvent: MoveStruct<{
440
479
  stake_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
441
480
  user_share_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
442
481
  stake_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
443
- last_incentive_price_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
444
- length: number;
445
- }, string>;
482
+ last_incentive_price_index: MoveStruct<{
483
+ contents: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
484
+ key: {
485
+ name: string;
486
+ };
487
+ value: string;
488
+ }[], Iterable<{
489
+ key: {
490
+ name: string;
491
+ };
492
+ value: string | number | bigint;
493
+ }> & {
494
+ length: number;
495
+ }, string>;
496
+ }, "0x2::vec_map::VecMap<std::type_name::TypeName, u64>">;
446
497
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
447
498
  length: number;
448
499
  }, string>;
@@ -508,7 +559,8 @@ export declare const HarvestPerUserShareEvent: MoveStruct<{
508
559
  }, "@typus/stake-pool::stake_pool::HarvestPerUserShareEvent">;
509
560
  export interface InitOptions {
510
561
  package?: string;
511
- arguments?: [];
562
+ arguments?: [
563
+ ];
512
564
  }
513
565
  /** Initializes the module. */
514
566
  export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -524,7 +576,9 @@ export interface NewStakePoolOptions {
524
576
  registry: RawTransactionArgument<string>,
525
577
  unlockCountdownTsMs: RawTransactionArgument<number | bigint>
526
578
  ];
527
- typeArguments: [string];
579
+ typeArguments: [
580
+ string
581
+ ];
528
582
  }
529
583
  /** [Authorized Function] Creates a new stake pool. */
530
584
  export declare function newStakePool(options: NewStakePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -540,7 +594,9 @@ export interface AutoCompoundOptions {
540
594
  registry: RawTransactionArgument<string>,
541
595
  index: RawTransactionArgument<number | bigint>
542
596
  ];
543
- typeArguments: [string];
597
+ typeArguments: [
598
+ string
599
+ ];
544
600
  }
545
601
  /** [Authorized Function] */
546
602
  export declare function autoCompound(options: AutoCompoundOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -560,7 +616,9 @@ export interface AddIncentiveTokenOptions {
560
616
  periodIncentiveAmount: RawTransactionArgument<number | bigint>,
561
617
  incentiveIntervalTsMs: RawTransactionArgument<number | bigint>
562
618
  ];
563
- typeArguments: [string];
619
+ typeArguments: [
620
+ string
621
+ ];
564
622
  }
565
623
  /** [Authorized Function] Adds a new incentive token to a pool. */
566
624
  export declare function addIncentiveToken(options: AddIncentiveTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -606,7 +664,9 @@ export interface DeactivateIncentiveTokenOptions {
606
664
  registry: RawTransactionArgument<string>,
607
665
  index: RawTransactionArgument<number | bigint>
608
666
  ];
609
- typeArguments: [string];
667
+ typeArguments: [
668
+ string
669
+ ];
610
670
  }
611
671
  /** [Authorized Function] Deactivates an incentive token. */
612
672
  export declare function deactivateIncentiveToken(options: DeactivateIncentiveTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -622,7 +682,9 @@ export interface ActivateIncentiveTokenOptions {
622
682
  registry: RawTransactionArgument<string>,
623
683
  index: RawTransactionArgument<number | bigint>
624
684
  ];
625
- typeArguments: [string];
685
+ typeArguments: [
686
+ string
687
+ ];
626
688
  }
627
689
  /** [Authorized Function] Activates an incentive token. */
628
690
  export declare function activateIncentiveToken(options: ActivateIncentiveTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -638,7 +700,9 @@ export interface RemoveIncentiveTokenOptions {
638
700
  registry: RawTransactionArgument<string>,
639
701
  index: RawTransactionArgument<number | bigint>
640
702
  ];
641
- typeArguments: [string];
703
+ typeArguments: [
704
+ string
705
+ ];
642
706
  }
643
707
  /** [Authorized Function] Removes an incentive token. */
644
708
  export declare function removeIncentiveToken(options: RemoveIncentiveTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -677,7 +741,9 @@ export interface UpdateIncentiveConfigOptions {
677
741
  incentiveIntervalTsMs: RawTransactionArgument<number | bigint | null>,
678
742
  u64Padding: RawTransactionArgument<number | bigint[] | null>
679
743
  ];
680
- typeArguments: [string];
744
+ typeArguments: [
745
+ string
746
+ ];
681
747
  }
682
748
  /** [Authorized Function] Updates the incentive configuration. */
683
749
  export declare function updateIncentiveConfig(options: UpdateIncentiveConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -710,7 +776,9 @@ export interface DepositIncentiveOptions {
710
776
  index: RawTransactionArgument<number | bigint>,
711
777
  coin: RawTransactionArgument<string>
712
778
  ];
713
- typeArguments: [string];
779
+ typeArguments: [
780
+ string
781
+ ];
714
782
  }
715
783
  /** [Authorized Function] Deposits incentive tokens. */
716
784
  export declare function depositIncentive(options: DepositIncentiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -728,7 +796,9 @@ export interface WithdrawIncentiveOptions {
728
796
  index: RawTransactionArgument<number | bigint>,
729
797
  amount: RawTransactionArgument<number | bigint | null>
730
798
  ];
731
- typeArguments: [string];
799
+ typeArguments: [
800
+ string
801
+ ];
732
802
  }
733
803
  /** [Authorized Function] Withdraws incentive tokens. */
734
804
  export declare function withdrawIncentive(options: WithdrawIncentiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -746,7 +816,9 @@ export interface StakeOptions {
746
816
  index: RawTransactionArgument<number | bigint>,
747
817
  lpToken: RawTransactionArgument<string>
748
818
  ];
749
- typeArguments: [string];
819
+ typeArguments: [
820
+ string
821
+ ];
750
822
  }
751
823
  /** [User Function] Stake LP tokens. */
752
824
  export declare function stake(options: StakeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -802,7 +874,9 @@ export interface UnsubscribeOptions {
802
874
  index: RawTransactionArgument<number | bigint>,
803
875
  unsubscribedShares: RawTransactionArgument<number | bigint | null>
804
876
  ];
805
- typeArguments: [string];
877
+ typeArguments: [
878
+ string
879
+ ];
806
880
  }
807
881
  /** [User Function] Pre-process to unstake the TLP */
808
882
  export declare function unsubscribe(options: UnsubscribeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -818,17 +892,36 @@ export interface UnstakeOptions {
818
892
  registry: RawTransactionArgument<string>,
819
893
  index: RawTransactionArgument<number | bigint>
820
894
  ];
821
- typeArguments: [string];
895
+ typeArguments: [
896
+ string
897
+ ];
822
898
  }
823
899
  /** [User Function] Post-process to unstake the TLP */
824
900
  export declare function unstake(options: UnstakeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
901
+ export interface UpdateLastIncentivePriceIndexArguments {
902
+ lpUserShare: RawTransactionArgument<string>;
903
+ incentiveToken: RawTransactionArgument<string>;
904
+ currentIncentiveIndex: RawTransactionArgument<number | bigint>;
905
+ }
906
+ export interface UpdateLastIncentivePriceIndexOptions {
907
+ package?: string;
908
+ arguments: UpdateLastIncentivePriceIndexArguments | [
909
+ lpUserShare: RawTransactionArgument<string>,
910
+ incentiveToken: RawTransactionArgument<string>,
911
+ currentIncentiveIndex: RawTransactionArgument<number | bigint>
912
+ ];
913
+ }
914
+ export declare function updateLastIncentivePriceIndex(options: UpdateLastIncentivePriceIndexOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
825
915
  export interface LogHarvestedAmountArguments {
826
916
  userShare: RawTransactionArgument<string>;
827
917
  incentiveValue: RawTransactionArgument<number | bigint>;
828
918
  }
829
919
  export interface LogHarvestedAmountOptions {
830
920
  package?: string;
831
- arguments: LogHarvestedAmountArguments | [userShare: RawTransactionArgument<string>, incentiveValue: RawTransactionArgument<number | bigint>];
921
+ arguments: LogHarvestedAmountArguments | [
922
+ userShare: RawTransactionArgument<string>,
923
+ incentiveValue: RawTransactionArgument<number | bigint>
924
+ ];
832
925
  }
833
926
  export declare function logHarvestedAmount(options: LogHarvestedAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
834
927
  export interface HarvestPerUserShareArguments {
@@ -843,45 +936,36 @@ export interface HarvestPerUserShareOptions {
843
936
  registry: RawTransactionArgument<string>,
844
937
  index: RawTransactionArgument<number | bigint>
845
938
  ];
846
- typeArguments: [string];
939
+ typeArguments: [
940
+ string
941
+ ];
847
942
  }
848
943
  /** [User Function] Harvest the incentive from staking TLP */
849
944
  export declare function harvestPerUserShare(options: HarvestPerUserShareOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
850
- export interface CalculateIncentiveByIdxArguments {
945
+ export interface CalculateIncentiveArguments {
851
946
  currentIncentiveIndex: RawTransactionArgument<number | bigint>;
852
- incentiveIdx: RawTransactionArgument<number | bigint>;
947
+ incentiveToken: RawTransactionArgument<string>;
853
948
  lpUserShare: RawTransactionArgument<string>;
854
949
  }
855
- export interface CalculateIncentiveByIdxOptions {
950
+ export interface CalculateIncentiveOptions {
856
951
  package?: string;
857
- arguments: CalculateIncentiveByIdxArguments | [
952
+ arguments: CalculateIncentiveArguments | [
858
953
  currentIncentiveIndex: RawTransactionArgument<number | bigint>,
859
- incentiveIdx: RawTransactionArgument<number | bigint>,
954
+ incentiveToken: RawTransactionArgument<string>,
860
955
  lpUserShare: RawTransactionArgument<string>
861
956
  ];
862
957
  }
863
- export declare function calculateIncentiveByIdx(options: CalculateIncentiveByIdxOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
864
- export interface UpdateLastIncentivePriceIndexByIdxArguments {
865
- lpUserShare: RawTransactionArgument<string>;
866
- incentiveIdx: RawTransactionArgument<number | bigint>;
867
- currentIncentiveIndex: RawTransactionArgument<number | bigint>;
868
- }
869
- export interface UpdateLastIncentivePriceIndexByIdxOptions {
870
- package?: string;
871
- arguments: UpdateLastIncentivePriceIndexByIdxArguments | [
872
- lpUserShare: RawTransactionArgument<string>,
873
- incentiveIdx: RawTransactionArgument<number | bigint>,
874
- currentIncentiveIndex: RawTransactionArgument<number | bigint>
875
- ];
876
- }
877
- export declare function updateLastIncentivePriceIndexByIdx(options: UpdateLastIncentivePriceIndexByIdxOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
958
+ export declare function calculateIncentive(options: CalculateIncentiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
878
959
  export interface HarvestProgressUpdatedArguments {
879
- current: RawTransactionArgument<number | bigint[]>;
880
- user: RawTransactionArgument<number | bigint[]>;
960
+ current: RawTransactionArgument<string>;
961
+ user: RawTransactionArgument<string>;
881
962
  }
882
963
  export interface HarvestProgressUpdatedOptions {
883
964
  package?: string;
884
- arguments: HarvestProgressUpdatedArguments | [current: RawTransactionArgument<number | bigint[]>, user: RawTransactionArgument<number | bigint[]>];
965
+ arguments: HarvestProgressUpdatedArguments | [
966
+ current: RawTransactionArgument<string>,
967
+ user: RawTransactionArgument<string>
968
+ ];
885
969
  }
886
970
  export declare function harvestProgressUpdated(options: HarvestProgressUpdatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
887
971
  export interface MultiplierArguments {
@@ -889,7 +973,9 @@ export interface MultiplierArguments {
889
973
  }
890
974
  export interface MultiplierOptions {
891
975
  package?: string;
892
- arguments: MultiplierArguments | [decimal: RawTransactionArgument<number | bigint>];
976
+ arguments: MultiplierArguments | [
977
+ decimal: RawTransactionArgument<number | bigint>
978
+ ];
893
979
  }
894
980
  export declare function multiplier(options: MultiplierOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
895
981
  export interface GetUserSharesArguments {
@@ -899,7 +985,11 @@ export interface GetUserSharesArguments {
899
985
  }
900
986
  export interface GetUserSharesOptions {
901
987
  package?: string;
902
- arguments: GetUserSharesArguments | [registry: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>, user: RawTransactionArgument<string>];
988
+ arguments: GetUserSharesArguments | [
989
+ registry: RawTransactionArgument<string>,
990
+ index: RawTransactionArgument<number | bigint>,
991
+ user: RawTransactionArgument<string>
992
+ ];
903
993
  }
904
994
  export declare function getUserShares(options: GetUserSharesOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
905
995
  export interface GetUserSharesByUserShareIdArguments {
@@ -922,7 +1012,10 @@ export interface GetStakePoolArguments {
922
1012
  }
923
1013
  export interface GetStakePoolOptions {
924
1014
  package?: string;
925
- arguments: GetStakePoolArguments | [id: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>];
1015
+ arguments: GetStakePoolArguments | [
1016
+ id: RawTransactionArgument<string>,
1017
+ index: RawTransactionArgument<number | bigint>
1018
+ ];
926
1019
  }
927
1020
  export declare function getStakePool(options: GetStakePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
928
1021
  export interface GetMutStakePoolArguments {
@@ -931,7 +1024,10 @@ export interface GetMutStakePoolArguments {
931
1024
  }
932
1025
  export interface GetMutStakePoolOptions {
933
1026
  package?: string;
934
- arguments: GetMutStakePoolArguments | [id: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>];
1027
+ arguments: GetMutStakePoolArguments | [
1028
+ id: RawTransactionArgument<string>,
1029
+ index: RawTransactionArgument<number | bigint>
1030
+ ];
935
1031
  }
936
1032
  export declare function getMutStakePool(options: GetMutStakePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
937
1033
  export interface GetIncentiveTokensArguments {
@@ -939,7 +1035,9 @@ export interface GetIncentiveTokensArguments {
939
1035
  }
940
1036
  export interface GetIncentiveTokensOptions {
941
1037
  package?: string;
942
- arguments: GetIncentiveTokensArguments | [stakePool: RawTransactionArgument<string>];
1038
+ arguments: GetIncentiveTokensArguments | [
1039
+ stakePool: RawTransactionArgument<string>
1040
+ ];
943
1041
  }
944
1042
  export declare function getIncentiveTokens(options: GetIncentiveTokensOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
945
1043
  export interface GetIncentiveArguments {
@@ -948,7 +1046,10 @@ export interface GetIncentiveArguments {
948
1046
  }
949
1047
  export interface GetIncentiveOptions {
950
1048
  package?: string;
951
- arguments: GetIncentiveArguments | [stakePool: RawTransactionArgument<string>, tokenType: RawTransactionArgument<string>];
1049
+ arguments: GetIncentiveArguments | [
1050
+ stakePool: RawTransactionArgument<string>,
1051
+ tokenType: RawTransactionArgument<string>
1052
+ ];
952
1053
  }
953
1054
  export declare function getIncentive(options: GetIncentiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
954
1055
  export interface GetMutIncentiveArguments {
@@ -957,7 +1058,10 @@ export interface GetMutIncentiveArguments {
957
1058
  }
958
1059
  export interface GetMutIncentiveOptions {
959
1060
  package?: string;
960
- arguments: GetMutIncentiveArguments | [stakePool: RawTransactionArgument<string>, tokenType: RawTransactionArgument<string>];
1061
+ arguments: GetMutIncentiveArguments | [
1062
+ stakePool: RawTransactionArgument<string>,
1063
+ tokenType: RawTransactionArgument<string>
1064
+ ];
961
1065
  }
962
1066
  export declare function getMutIncentive(options: GetMutIncentiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
963
1067
  export interface RemoveIncentiveArguments {
@@ -966,25 +1070,20 @@ export interface RemoveIncentiveArguments {
966
1070
  }
967
1071
  export interface RemoveIncentiveOptions {
968
1072
  package?: string;
969
- arguments: RemoveIncentiveArguments | [stakePool: RawTransactionArgument<string>, tokenType: RawTransactionArgument<string>];
1073
+ arguments: RemoveIncentiveArguments | [
1074
+ stakePool: RawTransactionArgument<string>,
1075
+ tokenType: RawTransactionArgument<string>
1076
+ ];
970
1077
  }
971
1078
  export declare function removeIncentive(options: RemoveIncentiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
972
- export interface GetIncentiveIdxArguments {
973
- stakePool: RawTransactionArgument<string>;
974
- tokenType: RawTransactionArgument<string>;
975
- }
976
- export interface GetIncentiveIdxOptions {
977
- package?: string;
978
- arguments: GetIncentiveIdxArguments | [stakePool: RawTransactionArgument<string>, tokenType: RawTransactionArgument<string>];
979
- }
980
- /** Get incentive index by token type, returns None if not found */
981
- export declare function getIncentiveIdx(options: GetIncentiveIdxOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
982
1079
  export interface GetLastIncentivePriceIndexArguments {
983
1080
  stakePool: RawTransactionArgument<string>;
984
1081
  }
985
1082
  export interface GetLastIncentivePriceIndexOptions {
986
1083
  package?: string;
987
- arguments: GetLastIncentivePriceIndexArguments | [stakePool: RawTransactionArgument<string>];
1084
+ arguments: GetLastIncentivePriceIndexArguments | [
1085
+ stakePool: RawTransactionArgument<string>
1086
+ ];
988
1087
  }
989
1088
  export declare function getLastIncentivePriceIndex(options: GetLastIncentivePriceIndexOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
990
1089
  export interface CheckStakePoolActiveArguments {
@@ -992,6 +1091,8 @@ export interface CheckStakePoolActiveArguments {
992
1091
  }
993
1092
  export interface CheckStakePoolActiveOptions {
994
1093
  package?: string;
995
- arguments: CheckStakePoolActiveArguments | [stakePool: RawTransactionArgument<string>];
1094
+ arguments: CheckStakePoolActiveArguments | [
1095
+ stakePool: RawTransactionArgument<string>
1096
+ ];
996
1097
  }
997
1098
  export declare function checkStakePoolActive(options: CheckStakePoolActiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;