@waterx/sdk 2.1.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.
- package/LICENSE +21 -0
- package/README.md +204 -0
- package/dist/src/client.d.ts +109 -0
- package/dist/src/client.js +197 -0
- package/dist/src/config.d.ts +229 -0
- package/dist/src/config.js +107 -0
- package/dist/src/constants.d.ts +64 -0
- package/dist/src/constants.js +71 -0
- package/dist/src/fetch.d.ts +144 -0
- package/dist/src/fetch.js +419 -0
- package/dist/src/generated/bucket_v2_framework/account.d.ts +107 -0
- package/dist/src/generated/bucket_v2_framework/account.js +129 -0
- package/dist/src/generated/bucket_v2_framework/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/bucket_v2_framework/deps/std/type_name.js +19 -0
- package/dist/src/generated/bucket_v2_framework/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/bucket_v2_framework/deps/sui/balance.js +14 -0
- package/dist/src/generated/bucket_v2_framework/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/bucket_v2_framework/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/bucket_v2_framework/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/bucket_v2_framework/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/bucket_v2_framework/double.d.ts +384 -0
- package/dist/src/generated/bucket_v2_framework/double.js +466 -0
- package/dist/src/generated/bucket_v2_framework/float.d.ts +364 -0
- package/dist/src/generated/bucket_v2_framework/float.js +440 -0
- package/dist/src/generated/bucket_v2_framework/liability.d.ts +197 -0
- package/dist/src/generated/bucket_v2_framework/liability.js +205 -0
- package/dist/src/generated/bucket_v2_framework/linked_table.d.ts +384 -0
- package/dist/src/generated/bucket_v2_framework/linked_table.js +382 -0
- package/dist/src/generated/bucket_v2_framework/sheet.d.ts +424 -0
- package/dist/src/generated/bucket_v2_framework/sheet.js +344 -0
- package/dist/src/generated/native_custody/custody_vault.d.ts +572 -0
- package/dist/src/generated/native_custody/custody_vault.js +483 -0
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/float.js +10 -0
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/liability.d.ts +11 -0
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/liability.js +13 -0
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/sheet.d.ts +49 -0
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/sheet.js +18 -0
- package/dist/src/generated/native_custody/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/native_custody/deps/std/type_name.js +19 -0
- package/dist/src/generated/native_custody/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/native_custody/deps/sui/balance.js +14 -0
- package/dist/src/generated/native_custody/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/native_custody/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/native_custody/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/native_custody/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/native_custody/events.d.ts +36 -0
- package/dist/src/generated/native_custody/events.js +36 -0
- package/dist/src/generated/pyth_sponsor_rule/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/pyth_sponsor_rule/deps/sui/balance.js +14 -0
- package/dist/src/generated/pyth_sponsor_rule/pyth_sponsor_rule.d.ts +68 -0
- package/dist/src/generated/pyth_sponsor_rule/pyth_sponsor_rule.js +74 -0
- package/dist/src/generated/utils/index.d.ts +30 -0
- package/dist/src/generated/utils/index.js +157 -0
- package/dist/src/generated/waterx_account/account.d.ts +1818 -0
- package/dist/src/generated/waterx_account/account.js +1723 -0
- package/dist/src/generated/waterx_account/deps/bucket_v2_framework/liability.d.ts +11 -0
- package/dist/src/generated/waterx_account/deps/bucket_v2_framework/liability.js +13 -0
- package/dist/src/generated/waterx_account/deps/bucket_v2_framework/sheet.d.ts +49 -0
- package/dist/src/generated/waterx_account/deps/bucket_v2_framework/sheet.js +18 -0
- package/dist/src/generated/waterx_account/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/waterx_account/deps/std/type_name.js +19 -0
- package/dist/src/generated/waterx_account/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/waterx_account/deps/sui/balance.js +14 -0
- package/dist/src/generated/waterx_account/deps/sui/object_table.d.ts +17 -0
- package/dist/src/generated/waterx_account/deps/sui/object_table.js +19 -0
- package/dist/src/generated/waterx_account/deps/sui/table.d.ts +29 -0
- package/dist/src/generated/waterx_account/deps/sui/table.js +31 -0
- package/dist/src/generated/waterx_account/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_account/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_account/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/waterx_account/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/waterx_account/direct_rule.d.ts +77 -0
- package/dist/src/generated/waterx_account/direct_rule.js +78 -0
- package/dist/src/generated/waterx_account/events.d.ts +180 -0
- package/dist/src/generated/waterx_account/events.js +156 -0
- package/dist/src/generated/waterx_account/version.d.ts +10 -0
- package/dist/src/generated/waterx_account/version.js +8 -0
- package/dist/src/generated/waterx_credit/credit_registry.d.ts +708 -0
- package/dist/src/generated/waterx_credit/credit_registry.js +658 -0
- package/dist/src/generated/waterx_credit/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/waterx_credit/deps/std/type_name.js +19 -0
- package/dist/src/generated/waterx_credit/deps/sui/table.d.ts +29 -0
- package/dist/src/generated/waterx_credit/deps/sui/table.js +31 -0
- package/dist/src/generated/waterx_credit/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_credit/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_credit/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/waterx_credit/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/waterx_credit/limited_supply.d.ts +107 -0
- package/dist/src/generated/waterx_credit/limited_supply.js +131 -0
- package/dist/src/generated/waterx_oracle/aggregator.d.ts +211 -0
- package/dist/src/generated/waterx_oracle/aggregator.js +213 -0
- package/dist/src/generated/waterx_oracle/collector.d.ts +119 -0
- package/dist/src/generated/waterx_oracle/collector.js +105 -0
- package/dist/src/generated/waterx_oracle/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/src/generated/waterx_oracle/deps/bucket_v2_framework/float.js +10 -0
- package/dist/src/generated/waterx_oracle/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/waterx_oracle/deps/std/type_name.js +19 -0
- package/dist/src/generated/waterx_oracle/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_oracle/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_oracle/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/waterx_oracle/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/waterx_oracle/oracle.d.ts +298 -0
- package/dist/src/generated/waterx_oracle/oracle.js +323 -0
- package/dist/src/generated/waterx_oracle/version.d.ts +10 -0
- package/dist/src/generated/waterx_oracle/version.js +8 -0
- package/dist/src/generated/waterx_perp/account_data.d.ts +269 -0
- package/dist/src/generated/waterx_perp/account_data.js +284 -0
- package/dist/src/generated/waterx_perp/admin.d.ts +19 -0
- package/dist/src/generated/waterx_perp/admin.js +22 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/double.d.ts +8 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/double.js +10 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/float.js +10 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/liability.d.ts +11 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/liability.js +13 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/linked_table.d.ts +8 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/linked_table.js +18 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/sheet.d.ts +49 -0
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/sheet.js +18 -0
- package/dist/src/generated/waterx_perp/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/waterx_perp/deps/std/type_name.js +19 -0
- package/dist/src/generated/waterx_perp/deps/sui/balance.d.ts +15 -0
- package/dist/src/generated/waterx_perp/deps/sui/balance.js +17 -0
- package/dist/src/generated/waterx_perp/deps/sui/coin.d.ts +14 -0
- package/dist/src/generated/waterx_perp/deps/sui/coin.js +15 -0
- package/dist/src/generated/waterx_perp/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_perp/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_perp/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/waterx_perp/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/waterx_perp/events.d.ts +1283 -0
- package/dist/src/generated/waterx_perp/events.js +1018 -0
- package/dist/src/generated/waterx_perp/global_config.d.ts +775 -0
- package/dist/src/generated/waterx_perp/global_config.js +836 -0
- package/dist/src/generated/waterx_perp/keyed_big_vector.d.ts +553 -0
- package/dist/src/generated/waterx_perp/keyed_big_vector.js +554 -0
- package/dist/src/generated/waterx_perp/lp_pool.d.ts +1648 -0
- package/dist/src/generated/waterx_perp/lp_pool.js +1521 -0
- package/dist/src/generated/waterx_perp/market_config.d.ts +715 -0
- package/dist/src/generated/waterx_perp/market_config.js +780 -0
- package/dist/src/generated/waterx_perp/math.d.ts +63 -0
- package/dist/src/generated/waterx_perp/math.js +64 -0
- package/dist/src/generated/waterx_perp/memo.d.ts +251 -0
- package/dist/src/generated/waterx_perp/memo.js +323 -0
- package/dist/src/generated/waterx_perp/order_book.d.ts +290 -0
- package/dist/src/generated/waterx_perp/order_book.js +329 -0
- package/dist/src/generated/waterx_perp/position.d.ts +1005 -0
- package/dist/src/generated/waterx_perp/position.js +1103 -0
- package/dist/src/generated/waterx_perp/request.d.ts +544 -0
- package/dist/src/generated/waterx_perp/request.js +541 -0
- package/dist/src/generated/waterx_perp/response.d.ts +247 -0
- package/dist/src/generated/waterx_perp/response.js +280 -0
- package/dist/src/generated/waterx_perp/trading.d.ts +2821 -0
- package/dist/src/generated/waterx_perp/trading.js +2372 -0
- package/dist/src/generated/waterx_perp/version.d.ts +10 -0
- package/dist/src/generated/waterx_perp/version.js +8 -0
- package/dist/src/generated/waterx_perp/witness.d.ts +18 -0
- package/dist/src/generated/waterx_perp/witness.js +21 -0
- package/dist/src/generated/waterx_perp_view/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/waterx_perp_view/deps/std/type_name.js +19 -0
- package/dist/src/generated/waterx_perp_view/view.d.ts +447 -0
- package/dist/src/generated/waterx_perp_view/view.js +414 -0
- package/dist/src/generated/waterx_pyth_rule/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_pyth_rule/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_pyth_rule/pyth_rule.d.ts +90 -0
- package/dist/src/generated/waterx_pyth_rule/pyth_rule.js +72 -0
- package/dist/src/generated/waterx_referral/deps/sui/table.d.ts +29 -0
- package/dist/src/generated/waterx_referral/deps/sui/table.js +31 -0
- package/dist/src/generated/waterx_referral/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/waterx_referral/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/waterx_referral/referral_table.d.ts +171 -0
- package/dist/src/generated/waterx_referral/referral_table.js +192 -0
- package/dist/src/generated/waterx_staking/deps/bucket_v2_framework/double.d.ts +8 -0
- package/dist/src/generated/waterx_staking/deps/bucket_v2_framework/double.js +10 -0
- package/dist/src/generated/waterx_staking/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/waterx_staking/deps/sui/balance.js +14 -0
- package/dist/src/generated/waterx_staking/deps/sui/table.d.ts +29 -0
- package/dist/src/generated/waterx_staking/deps/sui/table.js +31 -0
- package/dist/src/generated/waterx_staking/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/waterx_staking/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/waterx_staking/waterx_staking.d.ts +746 -0
- package/dist/src/generated/waterx_staking/waterx_staking.js +731 -0
- package/dist/src/generated/waterx_staking/witness.d.ts +16 -0
- package/dist/src/generated/waterx_staking/witness.js +18 -0
- package/dist/src/generated/withdrawal_queue/deps/bucket_v2_framework/linked_table.d.ts +8 -0
- package/dist/src/generated/withdrawal_queue/deps/bucket_v2_framework/linked_table.js +18 -0
- package/dist/src/generated/withdrawal_queue/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/withdrawal_queue/deps/std/type_name.js +19 -0
- package/dist/src/generated/withdrawal_queue/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/withdrawal_queue/deps/sui/balance.js +14 -0
- package/dist/src/generated/withdrawal_queue/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/withdrawal_queue/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/withdrawal_queue/withdrawal_queue.d.ts +483 -0
- package/dist/src/generated/withdrawal_queue/withdrawal_queue.js +480 -0
- package/dist/src/generated/wlp/wlp.d.ts +28 -0
- package/dist/src/generated/wlp/wlp.js +32 -0
- package/dist/src/generated/wormhole_bridge/deps/sui/table.d.ts +29 -0
- package/dist/src/generated/wormhole_bridge/deps/sui/table.js +31 -0
- package/dist/src/generated/wormhole_bridge/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/wormhole_bridge/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/wormhole_bridge/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/generated/wormhole_bridge/deps/sui/vec_set.js +19 -0
- package/dist/src/generated/wormhole_bridge/deps/wormhole_sdk/consumed_vaas.d.ts +12 -0
- package/dist/src/generated/wormhole_bridge/deps/wormhole_sdk/consumed_vaas.js +9 -0
- package/dist/src/generated/wormhole_bridge/deps/wormhole_sdk/emitter.d.ts +14 -0
- package/dist/src/generated/wormhole_bridge/deps/wormhole_sdk/emitter.js +16 -0
- package/dist/src/generated/wormhole_bridge/deps/wormhole_sdk/set.d.ts +16 -0
- package/dist/src/generated/wormhole_bridge/deps/wormhole_sdk/set.js +15 -0
- package/dist/src/generated/wormhole_bridge/events.d.ts +32 -0
- package/dist/src/generated/wormhole_bridge/events.js +28 -0
- package/dist/src/generated/wormhole_bridge/wormhole_bridge.d.ts +498 -0
- package/dist/src/generated/wormhole_bridge/wormhole_bridge.js +494 -0
- package/dist/src/index.d.ts +28 -0
- package/dist/src/index.js +34 -0
- package/dist/src/tx-builders.d.ts +242 -0
- package/dist/src/tx-builders.js +320 -0
- package/dist/src/user/account.d.ts +129 -0
- package/dist/src/user/account.js +166 -0
- package/dist/src/user/credit.d.ts +135 -0
- package/dist/src/user/credit.js +255 -0
- package/dist/src/user/custody.d.ts +71 -0
- package/dist/src/user/custody.js +112 -0
- package/dist/src/user/index.d.ts +8 -0
- package/dist/src/user/index.js +8 -0
- package/dist/src/user/order.d.ts +89 -0
- package/dist/src/user/order.js +134 -0
- package/dist/src/user/referral.d.ts +21 -0
- package/dist/src/user/referral.js +41 -0
- package/dist/src/user/staking.d.ts +54 -0
- package/dist/src/user/staking.js +109 -0
- package/dist/src/user/trading.d.ts +119 -0
- package/dist/src/user/trading.js +262 -0
- package/dist/src/user/wlp.d.ts +58 -0
- package/dist/src/user/wlp.js +99 -0
- package/dist/src/utils/account-request.d.ts +9 -0
- package/dist/src/utils/account-request.js +17 -0
- package/dist/src/utils/config.d.ts +11 -0
- package/dist/src/utils/config.js +15 -0
- package/dist/src/utils/math.d.ts +201 -0
- package/dist/src/utils/math.js +343 -0
- package/dist/src/utils/pyth.d.ts +89 -0
- package/dist/src/utils/pyth.js +316 -0
- package/dist/src/utils/wormhole.d.ts +86 -0
- package/dist/src/utils/wormhole.js +154 -0
- package/package.json +66 -0
|
@@ -0,0 +1,1648 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* WLP (WaterX Liquidity Pool) — counterparty to all traders. Manages liquidity
|
|
6
|
+
* pools, token pools, minting/burning WLP, and borrowing. Mint is instant; redeem
|
|
7
|
+
* is T+1.
|
|
8
|
+
*/
|
|
9
|
+
import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
10
|
+
import { type Transaction } from '@mysten/sui/transactions';
|
|
11
|
+
export declare const TokenPoolInfo: MoveStruct<{
|
|
12
|
+
/** Token type. */
|
|
13
|
+
token_type: MoveStruct<{
|
|
14
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
15
|
+
}, "std::type_name::TypeName">;
|
|
16
|
+
/**
|
|
17
|
+
* Oracle ticker bound to this token type. Set at `add_token` time and immutable
|
|
18
|
+
* thereafter. Every per-token price lookup (`mint_wlp`, `settle_redeem`,
|
|
19
|
+
* `update_token_value`, perp collateral pricing) goes through this field — callers
|
|
20
|
+
* do _not_ supply a ticker string, eliminating the "lie about the asset I'm
|
|
21
|
+
* pricing" attack class.
|
|
22
|
+
*/
|
|
23
|
+
ticker: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
24
|
+
/** Token decimal. */
|
|
25
|
+
token_decimal: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
26
|
+
/** Target weight in bps (e.g., 5000 = 50%). */
|
|
27
|
+
target_weight_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
28
|
+
/** Mint fee in bps. */
|
|
29
|
+
mint_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
30
|
+
/** Burn fee in bps. */
|
|
31
|
+
burn_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
32
|
+
/** Max capacity. */
|
|
33
|
+
max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
34
|
+
/** Min deposit. */
|
|
35
|
+
min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
36
|
+
/** Per-interval borrow rate at utilization 0 (Float, 1e9 scale). */
|
|
37
|
+
basic_borrow_rate_0: MoveStruct<{
|
|
38
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
39
|
+
}, "bucket_v2_framework::float::Float">;
|
|
40
|
+
/** Per-interval borrow rate at utilization threshold_0 (Float). */
|
|
41
|
+
basic_borrow_rate_1: MoveStruct<{
|
|
42
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
43
|
+
}, "bucket_v2_framework::float::Float">;
|
|
44
|
+
/** Per-interval borrow rate at utilization threshold_1 (Float). */
|
|
45
|
+
basic_borrow_rate_2: MoveStruct<{
|
|
46
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
47
|
+
}, "bucket_v2_framework::float::Float">;
|
|
48
|
+
utilization_threshold_0_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
49
|
+
utilization_threshold_1_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
50
|
+
borrow_interval_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
51
|
+
max_reserve_ratio_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
52
|
+
/** Liquidity amount in token units. */
|
|
53
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
54
|
+
/** Value in USD. */
|
|
55
|
+
value_usd: MoveStruct<{
|
|
56
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
57
|
+
}, "bucket_v2_framework::float::Float">;
|
|
58
|
+
/** Reserved amount for open positions. */
|
|
59
|
+
reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
60
|
+
/** Last borrow rate update timestamp. */
|
|
61
|
+
last_borrow_timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
62
|
+
/** Cumulative borrow rate as Float (1e9 scale). */
|
|
63
|
+
cumulative_borrow_rate: MoveStruct<{
|
|
64
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
65
|
+
}, "bucket_v2_framework::float::Float">;
|
|
66
|
+
/** Last timestamp when this token price was refreshed via oracle. */
|
|
67
|
+
last_price_refresh_timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
68
|
+
}, "@waterx/perp::lp_pool::TokenPoolInfo">;
|
|
69
|
+
export declare const WlpPool: MoveStruct<{
|
|
70
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
71
|
+
/** Whether this pool is active. */
|
|
72
|
+
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
73
|
+
/** Allowed protocol versions (admin-managed). */
|
|
74
|
+
allowed_versions: MoveStruct<any, any>;
|
|
75
|
+
/** LP token treasury cap. */
|
|
76
|
+
lp_treasury_cap: MoveStruct<{
|
|
77
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
78
|
+
total_supply: MoveStruct<{
|
|
79
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
80
|
+
}, "0x2::balance::Supply<phantom T>">;
|
|
81
|
+
}, "0x2::coin::TreasuryCap<phantom T>">;
|
|
82
|
+
/** LP token decimal. */
|
|
83
|
+
lp_decimal: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
84
|
+
/** Supported token types. */
|
|
85
|
+
token_types: import("@mysten/sui/bcs").BcsType<{
|
|
86
|
+
name: string;
|
|
87
|
+
}[], Iterable<{
|
|
88
|
+
name: string;
|
|
89
|
+
}> & {
|
|
90
|
+
length: number;
|
|
91
|
+
}, string>;
|
|
92
|
+
/** Token pool configs and states. */
|
|
93
|
+
token_pools: import("@mysten/sui/bcs").BcsType<{
|
|
94
|
+
token_type: {
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
ticker: string;
|
|
98
|
+
token_decimal: number;
|
|
99
|
+
target_weight_bps: string;
|
|
100
|
+
mint_fee_bps: string;
|
|
101
|
+
burn_fee_bps: string;
|
|
102
|
+
max_capacity: string;
|
|
103
|
+
min_deposit: string;
|
|
104
|
+
basic_borrow_rate_0: {
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
basic_borrow_rate_1: {
|
|
108
|
+
value: string;
|
|
109
|
+
};
|
|
110
|
+
basic_borrow_rate_2: {
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
113
|
+
utilization_threshold_0_bps: string;
|
|
114
|
+
utilization_threshold_1_bps: string;
|
|
115
|
+
borrow_interval_ms: string;
|
|
116
|
+
max_reserve_ratio_bps: string;
|
|
117
|
+
liquidity_amount: string;
|
|
118
|
+
value_usd: {
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
121
|
+
reserved_amount: string;
|
|
122
|
+
last_borrow_timestamp: string;
|
|
123
|
+
cumulative_borrow_rate: {
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
126
|
+
last_price_refresh_timestamp: string;
|
|
127
|
+
}[], Iterable<{
|
|
128
|
+
token_type: {
|
|
129
|
+
name: string;
|
|
130
|
+
};
|
|
131
|
+
ticker: string;
|
|
132
|
+
token_decimal: number;
|
|
133
|
+
target_weight_bps: string | number | bigint;
|
|
134
|
+
mint_fee_bps: string | number | bigint;
|
|
135
|
+
burn_fee_bps: string | number | bigint;
|
|
136
|
+
max_capacity: string | number | bigint;
|
|
137
|
+
min_deposit: string | number | bigint;
|
|
138
|
+
basic_borrow_rate_0: {
|
|
139
|
+
value: string | number | bigint;
|
|
140
|
+
};
|
|
141
|
+
basic_borrow_rate_1: {
|
|
142
|
+
value: string | number | bigint;
|
|
143
|
+
};
|
|
144
|
+
basic_borrow_rate_2: {
|
|
145
|
+
value: string | number | bigint;
|
|
146
|
+
};
|
|
147
|
+
utilization_threshold_0_bps: string | number | bigint;
|
|
148
|
+
utilization_threshold_1_bps: string | number | bigint;
|
|
149
|
+
borrow_interval_ms: string | number | bigint;
|
|
150
|
+
max_reserve_ratio_bps: string | number | bigint;
|
|
151
|
+
liquidity_amount: string | number | bigint;
|
|
152
|
+
value_usd: {
|
|
153
|
+
value: string | number | bigint;
|
|
154
|
+
};
|
|
155
|
+
reserved_amount: string | number | bigint;
|
|
156
|
+
last_borrow_timestamp: string | number | bigint;
|
|
157
|
+
cumulative_borrow_rate: {
|
|
158
|
+
value: string | number | bigint;
|
|
159
|
+
};
|
|
160
|
+
last_price_refresh_timestamp: string | number | bigint;
|
|
161
|
+
}> & {
|
|
162
|
+
length: number;
|
|
163
|
+
}, string>;
|
|
164
|
+
/** Total value locked in USD (Float). */
|
|
165
|
+
tvl_usd: MoveStruct<{
|
|
166
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
167
|
+
}, "bucket_v2_framework::float::Float">;
|
|
168
|
+
/** Redeem requests. */
|
|
169
|
+
redeem_requests: MoveStruct<{
|
|
170
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
171
|
+
key_type: MoveStruct<{
|
|
172
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
173
|
+
}, "std::type_name::TypeName">;
|
|
174
|
+
value_type: MoveStruct<{
|
|
175
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
176
|
+
}, "std::type_name::TypeName">;
|
|
177
|
+
slice_idx: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
|
|
178
|
+
slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
179
|
+
length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
180
|
+
}, "@waterx/perp::keyed_big_vector::KeyedBigVector">;
|
|
181
|
+
/** Next redeem request ID. */
|
|
182
|
+
next_redeem_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
183
|
+
}, "@waterx/perp::lp_pool::WlpPool<phantom LP_TOKEN>">;
|
|
184
|
+
export declare const RedeemRequest: MoveStruct<{
|
|
185
|
+
/** Wxa account ID to repay into at settlement. */
|
|
186
|
+
recipient_account_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
187
|
+
/** LP balance held pending settlement. */
|
|
188
|
+
lp_balance: MoveStruct<{
|
|
189
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
190
|
+
}, "0x2::balance::Balance<phantom T>">;
|
|
191
|
+
/** Requested token type to receive. */
|
|
192
|
+
token_type: MoveStruct<{
|
|
193
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
194
|
+
}, "std::type_name::TypeName">;
|
|
195
|
+
/** Request timestamp. */
|
|
196
|
+
request_timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
197
|
+
}, "@waterx/perp::lp_pool::RedeemRequest<phantom LP_TOKEN>">;
|
|
198
|
+
export declare const WlpAum: MoveStruct<{
|
|
199
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
200
|
+
/** WLP pool this AUM object prices. */
|
|
201
|
+
pool_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
202
|
+
/** Registered market PnL contributions keyed by market ID. */
|
|
203
|
+
market_contributions: MoveStruct<{
|
|
204
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
205
|
+
key_type: MoveStruct<{
|
|
206
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
207
|
+
}, "std::type_name::TypeName">;
|
|
208
|
+
value_type: MoveStruct<{
|
|
209
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
210
|
+
}, "std::type_name::TypeName">;
|
|
211
|
+
slice_idx: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
|
|
212
|
+
slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
213
|
+
length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
214
|
+
}, "@waterx/perp::keyed_big_vector::KeyedBigVector">;
|
|
215
|
+
/** Sum of registered markets where traders are in profit. */
|
|
216
|
+
total_trader_profit_usd: MoveStruct<{
|
|
217
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
218
|
+
}, "bucket_v2_framework::float::Float">;
|
|
219
|
+
/** Sum of registered markets where traders are in loss. */
|
|
220
|
+
total_trader_loss_usd: MoveStruct<{
|
|
221
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
222
|
+
}, "bucket_v2_framework::float::Float">;
|
|
223
|
+
}, "@waterx/perp::lp_pool::WlpAum<phantom LP_TOKEN>">;
|
|
224
|
+
export declare const AumMarketContribution: MoveStruct<{
|
|
225
|
+
/** Whether the market's aggregate unrealized PnL is trader profit. */
|
|
226
|
+
is_trader_profit: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
227
|
+
/** Absolute aggregate unrealized PnL in USD. */
|
|
228
|
+
pnl_usd: MoveStruct<{
|
|
229
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
230
|
+
}, "bucket_v2_framework::float::Float">;
|
|
231
|
+
/** Timestamp of the oracle price used to refresh this contribution. */
|
|
232
|
+
last_refresh_timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
233
|
+
}, "@waterx/perp::lp_pool::AumMarketContribution">;
|
|
234
|
+
export interface AssertWxaProtocolPermArguments {
|
|
235
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
236
|
+
accountId: RawTransactionArgument<string>;
|
|
237
|
+
sender: RawTransactionArgument<string>;
|
|
238
|
+
permission: RawTransactionArgument<number>;
|
|
239
|
+
}
|
|
240
|
+
export interface AssertWxaProtocolPermOptions {
|
|
241
|
+
package?: string;
|
|
242
|
+
arguments: AssertWxaProtocolPermArguments | [
|
|
243
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
244
|
+
accountId: RawTransactionArgument<string>,
|
|
245
|
+
sender: RawTransactionArgument<string>,
|
|
246
|
+
permission: RawTransactionArgument<number>
|
|
247
|
+
];
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Pre-take permission check for WLP actions. Uses `WaterXPerp` as the permission
|
|
251
|
+
* scope (shared witness across the perp's wxa surface). `PERM_MINT_WLP` and
|
|
252
|
+
* `PERM_REDEEM_WLP` are the relevant bits. Must run before any `wxa_account::take`
|
|
253
|
+
* so a failed auth doesn't drain.
|
|
254
|
+
*/
|
|
255
|
+
export declare function assertWxaProtocolPerm(options: AssertWxaProtocolPermOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
256
|
+
export interface CreatePoolArguments {
|
|
257
|
+
Cap: RawTransactionArgument<string>;
|
|
258
|
+
lpTreasuryCap: RawTransactionArgument<string>;
|
|
259
|
+
lpDecimal: RawTransactionArgument<number>;
|
|
260
|
+
}
|
|
261
|
+
export interface CreatePoolOptions {
|
|
262
|
+
package?: string;
|
|
263
|
+
arguments: CreatePoolArguments | [
|
|
264
|
+
Cap: RawTransactionArgument<string>,
|
|
265
|
+
lpTreasuryCap: RawTransactionArgument<string>,
|
|
266
|
+
lpDecimal: RawTransactionArgument<number>
|
|
267
|
+
];
|
|
268
|
+
typeArguments: [
|
|
269
|
+
string
|
|
270
|
+
];
|
|
271
|
+
}
|
|
272
|
+
/** Creates a new WLP pool (AdminCap-gated). */
|
|
273
|
+
export declare function createPool(options: CreatePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
274
|
+
export interface CreateAumArguments {
|
|
275
|
+
Cap: RawTransactionArgument<string>;
|
|
276
|
+
pool: RawTransactionArgument<string>;
|
|
277
|
+
}
|
|
278
|
+
export interface CreateAumOptions {
|
|
279
|
+
package?: string;
|
|
280
|
+
arguments: CreateAumArguments | [
|
|
281
|
+
Cap: RawTransactionArgument<string>,
|
|
282
|
+
pool: RawTransactionArgument<string>
|
|
283
|
+
];
|
|
284
|
+
typeArguments: [
|
|
285
|
+
string
|
|
286
|
+
];
|
|
287
|
+
}
|
|
288
|
+
/** Creates a pool-level AUM object used for multi-market WLP share pricing. */
|
|
289
|
+
export declare function createAum(options: CreateAumOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
290
|
+
export interface AssertVersionArguments {
|
|
291
|
+
wlpPool: RawTransactionArgument<string>;
|
|
292
|
+
}
|
|
293
|
+
export interface AssertVersionOptions {
|
|
294
|
+
package?: string;
|
|
295
|
+
arguments: AssertVersionArguments | [
|
|
296
|
+
wlpPool: RawTransactionArgument<string>
|
|
297
|
+
];
|
|
298
|
+
typeArguments: [
|
|
299
|
+
string
|
|
300
|
+
];
|
|
301
|
+
}
|
|
302
|
+
export declare function assertVersion(options: AssertVersionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
303
|
+
export interface AllowVersionArguments {
|
|
304
|
+
wlpPool: RawTransactionArgument<string>;
|
|
305
|
+
_: RawTransactionArgument<string>;
|
|
306
|
+
v: RawTransactionArgument<number>;
|
|
307
|
+
}
|
|
308
|
+
export interface AllowVersionOptions {
|
|
309
|
+
package?: string;
|
|
310
|
+
arguments: AllowVersionArguments | [
|
|
311
|
+
wlpPool: RawTransactionArgument<string>,
|
|
312
|
+
_: RawTransactionArgument<string>,
|
|
313
|
+
v: RawTransactionArgument<number>
|
|
314
|
+
];
|
|
315
|
+
typeArguments: [
|
|
316
|
+
string
|
|
317
|
+
];
|
|
318
|
+
}
|
|
319
|
+
export declare function allowVersion(options: AllowVersionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
320
|
+
export interface DisallowVersionArguments {
|
|
321
|
+
wlpPool: RawTransactionArgument<string>;
|
|
322
|
+
_: RawTransactionArgument<string>;
|
|
323
|
+
v: RawTransactionArgument<number>;
|
|
324
|
+
}
|
|
325
|
+
export interface DisallowVersionOptions {
|
|
326
|
+
package?: string;
|
|
327
|
+
arguments: DisallowVersionArguments | [
|
|
328
|
+
wlpPool: RawTransactionArgument<string>,
|
|
329
|
+
_: RawTransactionArgument<string>,
|
|
330
|
+
v: RawTransactionArgument<number>
|
|
331
|
+
];
|
|
332
|
+
typeArguments: [
|
|
333
|
+
string
|
|
334
|
+
];
|
|
335
|
+
}
|
|
336
|
+
export declare function disallowVersion(options: DisallowVersionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
337
|
+
export interface AddTokenArguments {
|
|
338
|
+
pool: RawTransactionArgument<string>;
|
|
339
|
+
Cap: RawTransactionArgument<string>;
|
|
340
|
+
ticker: RawTransactionArgument<string>;
|
|
341
|
+
tokenDecimal: RawTransactionArgument<number>;
|
|
342
|
+
targetWeightBps: RawTransactionArgument<number | bigint>;
|
|
343
|
+
mintFeeBps: RawTransactionArgument<number | bigint>;
|
|
344
|
+
burnFeeBps: RawTransactionArgument<number | bigint>;
|
|
345
|
+
maxCapacity: RawTransactionArgument<number | bigint>;
|
|
346
|
+
minDeposit: RawTransactionArgument<number | bigint>;
|
|
347
|
+
basicBorrowRate_0: RawTransactionArgument<number | bigint>;
|
|
348
|
+
basicBorrowRate_1: RawTransactionArgument<number | bigint>;
|
|
349
|
+
basicBorrowRate_2: RawTransactionArgument<number | bigint>;
|
|
350
|
+
utilizationThreshold_0Bps: RawTransactionArgument<number | bigint>;
|
|
351
|
+
utilizationThreshold_1Bps: RawTransactionArgument<number | bigint>;
|
|
352
|
+
borrowIntervalMs: RawTransactionArgument<number | bigint>;
|
|
353
|
+
maxReserveRatioBps: RawTransactionArgument<number | bigint>;
|
|
354
|
+
}
|
|
355
|
+
export interface AddTokenOptions {
|
|
356
|
+
package?: string;
|
|
357
|
+
arguments: AddTokenArguments | [
|
|
358
|
+
pool: RawTransactionArgument<string>,
|
|
359
|
+
Cap: RawTransactionArgument<string>,
|
|
360
|
+
ticker: RawTransactionArgument<string>,
|
|
361
|
+
tokenDecimal: RawTransactionArgument<number>,
|
|
362
|
+
targetWeightBps: RawTransactionArgument<number | bigint>,
|
|
363
|
+
mintFeeBps: RawTransactionArgument<number | bigint>,
|
|
364
|
+
burnFeeBps: RawTransactionArgument<number | bigint>,
|
|
365
|
+
maxCapacity: RawTransactionArgument<number | bigint>,
|
|
366
|
+
minDeposit: RawTransactionArgument<number | bigint>,
|
|
367
|
+
basicBorrowRate_0: RawTransactionArgument<number | bigint>,
|
|
368
|
+
basicBorrowRate_1: RawTransactionArgument<number | bigint>,
|
|
369
|
+
basicBorrowRate_2: RawTransactionArgument<number | bigint>,
|
|
370
|
+
utilizationThreshold_0Bps: RawTransactionArgument<number | bigint>,
|
|
371
|
+
utilizationThreshold_1Bps: RawTransactionArgument<number | bigint>,
|
|
372
|
+
borrowIntervalMs: RawTransactionArgument<number | bigint>,
|
|
373
|
+
maxReserveRatioBps: RawTransactionArgument<number | bigint>
|
|
374
|
+
];
|
|
375
|
+
typeArguments: [
|
|
376
|
+
string,
|
|
377
|
+
string
|
|
378
|
+
];
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Adds a supported token to the pool. `basic_borrow_rate_0/1/2` are scaled Float
|
|
382
|
+
* values (1e9 scale).
|
|
383
|
+
*/
|
|
384
|
+
export declare function addToken(options: AddTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
385
|
+
export interface UpdateTokenPoolConfigArguments {
|
|
386
|
+
pool: RawTransactionArgument<string>;
|
|
387
|
+
Cap: RawTransactionArgument<string>;
|
|
388
|
+
targetWeightBps: RawTransactionArgument<number | bigint>;
|
|
389
|
+
mintFeeBps: RawTransactionArgument<number | bigint>;
|
|
390
|
+
burnFeeBps: RawTransactionArgument<number | bigint>;
|
|
391
|
+
maxCapacity: RawTransactionArgument<number | bigint>;
|
|
392
|
+
minDeposit: RawTransactionArgument<number | bigint>;
|
|
393
|
+
basicBorrowRate_0: RawTransactionArgument<number | bigint>;
|
|
394
|
+
basicBorrowRate_1: RawTransactionArgument<number | bigint>;
|
|
395
|
+
basicBorrowRate_2: RawTransactionArgument<number | bigint>;
|
|
396
|
+
utilizationThreshold_0Bps: RawTransactionArgument<number | bigint>;
|
|
397
|
+
utilizationThreshold_1Bps: RawTransactionArgument<number | bigint>;
|
|
398
|
+
borrowIntervalMs: RawTransactionArgument<number | bigint>;
|
|
399
|
+
maxReserveRatioBps: RawTransactionArgument<number | bigint>;
|
|
400
|
+
}
|
|
401
|
+
export interface UpdateTokenPoolConfigOptions {
|
|
402
|
+
package?: string;
|
|
403
|
+
arguments: UpdateTokenPoolConfigArguments | [
|
|
404
|
+
pool: RawTransactionArgument<string>,
|
|
405
|
+
Cap: RawTransactionArgument<string>,
|
|
406
|
+
targetWeightBps: RawTransactionArgument<number | bigint>,
|
|
407
|
+
mintFeeBps: RawTransactionArgument<number | bigint>,
|
|
408
|
+
burnFeeBps: RawTransactionArgument<number | bigint>,
|
|
409
|
+
maxCapacity: RawTransactionArgument<number | bigint>,
|
|
410
|
+
minDeposit: RawTransactionArgument<number | bigint>,
|
|
411
|
+
basicBorrowRate_0: RawTransactionArgument<number | bigint>,
|
|
412
|
+
basicBorrowRate_1: RawTransactionArgument<number | bigint>,
|
|
413
|
+
basicBorrowRate_2: RawTransactionArgument<number | bigint>,
|
|
414
|
+
utilizationThreshold_0Bps: RawTransactionArgument<number | bigint>,
|
|
415
|
+
utilizationThreshold_1Bps: RawTransactionArgument<number | bigint>,
|
|
416
|
+
borrowIntervalMs: RawTransactionArgument<number | bigint>,
|
|
417
|
+
maxReserveRatioBps: RawTransactionArgument<number | bigint>
|
|
418
|
+
];
|
|
419
|
+
typeArguments: [
|
|
420
|
+
string,
|
|
421
|
+
string
|
|
422
|
+
];
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Updates configuration for an existing token pool (AdminCap-gated). Does not
|
|
426
|
+
* modify state fields (liquidity, value, reserved, borrow state).
|
|
427
|
+
*/
|
|
428
|
+
export declare function updateTokenPoolConfig(options: UpdateTokenPoolConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
429
|
+
export interface MintWlpArguments {
|
|
430
|
+
pool: RawTransactionArgument<string>;
|
|
431
|
+
globalConfig: RawTransactionArgument<string>;
|
|
432
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
433
|
+
aum: RawTransactionArgument<string>;
|
|
434
|
+
senderRequest: RawTransactionArgument<string>;
|
|
435
|
+
accountId: RawTransactionArgument<string>;
|
|
436
|
+
depositAmount: RawTransactionArgument<number | bigint>;
|
|
437
|
+
minLpAmount: RawTransactionArgument<number | bigint>;
|
|
438
|
+
oracle: RawTransactionArgument<string>;
|
|
439
|
+
}
|
|
440
|
+
export interface MintWlpOptions {
|
|
441
|
+
package?: string;
|
|
442
|
+
arguments: MintWlpArguments | [
|
|
443
|
+
pool: RawTransactionArgument<string>,
|
|
444
|
+
globalConfig: RawTransactionArgument<string>,
|
|
445
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
446
|
+
aum: RawTransactionArgument<string>,
|
|
447
|
+
senderRequest: RawTransactionArgument<string>,
|
|
448
|
+
accountId: RawTransactionArgument<string>,
|
|
449
|
+
depositAmount: RawTransactionArgument<number | bigint>,
|
|
450
|
+
minLpAmount: RawTransactionArgument<number | bigint>,
|
|
451
|
+
oracle: RawTransactionArgument<string>
|
|
452
|
+
];
|
|
453
|
+
typeArguments: [
|
|
454
|
+
string,
|
|
455
|
+
string
|
|
456
|
+
];
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Mints WLP by taking `deposit_amount` of `TOKEN` from the caller's wxa stored
|
|
460
|
+
* balance, pricing against AUM-adjusted TVL, and putting the minted WLP back into
|
|
461
|
+
* the same wxa account. Returns the minted `lp_amount` (also emitted on
|
|
462
|
+
* `WlpMinted`).
|
|
463
|
+
*/
|
|
464
|
+
export declare function mintWlp(options: MintWlpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
465
|
+
export interface RequestRedeemArguments {
|
|
466
|
+
pool: RawTransactionArgument<string>;
|
|
467
|
+
globalConfig: RawTransactionArgument<string>;
|
|
468
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
469
|
+
senderRequest: RawTransactionArgument<string>;
|
|
470
|
+
accountId: RawTransactionArgument<string>;
|
|
471
|
+
lpAmount: RawTransactionArgument<number | bigint>;
|
|
472
|
+
}
|
|
473
|
+
export interface RequestRedeemOptions {
|
|
474
|
+
package?: string;
|
|
475
|
+
arguments: RequestRedeemArguments | [
|
|
476
|
+
pool: RawTransactionArgument<string>,
|
|
477
|
+
globalConfig: RawTransactionArgument<string>,
|
|
478
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
479
|
+
senderRequest: RawTransactionArgument<string>,
|
|
480
|
+
accountId: RawTransactionArgument<string>,
|
|
481
|
+
lpAmount: RawTransactionArgument<number | bigint>
|
|
482
|
+
];
|
|
483
|
+
typeArguments: [
|
|
484
|
+
string,
|
|
485
|
+
string
|
|
486
|
+
];
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Enqueues a WLP redeem (T+1 settlement) by taking `lp_amount` of `LP_TOKEN` from
|
|
490
|
+
* the caller's wxa stored balance into a pending `RedeemRequest`. Returns the
|
|
491
|
+
* `request_id`. Settlement (via `settle_redeem`) and cancellation (via
|
|
492
|
+
* `cancel_redeem`) repay the proceeds / WLP back into the same wxa account.
|
|
493
|
+
*/
|
|
494
|
+
export declare function requestRedeem(options: RequestRedeemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
495
|
+
export interface MintWlpWithPricingTvlArguments {
|
|
496
|
+
pool: RawTransactionArgument<string>;
|
|
497
|
+
globalConfig: RawTransactionArgument<string>;
|
|
498
|
+
deposit: RawTransactionArgument<string>;
|
|
499
|
+
oracle: RawTransactionArgument<string>;
|
|
500
|
+
ticker: RawTransactionArgument<string>;
|
|
501
|
+
pricingTvlUsd: RawTransactionArgument<string>;
|
|
502
|
+
minLpAmount: RawTransactionArgument<number | bigint>;
|
|
503
|
+
accountId: RawTransactionArgument<string>;
|
|
504
|
+
}
|
|
505
|
+
export interface MintWlpWithPricingTvlOptions {
|
|
506
|
+
package?: string;
|
|
507
|
+
arguments: MintWlpWithPricingTvlArguments | [
|
|
508
|
+
pool: RawTransactionArgument<string>,
|
|
509
|
+
globalConfig: RawTransactionArgument<string>,
|
|
510
|
+
deposit: RawTransactionArgument<string>,
|
|
511
|
+
oracle: RawTransactionArgument<string>,
|
|
512
|
+
ticker: RawTransactionArgument<string>,
|
|
513
|
+
pricingTvlUsd: RawTransactionArgument<string>,
|
|
514
|
+
minLpAmount: RawTransactionArgument<number | bigint>,
|
|
515
|
+
accountId: RawTransactionArgument<string>
|
|
516
|
+
];
|
|
517
|
+
typeArguments: [
|
|
518
|
+
string,
|
|
519
|
+
string
|
|
520
|
+
];
|
|
521
|
+
}
|
|
522
|
+
export declare function mintWlpWithPricingTvl(options: MintWlpWithPricingTvlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
523
|
+
export interface DoRequestRedeemArguments {
|
|
524
|
+
pool: RawTransactionArgument<string>;
|
|
525
|
+
globalConfig: RawTransactionArgument<string>;
|
|
526
|
+
recipientAccountId: RawTransactionArgument<string>;
|
|
527
|
+
lpBalance: RawTransactionArgument<string>;
|
|
528
|
+
expectedLpAmount: RawTransactionArgument<number | bigint>;
|
|
529
|
+
}
|
|
530
|
+
export interface DoRequestRedeemOptions {
|
|
531
|
+
package?: string;
|
|
532
|
+
arguments: DoRequestRedeemArguments | [
|
|
533
|
+
pool: RawTransactionArgument<string>,
|
|
534
|
+
globalConfig: RawTransactionArgument<string>,
|
|
535
|
+
recipientAccountId: RawTransactionArgument<string>,
|
|
536
|
+
lpBalance: RawTransactionArgument<string>,
|
|
537
|
+
expectedLpAmount: RawTransactionArgument<number | bigint>
|
|
538
|
+
];
|
|
539
|
+
typeArguments: [
|
|
540
|
+
string,
|
|
541
|
+
string
|
|
542
|
+
];
|
|
543
|
+
}
|
|
544
|
+
export declare function doRequestRedeem(options: DoRequestRedeemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
545
|
+
export interface CancelRedeemArguments {
|
|
546
|
+
pool: RawTransactionArgument<string>;
|
|
547
|
+
globalConfig: RawTransactionArgument<string>;
|
|
548
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
549
|
+
senderRequest: RawTransactionArgument<string>;
|
|
550
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
551
|
+
}
|
|
552
|
+
export interface CancelRedeemOptions {
|
|
553
|
+
package?: string;
|
|
554
|
+
arguments: CancelRedeemArguments | [
|
|
555
|
+
pool: RawTransactionArgument<string>,
|
|
556
|
+
globalConfig: RawTransactionArgument<string>,
|
|
557
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
558
|
+
senderRequest: RawTransactionArgument<string>,
|
|
559
|
+
requestId: RawTransactionArgument<number | bigint>
|
|
560
|
+
];
|
|
561
|
+
typeArguments: [
|
|
562
|
+
string
|
|
563
|
+
];
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Cancels a pending WLP redeem request. Caller must hold `PERM_REDEEM_WLP` on the
|
|
567
|
+
* recipient wxa account (checked under the shared `WaterXPerp` permission scope).
|
|
568
|
+
* The escrowed WLP is put back into the recipient account.
|
|
569
|
+
*/
|
|
570
|
+
export declare function cancelRedeem(options: CancelRedeemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
571
|
+
export interface RejectRedeemByAdminArguments {
|
|
572
|
+
pool: RawTransactionArgument<string>;
|
|
573
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
574
|
+
Cap: RawTransactionArgument<string>;
|
|
575
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
576
|
+
}
|
|
577
|
+
export interface RejectRedeemByAdminOptions {
|
|
578
|
+
package?: string;
|
|
579
|
+
arguments: RejectRedeemByAdminArguments | [
|
|
580
|
+
pool: RawTransactionArgument<string>,
|
|
581
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
582
|
+
Cap: RawTransactionArgument<string>,
|
|
583
|
+
requestId: RawTransactionArgument<number | bigint>
|
|
584
|
+
];
|
|
585
|
+
typeArguments: [
|
|
586
|
+
string
|
|
587
|
+
];
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Rejects a pending WLP redeem request as admin and repays the LP back to the
|
|
591
|
+
* original recipient's wxa account.
|
|
592
|
+
*/
|
|
593
|
+
export declare function rejectRedeemByAdmin(options: RejectRedeemByAdminOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
594
|
+
export interface RejectRedeemByRedeemOperatorArguments {
|
|
595
|
+
pool: RawTransactionArgument<string>;
|
|
596
|
+
globalConfig: RawTransactionArgument<string>;
|
|
597
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
598
|
+
operatorRequest: RawTransactionArgument<string>;
|
|
599
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
600
|
+
}
|
|
601
|
+
export interface RejectRedeemByRedeemOperatorOptions {
|
|
602
|
+
package?: string;
|
|
603
|
+
arguments: RejectRedeemByRedeemOperatorArguments | [
|
|
604
|
+
pool: RawTransactionArgument<string>,
|
|
605
|
+
globalConfig: RawTransactionArgument<string>,
|
|
606
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
607
|
+
operatorRequest: RawTransactionArgument<string>,
|
|
608
|
+
requestId: RawTransactionArgument<number | bigint>
|
|
609
|
+
];
|
|
610
|
+
typeArguments: [
|
|
611
|
+
string
|
|
612
|
+
];
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Rejects a pending WLP redeem request as redeem operator and repays the LP back
|
|
616
|
+
* to the original recipient's wxa account.
|
|
617
|
+
*/
|
|
618
|
+
export declare function rejectRedeemByRedeemOperator(options: RejectRedeemByRedeemOperatorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
619
|
+
export interface SettleRedeemArguments {
|
|
620
|
+
pool: RawTransactionArgument<string>;
|
|
621
|
+
globalConfig: RawTransactionArgument<string>;
|
|
622
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
623
|
+
operatorRequest: RawTransactionArgument<string>;
|
|
624
|
+
aum: RawTransactionArgument<string>;
|
|
625
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
626
|
+
oracle: RawTransactionArgument<string>;
|
|
627
|
+
}
|
|
628
|
+
export interface SettleRedeemOptions {
|
|
629
|
+
package?: string;
|
|
630
|
+
arguments: SettleRedeemArguments | [
|
|
631
|
+
pool: RawTransactionArgument<string>,
|
|
632
|
+
globalConfig: RawTransactionArgument<string>,
|
|
633
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
634
|
+
operatorRequest: RawTransactionArgument<string>,
|
|
635
|
+
aum: RawTransactionArgument<string>,
|
|
636
|
+
requestId: RawTransactionArgument<number | bigint>,
|
|
637
|
+
oracle: RawTransactionArgument<string>
|
|
638
|
+
];
|
|
639
|
+
typeArguments: [
|
|
640
|
+
string,
|
|
641
|
+
string
|
|
642
|
+
];
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Settles a WLP redeem request using pool-level AUM pricing. The payout is repaid
|
|
646
|
+
* back into the recipient's wxa account as `Balance<TOKEN>` via
|
|
647
|
+
* `wxa_account::put<TOKEN, WaterXPerp>`.
|
|
648
|
+
*/
|
|
649
|
+
export declare function settleRedeem(options: SettleRedeemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
650
|
+
export interface SettleRedeemWithPricingTvlArguments {
|
|
651
|
+
pool: RawTransactionArgument<string>;
|
|
652
|
+
globalConfig: RawTransactionArgument<string>;
|
|
653
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
654
|
+
oracle: RawTransactionArgument<string>;
|
|
655
|
+
ticker: RawTransactionArgument<string>;
|
|
656
|
+
pricingTvlUsd: RawTransactionArgument<string>;
|
|
657
|
+
}
|
|
658
|
+
export interface SettleRedeemWithPricingTvlOptions {
|
|
659
|
+
package?: string;
|
|
660
|
+
arguments: SettleRedeemWithPricingTvlArguments | [
|
|
661
|
+
pool: RawTransactionArgument<string>,
|
|
662
|
+
globalConfig: RawTransactionArgument<string>,
|
|
663
|
+
requestId: RawTransactionArgument<number | bigint>,
|
|
664
|
+
oracle: RawTransactionArgument<string>,
|
|
665
|
+
ticker: RawTransactionArgument<string>,
|
|
666
|
+
pricingTvlUsd: RawTransactionArgument<string>
|
|
667
|
+
];
|
|
668
|
+
typeArguments: [
|
|
669
|
+
string,
|
|
670
|
+
string
|
|
671
|
+
];
|
|
672
|
+
}
|
|
673
|
+
export declare function settleRedeemWithPricingTvl(options: SettleRedeemWithPricingTvlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
674
|
+
export interface UpdateBorrowRatesArguments {
|
|
675
|
+
pool: RawTransactionArgument<string>;
|
|
676
|
+
}
|
|
677
|
+
export interface UpdateBorrowRatesOptions {
|
|
678
|
+
package?: string;
|
|
679
|
+
arguments: UpdateBorrowRatesArguments | [
|
|
680
|
+
pool: RawTransactionArgument<string>
|
|
681
|
+
];
|
|
682
|
+
typeArguments: [
|
|
683
|
+
string
|
|
684
|
+
];
|
|
685
|
+
}
|
|
686
|
+
/** Updates borrow rates for all token pools. */
|
|
687
|
+
export declare function updateBorrowRates(options: UpdateBorrowRatesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
688
|
+
export interface UpdateTokenValueArguments {
|
|
689
|
+
pool: RawTransactionArgument<string>;
|
|
690
|
+
oracle: RawTransactionArgument<string>;
|
|
691
|
+
}
|
|
692
|
+
export interface UpdateTokenValueOptions {
|
|
693
|
+
package?: string;
|
|
694
|
+
arguments: UpdateTokenValueArguments | [
|
|
695
|
+
pool: RawTransactionArgument<string>,
|
|
696
|
+
oracle: RawTransactionArgument<string>
|
|
697
|
+
];
|
|
698
|
+
typeArguments: [
|
|
699
|
+
string,
|
|
700
|
+
string
|
|
701
|
+
];
|
|
702
|
+
}
|
|
703
|
+
export declare function updateTokenValue(options: UpdateTokenValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
704
|
+
export interface AumPoolIdArguments {
|
|
705
|
+
aum: RawTransactionArgument<string>;
|
|
706
|
+
}
|
|
707
|
+
export interface AumPoolIdOptions {
|
|
708
|
+
package?: string;
|
|
709
|
+
arguments: AumPoolIdArguments | [
|
|
710
|
+
aum: RawTransactionArgument<string>
|
|
711
|
+
];
|
|
712
|
+
typeArguments: [
|
|
713
|
+
string
|
|
714
|
+
];
|
|
715
|
+
}
|
|
716
|
+
export declare function aumPoolId(options: AumPoolIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
717
|
+
export interface AumMarketCountArguments {
|
|
718
|
+
aum: RawTransactionArgument<string>;
|
|
719
|
+
}
|
|
720
|
+
export interface AumMarketCountOptions {
|
|
721
|
+
package?: string;
|
|
722
|
+
arguments: AumMarketCountArguments | [
|
|
723
|
+
aum: RawTransactionArgument<string>
|
|
724
|
+
];
|
|
725
|
+
typeArguments: [
|
|
726
|
+
string
|
|
727
|
+
];
|
|
728
|
+
}
|
|
729
|
+
export declare function aumMarketCount(options: AumMarketCountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
730
|
+
export interface AumTotalTraderProfitUsdArguments {
|
|
731
|
+
aum: RawTransactionArgument<string>;
|
|
732
|
+
}
|
|
733
|
+
export interface AumTotalTraderProfitUsdOptions {
|
|
734
|
+
package?: string;
|
|
735
|
+
arguments: AumTotalTraderProfitUsdArguments | [
|
|
736
|
+
aum: RawTransactionArgument<string>
|
|
737
|
+
];
|
|
738
|
+
typeArguments: [
|
|
739
|
+
string
|
|
740
|
+
];
|
|
741
|
+
}
|
|
742
|
+
export declare function aumTotalTraderProfitUsd(options: AumTotalTraderProfitUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
743
|
+
export interface AumTotalTraderLossUsdArguments {
|
|
744
|
+
aum: RawTransactionArgument<string>;
|
|
745
|
+
}
|
|
746
|
+
export interface AumTotalTraderLossUsdOptions {
|
|
747
|
+
package?: string;
|
|
748
|
+
arguments: AumTotalTraderLossUsdArguments | [
|
|
749
|
+
aum: RawTransactionArgument<string>
|
|
750
|
+
];
|
|
751
|
+
typeArguments: [
|
|
752
|
+
string
|
|
753
|
+
];
|
|
754
|
+
}
|
|
755
|
+
export declare function aumTotalTraderLossUsd(options: AumTotalTraderLossUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
756
|
+
export interface AumMarketContributionArguments {
|
|
757
|
+
aum: RawTransactionArgument<string>;
|
|
758
|
+
marketId: RawTransactionArgument<string>;
|
|
759
|
+
}
|
|
760
|
+
export interface AumMarketContributionOptions {
|
|
761
|
+
package?: string;
|
|
762
|
+
arguments: AumMarketContributionArguments | [
|
|
763
|
+
aum: RawTransactionArgument<string>,
|
|
764
|
+
marketId: RawTransactionArgument<string>
|
|
765
|
+
];
|
|
766
|
+
typeArguments: [
|
|
767
|
+
string
|
|
768
|
+
];
|
|
769
|
+
}
|
|
770
|
+
export declare function aumMarketContribution(options: AumMarketContributionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
771
|
+
export interface AumMarketContributionByIndexArguments {
|
|
772
|
+
aum: RawTransactionArgument<string>;
|
|
773
|
+
index: RawTransactionArgument<number | bigint>;
|
|
774
|
+
}
|
|
775
|
+
export interface AumMarketContributionByIndexOptions {
|
|
776
|
+
package?: string;
|
|
777
|
+
arguments: AumMarketContributionByIndexArguments | [
|
|
778
|
+
aum: RawTransactionArgument<string>,
|
|
779
|
+
index: RawTransactionArgument<number | bigint>
|
|
780
|
+
];
|
|
781
|
+
typeArguments: [
|
|
782
|
+
string
|
|
783
|
+
];
|
|
784
|
+
}
|
|
785
|
+
export declare function aumMarketContributionByIndex(options: AumMarketContributionByIndexOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
786
|
+
export interface AumContributionIsTraderProfitArguments {
|
|
787
|
+
c: RawTransactionArgument<string>;
|
|
788
|
+
}
|
|
789
|
+
export interface AumContributionIsTraderProfitOptions {
|
|
790
|
+
package?: string;
|
|
791
|
+
arguments: AumContributionIsTraderProfitArguments | [
|
|
792
|
+
c: RawTransactionArgument<string>
|
|
793
|
+
];
|
|
794
|
+
}
|
|
795
|
+
export declare function aumContributionIsTraderProfit(options: AumContributionIsTraderProfitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
796
|
+
export interface AumContributionPnlUsdArguments {
|
|
797
|
+
c: RawTransactionArgument<string>;
|
|
798
|
+
}
|
|
799
|
+
export interface AumContributionPnlUsdOptions {
|
|
800
|
+
package?: string;
|
|
801
|
+
arguments: AumContributionPnlUsdArguments | [
|
|
802
|
+
c: RawTransactionArgument<string>
|
|
803
|
+
];
|
|
804
|
+
}
|
|
805
|
+
export declare function aumContributionPnlUsd(options: AumContributionPnlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
806
|
+
export interface AumContributionLastRefreshTimestampArguments {
|
|
807
|
+
c: RawTransactionArgument<string>;
|
|
808
|
+
}
|
|
809
|
+
export interface AumContributionLastRefreshTimestampOptions {
|
|
810
|
+
package?: string;
|
|
811
|
+
arguments: AumContributionLastRefreshTimestampArguments | [
|
|
812
|
+
c: RawTransactionArgument<string>
|
|
813
|
+
];
|
|
814
|
+
}
|
|
815
|
+
export declare function aumContributionLastRefreshTimestamp(options: AumContributionLastRefreshTimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
816
|
+
export interface RegisterMarketAumArguments {
|
|
817
|
+
aum: RawTransactionArgument<string>;
|
|
818
|
+
Cap: RawTransactionArgument<string>;
|
|
819
|
+
marketId: RawTransactionArgument<string>;
|
|
820
|
+
isTraderProfit: RawTransactionArgument<boolean>;
|
|
821
|
+
pnlUsd: RawTransactionArgument<string>;
|
|
822
|
+
}
|
|
823
|
+
export interface RegisterMarketAumOptions {
|
|
824
|
+
package?: string;
|
|
825
|
+
arguments: RegisterMarketAumArguments | [
|
|
826
|
+
aum: RawTransactionArgument<string>,
|
|
827
|
+
Cap: RawTransactionArgument<string>,
|
|
828
|
+
marketId: RawTransactionArgument<string>,
|
|
829
|
+
isTraderProfit: RawTransactionArgument<boolean>,
|
|
830
|
+
pnlUsd: RawTransactionArgument<string>
|
|
831
|
+
];
|
|
832
|
+
typeArguments: [
|
|
833
|
+
string
|
|
834
|
+
];
|
|
835
|
+
}
|
|
836
|
+
/** Registers a market contribution for this WLP AUM object. */
|
|
837
|
+
export declare function registerMarketAum(options: RegisterMarketAumOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
838
|
+
export interface RefreshMarketAumArguments {
|
|
839
|
+
aum: RawTransactionArgument<string>;
|
|
840
|
+
marketId: RawTransactionArgument<string>;
|
|
841
|
+
isTraderProfit: RawTransactionArgument<boolean>;
|
|
842
|
+
pnlUsd: RawTransactionArgument<string>;
|
|
843
|
+
}
|
|
844
|
+
export interface RefreshMarketAumOptions {
|
|
845
|
+
package?: string;
|
|
846
|
+
arguments: RefreshMarketAumArguments | [
|
|
847
|
+
aum: RawTransactionArgument<string>,
|
|
848
|
+
marketId: RawTransactionArgument<string>,
|
|
849
|
+
isTraderProfit: RawTransactionArgument<boolean>,
|
|
850
|
+
pnlUsd: RawTransactionArgument<string>
|
|
851
|
+
];
|
|
852
|
+
typeArguments: [
|
|
853
|
+
string
|
|
854
|
+
];
|
|
855
|
+
}
|
|
856
|
+
/** Refreshes an existing market's AUM contribution. */
|
|
857
|
+
export declare function refreshMarketAum(options: RefreshMarketAumOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
858
|
+
export interface AumEquityUsdArguments {
|
|
859
|
+
pool: RawTransactionArgument<string>;
|
|
860
|
+
aum: RawTransactionArgument<string>;
|
|
861
|
+
globalConfig: RawTransactionArgument<string>;
|
|
862
|
+
}
|
|
863
|
+
export interface AumEquityUsdOptions {
|
|
864
|
+
package?: string;
|
|
865
|
+
arguments: AumEquityUsdArguments | [
|
|
866
|
+
pool: RawTransactionArgument<string>,
|
|
867
|
+
aum: RawTransactionArgument<string>,
|
|
868
|
+
globalConfig: RawTransactionArgument<string>
|
|
869
|
+
];
|
|
870
|
+
typeArguments: [
|
|
871
|
+
string
|
|
872
|
+
];
|
|
873
|
+
}
|
|
874
|
+
/** Returns WLP equity after applying all registered market unrealized PnL. */
|
|
875
|
+
export declare function aumEquityUsd(options: AumEquityUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
876
|
+
export interface CumulativeBorrowRateArguments {
|
|
877
|
+
pool: RawTransactionArgument<string>;
|
|
878
|
+
tokenType: RawTransactionArgument<string>;
|
|
879
|
+
}
|
|
880
|
+
export interface CumulativeBorrowRateOptions {
|
|
881
|
+
package?: string;
|
|
882
|
+
arguments: CumulativeBorrowRateArguments | [
|
|
883
|
+
pool: RawTransactionArgument<string>,
|
|
884
|
+
tokenType: RawTransactionArgument<string>
|
|
885
|
+
];
|
|
886
|
+
typeArguments: [
|
|
887
|
+
string
|
|
888
|
+
];
|
|
889
|
+
}
|
|
890
|
+
/** Gets cumulative borrow rate for a token. */
|
|
891
|
+
export declare function cumulativeBorrowRate(options: CumulativeBorrowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
892
|
+
export interface TvlUsdArguments {
|
|
893
|
+
pool: RawTransactionArgument<string>;
|
|
894
|
+
}
|
|
895
|
+
export interface TvlUsdOptions {
|
|
896
|
+
package?: string;
|
|
897
|
+
arguments: TvlUsdArguments | [
|
|
898
|
+
pool: RawTransactionArgument<string>
|
|
899
|
+
];
|
|
900
|
+
typeArguments: [
|
|
901
|
+
string
|
|
902
|
+
];
|
|
903
|
+
}
|
|
904
|
+
/** Gets TVL in USD. */
|
|
905
|
+
export declare function tvlUsd(options: TvlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
906
|
+
export interface CheckOiCapArguments {
|
|
907
|
+
pool: RawTransactionArgument<string>;
|
|
908
|
+
globalConfig: RawTransactionArgument<string>;
|
|
909
|
+
totalOiUsd: RawTransactionArgument<string>;
|
|
910
|
+
}
|
|
911
|
+
export interface CheckOiCapOptions {
|
|
912
|
+
package?: string;
|
|
913
|
+
arguments: CheckOiCapArguments | [
|
|
914
|
+
pool: RawTransactionArgument<string>,
|
|
915
|
+
globalConfig: RawTransactionArgument<string>,
|
|
916
|
+
totalOiUsd: RawTransactionArgument<string>
|
|
917
|
+
];
|
|
918
|
+
typeArguments: [
|
|
919
|
+
string
|
|
920
|
+
];
|
|
921
|
+
}
|
|
922
|
+
/** Checks if OI is within cap (reads from global_config.oi_cap_bps; 0 = no cap). */
|
|
923
|
+
export declare function checkOiCap(options: CheckOiCapOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
924
|
+
export interface CheckReserveValidArguments {
|
|
925
|
+
pool: RawTransactionArgument<string>;
|
|
926
|
+
tokenType: RawTransactionArgument<string>;
|
|
927
|
+
additionalReserve: RawTransactionArgument<number | bigint>;
|
|
928
|
+
}
|
|
929
|
+
export interface CheckReserveValidOptions {
|
|
930
|
+
package?: string;
|
|
931
|
+
arguments: CheckReserveValidArguments | [
|
|
932
|
+
pool: RawTransactionArgument<string>,
|
|
933
|
+
tokenType: RawTransactionArgument<string>,
|
|
934
|
+
additionalReserve: RawTransactionArgument<number | bigint>
|
|
935
|
+
];
|
|
936
|
+
typeArguments: [
|
|
937
|
+
string
|
|
938
|
+
];
|
|
939
|
+
}
|
|
940
|
+
/** Checks if reserve is within max ratio. */
|
|
941
|
+
export declare function checkReserveValid(options: CheckReserveValidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
942
|
+
export interface IncreaseReserveArguments {
|
|
943
|
+
pool: RawTransactionArgument<string>;
|
|
944
|
+
tokenType: RawTransactionArgument<string>;
|
|
945
|
+
amount: RawTransactionArgument<number | bigint>;
|
|
946
|
+
}
|
|
947
|
+
export interface IncreaseReserveOptions {
|
|
948
|
+
package?: string;
|
|
949
|
+
arguments: IncreaseReserveArguments | [
|
|
950
|
+
pool: RawTransactionArgument<string>,
|
|
951
|
+
tokenType: RawTransactionArgument<string>,
|
|
952
|
+
amount: RawTransactionArgument<number | bigint>
|
|
953
|
+
];
|
|
954
|
+
typeArguments: [
|
|
955
|
+
string
|
|
956
|
+
];
|
|
957
|
+
}
|
|
958
|
+
/** Increases reserved amount. */
|
|
959
|
+
export declare function increaseReserve(options: IncreaseReserveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
960
|
+
export interface DecreaseReserveArguments {
|
|
961
|
+
pool: RawTransactionArgument<string>;
|
|
962
|
+
tokenType: RawTransactionArgument<string>;
|
|
963
|
+
amount: RawTransactionArgument<number | bigint>;
|
|
964
|
+
}
|
|
965
|
+
export interface DecreaseReserveOptions {
|
|
966
|
+
package?: string;
|
|
967
|
+
arguments: DecreaseReserveArguments | [
|
|
968
|
+
pool: RawTransactionArgument<string>,
|
|
969
|
+
tokenType: RawTransactionArgument<string>,
|
|
970
|
+
amount: RawTransactionArgument<number | bigint>
|
|
971
|
+
];
|
|
972
|
+
typeArguments: [
|
|
973
|
+
string
|
|
974
|
+
];
|
|
975
|
+
}
|
|
976
|
+
/** Decreases reserved amount. */
|
|
977
|
+
export declare function decreaseReserve(options: DecreaseReserveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
978
|
+
export interface PutCollateralArguments {
|
|
979
|
+
pool: RawTransactionArgument<string>;
|
|
980
|
+
globalConfig: RawTransactionArgument<string>;
|
|
981
|
+
collateral: RawTransactionArgument<string>;
|
|
982
|
+
price: RawTransactionArgument<string>;
|
|
983
|
+
}
|
|
984
|
+
export interface PutCollateralOptions {
|
|
985
|
+
package?: string;
|
|
986
|
+
arguments: PutCollateralArguments | [
|
|
987
|
+
pool: RawTransactionArgument<string>,
|
|
988
|
+
globalConfig: RawTransactionArgument<string>,
|
|
989
|
+
collateral: RawTransactionArgument<string>,
|
|
990
|
+
price: RawTransactionArgument<string>
|
|
991
|
+
];
|
|
992
|
+
typeArguments: [
|
|
993
|
+
string,
|
|
994
|
+
string
|
|
995
|
+
];
|
|
996
|
+
}
|
|
997
|
+
/** Puts collateral back into the pool (from fees/losses). */
|
|
998
|
+
export declare function putCollateral(options: PutCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
999
|
+
export interface RequestCollateralArguments {
|
|
1000
|
+
pool: RawTransactionArgument<string>;
|
|
1001
|
+
globalConfig: RawTransactionArgument<string>;
|
|
1002
|
+
amount: RawTransactionArgument<number | bigint>;
|
|
1003
|
+
price: RawTransactionArgument<string>;
|
|
1004
|
+
}
|
|
1005
|
+
export interface RequestCollateralOptions {
|
|
1006
|
+
package?: string;
|
|
1007
|
+
arguments: RequestCollateralArguments | [
|
|
1008
|
+
pool: RawTransactionArgument<string>,
|
|
1009
|
+
globalConfig: RawTransactionArgument<string>,
|
|
1010
|
+
amount: RawTransactionArgument<number | bigint>,
|
|
1011
|
+
price: RawTransactionArgument<string>
|
|
1012
|
+
];
|
|
1013
|
+
typeArguments: [
|
|
1014
|
+
string,
|
|
1015
|
+
string
|
|
1016
|
+
];
|
|
1017
|
+
}
|
|
1018
|
+
/** Requests collateral from the pool (for profit payout). */
|
|
1019
|
+
export declare function requestCollateral(options: RequestCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1020
|
+
export interface TokenPoolInfoArguments {
|
|
1021
|
+
pool: RawTransactionArgument<string>;
|
|
1022
|
+
tokenType: RawTransactionArgument<string>;
|
|
1023
|
+
}
|
|
1024
|
+
export interface TokenPoolInfoOptions {
|
|
1025
|
+
package?: string;
|
|
1026
|
+
arguments: TokenPoolInfoArguments | [
|
|
1027
|
+
pool: RawTransactionArgument<string>,
|
|
1028
|
+
tokenType: RawTransactionArgument<string>
|
|
1029
|
+
];
|
|
1030
|
+
typeArguments: [
|
|
1031
|
+
string
|
|
1032
|
+
];
|
|
1033
|
+
}
|
|
1034
|
+
/** Gets token pool info (copy). */
|
|
1035
|
+
export declare function tokenPoolInfo(options: TokenPoolInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1036
|
+
export interface TokenDecimalArguments {
|
|
1037
|
+
pool: RawTransactionArgument<string>;
|
|
1038
|
+
tokenType: RawTransactionArgument<string>;
|
|
1039
|
+
}
|
|
1040
|
+
export interface TokenDecimalOptions {
|
|
1041
|
+
package?: string;
|
|
1042
|
+
arguments: TokenDecimalArguments | [
|
|
1043
|
+
pool: RawTransactionArgument<string>,
|
|
1044
|
+
tokenType: RawTransactionArgument<string>
|
|
1045
|
+
];
|
|
1046
|
+
typeArguments: [
|
|
1047
|
+
string
|
|
1048
|
+
];
|
|
1049
|
+
}
|
|
1050
|
+
/** Gets token decimal. */
|
|
1051
|
+
export declare function tokenDecimal(options: TokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1052
|
+
export interface TokenTickerArguments {
|
|
1053
|
+
pool: RawTransactionArgument<string>;
|
|
1054
|
+
}
|
|
1055
|
+
export interface TokenTickerOptions {
|
|
1056
|
+
package?: string;
|
|
1057
|
+
arguments: TokenTickerArguments | [
|
|
1058
|
+
pool: RawTransactionArgument<string>
|
|
1059
|
+
];
|
|
1060
|
+
typeArguments: [
|
|
1061
|
+
string,
|
|
1062
|
+
string
|
|
1063
|
+
];
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Returns the oracle ticker bound to `TOKEN` at `add_token` time. This is the only
|
|
1067
|
+
* source of truth for "what ticker do I price TOKEN at?" — perp + lp_pool
|
|
1068
|
+
* callsites look it up here instead of accepting a free-form string from the
|
|
1069
|
+
* caller. Aborts if TOKEN is not a supported token in this pool.
|
|
1070
|
+
*/
|
|
1071
|
+
export declare function tokenTicker(options: TokenTickerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1072
|
+
export interface SuspendPoolArguments {
|
|
1073
|
+
pool: RawTransactionArgument<string>;
|
|
1074
|
+
Cap: RawTransactionArgument<string>;
|
|
1075
|
+
}
|
|
1076
|
+
export interface SuspendPoolOptions {
|
|
1077
|
+
package?: string;
|
|
1078
|
+
arguments: SuspendPoolArguments | [
|
|
1079
|
+
pool: RawTransactionArgument<string>,
|
|
1080
|
+
Cap: RawTransactionArgument<string>
|
|
1081
|
+
];
|
|
1082
|
+
typeArguments: [
|
|
1083
|
+
string
|
|
1084
|
+
];
|
|
1085
|
+
}
|
|
1086
|
+
/** Suspend/resume pool. */
|
|
1087
|
+
export declare function suspendPool(options: SuspendPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1088
|
+
export interface ResumePoolArguments {
|
|
1089
|
+
pool: RawTransactionArgument<string>;
|
|
1090
|
+
Cap: RawTransactionArgument<string>;
|
|
1091
|
+
}
|
|
1092
|
+
export interface ResumePoolOptions {
|
|
1093
|
+
package?: string;
|
|
1094
|
+
arguments: ResumePoolArguments | [
|
|
1095
|
+
pool: RawTransactionArgument<string>,
|
|
1096
|
+
Cap: RawTransactionArgument<string>
|
|
1097
|
+
];
|
|
1098
|
+
typeArguments: [
|
|
1099
|
+
string
|
|
1100
|
+
];
|
|
1101
|
+
}
|
|
1102
|
+
export declare function resumePool(options: ResumePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1103
|
+
export interface IsActiveArguments {
|
|
1104
|
+
pool: RawTransactionArgument<string>;
|
|
1105
|
+
}
|
|
1106
|
+
export interface IsActiveOptions {
|
|
1107
|
+
package?: string;
|
|
1108
|
+
arguments: IsActiveArguments | [
|
|
1109
|
+
pool: RawTransactionArgument<string>
|
|
1110
|
+
];
|
|
1111
|
+
typeArguments: [
|
|
1112
|
+
string
|
|
1113
|
+
];
|
|
1114
|
+
}
|
|
1115
|
+
/** Whether the pool is active. */
|
|
1116
|
+
export declare function isActive(options: IsActiveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1117
|
+
export interface LpDecimalArguments {
|
|
1118
|
+
pool: RawTransactionArgument<string>;
|
|
1119
|
+
}
|
|
1120
|
+
export interface LpDecimalOptions {
|
|
1121
|
+
package?: string;
|
|
1122
|
+
arguments: LpDecimalArguments | [
|
|
1123
|
+
pool: RawTransactionArgument<string>
|
|
1124
|
+
];
|
|
1125
|
+
typeArguments: [
|
|
1126
|
+
string
|
|
1127
|
+
];
|
|
1128
|
+
}
|
|
1129
|
+
/** LP token decimal. */
|
|
1130
|
+
export declare function lpDecimal(options: LpDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1131
|
+
export interface TotalLpSupplyArguments {
|
|
1132
|
+
pool: RawTransactionArgument<string>;
|
|
1133
|
+
}
|
|
1134
|
+
export interface TotalLpSupplyOptions {
|
|
1135
|
+
package?: string;
|
|
1136
|
+
arguments: TotalLpSupplyArguments | [
|
|
1137
|
+
pool: RawTransactionArgument<string>
|
|
1138
|
+
];
|
|
1139
|
+
typeArguments: [
|
|
1140
|
+
string
|
|
1141
|
+
];
|
|
1142
|
+
}
|
|
1143
|
+
/** Total LP supply (derived from treasury cap). */
|
|
1144
|
+
export declare function totalLpSupply(options: TotalLpSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1145
|
+
export interface BorrowRedeemRequestsArguments {
|
|
1146
|
+
pool: RawTransactionArgument<string>;
|
|
1147
|
+
}
|
|
1148
|
+
export interface BorrowRedeemRequestsOptions {
|
|
1149
|
+
package?: string;
|
|
1150
|
+
arguments: BorrowRedeemRequestsArguments | [
|
|
1151
|
+
pool: RawTransactionArgument<string>
|
|
1152
|
+
];
|
|
1153
|
+
typeArguments: [
|
|
1154
|
+
string
|
|
1155
|
+
];
|
|
1156
|
+
}
|
|
1157
|
+
export declare function borrowRedeemRequests(options: BorrowRedeemRequestsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1158
|
+
export interface PoolTvlUsdArguments {
|
|
1159
|
+
pool: RawTransactionArgument<string>;
|
|
1160
|
+
}
|
|
1161
|
+
export interface PoolTvlUsdOptions {
|
|
1162
|
+
package?: string;
|
|
1163
|
+
arguments: PoolTvlUsdArguments | [
|
|
1164
|
+
pool: RawTransactionArgument<string>
|
|
1165
|
+
];
|
|
1166
|
+
typeArguments: [
|
|
1167
|
+
string
|
|
1168
|
+
];
|
|
1169
|
+
}
|
|
1170
|
+
/** TVL in USD as Float. */
|
|
1171
|
+
export declare function poolTvlUsd(options: PoolTvlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1172
|
+
export interface TokenCountArguments {
|
|
1173
|
+
pool: RawTransactionArgument<string>;
|
|
1174
|
+
}
|
|
1175
|
+
export interface TokenCountOptions {
|
|
1176
|
+
package?: string;
|
|
1177
|
+
arguments: TokenCountArguments | [
|
|
1178
|
+
pool: RawTransactionArgument<string>
|
|
1179
|
+
];
|
|
1180
|
+
typeArguments: [
|
|
1181
|
+
string
|
|
1182
|
+
];
|
|
1183
|
+
}
|
|
1184
|
+
/** Number of supported tokens. */
|
|
1185
|
+
export declare function tokenCount(options: TokenCountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1186
|
+
export interface BorrowTokenPoolByIndexArguments {
|
|
1187
|
+
pool: RawTransactionArgument<string>;
|
|
1188
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1189
|
+
}
|
|
1190
|
+
export interface BorrowTokenPoolByIndexOptions {
|
|
1191
|
+
package?: string;
|
|
1192
|
+
arguments: BorrowTokenPoolByIndexArguments | [
|
|
1193
|
+
pool: RawTransactionArgument<string>,
|
|
1194
|
+
index: RawTransactionArgument<number | bigint>
|
|
1195
|
+
];
|
|
1196
|
+
typeArguments: [
|
|
1197
|
+
string
|
|
1198
|
+
];
|
|
1199
|
+
}
|
|
1200
|
+
/** Borrows a TokenPoolInfo by index. */
|
|
1201
|
+
export declare function borrowTokenPoolByIndex(options: BorrowTokenPoolByIndexOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1202
|
+
export interface TpiTokenTypeArguments {
|
|
1203
|
+
tp: RawTransactionArgument<string>;
|
|
1204
|
+
}
|
|
1205
|
+
export interface TpiTokenTypeOptions {
|
|
1206
|
+
package?: string;
|
|
1207
|
+
arguments: TpiTokenTypeArguments | [
|
|
1208
|
+
tp: RawTransactionArgument<string>
|
|
1209
|
+
];
|
|
1210
|
+
}
|
|
1211
|
+
/** TokenPoolInfo field accessors. */
|
|
1212
|
+
export declare function tpiTokenType(options: TpiTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1213
|
+
export interface TpiTickerArguments {
|
|
1214
|
+
tp: RawTransactionArgument<string>;
|
|
1215
|
+
}
|
|
1216
|
+
export interface TpiTickerOptions {
|
|
1217
|
+
package?: string;
|
|
1218
|
+
arguments: TpiTickerArguments | [
|
|
1219
|
+
tp: RawTransactionArgument<string>
|
|
1220
|
+
];
|
|
1221
|
+
}
|
|
1222
|
+
export declare function tpiTicker(options: TpiTickerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1223
|
+
export interface TpiTokenDecimalArguments {
|
|
1224
|
+
tp: RawTransactionArgument<string>;
|
|
1225
|
+
}
|
|
1226
|
+
export interface TpiTokenDecimalOptions {
|
|
1227
|
+
package?: string;
|
|
1228
|
+
arguments: TpiTokenDecimalArguments | [
|
|
1229
|
+
tp: RawTransactionArgument<string>
|
|
1230
|
+
];
|
|
1231
|
+
}
|
|
1232
|
+
export declare function tpiTokenDecimal(options: TpiTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1233
|
+
export interface TpiLiquidityAmountArguments {
|
|
1234
|
+
tp: RawTransactionArgument<string>;
|
|
1235
|
+
}
|
|
1236
|
+
export interface TpiLiquidityAmountOptions {
|
|
1237
|
+
package?: string;
|
|
1238
|
+
arguments: TpiLiquidityAmountArguments | [
|
|
1239
|
+
tp: RawTransactionArgument<string>
|
|
1240
|
+
];
|
|
1241
|
+
}
|
|
1242
|
+
export declare function tpiLiquidityAmount(options: TpiLiquidityAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1243
|
+
export interface TpiReservedAmountArguments {
|
|
1244
|
+
tp: RawTransactionArgument<string>;
|
|
1245
|
+
}
|
|
1246
|
+
export interface TpiReservedAmountOptions {
|
|
1247
|
+
package?: string;
|
|
1248
|
+
arguments: TpiReservedAmountArguments | [
|
|
1249
|
+
tp: RawTransactionArgument<string>
|
|
1250
|
+
];
|
|
1251
|
+
}
|
|
1252
|
+
export declare function tpiReservedAmount(options: TpiReservedAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1253
|
+
export interface TpiValueUsdArguments {
|
|
1254
|
+
tp: RawTransactionArgument<string>;
|
|
1255
|
+
}
|
|
1256
|
+
export interface TpiValueUsdOptions {
|
|
1257
|
+
package?: string;
|
|
1258
|
+
arguments: TpiValueUsdArguments | [
|
|
1259
|
+
tp: RawTransactionArgument<string>
|
|
1260
|
+
];
|
|
1261
|
+
}
|
|
1262
|
+
export declare function tpiValueUsd(options: TpiValueUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1263
|
+
export interface TpiTargetWeightBpsArguments {
|
|
1264
|
+
tp: RawTransactionArgument<string>;
|
|
1265
|
+
}
|
|
1266
|
+
export interface TpiTargetWeightBpsOptions {
|
|
1267
|
+
package?: string;
|
|
1268
|
+
arguments: TpiTargetWeightBpsArguments | [
|
|
1269
|
+
tp: RawTransactionArgument<string>
|
|
1270
|
+
];
|
|
1271
|
+
}
|
|
1272
|
+
export declare function tpiTargetWeightBps(options: TpiTargetWeightBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1273
|
+
export interface TpiMintFeeBpsArguments {
|
|
1274
|
+
tp: RawTransactionArgument<string>;
|
|
1275
|
+
}
|
|
1276
|
+
export interface TpiMintFeeBpsOptions {
|
|
1277
|
+
package?: string;
|
|
1278
|
+
arguments: TpiMintFeeBpsArguments | [
|
|
1279
|
+
tp: RawTransactionArgument<string>
|
|
1280
|
+
];
|
|
1281
|
+
}
|
|
1282
|
+
export declare function tpiMintFeeBps(options: TpiMintFeeBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1283
|
+
export interface TpiBurnFeeBpsArguments {
|
|
1284
|
+
tp: RawTransactionArgument<string>;
|
|
1285
|
+
}
|
|
1286
|
+
export interface TpiBurnFeeBpsOptions {
|
|
1287
|
+
package?: string;
|
|
1288
|
+
arguments: TpiBurnFeeBpsArguments | [
|
|
1289
|
+
tp: RawTransactionArgument<string>
|
|
1290
|
+
];
|
|
1291
|
+
}
|
|
1292
|
+
export declare function tpiBurnFeeBps(options: TpiBurnFeeBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1293
|
+
export interface TpiCumulativeBorrowRateArguments {
|
|
1294
|
+
tp: RawTransactionArgument<string>;
|
|
1295
|
+
}
|
|
1296
|
+
export interface TpiCumulativeBorrowRateOptions {
|
|
1297
|
+
package?: string;
|
|
1298
|
+
arguments: TpiCumulativeBorrowRateArguments | [
|
|
1299
|
+
tp: RawTransactionArgument<string>
|
|
1300
|
+
];
|
|
1301
|
+
}
|
|
1302
|
+
export declare function tpiCumulativeBorrowRate(options: TpiCumulativeBorrowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1303
|
+
export interface TpiLastPriceRefreshTimestampArguments {
|
|
1304
|
+
tp: RawTransactionArgument<string>;
|
|
1305
|
+
}
|
|
1306
|
+
export interface TpiLastPriceRefreshTimestampOptions {
|
|
1307
|
+
package?: string;
|
|
1308
|
+
arguments: TpiLastPriceRefreshTimestampArguments | [
|
|
1309
|
+
tp: RawTransactionArgument<string>
|
|
1310
|
+
];
|
|
1311
|
+
}
|
|
1312
|
+
export declare function tpiLastPriceRefreshTimestamp(options: TpiLastPriceRefreshTimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1313
|
+
export interface RedeemRecipientAccountIdArguments {
|
|
1314
|
+
r: RawTransactionArgument<string>;
|
|
1315
|
+
}
|
|
1316
|
+
export interface RedeemRecipientAccountIdOptions {
|
|
1317
|
+
package?: string;
|
|
1318
|
+
arguments: RedeemRecipientAccountIdArguments | [
|
|
1319
|
+
r: RawTransactionArgument<string>
|
|
1320
|
+
];
|
|
1321
|
+
typeArguments: [
|
|
1322
|
+
string
|
|
1323
|
+
];
|
|
1324
|
+
}
|
|
1325
|
+
export declare function redeemRecipientAccountId(options: RedeemRecipientAccountIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1326
|
+
export interface RedeemLpAmountArguments {
|
|
1327
|
+
r: RawTransactionArgument<string>;
|
|
1328
|
+
}
|
|
1329
|
+
export interface RedeemLpAmountOptions {
|
|
1330
|
+
package?: string;
|
|
1331
|
+
arguments: RedeemLpAmountArguments | [
|
|
1332
|
+
r: RawTransactionArgument<string>
|
|
1333
|
+
];
|
|
1334
|
+
typeArguments: [
|
|
1335
|
+
string
|
|
1336
|
+
];
|
|
1337
|
+
}
|
|
1338
|
+
export declare function redeemLpAmount(options: RedeemLpAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1339
|
+
export interface RedeemTokenTypeArguments {
|
|
1340
|
+
r: RawTransactionArgument<string>;
|
|
1341
|
+
}
|
|
1342
|
+
export interface RedeemTokenTypeOptions {
|
|
1343
|
+
package?: string;
|
|
1344
|
+
arguments: RedeemTokenTypeArguments | [
|
|
1345
|
+
r: RawTransactionArgument<string>
|
|
1346
|
+
];
|
|
1347
|
+
typeArguments: [
|
|
1348
|
+
string
|
|
1349
|
+
];
|
|
1350
|
+
}
|
|
1351
|
+
export declare function redeemTokenType(options: RedeemTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1352
|
+
export interface RedeemRequestTimestampArguments {
|
|
1353
|
+
r: RawTransactionArgument<string>;
|
|
1354
|
+
}
|
|
1355
|
+
export interface RedeemRequestTimestampOptions {
|
|
1356
|
+
package?: string;
|
|
1357
|
+
arguments: RedeemRequestTimestampArguments | [
|
|
1358
|
+
r: RawTransactionArgument<string>
|
|
1359
|
+
];
|
|
1360
|
+
typeArguments: [
|
|
1361
|
+
string
|
|
1362
|
+
];
|
|
1363
|
+
}
|
|
1364
|
+
export declare function redeemRequestTimestamp(options: RedeemRequestTimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1365
|
+
export interface FindTokenPoolIndexArguments {
|
|
1366
|
+
pool: RawTransactionArgument<string>;
|
|
1367
|
+
tokenType: RawTransactionArgument<string>;
|
|
1368
|
+
}
|
|
1369
|
+
export interface FindTokenPoolIndexOptions {
|
|
1370
|
+
package?: string;
|
|
1371
|
+
arguments: FindTokenPoolIndexArguments | [
|
|
1372
|
+
pool: RawTransactionArgument<string>,
|
|
1373
|
+
tokenType: RawTransactionArgument<string>
|
|
1374
|
+
];
|
|
1375
|
+
typeArguments: [
|
|
1376
|
+
string
|
|
1377
|
+
];
|
|
1378
|
+
}
|
|
1379
|
+
export declare function findTokenPoolIndex(options: FindTokenPoolIndexOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1380
|
+
export interface BorrowTokenPoolArguments {
|
|
1381
|
+
pool: RawTransactionArgument<string>;
|
|
1382
|
+
tokenType: RawTransactionArgument<string>;
|
|
1383
|
+
}
|
|
1384
|
+
export interface BorrowTokenPoolOptions {
|
|
1385
|
+
package?: string;
|
|
1386
|
+
arguments: BorrowTokenPoolArguments | [
|
|
1387
|
+
pool: RawTransactionArgument<string>,
|
|
1388
|
+
tokenType: RawTransactionArgument<string>
|
|
1389
|
+
];
|
|
1390
|
+
typeArguments: [
|
|
1391
|
+
string
|
|
1392
|
+
];
|
|
1393
|
+
}
|
|
1394
|
+
export declare function borrowTokenPool(options: BorrowTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1395
|
+
export interface BorrowMutTokenPoolArguments {
|
|
1396
|
+
pool: RawTransactionArgument<string>;
|
|
1397
|
+
tokenType: RawTransactionArgument<string>;
|
|
1398
|
+
}
|
|
1399
|
+
export interface BorrowMutTokenPoolOptions {
|
|
1400
|
+
package?: string;
|
|
1401
|
+
arguments: BorrowMutTokenPoolArguments | [
|
|
1402
|
+
pool: RawTransactionArgument<string>,
|
|
1403
|
+
tokenType: RawTransactionArgument<string>
|
|
1404
|
+
];
|
|
1405
|
+
typeArguments: [
|
|
1406
|
+
string
|
|
1407
|
+
];
|
|
1408
|
+
}
|
|
1409
|
+
export declare function borrowMutTokenPool(options: BorrowMutTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1410
|
+
export interface RefreshTokenValueWithPriceArguments {
|
|
1411
|
+
pool: RawTransactionArgument<string>;
|
|
1412
|
+
price: RawTransactionArgument<string>;
|
|
1413
|
+
refreshTimestamp: RawTransactionArgument<number | bigint>;
|
|
1414
|
+
}
|
|
1415
|
+
export interface RefreshTokenValueWithPriceOptions {
|
|
1416
|
+
package?: string;
|
|
1417
|
+
arguments: RefreshTokenValueWithPriceArguments | [
|
|
1418
|
+
pool: RawTransactionArgument<string>,
|
|
1419
|
+
price: RawTransactionArgument<string>,
|
|
1420
|
+
refreshTimestamp: RawTransactionArgument<number | bigint>
|
|
1421
|
+
];
|
|
1422
|
+
typeArguments: [
|
|
1423
|
+
string,
|
|
1424
|
+
string
|
|
1425
|
+
];
|
|
1426
|
+
}
|
|
1427
|
+
export declare function refreshTokenValueWithPrice(options: RefreshTokenValueWithPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1428
|
+
export interface AddAumContributionArguments {
|
|
1429
|
+
aum: RawTransactionArgument<string>;
|
|
1430
|
+
contribution: RawTransactionArgument<string>;
|
|
1431
|
+
}
|
|
1432
|
+
export interface AddAumContributionOptions {
|
|
1433
|
+
package?: string;
|
|
1434
|
+
arguments: AddAumContributionArguments | [
|
|
1435
|
+
aum: RawTransactionArgument<string>,
|
|
1436
|
+
contribution: RawTransactionArgument<string>
|
|
1437
|
+
];
|
|
1438
|
+
typeArguments: [
|
|
1439
|
+
string
|
|
1440
|
+
];
|
|
1441
|
+
}
|
|
1442
|
+
export declare function addAumContribution(options: AddAumContributionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1443
|
+
export interface RemoveAumContributionArguments {
|
|
1444
|
+
aum: RawTransactionArgument<string>;
|
|
1445
|
+
contribution: RawTransactionArgument<string>;
|
|
1446
|
+
}
|
|
1447
|
+
export interface RemoveAumContributionOptions {
|
|
1448
|
+
package?: string;
|
|
1449
|
+
arguments: RemoveAumContributionArguments | [
|
|
1450
|
+
aum: RawTransactionArgument<string>,
|
|
1451
|
+
contribution: RawTransactionArgument<string>
|
|
1452
|
+
];
|
|
1453
|
+
typeArguments: [
|
|
1454
|
+
string
|
|
1455
|
+
];
|
|
1456
|
+
}
|
|
1457
|
+
export declare function removeAumContribution(options: RemoveAumContributionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1458
|
+
export interface AssertAumFreshArguments {
|
|
1459
|
+
aum: RawTransactionArgument<string>;
|
|
1460
|
+
globalConfig: RawTransactionArgument<string>;
|
|
1461
|
+
}
|
|
1462
|
+
export interface AssertAumFreshOptions {
|
|
1463
|
+
package?: string;
|
|
1464
|
+
arguments: AssertAumFreshArguments | [
|
|
1465
|
+
aum: RawTransactionArgument<string>,
|
|
1466
|
+
globalConfig: RawTransactionArgument<string>
|
|
1467
|
+
];
|
|
1468
|
+
typeArguments: [
|
|
1469
|
+
string
|
|
1470
|
+
];
|
|
1471
|
+
}
|
|
1472
|
+
export declare function assertAumFresh(options: AssertAumFreshOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1473
|
+
export interface AssertPricesFreshArguments {
|
|
1474
|
+
pool: RawTransactionArgument<string>;
|
|
1475
|
+
globalConfig: RawTransactionArgument<string>;
|
|
1476
|
+
}
|
|
1477
|
+
export interface AssertPricesFreshOptions {
|
|
1478
|
+
package?: string;
|
|
1479
|
+
arguments: AssertPricesFreshArguments | [
|
|
1480
|
+
pool: RawTransactionArgument<string>,
|
|
1481
|
+
globalConfig: RawTransactionArgument<string>
|
|
1482
|
+
];
|
|
1483
|
+
typeArguments: [
|
|
1484
|
+
string
|
|
1485
|
+
];
|
|
1486
|
+
}
|
|
1487
|
+
export declare function assertPricesFresh(options: AssertPricesFreshOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1488
|
+
export interface AssertRedeemAllowedArguments {
|
|
1489
|
+
pool: RawTransactionArgument<string>;
|
|
1490
|
+
}
|
|
1491
|
+
export interface AssertRedeemAllowedOptions {
|
|
1492
|
+
package?: string;
|
|
1493
|
+
arguments: AssertRedeemAllowedArguments | [
|
|
1494
|
+
pool: RawTransactionArgument<string>
|
|
1495
|
+
];
|
|
1496
|
+
typeArguments: [
|
|
1497
|
+
string
|
|
1498
|
+
];
|
|
1499
|
+
}
|
|
1500
|
+
export declare function assertRedeemAllowed(options: AssertRedeemAllowedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1501
|
+
export interface AssertTokenRedeemAllowedArguments {
|
|
1502
|
+
pool: RawTransactionArgument<string>;
|
|
1503
|
+
tokenType: RawTransactionArgument<string>;
|
|
1504
|
+
}
|
|
1505
|
+
export interface AssertTokenRedeemAllowedOptions {
|
|
1506
|
+
package?: string;
|
|
1507
|
+
arguments: AssertTokenRedeemAllowedArguments | [
|
|
1508
|
+
pool: RawTransactionArgument<string>,
|
|
1509
|
+
tokenType: RawTransactionArgument<string>
|
|
1510
|
+
];
|
|
1511
|
+
typeArguments: [
|
|
1512
|
+
string
|
|
1513
|
+
];
|
|
1514
|
+
}
|
|
1515
|
+
export declare function assertTokenRedeemAllowed(options: AssertTokenRedeemAllowedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1516
|
+
export interface CalculateTotalWlpUtilizationBpsArguments {
|
|
1517
|
+
pool: RawTransactionArgument<string>;
|
|
1518
|
+
}
|
|
1519
|
+
export interface CalculateTotalWlpUtilizationBpsOptions {
|
|
1520
|
+
package?: string;
|
|
1521
|
+
arguments: CalculateTotalWlpUtilizationBpsArguments | [
|
|
1522
|
+
pool: RawTransactionArgument<string>
|
|
1523
|
+
];
|
|
1524
|
+
typeArguments: [
|
|
1525
|
+
string
|
|
1526
|
+
];
|
|
1527
|
+
}
|
|
1528
|
+
export declare function calculateTotalWlpUtilizationBps(options: CalculateTotalWlpUtilizationBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1529
|
+
export interface TakeRedeemRequestArguments {
|
|
1530
|
+
pool: RawTransactionArgument<string>;
|
|
1531
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
1532
|
+
}
|
|
1533
|
+
export interface TakeRedeemRequestOptions {
|
|
1534
|
+
package?: string;
|
|
1535
|
+
arguments: TakeRedeemRequestArguments | [
|
|
1536
|
+
pool: RawTransactionArgument<string>,
|
|
1537
|
+
requestId: RawTransactionArgument<number | bigint>
|
|
1538
|
+
];
|
|
1539
|
+
typeArguments: [
|
|
1540
|
+
string
|
|
1541
|
+
];
|
|
1542
|
+
}
|
|
1543
|
+
export declare function takeRedeemRequest(options: TakeRedeemRequestOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1544
|
+
export interface ReturnRejectedRedeemRequestArguments {
|
|
1545
|
+
wxaRegistry: RawTransactionArgument<string>;
|
|
1546
|
+
request: RawTransactionArgument<string>;
|
|
1547
|
+
operator: RawTransactionArgument<string>;
|
|
1548
|
+
requestId: RawTransactionArgument<number | bigint>;
|
|
1549
|
+
}
|
|
1550
|
+
export interface ReturnRejectedRedeemRequestOptions {
|
|
1551
|
+
package?: string;
|
|
1552
|
+
arguments: ReturnRejectedRedeemRequestArguments | [
|
|
1553
|
+
wxaRegistry: RawTransactionArgument<string>,
|
|
1554
|
+
request: RawTransactionArgument<string>,
|
|
1555
|
+
operator: RawTransactionArgument<string>,
|
|
1556
|
+
requestId: RawTransactionArgument<number | bigint>
|
|
1557
|
+
];
|
|
1558
|
+
typeArguments: [
|
|
1559
|
+
string
|
|
1560
|
+
];
|
|
1561
|
+
}
|
|
1562
|
+
export declare function returnRejectedRedeemRequest(options: ReturnRejectedRedeemRequestOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1563
|
+
export interface CalculateDynamicFeeArguments {
|
|
1564
|
+
tokenValueUsd: RawTransactionArgument<string>;
|
|
1565
|
+
tvlUsd: RawTransactionArgument<string>;
|
|
1566
|
+
operationValueUsd: RawTransactionArgument<string>;
|
|
1567
|
+
targetWeightBps: RawTransactionArgument<number | bigint>;
|
|
1568
|
+
baseFeeBps: RawTransactionArgument<number | bigint>;
|
|
1569
|
+
isDeposit: RawTransactionArgument<boolean>;
|
|
1570
|
+
}
|
|
1571
|
+
export interface CalculateDynamicFeeOptions {
|
|
1572
|
+
package?: string;
|
|
1573
|
+
arguments: CalculateDynamicFeeArguments | [
|
|
1574
|
+
tokenValueUsd: RawTransactionArgument<string>,
|
|
1575
|
+
tvlUsd: RawTransactionArgument<string>,
|
|
1576
|
+
operationValueUsd: RawTransactionArgument<string>,
|
|
1577
|
+
targetWeightBps: RawTransactionArgument<number | bigint>,
|
|
1578
|
+
baseFeeBps: RawTransactionArgument<number | bigint>,
|
|
1579
|
+
isDeposit: RawTransactionArgument<boolean>
|
|
1580
|
+
];
|
|
1581
|
+
}
|
|
1582
|
+
/** Calculates dynamic fee based on weight deviation. */
|
|
1583
|
+
export declare function calculateDynamicFee(options: CalculateDynamicFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1584
|
+
export interface AssertValidBorrowConfigArguments {
|
|
1585
|
+
rate_0: RawTransactionArgument<string>;
|
|
1586
|
+
rate_1: RawTransactionArgument<string>;
|
|
1587
|
+
rate_2: RawTransactionArgument<string>;
|
|
1588
|
+
intervalMs: RawTransactionArgument<number | bigint>;
|
|
1589
|
+
}
|
|
1590
|
+
export interface AssertValidBorrowConfigOptions {
|
|
1591
|
+
package?: string;
|
|
1592
|
+
arguments: AssertValidBorrowConfigArguments | [
|
|
1593
|
+
rate_0: RawTransactionArgument<string>,
|
|
1594
|
+
rate_1: RawTransactionArgument<string>,
|
|
1595
|
+
rate_2: RawTransactionArgument<string>,
|
|
1596
|
+
intervalMs: RawTransactionArgument<number | bigint>
|
|
1597
|
+
];
|
|
1598
|
+
}
|
|
1599
|
+
export declare function assertValidBorrowConfig(options: AssertValidBorrowConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1600
|
+
export interface AssertValidMaxReserveRatioArguments {
|
|
1601
|
+
maxReserveRatioBps: RawTransactionArgument<number | bigint>;
|
|
1602
|
+
}
|
|
1603
|
+
export interface AssertValidMaxReserveRatioOptions {
|
|
1604
|
+
package?: string;
|
|
1605
|
+
arguments: AssertValidMaxReserveRatioArguments | [
|
|
1606
|
+
maxReserveRatioBps: RawTransactionArgument<number | bigint>
|
|
1607
|
+
];
|
|
1608
|
+
}
|
|
1609
|
+
export declare function assertValidMaxReserveRatio(options: AssertValidMaxReserveRatioOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1610
|
+
export interface CalculateBorrowRateArguments {
|
|
1611
|
+
utilizationBps: RawTransactionArgument<number | bigint>;
|
|
1612
|
+
rate_0: RawTransactionArgument<string>;
|
|
1613
|
+
rate_1: RawTransactionArgument<string>;
|
|
1614
|
+
rate_2: RawTransactionArgument<string>;
|
|
1615
|
+
threshold_0: RawTransactionArgument<number | bigint>;
|
|
1616
|
+
threshold_1: RawTransactionArgument<number | bigint>;
|
|
1617
|
+
}
|
|
1618
|
+
export interface CalculateBorrowRateOptions {
|
|
1619
|
+
package?: string;
|
|
1620
|
+
arguments: CalculateBorrowRateArguments | [
|
|
1621
|
+
utilizationBps: RawTransactionArgument<number | bigint>,
|
|
1622
|
+
rate_0: RawTransactionArgument<string>,
|
|
1623
|
+
rate_1: RawTransactionArgument<string>,
|
|
1624
|
+
rate_2: RawTransactionArgument<string>,
|
|
1625
|
+
threshold_0: RawTransactionArgument<number | bigint>,
|
|
1626
|
+
threshold_1: RawTransactionArgument<number | bigint>
|
|
1627
|
+
];
|
|
1628
|
+
}
|
|
1629
|
+
/** Calculates borrow rate using 3-slope utilization curve. */
|
|
1630
|
+
export declare function calculateBorrowRate(options: CalculateBorrowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1631
|
+
export interface CalculateBorrowRateAccrualArguments {
|
|
1632
|
+
borrowRate: RawTransactionArgument<string>;
|
|
1633
|
+
elapsedMs: RawTransactionArgument<number | bigint>;
|
|
1634
|
+
intervalMs: RawTransactionArgument<number | bigint>;
|
|
1635
|
+
}
|
|
1636
|
+
export interface CalculateBorrowRateAccrualOptions {
|
|
1637
|
+
package?: string;
|
|
1638
|
+
arguments: CalculateBorrowRateAccrualArguments | [
|
|
1639
|
+
borrowRate: RawTransactionArgument<string>,
|
|
1640
|
+
elapsedMs: RawTransactionArgument<number | bigint>,
|
|
1641
|
+
intervalMs: RawTransactionArgument<number | bigint>
|
|
1642
|
+
];
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* Converts the instantaneous borrow rate into a cumulative index delta using the
|
|
1646
|
+
* configured interval as the time basis.
|
|
1647
|
+
*/
|
|
1648
|
+
export declare function calculateBorrowRateAccrual(options: CalculateBorrowRateAccrualOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|