@mysten/deepbook-v3 2.9.1 → 2.10.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/CHANGELOG.md +49 -0
- package/README.md +21 -0
- package/dist/account-bindings/account-registry.d.mts +109 -0
- package/dist/account-bindings/account-registry.d.mts.map +1 -0
- package/dist/account-bindings/account-registry.mjs +56 -0
- package/dist/account-bindings/account-registry.mjs.map +1 -0
- package/dist/account-bindings/account.d.mts +176 -0
- package/dist/account-bindings/account.d.mts.map +1 -0
- package/dist/account-bindings/account.mjs +94 -0
- package/dist/account-bindings/account.mjs.map +1 -0
- package/dist/account-bindings/latest.d.mts +12 -0
- package/dist/account-bindings/latest.d.mts.map +1 -0
- package/dist/account-bindings/latest.mjs +19 -0
- package/dist/account-bindings/latest.mjs.map +1 -0
- package/dist/account.d.mts +46 -3
- package/dist/account.d.mts.map +1 -1
- package/dist/account.mjs +51 -2
- package/dist/account.mjs.map +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/contracts/account/account.d.mts +25 -97
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account.mjs +43 -35
- package/dist/contracts/account/account.mjs.map +1 -1
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_events.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +7 -54
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.mjs +2 -22
- package/dist/contracts/account/account_registry.mjs.map +1 -1
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.d.mts +60 -13
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.mjs +55 -1
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +88 -84
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +8 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +262 -101
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs +320 -41
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +56 -54
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/predict_account.d.mts +22 -17
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/predict_account.mjs +12 -6
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +127 -83
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs +59 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +32 -32
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +6 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +240 -62
- package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/queue.mjs +306 -41
- package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/sessions.d.mts +271 -31
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs +363 -3
- package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +7 -4
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +57 -7
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
- package/dist/predict/bindings/expiry-market.mjs +48 -2
- package/dist/predict/bindings/expiry-market.mjs.map +1 -1
- package/dist/predict/bindings/protocol-config.d.mts +5 -5
- package/dist/predict/bindings/protocol-config.d.mts.map +1 -1
- package/dist/predict/bindings/protocol-config.mjs +4 -1
- package/dist/predict/bindings/protocol-config.mjs.map +1 -1
- package/dist/predict/bindings/queue.d.mts +30 -0
- package/dist/predict/bindings/queue.d.mts.map +1 -0
- package/dist/predict/bindings/queue.mjs +59 -0
- package/dist/predict/bindings/queue.mjs.map +1 -0
- package/dist/predict/bindings/rename.mjs +5 -1
- package/dist/predict/bindings/rename.mjs.map +1 -1
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +11 -5
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/generated.d.mts +1 -1
- package/dist/predict/config/generated.d.mts.map +1 -1
- package/dist/predict/config/generated.mjs +1 -0
- package/dist/predict/config/generated.mjs.map +1 -1
- package/dist/predict/config/mainnet.mjs +3 -1
- package/dist/predict/config/mainnet.mjs.map +1 -1
- package/dist/predict/config/testnet.mjs +3 -1
- package/dist/predict/config/testnet.mjs.map +1 -1
- package/dist/predict/config/types.d.mts +23 -0
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/cost.d.mts +9 -1
- package/dist/predict/cost.d.mts.map +1 -1
- package/dist/predict/cost.mjs.map +1 -1
- package/dist/predict/errors.d.mts.map +1 -1
- package/dist/predict/errors.mjs +6 -2
- package/dist/predict/errors.mjs.map +1 -1
- package/dist/predict/index.d.mts +1 -1
- package/dist/predict/index.mjs +2 -2
- package/dist/predict/queue.d.mts +8 -4
- package/dist/predict/queue.d.mts.map +1 -1
- package/dist/predict/queue.mjs +8 -4
- package/dist/predict/queue.mjs.map +1 -1
- package/dist/predict/reads/balances.mjs +1 -1
- package/dist/predict/reads/pricing.d.mts +1 -0
- package/dist/predict/reads/pricing.d.mts.map +1 -1
- package/dist/predict/reads/queue.d.mts +4 -2
- package/dist/predict/reads/queue.d.mts.map +1 -1
- package/dist/predict/reads/queue.mjs +5 -4
- package/dist/predict/reads/queue.mjs.map +1 -1
- package/dist/predict/tx/authed.mjs +1 -1
- package/dist/predict/tx/common.d.mts.map +1 -1
- package/dist/predict/tx/common.mjs +3 -2
- package/dist/predict/tx/common.mjs.map +1 -1
- package/dist/predict/tx/trade.d.mts.map +1 -1
- package/dist/predict/tx/trade.mjs +3 -2
- package/dist/predict/tx/trade.mjs.map +1 -1
- package/dist/sessions.d.mts +10 -1
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbook.d.mts.map +1 -1
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginAdmin.d.mts.map +1 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginPool.d.mts.map +1 -1
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +1 -1
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +2 -2
- package/src/account-bindings/account-registry.ts +39 -0
- package/src/account-bindings/account.ts +73 -0
- package/src/account-bindings/latest.ts +41 -0
- package/src/account.ts +89 -5
- package/src/contracts/account/account.ts +73 -4
- package/src/contracts/account/account_registry.ts +1 -1
- package/src/contracts/deepbook_predict/builder_code.ts +94 -2
- package/src/contracts/deepbook_predict/config_events.ts +7 -0
- package/src/contracts/deepbook_predict/expiry_market.ts +490 -44
- package/src/contracts/deepbook_predict/order_events.ts +6 -4
- package/src/contracts/deepbook_predict/predict_account.ts +12 -6
- package/src/contracts/deepbook_predict/protocol_config.ts +85 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +14 -0
- package/src/contracts/deepbook_predict_orders/order_flow.ts +4 -0
- package/src/contracts/deepbook_predict_orders/queue.ts +495 -9
- package/src/contracts/deepbook_sessions/sessions.ts +538 -3
- package/src/deployments/mainnet.ts +4 -4
- package/src/deployments/testnet.ts +18 -7
- package/src/deployments/types.ts +14 -0
- package/src/predict/bindings/expiry-market.ts +87 -0
- package/src/predict/bindings/queue.ts +42 -0
- package/src/predict/bindings/rename.ts +5 -1
- package/src/predict/client.ts +25 -3
- package/src/predict/config/generated.ts +3 -0
- package/src/predict/config/mainnet.ts +4 -0
- package/src/predict/config/testnet.ts +4 -0
- package/src/predict/config/types.ts +23 -0
- package/src/predict/cost.ts +9 -1
- package/src/predict/errors.ts +11 -1
- package/src/predict/index.ts +1 -1
- package/src/predict/queue.ts +8 -4
- package/src/predict/reads/queue.ts +7 -4
- package/src/predict/tx/common.ts +2 -0
- package/src/predict/tx/trade.ts +3 -1
- package/src/sessions.ts +10 -1
- package/src/utils/constants.ts +5 -1
|
@@ -1,133 +1,137 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs161 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict/config_events.d.ts
|
|
5
5
|
declare namespace config_events_d_exports {
|
|
6
|
-
export { CadenceAdded, CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, FeeIncentiveAllocationRatesUpdated, FeeIncentiveSubsidyRateUpdated, FlushOperatorUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, OrderFlowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, SettledRedeemKeeperUpdated, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
|
|
6
|
+
export { BuilderFeeCapUpdated, CadenceAdded, CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, FeeIncentiveAllocationRatesUpdated, FeeIncentiveSubsidyRateUpdated, FlushOperatorUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, OrderFlowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, SettledRedeemKeeperUpdated, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
|
|
7
7
|
}
|
|
8
8
|
declare const StrikeExposureTemplateConfigUpdated: MoveStruct<{
|
|
9
|
-
backing_buffer_lambda:
|
|
10
|
-
base_fee:
|
|
11
|
-
min_fee:
|
|
12
|
-
min_entry_probability:
|
|
13
|
-
max_entry_probability:
|
|
14
|
-
expiry_fee_window_ms:
|
|
15
|
-
expiry_fee_max_multiplier:
|
|
16
|
-
inventory_impact_max_rate:
|
|
17
|
-
onchain_timestamp_ms:
|
|
9
|
+
backing_buffer_lambda: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
10
|
+
base_fee: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
11
|
+
min_fee: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
min_entry_probability: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
max_entry_probability: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
14
|
+
expiry_fee_window_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
inventory_impact_max_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
18
|
}, "@local-pkg/deepbook_predict::config_events::StrikeExposureTemplateConfigUpdated">;
|
|
19
19
|
declare const PricingConfigUpdated: MoveStruct<{
|
|
20
|
-
use_pyth_spot_for_forward:
|
|
21
|
-
pyth_spot_freshness_ms:
|
|
22
|
-
block_scholes_price_freshness_ms:
|
|
23
|
-
block_scholes_svi_freshness_ms:
|
|
24
|
-
onchain_timestamp_ms:
|
|
20
|
+
use_pyth_spot_for_forward: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
21
|
+
pyth_spot_freshness_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
block_scholes_price_freshness_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
|
+
block_scholes_svi_freshness_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
25
25
|
}, "@local-pkg/deepbook_predict::config_events::PricingConfigUpdated">;
|
|
26
26
|
declare const EwmaConfigUpdated: MoveStruct<{
|
|
27
|
-
alpha:
|
|
28
|
-
z_score_threshold:
|
|
29
|
-
penalty_rate:
|
|
30
|
-
enabled:
|
|
31
|
-
onchain_timestamp_ms:
|
|
27
|
+
alpha: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
z_score_threshold: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
penalty_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
enabled: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
31
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
32
|
}, "@local-pkg/deepbook_predict::config_events::EwmaConfigUpdated">;
|
|
33
33
|
declare const PlpFeeRatesUpdated: MoveStruct<{
|
|
34
|
-
plp_supply_fee_rate:
|
|
35
|
-
plp_withdraw_fee_rate:
|
|
36
|
-
onchain_timestamp_ms:
|
|
34
|
+
plp_supply_fee_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
|
+
plp_withdraw_fee_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
37
|
}, "@local-pkg/deepbook_predict::config_events::PlpFeeRatesUpdated">;
|
|
38
38
|
declare const NoTradeWindowUpdated: MoveStruct<{
|
|
39
|
-
no_trade_window_ms:
|
|
40
|
-
onchain_timestamp_ms:
|
|
39
|
+
no_trade_window_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
41
|
}, "@local-pkg/deepbook_predict::config_events::NoTradeWindowUpdated">;
|
|
42
42
|
declare const FeeIncentiveSubsidyRateUpdated: MoveStruct<{
|
|
43
|
-
fee_incentive_subsidy_rate:
|
|
44
|
-
onchain_timestamp_ms:
|
|
43
|
+
fee_incentive_subsidy_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
45
|
}, "@local-pkg/deepbook_predict::config_events::FeeIncentiveSubsidyRateUpdated">;
|
|
46
|
+
declare const BuilderFeeCapUpdated: MoveStruct<{
|
|
47
|
+
builder_fee_cap: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
|
+
}, "@local-pkg/deepbook_predict::config_events::BuilderFeeCapUpdated">;
|
|
46
50
|
declare const FeeIncentiveAllocationRatesUpdated: MoveStruct<{
|
|
47
|
-
fee_incentive_live_target_rate:
|
|
48
|
-
fee_incentive_lifetime_cap_rate:
|
|
49
|
-
onchain_timestamp_ms:
|
|
51
|
+
fee_incentive_live_target_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
52
|
+
fee_incentive_lifetime_cap_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
53
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
50
54
|
}, "@local-pkg/deepbook_predict::config_events::FeeIncentiveAllocationRatesUpdated">;
|
|
51
55
|
declare const TradingPausedUpdated: MoveStruct<{
|
|
52
|
-
protocol_config_id:
|
|
53
|
-
paused:
|
|
56
|
+
protocol_config_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
57
|
+
paused: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
54
58
|
}, "@local-pkg/deepbook_predict::config_events::TradingPausedUpdated">;
|
|
55
59
|
declare const ProtocolFrozenUpdated: MoveStruct<{
|
|
56
|
-
protocol_config_id:
|
|
57
|
-
frozen:
|
|
60
|
+
protocol_config_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
61
|
+
frozen: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
58
62
|
}, "@local-pkg/deepbook_predict::config_events::ProtocolFrozenUpdated">;
|
|
59
63
|
declare const SettledRedeemKeeperUpdated: MoveStruct<{
|
|
60
|
-
keeper:
|
|
61
|
-
allowed:
|
|
64
|
+
keeper: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
65
|
+
allowed: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
62
66
|
}, "@local-pkg/deepbook_predict::config_events::SettledRedeemKeeperUpdated">;
|
|
63
67
|
declare const FlushOperatorUpdated: MoveStruct<{
|
|
64
|
-
operator:
|
|
65
|
-
added:
|
|
66
|
-
onchain_timestamp_ms:
|
|
68
|
+
operator: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
69
|
+
added: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
70
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
71
|
}, "@local-pkg/deepbook_predict::config_events::FlushOperatorUpdated">;
|
|
68
72
|
declare const OrderFlowUpdated: MoveStruct<{
|
|
69
73
|
order_flow: MoveStruct<{
|
|
70
|
-
name:
|
|
74
|
+
name: _mysten_sui_bcs161.BcsType<string, string, "string">;
|
|
71
75
|
}, "std::type_name::TypeName">;
|
|
72
|
-
enabled:
|
|
73
|
-
onchain_timestamp_ms:
|
|
76
|
+
enabled: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
77
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
78
|
}, "@local-pkg/deepbook_predict::config_events::OrderFlowUpdated">;
|
|
75
79
|
declare const MarketCreated: MoveStruct<{
|
|
76
|
-
expiry_market_id:
|
|
77
|
-
pool_vault_id:
|
|
78
|
-
propbook_underlying_id:
|
|
79
|
-
expiry:
|
|
80
|
+
expiry_market_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
81
|
+
pool_vault_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
|
|
82
|
+
propbook_underlying_id: _mysten_sui_bcs161.BcsType<number, number, "u32">;
|
|
83
|
+
expiry: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
84
|
/**
|
|
81
85
|
* Raw-price-per-tick factor; indexers/SDKs derive raw strikes as
|
|
82
86
|
* `tick * tick_size`.
|
|
83
87
|
*/
|
|
84
|
-
tick_size:
|
|
85
|
-
admission_tick_size:
|
|
86
|
-
max_expiry_allocation:
|
|
87
|
-
initial_expiry_cash:
|
|
88
|
-
backing_buffer_lambda:
|
|
89
|
-
base_fee:
|
|
90
|
-
min_fee:
|
|
91
|
-
min_entry_probability:
|
|
92
|
-
max_entry_probability:
|
|
93
|
-
expiry_fee_window_ms:
|
|
94
|
-
expiry_fee_max_multiplier:
|
|
95
|
-
inventory_impact_max_rate:
|
|
88
|
+
tick_size: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
89
|
+
admission_tick_size: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
|
|
90
|
+
max_expiry_allocation: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
|
|
91
|
+
initial_expiry_cash: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
|
+
backing_buffer_lambda: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
93
|
+
base_fee: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
min_fee: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
min_entry_probability: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
|
+
max_entry_probability: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
expiry_fee_window_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
98
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
|
|
99
|
+
inventory_impact_max_rate: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
100
|
}, "@local-pkg/deepbook_predict::config_events::MarketCreated">;
|
|
97
101
|
declare const CadenceConfigUpdated: MoveStruct<{
|
|
98
|
-
registry_id:
|
|
99
|
-
propbook_underlying_id:
|
|
100
|
-
cadence_id:
|
|
101
|
-
tick_size:
|
|
102
|
-
admission_tick_size:
|
|
103
|
-
max_expiry_allocation:
|
|
104
|
-
initial_expiry_cash:
|
|
105
|
-
window_size:
|
|
102
|
+
registry_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
103
|
+
propbook_underlying_id: _mysten_sui_bcs161.BcsType<number, number, "u32">;
|
|
104
|
+
cadence_id: _mysten_sui_bcs161.BcsType<number, number, "u8">;
|
|
105
|
+
tick_size: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
106
|
+
admission_tick_size: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
107
|
+
max_expiry_allocation: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
108
|
+
initial_expiry_cash: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
109
|
+
window_size: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
106
110
|
}, "@local-pkg/deepbook_predict::config_events::CadenceConfigUpdated">;
|
|
107
111
|
declare const CadenceAdded: MoveStruct<{
|
|
108
|
-
registry_id:
|
|
109
|
-
cadence_id:
|
|
110
|
-
period_ms:
|
|
112
|
+
registry_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
113
|
+
cadence_id: _mysten_sui_bcs161.BcsType<number, number, "u8">;
|
|
114
|
+
period_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
111
115
|
}, "@local-pkg/deepbook_predict::config_events::CadenceAdded">;
|
|
112
116
|
declare const ExpiryMarketMintPausedUpdated: MoveStruct<{
|
|
113
|
-
expiry_market_id:
|
|
114
|
-
paused:
|
|
117
|
+
expiry_market_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
118
|
+
paused: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
115
119
|
}, "@local-pkg/deepbook_predict::config_events::ExpiryMarketMintPausedUpdated">;
|
|
116
120
|
declare const ReferenceTickSet: MoveStruct<{
|
|
117
|
-
expiry_market_id:
|
|
118
|
-
propbook_underlying_id:
|
|
119
|
-
source_timestamp_ms:
|
|
120
|
-
spot:
|
|
121
|
-
tick:
|
|
122
|
-
onchain_timestamp_ms:
|
|
121
|
+
expiry_market_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
122
|
+
propbook_underlying_id: _mysten_sui_bcs161.BcsType<number, number, "u32">;
|
|
123
|
+
source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
124
|
+
spot: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
tick: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
126
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
123
127
|
}, "@local-pkg/deepbook_predict::config_events::ReferenceTickSet">;
|
|
124
128
|
declare const MarketSettled: MoveStruct<{
|
|
125
|
-
expiry_market_id:
|
|
126
|
-
propbook_underlying_id:
|
|
127
|
-
expiry:
|
|
128
|
-
settlement_price:
|
|
129
|
-
settlement_source:
|
|
130
|
-
onchain_timestamp_ms:
|
|
129
|
+
expiry_market_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
130
|
+
propbook_underlying_id: _mysten_sui_bcs161.BcsType<number, number, "u32">;
|
|
131
|
+
expiry: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
132
|
+
settlement_price: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
|
|
133
|
+
settlement_source: _mysten_sui_bcs161.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
|
|
134
|
+
onchain_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
131
135
|
}, "@local-pkg/deepbook_predict::config_events::MarketSettled">;
|
|
132
136
|
//#endregion
|
|
133
137
|
export { config_events_d_exports };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"mappings":";;;;;;;cAWa,mCAAA,EAAmC,UAAA;yBAa9C,kBAAA,CAAA,OAAA;;;;;;;;;;cACW,oBAAA,EAAoB,UAAA;6BAS/B,kBAAA,CAAA,OAAA;;;;;;cACW,iBAAA,EAAiB,UAAA;SAS5B,kBAAA,CAAA,OAAA;;;;;;cACW,kBAAA,EAAkB,UAAA;uBAO7B,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;sBAM/B,kBAAA,CAAA,OAAA;;;cACW,8BAAA,EAA8B,UAAA;8BAMzC,kBAAA,CAAA,OAAA;;;cACW,kCAAA,EAAkC,UAAA;kCAO7C,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;;;;cAOpB,qBAAA,EAAqB,UAAA;;;;cAOrB,0BAAA,EAA0B,UAAA;;;;cAO1B,oBAAA,EAAoB,UAAA;;;;;cAQpB,gBAAA,EAAgB,UAAA;;UAO3B,kBAAA,CAAA,OAAA;EAAA;;;;cACW,aAAA,EAAa,UAAA
|
|
1
|
+
{"version":3,"file":"config_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"mappings":";;;;;;;cAWa,mCAAA,EAAmC,UAAA;yBAa9C,kBAAA,CAAA,OAAA;;;;;;;;;;cACW,oBAAA,EAAoB,UAAA;6BAS/B,kBAAA,CAAA,OAAA;;;;;;cACW,iBAAA,EAAiB,UAAA;SAS5B,kBAAA,CAAA,OAAA;;;;;;cACW,kBAAA,EAAkB,UAAA;uBAO7B,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;sBAM/B,kBAAA,CAAA,OAAA;;;cACW,8BAAA,EAA8B,UAAA;8BAMzC,kBAAA,CAAA,OAAA;;;cACW,oBAAA,EAAoB,UAAA;mBAM/B,kBAAA,CAAA,OAAA;;;cACW,kCAAA,EAAkC,UAAA;kCAO7C,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;;;;cAOpB,qBAAA,EAAqB,UAAA;;;;cAOrB,0BAAA,EAA0B,UAAA;;;;cAO1B,oBAAA,EAAoB,UAAA;;;;;cAQpB,gBAAA,EAAgB,UAAA;;UAO3B,kBAAA,CAAA,OAAA;EAAA;;;;cACW,aAAA,EAAa,UAAA;;;;;;;;;kFA3ExB;4FAAA;;;;;;;;;;;;cAyGW,oBAAA,EAAoB,UAAA;;;;;;;;;;cAapB,YAAA,EAAY,UAAA;;;;;cAQZ,6BAAA,EAA6B,UAAA;;;;cAO7B,gBAAA,EAAgB,UAAA;;;;;;;;cAWhB,aAAA,EAAa,UAAA;;;;yFAvIO"}
|
|
@@ -10,6 +10,7 @@ import { bcs } from "@mysten/sui/bcs";
|
|
|
10
10
|
**************************************************************/
|
|
11
11
|
/** Admin and configuration events for Predict. */
|
|
12
12
|
var config_events_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
+
BuilderFeeCapUpdated: () => BuilderFeeCapUpdated,
|
|
13
14
|
CadenceAdded: () => CadenceAdded,
|
|
14
15
|
CadenceConfigUpdated: () => CadenceConfigUpdated,
|
|
15
16
|
EwmaConfigUpdated: () => EwmaConfigUpdated,
|
|
@@ -86,6 +87,13 @@ const FeeIncentiveSubsidyRateUpdated = new MoveStruct({
|
|
|
86
87
|
onchain_timestamp_ms: U64
|
|
87
88
|
}
|
|
88
89
|
});
|
|
90
|
+
const BuilderFeeCapUpdated = new MoveStruct({
|
|
91
|
+
name: `${$moduleName}::BuilderFeeCapUpdated`,
|
|
92
|
+
fields: {
|
|
93
|
+
builder_fee_cap: U64,
|
|
94
|
+
onchain_timestamp_ms: U64
|
|
95
|
+
}
|
|
96
|
+
});
|
|
89
97
|
const FeeIncentiveAllocationRatesUpdated = new MoveStruct({
|
|
90
98
|
name: `${$moduleName}::FeeIncentiveAllocationRatesUpdated`,
|
|
91
99
|
fields: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config_events.mjs","names":["type_name.TypeName"],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Admin and configuration events for Predict. */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport * as type_name from './deps/std/type_name.js';\nconst $moduleName = '@local-pkg/deepbook_predict::config_events';\nexport const StrikeExposureTemplateConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposureTemplateConfigUpdated`,\n\tfields: {\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\tinventory_impact_max_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PricingConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::PricingConfigUpdated`,\n\tfields: {\n\t\tuse_pyth_spot_for_forward: bcs.bool(),\n\t\tpyth_spot_freshness_ms: U64,\n\t\tblock_scholes_price_freshness_ms: U64,\n\t\tblock_scholes_svi_freshness_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const EwmaConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::EwmaConfigUpdated`,\n\tfields: {\n\t\talpha: U64,\n\t\tz_score_threshold: U64,\n\t\tpenalty_rate: U64,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PlpFeeRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::PlpFeeRatesUpdated`,\n\tfields: {\n\t\tplp_supply_fee_rate: U64,\n\t\tplp_withdraw_fee_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const NoTradeWindowUpdated = new MoveStruct({\n\tname: `${$moduleName}::NoTradeWindowUpdated`,\n\tfields: {\n\t\tno_trade_window_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const FeeIncentiveSubsidyRateUpdated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentiveSubsidyRateUpdated`,\n\tfields: {\n\t\tfee_incentive_subsidy_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const FeeIncentiveAllocationRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentiveAllocationRatesUpdated`,\n\tfields: {\n\t\tfee_incentive_live_target_rate: U64,\n\t\tfee_incentive_lifetime_cap_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const TradingPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::TradingPausedUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ProtocolFrozenUpdated = new MoveStruct({\n\tname: `${$moduleName}::ProtocolFrozenUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tfrozen: bcs.bool(),\n\t},\n});\nexport const SettledRedeemKeeperUpdated = new MoveStruct({\n\tname: `${$moduleName}::SettledRedeemKeeperUpdated`,\n\tfields: {\n\t\tkeeper: bcs.Address,\n\t\tallowed: bcs.bool(),\n\t},\n});\nexport const FlushOperatorUpdated = new MoveStruct({\n\tname: `${$moduleName}::FlushOperatorUpdated`,\n\tfields: {\n\t\toperator: bcs.Address,\n\t\tadded: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const OrderFlowUpdated = new MoveStruct({\n\tname: `${$moduleName}::OrderFlowUpdated`,\n\tfields: {\n\t\torder_flow: type_name.TypeName,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketCreated = new MoveStruct({\n\tname: `${$moduleName}::MarketCreated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpool_vault_id: bcs.Address,\n\t\t/** Propbook underlying this market resolves current oracle bindings through. */\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\t/**\n\t\t * Raw-price-per-tick factor; indexers/SDKs derive raw strikes as\n\t\t * `tick * tick_size`.\n\t\t */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** USDC pool allocation cap snapshotted for this expiry. */\n\t\tmax_expiry_allocation: U64,\n\t\t/** Minimum USDC cash target snapshotted for this expiry. */\n\t\tinitial_expiry_cash: U64,\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\t/** Maximum marginal inventory-impact rate snapshotted by this market. */\n\t\tinventory_impact_max_rate: U64,\n\t},\n});\nexport const CadenceConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::CadenceConfigUpdated`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tcadence_id: bcs.u8(),\n\t\ttick_size: U64,\n\t\tadmission_tick_size: U64,\n\t\tmax_expiry_allocation: U64,\n\t\tinitial_expiry_cash: U64,\n\t\twindow_size: U64,\n\t},\n});\nexport const CadenceAdded = new MoveStruct({\n\tname: `${$moduleName}::CadenceAdded`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tcadence_id: bcs.u8(),\n\t\tperiod_ms: U64,\n\t},\n});\nexport const ExpiryMarketMintPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::ExpiryMarketMintPausedUpdated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ReferenceTickSet = new MoveStruct({\n\tname: `${$moduleName}::ReferenceTickSet`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tsource_timestamp_ms: U64,\n\t\tspot: U64,\n\t\ttick: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketSettled = new MoveStruct({\n\tname: `${$moduleName}::MarketSettled`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\tsettlement_price: U64,\n\t\t/** `0` = Pyth and `1` = Block Scholes. */\n\t\tsettlement_source: bcs.u8(),\n\t\t/** On-chain landing time of the settlement, `clock.timestamp_ms()`. */\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config_events.mjs","names":["type_name.TypeName"],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Admin and configuration events for Predict. */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport * as type_name from './deps/std/type_name.js';\nconst $moduleName = '@local-pkg/deepbook_predict::config_events';\nexport const StrikeExposureTemplateConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposureTemplateConfigUpdated`,\n\tfields: {\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\tinventory_impact_max_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PricingConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::PricingConfigUpdated`,\n\tfields: {\n\t\tuse_pyth_spot_for_forward: bcs.bool(),\n\t\tpyth_spot_freshness_ms: U64,\n\t\tblock_scholes_price_freshness_ms: U64,\n\t\tblock_scholes_svi_freshness_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const EwmaConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::EwmaConfigUpdated`,\n\tfields: {\n\t\talpha: U64,\n\t\tz_score_threshold: U64,\n\t\tpenalty_rate: U64,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PlpFeeRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::PlpFeeRatesUpdated`,\n\tfields: {\n\t\tplp_supply_fee_rate: U64,\n\t\tplp_withdraw_fee_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const NoTradeWindowUpdated = new MoveStruct({\n\tname: `${$moduleName}::NoTradeWindowUpdated`,\n\tfields: {\n\t\tno_trade_window_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const FeeIncentiveSubsidyRateUpdated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentiveSubsidyRateUpdated`,\n\tfields: {\n\t\tfee_incentive_subsidy_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const BuilderFeeCapUpdated = new MoveStruct({\n\tname: `${$moduleName}::BuilderFeeCapUpdated`,\n\tfields: {\n\t\tbuilder_fee_cap: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const FeeIncentiveAllocationRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentiveAllocationRatesUpdated`,\n\tfields: {\n\t\tfee_incentive_live_target_rate: U64,\n\t\tfee_incentive_lifetime_cap_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const TradingPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::TradingPausedUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ProtocolFrozenUpdated = new MoveStruct({\n\tname: `${$moduleName}::ProtocolFrozenUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tfrozen: bcs.bool(),\n\t},\n});\nexport const SettledRedeemKeeperUpdated = new MoveStruct({\n\tname: `${$moduleName}::SettledRedeemKeeperUpdated`,\n\tfields: {\n\t\tkeeper: bcs.Address,\n\t\tallowed: bcs.bool(),\n\t},\n});\nexport const FlushOperatorUpdated = new MoveStruct({\n\tname: `${$moduleName}::FlushOperatorUpdated`,\n\tfields: {\n\t\toperator: bcs.Address,\n\t\tadded: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const OrderFlowUpdated = new MoveStruct({\n\tname: `${$moduleName}::OrderFlowUpdated`,\n\tfields: {\n\t\torder_flow: type_name.TypeName,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketCreated = new MoveStruct({\n\tname: `${$moduleName}::MarketCreated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpool_vault_id: bcs.Address,\n\t\t/** Propbook underlying this market resolves current oracle bindings through. */\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\t/**\n\t\t * Raw-price-per-tick factor; indexers/SDKs derive raw strikes as\n\t\t * `tick * tick_size`.\n\t\t */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** USDC pool allocation cap snapshotted for this expiry. */\n\t\tmax_expiry_allocation: U64,\n\t\t/** Minimum USDC cash target snapshotted for this expiry. */\n\t\tinitial_expiry_cash: U64,\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\t/** Maximum marginal inventory-impact rate snapshotted by this market. */\n\t\tinventory_impact_max_rate: U64,\n\t},\n});\nexport const CadenceConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::CadenceConfigUpdated`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tcadence_id: bcs.u8(),\n\t\ttick_size: U64,\n\t\tadmission_tick_size: U64,\n\t\tmax_expiry_allocation: U64,\n\t\tinitial_expiry_cash: U64,\n\t\twindow_size: U64,\n\t},\n});\nexport const CadenceAdded = new MoveStruct({\n\tname: `${$moduleName}::CadenceAdded`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tcadence_id: bcs.u8(),\n\t\tperiod_ms: U64,\n\t},\n});\nexport const ExpiryMarketMintPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::ExpiryMarketMintPausedUpdated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ReferenceTickSet = new MoveStruct({\n\tname: `${$moduleName}::ReferenceTickSet`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tsource_timestamp_ms: U64,\n\t\tspot: U64,\n\t\ttick: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketSettled = new MoveStruct({\n\tname: `${$moduleName}::MarketSettled`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\tsettlement_price: U64,\n\t\t/** `0` = Pyth and `1` = Block Scholes. */\n\t\tsettlement_source: bcs.u8(),\n\t\t/** On-chain landing time of the settlement, `clock.timestamp_ms()`. */\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\n"],"mappings":"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"}
|