@typus/typus-perp-sdk 1.1.32-codegen-exp7 → 1.1.32-codegen-exp8

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 (43) hide show
  1. package/dist/src/client.js +34 -3
  2. package/dist/src/fetch.d.ts +3 -91
  3. package/dist/src/fetch.js +43 -41
  4. package/dist/src/generated/typus_perp/admin.d.ts +158 -1
  5. package/dist/src/generated/typus_perp/admin.js +211 -0
  6. package/dist/src/generated/typus_perp/competition.d.ts +39 -1
  7. package/dist/src/generated/typus_perp/competition.js +46 -0
  8. package/dist/src/generated/typus_perp/deps/sui/table.d.ts +31 -0
  9. package/dist/src/generated/typus_perp/{tlp.js → deps/sui/table.js} +28 -13
  10. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -8
  11. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +3 -11
  12. package/dist/src/generated/typus_perp/error.d.ts +443 -0
  13. package/dist/src/generated/typus_perp/error.js +788 -0
  14. package/dist/src/generated/typus_perp/escrow.d.ts +51 -1
  15. package/dist/src/generated/typus_perp/escrow.js +63 -0
  16. package/dist/src/generated/typus_perp/lp_pool.d.ts +2 -476
  17. package/dist/src/generated/typus_perp/lp_pool.js +19 -492
  18. package/dist/src/generated/typus_perp/position.d.ts +1016 -1
  19. package/dist/src/generated/typus_perp/position.js +1187 -0
  20. package/dist/src/generated/typus_perp/profit_vault.d.ts +272 -0
  21. package/dist/src/generated/typus_perp/profit_vault.js +321 -0
  22. package/dist/src/generated/typus_perp/symbol.d.ts +30 -1
  23. package/dist/src/generated/typus_perp/symbol.js +42 -0
  24. package/dist/src/generated/typus_perp/trading.d.ts +56 -418
  25. package/dist/src/generated/typus_perp/trading.js +124 -552
  26. package/dist/src/generated/typus_perp/treasury_caps.d.ts +32 -1
  27. package/dist/src/generated/typus_perp/treasury_caps.js +40 -0
  28. package/dist/src/generated/typus_perp/user_account.d.ts +107 -1
  29. package/dist/src/generated/typus_perp/user_account.js +149 -0
  30. package/dist/src/generated/typus_stake_pool/admin.d.ts +9 -25
  31. package/dist/src/generated/typus_stake_pool/admin.js +11 -36
  32. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +56 -4
  33. package/dist/src/generated/typus_stake_pool/stake_pool.js +68 -4
  34. package/dist/src/generated/utils/index.js +3 -0
  35. package/dist/src/grpc/graphql.d.ts +6 -6
  36. package/dist/src/index.d.ts +0 -2
  37. package/dist/src/index.js +13 -19
  38. package/dist/src/user/order.js +1 -6
  39. package/dist/src/user/orderWithBidReceipt.js +3 -3
  40. package/package.json +2 -2
  41. package/dist/src/generated/typus_perp/lending.d.ts +0 -47
  42. package/dist/src/generated/typus_perp/lending.js +0 -50
  43. package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
@@ -6,7 +6,8 @@
6
6
  * creating and destructing it. This is used to handle unsettled bids from
7
7
  * liquidations.
8
8
  */
9
- import { MoveStruct } from "../utils/index";
9
+ import { MoveStruct, type RawTransactionArgument } from "../utils/index";
10
+ import { type Transaction } from "@mysten/sui/transactions";
10
11
  export declare const UnsettledBidReceipt: MoveStruct<{
11
12
  /** A vector of `TypusBidReceipt` structs. */
12
13
  receipt: import("@mysten/sui/bcs").BcsType<{
@@ -57,3 +58,52 @@ export declare const UnsettledBidReceipt: MoveStruct<{
57
58
  /** The unrealized liquidator fee. */
58
59
  unrealized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
59
60
  }, "@typus/perp::escrow::UnsettledBidReceipt">;
61
+ export interface CreateUnsettledBidReceiptArguments {
62
+ receipt: RawTransactionArgument<string[]>;
63
+ positionId: RawTransactionArgument<number | bigint>;
64
+ user: RawTransactionArgument<string>;
65
+ tokenTypes: RawTransactionArgument<string[]>;
66
+ unrealizedPnlSign: RawTransactionArgument<boolean>;
67
+ unrealizedPnl: RawTransactionArgument<number | bigint>;
68
+ unrealizedTradingFee: RawTransactionArgument<number | bigint>;
69
+ unrealizedBorrowFee: RawTransactionArgument<number | bigint>;
70
+ unrealizedFundingFeeSign: RawTransactionArgument<boolean>;
71
+ unrealizedFundingFee: RawTransactionArgument<number | bigint>;
72
+ unrealizedLiquidatorFee: RawTransactionArgument<number | bigint>;
73
+ }
74
+ export interface CreateUnsettledBidReceiptOptions {
75
+ package?: string;
76
+ arguments: CreateUnsettledBidReceiptArguments | [
77
+ receipt: RawTransactionArgument<string[]>,
78
+ positionId: RawTransactionArgument<number | bigint>,
79
+ user: RawTransactionArgument<string>,
80
+ tokenTypes: RawTransactionArgument<string[]>,
81
+ unrealizedPnlSign: RawTransactionArgument<boolean>,
82
+ unrealizedPnl: RawTransactionArgument<number | bigint>,
83
+ unrealizedTradingFee: RawTransactionArgument<number | bigint>,
84
+ unrealizedBorrowFee: RawTransactionArgument<number | bigint>,
85
+ unrealizedFundingFeeSign: RawTransactionArgument<boolean>,
86
+ unrealizedFundingFee: RawTransactionArgument<number | bigint>,
87
+ unrealizedLiquidatorFee: RawTransactionArgument<number | bigint>
88
+ ];
89
+ }
90
+ /** Creates a new `UnsettledBidReceipt`. */
91
+ export declare function createUnsettledBidReceipt(options: CreateUnsettledBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
92
+ export interface DestructUnsettledBidReceiptArguments {
93
+ unsettledBidReceipt: RawTransactionArgument<string>;
94
+ }
95
+ export interface DestructUnsettledBidReceiptOptions {
96
+ package?: string;
97
+ arguments: DestructUnsettledBidReceiptArguments | [unsettledBidReceipt: RawTransactionArgument<string>];
98
+ }
99
+ /** Destructs an `UnsettledBidReceipt` and returns its fields. */
100
+ export declare function destructUnsettledBidReceipt(options: DestructUnsettledBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
101
+ export interface GetBidReceiptsArguments {
102
+ unsettledBidReceipt: RawTransactionArgument<string>;
103
+ }
104
+ export interface GetBidReceiptsOptions {
105
+ package?: string;
106
+ arguments: GetBidReceiptsArguments | [unsettledBidReceipt: RawTransactionArgument<string>];
107
+ }
108
+ /** Gets a reference to the bid receipts in an `UnsettledBidReceipt`. */
109
+ export declare function getBidReceipts(options: GetBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -37,6 +37,9 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.UnsettledBidReceipt = void 0;
40
+ exports.createUnsettledBidReceipt = createUnsettledBidReceipt;
41
+ exports.destructUnsettledBidReceipt = destructUnsettledBidReceipt;
42
+ exports.getBidReceipts = getBidReceipts;
40
43
  /**
41
44
  * The `escrow` module defines the `UnsettledBidReceipt` struct and functions for
42
45
  * creating and destructing it. This is used to handle unsettled bids from
@@ -74,3 +77,63 @@ exports.UnsettledBidReceipt = new index_1.MoveStruct({
74
77
  unrealized_liquidator_fee: bcs_1.bcs.u64(),
75
78
  },
76
79
  });
80
+ /** Creates a new `UnsettledBidReceipt`. */
81
+ function createUnsettledBidReceipt(options) {
82
+ const packageAddress = options.package ?? "@typus/perp";
83
+ const argumentsTypes = [
84
+ "vector<0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::vault::TypusBidReceipt>",
85
+ "u64",
86
+ "address",
87
+ "vector<0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName>",
88
+ "bool",
89
+ "u64",
90
+ "u64",
91
+ "u64",
92
+ "bool",
93
+ "u64",
94
+ "u64",
95
+ ];
96
+ const parameterNames = [
97
+ "receipt",
98
+ "positionId",
99
+ "user",
100
+ "tokenTypes",
101
+ "unrealizedPnlSign",
102
+ "unrealizedPnl",
103
+ "unrealizedTradingFee",
104
+ "unrealizedBorrowFee",
105
+ "unrealizedFundingFeeSign",
106
+ "unrealizedFundingFee",
107
+ "unrealizedLiquidatorFee",
108
+ ];
109
+ return (tx) => tx.moveCall({
110
+ package: packageAddress,
111
+ module: "escrow",
112
+ function: "create_unsettled_bid_receipt",
113
+ arguments: (0, index_1.normalizeMoveArguments)(options.arguments, argumentsTypes, parameterNames),
114
+ });
115
+ }
116
+ /** Destructs an `UnsettledBidReceipt` and returns its fields. */
117
+ function destructUnsettledBidReceipt(options) {
118
+ const packageAddress = options.package ?? "@typus/perp";
119
+ const argumentsTypes = [`${packageAddress}::escrow::UnsettledBidReceipt`];
120
+ const parameterNames = ["unsettledBidReceipt"];
121
+ return (tx) => tx.moveCall({
122
+ package: packageAddress,
123
+ module: "escrow",
124
+ function: "destruct_unsettled_bid_receipt",
125
+ arguments: (0, index_1.normalizeMoveArguments)(options.arguments, argumentsTypes, parameterNames),
126
+ });
127
+ }
128
+ /** Gets a reference to the bid receipts in an `UnsettledBidReceipt`. */
129
+ function getBidReceipts(options) {
130
+ const packageAddress = options.package ?? "@typus/perp";
131
+ const argumentsTypes = [`${packageAddress}::escrow::UnsettledBidReceipt`];
132
+ const parameterNames = ["unsettledBidReceipt"];
133
+ return (tx) => tx.moveCall({
134
+ package: packageAddress,
135
+ module: "escrow",
136
+ function: "get_bid_receipts",
137
+ arguments: (0, index_1.normalizeMoveArguments)(options.arguments, argumentsTypes, parameterNames),
138
+ });
139
+ }
@@ -456,36 +456,6 @@ export declare const LiquidityPool: MoveStruct<{
456
456
  length: number;
457
457
  }, string>;
458
458
  }, "@typus/perp::lp_pool::LiquidityPool">;
459
- export declare const RemoveLiquidityTokenProcess: MoveStruct<{
460
- /** The type name of the liquidity token being removed. */
461
- liquidity_token: MoveStruct<{
462
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
463
- }, "std::type_name::TypeName">;
464
- /** A vector of the base tokens of the removed positions. */
465
- removed_positions_base_token: import("@mysten/sui/bcs").BcsType<{
466
- name: string;
467
- }[], Iterable<{
468
- name: string;
469
- }> & {
470
- length: number;
471
- }, string>;
472
- /** A vector of the base tokens of the removed orders. */
473
- removed_orders_base_token: import("@mysten/sui/bcs").BcsType<{
474
- name: string;
475
- }[], Iterable<{
476
- name: string;
477
- }> & {
478
- length: number;
479
- }, string>;
480
- /** The address of the oracle for the removed token. */
481
- removed_token_oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
482
- /** The value of the removed liquidity in USD. */
483
- removed_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
484
- /** The value of the repaid liquidity in USD. */
485
- repaid_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
486
- /** The status of the removal process. */
487
- status: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
488
- }, "@typus/perp::lp_pool::RemoveLiquidityTokenProcess">;
489
459
  export declare const DeactivatingShares: MoveStruct<{
490
460
  /** The balance of the deactivating shares. */
491
461
  balance: MoveStruct<{
@@ -500,7 +470,7 @@ export declare const DeactivatingShares: MoveStruct<{
500
470
  length: number;
501
471
  }, string>;
502
472
  }, "@typus/perp::lp_pool::DeactivatingShares">;
503
- export declare const ManagerDepositReceiptV2: MoveStruct<{
473
+ export declare const ManagerDepositReceipt: MoveStruct<{
504
474
  id: MoveStruct<{
505
475
  id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
506
476
  }, "0x2::object::UID">;
@@ -516,7 +486,7 @@ export declare const ManagerDepositReceiptV2: MoveStruct<{
516
486
  u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
517
487
  length: number;
518
488
  }, string>;
519
- }, "@typus/perp::lp_pool::ManagerDepositReceiptV2">;
489
+ }, "@typus/perp::lp_pool::ManagerDepositReceipt">;
520
490
  export declare const NewLiquidityPoolEvent: MoveStruct<{
521
491
  sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
522
492
  index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
@@ -872,91 +842,6 @@ export declare const ResumeTokenPoolEvent: MoveStruct<{
872
842
  length: number;
873
843
  }, string>;
874
844
  }, "@typus/perp::lp_pool::ResumeTokenPoolEvent">;
875
- export declare const DepositLendingEvent: MoveStruct<{
876
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
877
- lending_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
878
- c_token_type: MoveStruct<{
879
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
880
- }, "std::type_name::TypeName">;
881
- deposit_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
882
- minted_market_coin_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
883
- latest_lending_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
884
- latest_market_coin_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
885
- latest_reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
886
- latest_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
887
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
888
- length: number;
889
- }, string>;
890
- }, "@typus/perp::lp_pool::DepositLendingEvent">;
891
- export declare const WithdrawLendingEvent: MoveStruct<{
892
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
893
- lending_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
894
- c_token_type: MoveStruct<{
895
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
896
- }, "std::type_name::TypeName">;
897
- r_token_type: MoveStruct<{
898
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
899
- }, "std::type_name::TypeName">;
900
- withdraw_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
901
- withdrawn_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
902
- latest_lending_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
903
- latest_market_coin_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
904
- latest_reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
905
- latest_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
906
- lending_interest: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
907
- protocol_share: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
908
- lending_reward: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
909
- reward_protocol_share: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
910
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
911
- length: number;
912
- }, string>;
913
- }, "@typus/perp::lp_pool::WithdrawLendingEvent">;
914
- export declare const StartRemoveLiquidityTokenProcessEvent: MoveStruct<{
915
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
916
- liquidity_token: MoveStruct<{
917
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
918
- }, "std::type_name::TypeName">;
919
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
920
- length: number;
921
- }, string>;
922
- }, "@typus/perp::lp_pool::StartRemoveLiquidityTokenProcessEvent">;
923
- export declare const ManagerFlashRemoveLiquidityEvent: MoveStruct<{
924
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
925
- liquidity_token: MoveStruct<{
926
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
927
- }, "std::type_name::TypeName">;
928
- price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
929
- price_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
930
- remove_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
931
- removed_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
932
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
933
- length: number;
934
- }, string>;
935
- }, "@typus/perp::lp_pool::ManagerFlashRemoveLiquidityEvent">;
936
- export declare const ManagerFlashRepayLiquidityEvent: MoveStruct<{
937
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
938
- liquidity_token: MoveStruct<{
939
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
940
- }, "std::type_name::TypeName">;
941
- price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
942
- price_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
943
- repaid_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
944
- repaid_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
945
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
946
- length: number;
947
- }, string>;
948
- }, "@typus/perp::lp_pool::ManagerFlashRepayLiquidityEvent">;
949
- export declare const CompleteRemoveLiquidityTokenProcessEvent: MoveStruct<{
950
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
951
- liquidity_token: MoveStruct<{
952
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
953
- }, "std::type_name::TypeName">;
954
- removed_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
955
- repaid_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
956
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
957
- length: number;
958
- }, string>;
959
- }, "@typus/perp::lp_pool::CompleteRemoveLiquidityTokenProcessEvent">;
960
845
  export declare const ManagerRemoveLiquidityTokenEvent: MoveStruct<{
961
846
  index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
962
847
  liquidity_token: MoveStruct<{
@@ -1048,15 +933,6 @@ export declare const BurnLpEvent: MoveStruct<{
1048
933
  length: number;
1049
934
  }, string>;
1050
935
  }, "@typus/perp::lp_pool::BurnLpEvent">;
1051
- export declare const ManagerDepositReceipt: MoveStruct<{
1052
- id: MoveStruct<{
1053
- id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
1054
- }, "0x2::object::UID">;
1055
- token_type: MoveStruct<{
1056
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
1057
- }, "std::type_name::TypeName">;
1058
- amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1059
- }, "@typus/perp::lp_pool::ManagerDepositReceipt">;
1060
936
  export interface InitOptions {
1061
937
  package?: string;
1062
938
  arguments?: [];
@@ -1431,211 +1307,6 @@ export interface ResumeTokenPoolOptions {
1431
1307
  }
1432
1308
  /** [Authorized Function] Resumes a token pool. */
1433
1309
  export declare function resumeTokenPool(options: ResumeTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1434
- export interface ManagerDepositScallopArguments {
1435
- version: RawTransactionArgument<string>;
1436
- registry: RawTransactionArgument<string>;
1437
- index: RawTransactionArgument<number | bigint>;
1438
- scallopVersion: RawTransactionArgument<string>;
1439
- scallopMarket: RawTransactionArgument<string>;
1440
- lendingAmount: RawTransactionArgument<number | bigint | null>;
1441
- }
1442
- export interface ManagerDepositScallopOptions {
1443
- package?: string;
1444
- arguments: ManagerDepositScallopArguments | [
1445
- version: RawTransactionArgument<string>,
1446
- registry: RawTransactionArgument<string>,
1447
- index: RawTransactionArgument<number | bigint>,
1448
- scallopVersion: RawTransactionArgument<string>,
1449
- scallopMarket: RawTransactionArgument<string>,
1450
- lendingAmount: RawTransactionArgument<number | bigint | null>
1451
- ];
1452
- typeArguments: [string];
1453
- }
1454
- /** [Authorized Function] Manager deposits to Scallop. */
1455
- export declare function managerDepositScallop(options: ManagerDepositScallopOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1456
- export interface ManagerDepositNaviArguments {
1457
- version: RawTransactionArgument<string>;
1458
- registry: RawTransactionArgument<string>;
1459
- index: RawTransactionArgument<number | bigint>;
1460
- storage: RawTransactionArgument<string>;
1461
- pool: RawTransactionArgument<string>;
1462
- asset: RawTransactionArgument<number>;
1463
- incentiveV2: RawTransactionArgument<string>;
1464
- incentiveV3: RawTransactionArgument<string>;
1465
- lendingAmount: RawTransactionArgument<number | bigint | null>;
1466
- }
1467
- export interface ManagerDepositNaviOptions {
1468
- package?: string;
1469
- arguments: ManagerDepositNaviArguments | [
1470
- version: RawTransactionArgument<string>,
1471
- registry: RawTransactionArgument<string>,
1472
- index: RawTransactionArgument<number | bigint>,
1473
- storage: RawTransactionArgument<string>,
1474
- pool: RawTransactionArgument<string>,
1475
- asset: RawTransactionArgument<number>,
1476
- incentiveV2: RawTransactionArgument<string>,
1477
- incentiveV3: RawTransactionArgument<string>,
1478
- lendingAmount: RawTransactionArgument<number | bigint | null>
1479
- ];
1480
- typeArguments: [string];
1481
- }
1482
- export declare function managerDepositNavi(options: ManagerDepositNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1483
- export interface ManagerWithdrawScallopArguments {
1484
- version: RawTransactionArgument<string>;
1485
- registry: RawTransactionArgument<string>;
1486
- index: RawTransactionArgument<number | bigint>;
1487
- scallopVersion: RawTransactionArgument<string>;
1488
- scallopMarket: RawTransactionArgument<string>;
1489
- withdrawAmount: RawTransactionArgument<number | bigint | null>;
1490
- }
1491
- export interface ManagerWithdrawScallopOptions {
1492
- package?: string;
1493
- arguments: ManagerWithdrawScallopArguments | [
1494
- version: RawTransactionArgument<string>,
1495
- registry: RawTransactionArgument<string>,
1496
- index: RawTransactionArgument<number | bigint>,
1497
- scallopVersion: RawTransactionArgument<string>,
1498
- scallopMarket: RawTransactionArgument<string>,
1499
- withdrawAmount: RawTransactionArgument<number | bigint | null>
1500
- ];
1501
- typeArguments: [string];
1502
- }
1503
- /** [Authorized Function] Manager withdraws from Scallop. */
1504
- export declare function managerWithdrawScallop(options: ManagerWithdrawScallopOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1505
- export interface ManagerWithdrawNaviArguments {
1506
- version: RawTransactionArgument<string>;
1507
- registry: RawTransactionArgument<string>;
1508
- index: RawTransactionArgument<number | bigint>;
1509
- oracleConfig: RawTransactionArgument<string>;
1510
- priceOracle: RawTransactionArgument<string>;
1511
- supraOracleHolder: RawTransactionArgument<string>;
1512
- pythPriceInfo: RawTransactionArgument<string>;
1513
- feedAddress: RawTransactionArgument<string>;
1514
- storage: RawTransactionArgument<string>;
1515
- pool: RawTransactionArgument<string>;
1516
- asset: RawTransactionArgument<number>;
1517
- incentiveV2: RawTransactionArgument<string>;
1518
- incentiveV3: RawTransactionArgument<string>;
1519
- }
1520
- export interface ManagerWithdrawNaviOptions {
1521
- package?: string;
1522
- arguments: ManagerWithdrawNaviArguments | [
1523
- version: RawTransactionArgument<string>,
1524
- registry: RawTransactionArgument<string>,
1525
- index: RawTransactionArgument<number | bigint>,
1526
- oracleConfig: RawTransactionArgument<string>,
1527
- priceOracle: RawTransactionArgument<string>,
1528
- supraOracleHolder: RawTransactionArgument<string>,
1529
- pythPriceInfo: RawTransactionArgument<string>,
1530
- feedAddress: RawTransactionArgument<string>,
1531
- storage: RawTransactionArgument<string>,
1532
- pool: RawTransactionArgument<string>,
1533
- asset: RawTransactionArgument<number>,
1534
- incentiveV2: RawTransactionArgument<string>,
1535
- incentiveV3: RawTransactionArgument<string>
1536
- ];
1537
- typeArguments: [string];
1538
- }
1539
- export declare function managerWithdrawNavi(options: ManagerWithdrawNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1540
- export interface ManagerRewardNaviArguments {
1541
- version: RawTransactionArgument<string>;
1542
- registry: RawTransactionArgument<string>;
1543
- index: RawTransactionArgument<number | bigint>;
1544
- storage: RawTransactionArgument<string>;
1545
- rewardFund: RawTransactionArgument<string>;
1546
- coinTypes: RawTransactionArgument<string[]>;
1547
- ruleIds: RawTransactionArgument<string[]>;
1548
- incentiveV3: RawTransactionArgument<string>;
1549
- }
1550
- export interface ManagerRewardNaviOptions {
1551
- package?: string;
1552
- arguments: ManagerRewardNaviArguments | [
1553
- version: RawTransactionArgument<string>,
1554
- registry: RawTransactionArgument<string>,
1555
- index: RawTransactionArgument<number | bigint>,
1556
- storage: RawTransactionArgument<string>,
1557
- rewardFund: RawTransactionArgument<string>,
1558
- coinTypes: RawTransactionArgument<string[]>,
1559
- ruleIds: RawTransactionArgument<string[]>,
1560
- incentiveV3: RawTransactionArgument<string>
1561
- ];
1562
- typeArguments: [string];
1563
- }
1564
- export declare function managerRewardNavi(options: ManagerRewardNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1565
- export interface StartRemoveLiquidityTokenProcessArguments {
1566
- version: RawTransactionArgument<string>;
1567
- registry: RawTransactionArgument<string>;
1568
- index: RawTransactionArgument<number | bigint>;
1569
- oracle: RawTransactionArgument<string>;
1570
- }
1571
- export interface StartRemoveLiquidityTokenProcessOptions {
1572
- package?: string;
1573
- arguments: StartRemoveLiquidityTokenProcessArguments | [
1574
- version: RawTransactionArgument<string>,
1575
- registry: RawTransactionArgument<string>,
1576
- index: RawTransactionArgument<number | bigint>,
1577
- oracle: RawTransactionArgument<string>
1578
- ];
1579
- typeArguments: [string];
1580
- }
1581
- export declare function startRemoveLiquidityTokenProcess(options: StartRemoveLiquidityTokenProcessOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1582
- export interface ManagerFlashRemoveLiquidityArguments {
1583
- version: RawTransactionArgument<string>;
1584
- registry: RawTransactionArgument<string>;
1585
- index: RawTransactionArgument<number | bigint>;
1586
- oracle: RawTransactionArgument<string>;
1587
- process: RawTransactionArgument<string>;
1588
- }
1589
- export interface ManagerFlashRemoveLiquidityOptions {
1590
- package?: string;
1591
- arguments: ManagerFlashRemoveLiquidityArguments | [
1592
- version: RawTransactionArgument<string>,
1593
- registry: RawTransactionArgument<string>,
1594
- index: RawTransactionArgument<number | bigint>,
1595
- oracle: RawTransactionArgument<string>,
1596
- process: RawTransactionArgument<string>
1597
- ];
1598
- typeArguments: [string];
1599
- }
1600
- export declare function managerFlashRemoveLiquidity(options: ManagerFlashRemoveLiquidityOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1601
- export interface ManagerFlashRepayLiquidityArguments {
1602
- version: RawTransactionArgument<string>;
1603
- registry: RawTransactionArgument<string>;
1604
- index: RawTransactionArgument<number | bigint>;
1605
- oracle: RawTransactionArgument<string>;
1606
- process: RawTransactionArgument<string>;
1607
- balance: RawTransactionArgument<string>;
1608
- }
1609
- export interface ManagerFlashRepayLiquidityOptions {
1610
- package?: string;
1611
- arguments: ManagerFlashRepayLiquidityArguments | [
1612
- version: RawTransactionArgument<string>,
1613
- registry: RawTransactionArgument<string>,
1614
- index: RawTransactionArgument<number | bigint>,
1615
- oracle: RawTransactionArgument<string>,
1616
- process: RawTransactionArgument<string>,
1617
- balance: RawTransactionArgument<string>
1618
- ];
1619
- typeArguments: [string];
1620
- }
1621
- export declare function managerFlashRepayLiquidity(options: ManagerFlashRepayLiquidityOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1622
- export interface CompleteRemoveLiquidityTokenProcessArguments {
1623
- version: RawTransactionArgument<string>;
1624
- registry: RawTransactionArgument<string>;
1625
- index: RawTransactionArgument<number | bigint>;
1626
- process: RawTransactionArgument<string>;
1627
- }
1628
- export interface CompleteRemoveLiquidityTokenProcessOptions {
1629
- package?: string;
1630
- arguments: CompleteRemoveLiquidityTokenProcessArguments | [
1631
- version: RawTransactionArgument<string>,
1632
- registry: RawTransactionArgument<string>,
1633
- index: RawTransactionArgument<number | bigint>,
1634
- process: RawTransactionArgument<string>
1635
- ];
1636
- typeArguments: [string];
1637
- }
1638
- export declare function completeRemoveLiquidityTokenProcess(options: CompleteRemoveLiquidityTokenProcessOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1639
1310
  export interface ManagerRemoveLiquidityTokenArguments {
1640
1311
  version: RawTransactionArgument<string>;
1641
1312
  registry: RawTransactionArgument<string>;
@@ -1959,130 +1630,6 @@ export interface CheckTvlUpdatedOptions {
1959
1630
  arguments: CheckTvlUpdatedArguments | [liquidityPool: RawTransactionArgument<string>];
1960
1631
  }
1961
1632
  export declare function checkTvlUpdated(options: CheckTvlUpdatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1962
- export interface CalculateLendingAmountCappedArguments {
1963
- tokenPool: RawTransactionArgument<string>;
1964
- lendingAmount: RawTransactionArgument<number | bigint | null>;
1965
- }
1966
- export interface CalculateLendingAmountCappedOptions {
1967
- package?: string;
1968
- arguments: CalculateLendingAmountCappedArguments | [tokenPool: RawTransactionArgument<string>, lendingAmount: RawTransactionArgument<number | bigint | null>];
1969
- }
1970
- export declare function calculateLendingAmountCapped(options: CalculateLendingAmountCappedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1971
- export interface DepositScallopBasicArguments {
1972
- liquidityPool: RawTransactionArgument<string>;
1973
- scallopVersion: RawTransactionArgument<string>;
1974
- scallopMarket: RawTransactionArgument<string>;
1975
- depositAmount: RawTransactionArgument<number | bigint>;
1976
- }
1977
- export interface DepositScallopBasicOptions {
1978
- package?: string;
1979
- arguments: DepositScallopBasicArguments | [
1980
- liquidityPool: RawTransactionArgument<string>,
1981
- scallopVersion: RawTransactionArgument<string>,
1982
- scallopMarket: RawTransactionArgument<string>,
1983
- depositAmount: RawTransactionArgument<number | bigint>
1984
- ];
1985
- typeArguments: [string];
1986
- }
1987
- export declare function depositScallopBasic(options: DepositScallopBasicOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1988
- export interface WithdrawScallopBasicArguments {
1989
- version: RawTransactionArgument<string>;
1990
- liquidityPool: RawTransactionArgument<string>;
1991
- scallopVersion: RawTransactionArgument<string>;
1992
- scallopMarket: RawTransactionArgument<string>;
1993
- withdrawAmount: RawTransactionArgument<number | bigint>;
1994
- }
1995
- export interface WithdrawScallopBasicOptions {
1996
- package?: string;
1997
- arguments: WithdrawScallopBasicArguments | [
1998
- version: RawTransactionArgument<string>,
1999
- liquidityPool: RawTransactionArgument<string>,
2000
- scallopVersion: RawTransactionArgument<string>,
2001
- scallopMarket: RawTransactionArgument<string>,
2002
- withdrawAmount: RawTransactionArgument<number | bigint>
2003
- ];
2004
- typeArguments: [string];
2005
- }
2006
- export declare function withdrawScallopBasic(options: WithdrawScallopBasicOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
2007
- export interface DepositNaviArguments {
2008
- liquidityPool: RawTransactionArgument<string>;
2009
- storage: RawTransactionArgument<string>;
2010
- pool: RawTransactionArgument<string>;
2011
- asset: RawTransactionArgument<number>;
2012
- incentiveV2: RawTransactionArgument<string>;
2013
- incentiveV3: RawTransactionArgument<string>;
2014
- depositAmount: RawTransactionArgument<number | bigint>;
2015
- }
2016
- export interface DepositNaviOptions {
2017
- package?: string;
2018
- arguments: DepositNaviArguments | [
2019
- liquidityPool: RawTransactionArgument<string>,
2020
- storage: RawTransactionArgument<string>,
2021
- pool: RawTransactionArgument<string>,
2022
- asset: RawTransactionArgument<number>,
2023
- incentiveV2: RawTransactionArgument<string>,
2024
- incentiveV3: RawTransactionArgument<string>,
2025
- depositAmount: RawTransactionArgument<number | bigint>
2026
- ];
2027
- typeArguments: [string];
2028
- }
2029
- export declare function depositNavi(options: DepositNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
2030
- export interface WithdrawNaviArguments {
2031
- version: RawTransactionArgument<string>;
2032
- liquidityPool: RawTransactionArgument<string>;
2033
- oracleConfig: RawTransactionArgument<string>;
2034
- priceOracle: RawTransactionArgument<string>;
2035
- supraOracleHolder: RawTransactionArgument<string>;
2036
- pythPriceInfo: RawTransactionArgument<string>;
2037
- feedAddress: RawTransactionArgument<string>;
2038
- storage: RawTransactionArgument<string>;
2039
- pool: RawTransactionArgument<string>;
2040
- asset: RawTransactionArgument<number>;
2041
- incentiveV2: RawTransactionArgument<string>;
2042
- incentiveV3: RawTransactionArgument<string>;
2043
- }
2044
- export interface WithdrawNaviOptions {
2045
- package?: string;
2046
- arguments: WithdrawNaviArguments | [
2047
- version: RawTransactionArgument<string>,
2048
- liquidityPool: RawTransactionArgument<string>,
2049
- oracleConfig: RawTransactionArgument<string>,
2050
- priceOracle: RawTransactionArgument<string>,
2051
- supraOracleHolder: RawTransactionArgument<string>,
2052
- pythPriceInfo: RawTransactionArgument<string>,
2053
- feedAddress: RawTransactionArgument<string>,
2054
- storage: RawTransactionArgument<string>,
2055
- pool: RawTransactionArgument<string>,
2056
- asset: RawTransactionArgument<number>,
2057
- incentiveV2: RawTransactionArgument<string>,
2058
- incentiveV3: RawTransactionArgument<string>
2059
- ];
2060
- typeArguments: [string];
2061
- }
2062
- export declare function withdrawNavi(options: WithdrawNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
2063
- export interface RewardNaviArguments {
2064
- version: RawTransactionArgument<string>;
2065
- liquidityPool: RawTransactionArgument<string>;
2066
- storage: RawTransactionArgument<string>;
2067
- rewardFund: RawTransactionArgument<string>;
2068
- coinTypes: RawTransactionArgument<string[]>;
2069
- ruleIds: RawTransactionArgument<string[]>;
2070
- incentiveV3: RawTransactionArgument<string>;
2071
- }
2072
- export interface RewardNaviOptions {
2073
- package?: string;
2074
- arguments: RewardNaviArguments | [
2075
- version: RawTransactionArgument<string>,
2076
- liquidityPool: RawTransactionArgument<string>,
2077
- storage: RawTransactionArgument<string>,
2078
- rewardFund: RawTransactionArgument<string>,
2079
- coinTypes: RawTransactionArgument<string[]>,
2080
- ruleIds: RawTransactionArgument<string[]>,
2081
- incentiveV3: RawTransactionArgument<string>
2082
- ];
2083
- typeArguments: [string];
2084
- }
2085
- export declare function rewardNavi(options: RewardNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
2086
1633
  export interface BurnLp_Arguments {
2087
1634
  version: RawTransactionArgument<string>;
2088
1635
  registry: RawTransactionArgument<string>;
@@ -2288,27 +1835,6 @@ export interface GetBorrowRateDecimalOptions {
2288
1835
  arguments?: [];
2289
1836
  }
2290
1837
  export declare function getBorrowRateDecimal(options?: GetBorrowRateDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
2291
- export interface BurnLpArguments {
2292
- version: RawTransactionArgument<string>;
2293
- registry: RawTransactionArgument<string>;
2294
- index: RawTransactionArgument<number | bigint>;
2295
- treasuryCaps: RawTransactionArgument<string>;
2296
- oracle: RawTransactionArgument<string>;
2297
- coin: RawTransactionArgument<string>;
2298
- }
2299
- export interface BurnLpOptions {
2300
- package?: string;
2301
- arguments: BurnLpArguments | [
2302
- version: RawTransactionArgument<string>,
2303
- registry: RawTransactionArgument<string>,
2304
- index: RawTransactionArgument<number | bigint>,
2305
- treasuryCaps: RawTransactionArgument<string>,
2306
- oracle: RawTransactionArgument<string>,
2307
- coin: RawTransactionArgument<string>
2308
- ];
2309
- typeArguments: [string, string];
2310
- }
2311
- export declare function burnLp(options: BurnLpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
2312
1838
  export interface DeprecatedOptions {
2313
1839
  package?: string;
2314
1840
  arguments?: [];