@mysten/deepbook-v3 2.4.0 → 2.4.1
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 +2 -0
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.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 +19 -19
- 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_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +95 -95
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- 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/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/plp.d.mts +72 -72
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +2 -2
- package/dist/contracts/deepbook_predict/predict_account.d.mts +9 -9
- package/dist/contracts/deepbook_predict/pricing.d.mts +45 -45
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +32 -32
- package/dist/contracts/deepbook_predict/registry.d.mts +9 -9
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- 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/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plp.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/plp.ts"],"mappings":";;;;;;;;;cAkCa,GAAA,EAAG,UAAA;eAKd,
|
|
1
|
+
{"version":3,"file":"plp.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/plp.ts"],"mappings":";;;;;;;;;cAkCa,GAAA,EAAG,UAAA;eAKd,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,kBAAA,EAAkB,UAAA;eAK7B,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,aAAA,EAAa,UAAA;eAKxB,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,aAAA,EAAa,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DADxB;;EALwB;;;;;;AAM1B;;;;;;;;;;;;;;;;;;;;;;;cAuDa,SAAA,EAAS,UAAA;;;;;;;;0CAvDI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6ET,WAAA;EAChB,KAAA,GAAQ,sBAAA;AAAA;AAAA,UAEQ,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IAC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A,GAAQ,sBAAA;EACR,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;EACN,MAAA,GAAS,sBAAA;EACT,KAAA,EAAO,sBAAA;AAAA;AAAA,UAES,4BAAA;EAChB,OAAA;EACA,SAAA,EAAW,8BAAA;EACX,MAAA;IACC,SAAA,EAAW,WAAA;IACX,cAAA,EAAgB,WAAA;IAChB,gBAAA;EAAA;AAAA;AAhsBF;;;;AAAA,iBAusBgB,qBAAA,CAAsB,OAAA,EAAS,4BAAA,IAatC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs164 from "@mysten/sui/bcs";
|
|
3
3
|
import * as _mysten_sui_transactions240 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ declare namespace pool_valuation_cap_d_exports {
|
|
|
8
8
|
export { DestroyArguments, DestroyOptions, IdArguments, IdOptions, PoolValuationCap, destroy, id };
|
|
9
9
|
}
|
|
10
10
|
declare const PoolValuationCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs164.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::pool_valuation_cap::PoolValuationCap">;
|
|
13
13
|
interface IdArguments {
|
|
14
14
|
cap: RawTransactionArgument<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs165 from "@mysten/sui/bcs";
|
|
3
3
|
import * as _mysten_sui_transactions242 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
@@ -7,27 +7,27 @@ import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
|
7
7
|
declare namespace predict_account_d_exports {
|
|
8
8
|
export { BuilderCodeIdArguments, BuilderCodeIdOptions, HasPositionArguments, HasPositionOptions, Position, PositionKey, PredictApp, PredictData, SetBuilderCodeArguments, SetBuilderCodeOptions, UnsetBuilderCodeArguments, UnsetBuilderCodeOptions, builderCodeId, hasPosition, setBuilderCode, unsetBuilderCode };
|
|
9
9
|
}
|
|
10
|
-
declare const PredictApp: MoveTuple<readonly [
|
|
10
|
+
declare const PredictApp: MoveTuple<readonly [_mysten_sui_bcs165.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::predict_account::PredictApp">;
|
|
11
11
|
declare const PositionKey: MoveStruct<{
|
|
12
|
-
expiry_market_id:
|
|
13
|
-
order_id:
|
|
12
|
+
expiry_market_id: _mysten_sui_bcs165.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
order_id: _mysten_sui_bcs165.BcsType<bigint, string | number | bigint, "u256">;
|
|
14
14
|
}, "@local-pkg/deepbook_predict::predict_account::PositionKey">;
|
|
15
15
|
declare const Position: MoveStruct<{
|
|
16
|
-
/** Root order ID, carried forward unchanged across partial-close replacements. */root_id:
|
|
16
|
+
/** Root order ID, carried forward unchanged across partial-close replacements. */root_id: _mysten_sui_bcs165.BcsType<bigint, string | number | bigint, "u256">;
|
|
17
17
|
/**
|
|
18
18
|
* On-chain time (`clock.timestamp_ms()`) the position was opened, carried forward
|
|
19
19
|
* unchanged across partial-close replacements. A live redeem in the same timestamp
|
|
20
20
|
* is rejected, blocking an atomic mint -> oracle-update -> redeem in one
|
|
21
21
|
* transaction.
|
|
22
22
|
*/
|
|
23
|
-
opened_at_ms:
|
|
23
|
+
opened_at_ms: _mysten_sui_bcs165.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "@local-pkg/deepbook_predict::predict_account::Position">;
|
|
25
25
|
declare const PredictData: MoveStruct<{
|
|
26
26
|
/** Open positions scoped by expiry market. */positions: MoveStruct<{
|
|
27
|
-
id:
|
|
28
|
-
size:
|
|
27
|
+
id: _mysten_sui_bcs165.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
size: _mysten_sui_bcs165.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
29
|
}, "0x2::table::Table<phantom K, phantom V>">; /** Sticky builder-code attribution for future trades, if set. */
|
|
30
|
-
builder_code_id:
|
|
30
|
+
builder_code_id: _mysten_sui_bcs165.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
31
31
|
}, "@local-pkg/deepbook_predict::predict_account::PredictData">;
|
|
32
32
|
interface HasPositionArguments {
|
|
33
33
|
account: TransactionArgument;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs173 from "@mysten/sui/bcs";
|
|
3
3
|
import * as _mysten_sui_transactions246 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
@@ -8,57 +8,57 @@ declare namespace pricing_d_exports {
|
|
|
8
8
|
export { FrozenPricer, Pricer, PricingSVI, RangePriceArguments, RangePriceOptions, RawSVI, UpPriceArguments, UpPriceOptions, rangePrice, upPrice };
|
|
9
9
|
}
|
|
10
10
|
declare const PricingSVI: MoveStruct<{
|
|
11
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
12
|
-
a_is_negative:
|
|
13
|
-
b:
|
|
11
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u128">;
|
|
12
|
+
a_is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
13
|
+
b: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u128">;
|
|
14
14
|
rho: MoveStruct<{
|
|
15
|
-
magnitude:
|
|
16
|
-
is_negative:
|
|
15
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
17
17
|
}, "fixed_math::i64::I64">;
|
|
18
18
|
m: MoveStruct<{
|
|
19
|
-
magnitude:
|
|
20
|
-
is_negative:
|
|
19
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
21
21
|
}, "fixed_math::i64::I64">;
|
|
22
|
-
sigma:
|
|
22
|
+
sigma: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
23
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
24
24
|
declare const FrozenPricer: MoveStruct<{
|
|
25
|
-
expiry_market_id:
|
|
26
|
-
forward:
|
|
25
|
+
expiry_market_id: _mysten_sui_bcs173.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
26
|
+
forward: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
27
|
svi: MoveStruct<{
|
|
28
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
29
|
-
a_is_negative:
|
|
30
|
-
b:
|
|
28
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u128">;
|
|
29
|
+
a_is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
30
|
+
b: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u128">;
|
|
31
31
|
rho: MoveStruct<{
|
|
32
|
-
magnitude:
|
|
33
|
-
is_negative:
|
|
32
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
34
34
|
}, "fixed_math::i64::I64">;
|
|
35
35
|
m: MoveStruct<{
|
|
36
|
-
magnitude:
|
|
37
|
-
is_negative:
|
|
36
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
38
38
|
}, "fixed_math::i64::I64">;
|
|
39
|
-
sigma:
|
|
39
|
+
sigma: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
40
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
41
|
-
pyth_spot_source_timestamp_ms:
|
|
42
|
-
block_scholes_spot_source_timestamp_ms:
|
|
43
|
-
block_scholes_forward_source_timestamp_ms:
|
|
44
|
-
block_scholes_svi_source_timestamp_ms:
|
|
41
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
45
|
}, "@local-pkg/deepbook_predict::pricing::FrozenPricer">;
|
|
46
46
|
declare const Pricer: MoveStruct<{
|
|
47
|
-
/** Expiry market this snapshot was loaded for. */expiry_market_id:
|
|
48
|
-
forward:
|
|
47
|
+
/** Expiry market this snapshot was loaded for. */expiry_market_id: _mysten_sui_bcs173.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
48
|
+
forward: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
49
|
svi: MoveStruct<{
|
|
50
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
51
|
-
a_is_negative:
|
|
52
|
-
b:
|
|
50
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u128">;
|
|
51
|
+
a_is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
52
|
+
b: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u128">;
|
|
53
53
|
rho: MoveStruct<{
|
|
54
|
-
magnitude:
|
|
55
|
-
is_negative:
|
|
54
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
56
56
|
}, "fixed_math::i64::I64">;
|
|
57
57
|
m: MoveStruct<{
|
|
58
|
-
magnitude:
|
|
59
|
-
is_negative:
|
|
58
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
59
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
60
60
|
}, "fixed_math::i64::I64">;
|
|
61
|
-
sigma:
|
|
61
|
+
sigma: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
62
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
63
63
|
/**
|
|
64
64
|
* Timestamps of the oracle observations this snapshot validated, as trade events
|
|
@@ -68,26 +68,26 @@ declare const Pricer: MoveStruct<{
|
|
|
68
68
|
* provider `svi_timestamp`. Those timestamps are the clocks freshness gates and
|
|
69
69
|
* SVI roll-down use.
|
|
70
70
|
*/
|
|
71
|
-
pyth_spot_source_timestamp_ms:
|
|
72
|
-
block_scholes_spot_source_timestamp_ms:
|
|
73
|
-
block_scholes_forward_source_timestamp_ms:
|
|
74
|
-
block_scholes_svi_source_timestamp_ms:
|
|
71
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
75
|
}, "@local-pkg/deepbook_predict::pricing::Pricer">;
|
|
76
76
|
declare const RawSVI: MoveStruct<{
|
|
77
77
|
a: MoveStruct<{
|
|
78
|
-
magnitude:
|
|
79
|
-
is_negative:
|
|
78
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
80
80
|
}, "fixed_math::i64::I64">;
|
|
81
|
-
b:
|
|
81
|
+
b: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
82
82
|
rho: MoveStruct<{
|
|
83
|
-
magnitude:
|
|
84
|
-
is_negative:
|
|
83
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
84
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
85
85
|
}, "fixed_math::i64::I64">;
|
|
86
86
|
m: MoveStruct<{
|
|
87
|
-
magnitude:
|
|
88
|
-
is_negative:
|
|
87
|
+
magnitude: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
is_negative: _mysten_sui_bcs173.BcsType<boolean, boolean, "bool">;
|
|
89
89
|
}, "fixed_math::i64::I64">;
|
|
90
|
-
sigma:
|
|
90
|
+
sigma: _mysten_sui_bcs173.BcsType<bigint, string | number | bigint, "u64">;
|
|
91
91
|
}, "@local-pkg/deepbook_predict::pricing::RawSVI">;
|
|
92
92
|
interface UpPriceArguments {
|
|
93
93
|
pricer: TransactionArgument;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs217 from "@mysten/sui/bcs";
|
|
3
3
|
import * as _mysten_sui_transactions248 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
@@ -8,50 +8,50 @@ declare namespace protocol_config_d_exports {
|
|
|
8
8
|
export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, FrozenArguments, FrozenOptions, IdArguments, IdOptions, NoTradeWindowMsArguments, NoTradeWindowMsOptions, ProtocolConfig, ReferralFeeRateArguments, ReferralFeeRateOptions, SetBlockScholesPriceFreshnessMsArguments, SetBlockScholesPriceFreshnessMsOptions, SetBlockScholesSviFreshnessMsArguments, SetBlockScholesSviFreshnessMsOptions, SetEwmaEnabledArguments, SetEwmaEnabledOptions, SetEwmaParamsArguments, SetEwmaParamsOptions, SetFrozenArguments, SetFrozenOptions, SetLpRequestLimitFlushAttemptsArguments, SetLpRequestLimitFlushAttemptsOptions, SetMaxLpPoolValueArguments, SetMaxLpPoolValueOptions, SetMaxValuationWindowMsArguments, SetMaxValuationWindowMsOptions, SetNoTradeWindowMsArguments, SetNoTradeWindowMsOptions, SetPlpSupplyFeeRateArguments, SetPlpSupplyFeeRateOptions, SetPlpWithdrawFeeRateArguments, SetPlpWithdrawFeeRateOptions, SetProtocolReserveProfitShareArguments, SetProtocolReserveProfitShareOptions, SetPythSpotFreshnessMsArguments, SetPythSpotFreshnessMsOptions, SetReferralFeeRateArguments, SetReferralFeeRateOptions, SetTemplateBackingBufferLambdaArguments, SetTemplateBackingBufferLambdaOptions, SetTemplateBaseFeeArguments, SetTemplateBaseFeeOptions, SetTemplateExpiryFeeMaxMultiplierArguments, SetTemplateExpiryFeeMaxMultiplierOptions, SetTemplateExpiryFeeWindowMsArguments, SetTemplateExpiryFeeWindowMsOptions, SetTemplateInventoryImpactMaxRateArguments, SetTemplateInventoryImpactMaxRateOptions, SetTemplateMaxEntryProbabilityArguments, SetTemplateMaxEntryProbabilityOptions, SetTemplateMinEntryProbabilityArguments, SetTemplateMinEntryProbabilityOptions, SetTemplateMinFeeArguments, SetTemplateMinFeeOptions, SetTradingPausedArguments, SetTradingPausedOptions, SetUsePythSpotForForwardArguments, SetUsePythSpotForForwardOptions, TradingPausedArguments, TradingPausedOptions, ValuationInProgressArguments, ValuationInProgressOptions, bumpVersionWatermark, frozen, id, noTradeWindowMs, referralFeeRate, setBlockScholesPriceFreshnessMs, setBlockScholesSviFreshnessMs, setEwmaEnabled, setEwmaParams, setFrozen, setLpRequestLimitFlushAttempts, setMaxLpPoolValue, setMaxValuationWindowMs, setNoTradeWindowMs, setPlpSupplyFeeRate, setPlpWithdrawFeeRate, setProtocolReserveProfitShare, setPythSpotFreshnessMs, setReferralFeeRate, setTemplateBackingBufferLambda, setTemplateBaseFee, setTemplateExpiryFeeMaxMultiplier, setTemplateExpiryFeeWindowMs, setTemplateInventoryImpactMaxRate, setTemplateMaxEntryProbability, setTemplateMinEntryProbability, setTemplateMinFee, setTradingPaused, setUsePythSpotForForward, tradingPaused, valuationInProgress };
|
|
9
9
|
}
|
|
10
10
|
declare const ProtocolConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs217.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
pricing_config: MoveStruct<{
|
|
13
|
-
use_pyth_spot_for_forward:
|
|
14
|
-
pyth_spot_freshness_ms:
|
|
15
|
-
block_scholes_price_freshness_ms:
|
|
16
|
-
block_scholes_svi_freshness_ms:
|
|
13
|
+
use_pyth_spot_for_forward: _mysten_sui_bcs217.BcsType<boolean, boolean, "bool">;
|
|
14
|
+
pyth_spot_freshness_ms: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
block_scholes_price_freshness_ms: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
block_scholes_svi_freshness_ms: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
17
|
}, "@local-pkg/deepbook_predict::pricing_config::PricingConfig">;
|
|
18
18
|
/**
|
|
19
19
|
* Merged protocol + insurance reserve share of materialized terminal profit, in
|
|
20
20
|
* FLOAT_SCALING. The complement accrues to LPs.
|
|
21
21
|
*/
|
|
22
|
-
protocol_reserve_profit_share:
|
|
22
|
+
protocol_reserve_profit_share: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
23
|
/**
|
|
24
24
|
* Portion of a referred mint's trader-paid trading fee and congestion surcharge
|
|
25
25
|
* routed to the referrer, in FLOAT_SCALING.
|
|
26
26
|
*/
|
|
27
|
-
referral_fee_rate:
|
|
27
|
+
referral_fee_rate: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
28
|
/**
|
|
29
29
|
* Fee charged on an executed PLP supply fill, in FLOAT_SCALING, deducted from the
|
|
30
30
|
* USDC taken in before shares are priced. Ships at zero — a deposit dilutes the
|
|
31
31
|
* pool's risk per dollar rather than concentrating it, so it is not taxed; the
|
|
32
32
|
* knob exists to keep that reversible.
|
|
33
33
|
*/
|
|
34
|
-
plp_supply_fee_rate:
|
|
34
|
+
plp_supply_fee_rate: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
35
|
/**
|
|
36
36
|
* Fee charged on an executed PLP withdraw fill, in FLOAT_SCALING, withheld from
|
|
37
37
|
* the marked payout. Retained by the pool, so it accrues to the holders who stay.
|
|
38
38
|
* Both rates are read once per flush into the frozen mark, so every fill in one
|
|
39
39
|
* flush is charged the same pair.
|
|
40
40
|
*/
|
|
41
|
-
plp_withdraw_fee_rate:
|
|
41
|
+
plp_withdraw_fee_rate: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
42
|
/**
|
|
43
43
|
* Frozen-mark attempts a queued LP supply/withdraw request gets before the
|
|
44
44
|
* protocol cancels and refunds it. `1` (the default) is fill-or-kill; above that a
|
|
45
45
|
* missing request rests at the queue head and stops that queue for the flush, so
|
|
46
46
|
* this is an LP-queue liveness knob (RP-12).
|
|
47
47
|
*/
|
|
48
|
-
lp_request_limit_flush_attempts:
|
|
48
|
+
lp_request_limit_flush_attempts: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
49
|
/**
|
|
50
50
|
* Ceiling on LP-attributable pool value that queued supplies may raise the pool
|
|
51
51
|
* to, enforced at the flush against the frozen mark. Defaults to 500,000 USDC
|
|
52
52
|
* (RP-23).
|
|
53
53
|
*/
|
|
54
|
-
max_lp_pool_value:
|
|
54
|
+
max_lp_pool_value: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
55
|
/**
|
|
56
56
|
* Hard staleness bound: `finish_flush` refuses to complete a flush in flight
|
|
57
57
|
* longer than this, so no LP request fills at a mark older than the window; past
|
|
@@ -60,28 +60,28 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
60
60
|
* continues — so this also bounds LP-fill latency and is tuned alongside flush
|
|
61
61
|
* cadence (RP-29).
|
|
62
62
|
*/
|
|
63
|
-
max_valuation_window_ms:
|
|
63
|
+
max_valuation_window_ms: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
64
64
|
/**
|
|
65
65
|
* Window before a market's expiry in which live quotes, mints, and live redeems
|
|
66
66
|
* abort. Read live at trade time rather than snapshotted per market, so it can be
|
|
67
67
|
* widened on markets already trading. `0` disables.
|
|
68
68
|
*/
|
|
69
|
-
no_trade_window_ms:
|
|
69
|
+
no_trade_window_ms: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
70
|
strike_exposure_template_config: MoveStruct<{
|
|
71
|
-
backing_buffer_lambda:
|
|
72
|
-
base_fee:
|
|
73
|
-
min_fee:
|
|
74
|
-
min_entry_probability:
|
|
75
|
-
max_entry_probability:
|
|
76
|
-
expiry_fee_window_ms:
|
|
77
|
-
expiry_fee_max_multiplier:
|
|
78
|
-
inventory_impact_max_rate:
|
|
71
|
+
backing_buffer_lambda: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
base_fee: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
min_fee: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
min_entry_probability: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
|
+
max_entry_probability: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
76
|
+
expiry_fee_window_ms: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
77
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
78
|
+
inventory_impact_max_rate: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
79
|
}, "@local-pkg/deepbook_predict::strike_exposure_config::StrikeExposureConfig">;
|
|
80
80
|
ewma_config: MoveStruct<{
|
|
81
|
-
alpha:
|
|
82
|
-
z_score_threshold:
|
|
83
|
-
penalty_rate:
|
|
84
|
-
enabled:
|
|
81
|
+
alpha: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
82
|
+
z_score_threshold: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
83
|
+
penalty_rate: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
84
|
+
enabled: _mysten_sui_bcs217.BcsType<boolean, boolean, "bool">;
|
|
85
85
|
}, "@local-pkg/deepbook_predict::ewma_config::EwmaConfig">;
|
|
86
86
|
/**
|
|
87
87
|
* Minimum package version permitted to run version-gated flows. Monotonic;
|
|
@@ -90,8 +90,8 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
90
90
|
* (`assert_version`). `current_version!()` stays the upgrade-required code
|
|
91
91
|
* constant; this is the runtime floor.
|
|
92
92
|
*/
|
|
93
|
-
version_watermark:
|
|
94
|
-
trading_paused:
|
|
93
|
+
version_watermark: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">; /** Blocks new risk creation while true. */
|
|
94
|
+
trading_paused: _mysten_sui_bcs217.BcsType<boolean, boolean, "bool">;
|
|
95
95
|
/**
|
|
96
96
|
* Emergency hard stop. While true, `assert_version` aborts, halting every
|
|
97
97
|
* version-gated flow (mint, redeem, settlement, valuation, LP supply/withdraw,
|
|
@@ -100,7 +100,7 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
100
100
|
* Account-package custody withdrawals and builder-fee claims are ungated and stay
|
|
101
101
|
* available (already-earned funds).
|
|
102
102
|
*/
|
|
103
|
-
frozen:
|
|
103
|
+
frozen: _mysten_sui_bcs217.BcsType<boolean, boolean, "bool">;
|
|
104
104
|
/**
|
|
105
105
|
* True for the whole duration of a full-pool valuation, across every transaction
|
|
106
106
|
* it spans. Keeper cash flows, market lifecycle, and config mutations gate on it;
|
|
@@ -108,7 +108,7 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
108
108
|
* valuation stamp lazily; a pending market's snapshot state is captured, never
|
|
109
109
|
* recorded per trade (see `plp`).
|
|
110
110
|
*/
|
|
111
|
-
valuation_in_progress:
|
|
111
|
+
valuation_in_progress: _mysten_sui_bcs217.BcsType<boolean, boolean, "bool">;
|
|
112
112
|
/**
|
|
113
113
|
* True ONLY while the atomic snapshot stage is open — set by `begin_snapshot` at
|
|
114
114
|
* `start_pool_valuation` and cleared by `end_snapshot` at
|
|
@@ -118,14 +118,14 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
118
118
|
* would skew the figures the seal freezes. The resumable valuation stage after the
|
|
119
119
|
* seal leaves it false, so trading stays live.
|
|
120
120
|
*/
|
|
121
|
-
snapshot_in_progress:
|
|
121
|
+
snapshot_in_progress: _mysten_sui_bcs217.BcsType<boolean, boolean, "bool">;
|
|
122
122
|
/**
|
|
123
123
|
* Monotonic flush ordinal, bumped by `begin_valuation`. A market's valuation stamp
|
|
124
124
|
* names the flush that made it; a stamp whose ordinal is not the current one — or
|
|
125
125
|
* held while no valuation is in flight — is stale and is lazily discarded by the
|
|
126
126
|
* next trade, so aborting a flush never has to visit its stamped markets.
|
|
127
127
|
*/
|
|
128
|
-
flush_seq:
|
|
128
|
+
flush_seq: _mysten_sui_bcs217.BcsType<bigint, string | number | bigint, "u64">;
|
|
129
129
|
}, "@local-pkg/deepbook_predict::protocol_config::ProtocolConfig">;
|
|
130
130
|
interface IdArguments {
|
|
131
131
|
config?: RawTransactionArgument<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs248 from "@mysten/sui/bcs";
|
|
3
3
|
import * as _mysten_sui_transactions280 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
@@ -8,19 +8,19 @@ declare namespace registry_d_exports {
|
|
|
8
8
|
export { CadenceConfigArguments, CadenceConfigOptions, CadenceConfigsArguments, CadenceConfigsOptions, CreateAndShareBuilderCodeArguments, CreateAndShareBuilderCodeOptions, CreateAndShareExpiryMarketArguments, CreateAndShareExpiryMarketOptions, ExpiryMarketIdArguments, ExpiryMarketIdOptions, FreezeProtocolPauseCapArguments, FreezeProtocolPauseCapOptions, GeneratePoolValuationProofArguments, GeneratePoolValuationProofOptions, IdArguments, IdOptions, MintLifecycleCapArguments, MintLifecycleCapOptions, MintPauseCapArguments, MintPauseCapOptions, MintPoolValuationCapArguments, MintPoolValuationCapOptions, PauseExpiryMarketMintPauseCapArguments, PauseExpiryMarketMintPauseCapOptions, PauseTradingPauseCapArguments, PauseTradingPauseCapOptions, RegisterUnderlyingArguments, RegisterUnderlyingOptions, Registry, RevokeLifecycleCapArguments, RevokeLifecycleCapOptions, RevokePauseCapArguments, RevokePauseCapOptions, RevokePoolValuationCapArguments, RevokePoolValuationCapOptions, SetTemplateCadenceConfigArguments, SetTemplateCadenceConfigOptions, cadenceConfig, cadenceConfigs, createAndShareBuilderCode, createAndShareExpiryMarket, expiryMarketId, freezeProtocolPauseCap, generatePoolValuationProof, id, mintLifecycleCap, mintPauseCap, mintPoolValuationCap, pauseExpiryMarketMintPauseCap, pauseTradingPauseCap, registerUnderlying, revokeLifecycleCap, revokePauseCap, revokePoolValuationCap, setTemplateCadenceConfig };
|
|
9
9
|
}
|
|
10
10
|
declare const Registry: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs248.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
/**
|
|
13
13
|
* Market identity, cadence deployment terms, underlying watermarks, and
|
|
14
14
|
* uniqueness.
|
|
15
15
|
*/
|
|
16
16
|
market_manager: MoveStruct<{
|
|
17
17
|
underlying_configs: MoveStruct<{
|
|
18
|
-
id:
|
|
19
|
-
size:
|
|
18
|
+
id: _mysten_sui_bcs248.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
19
|
+
size: _mysten_sui_bcs248.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
20
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
21
21
|
market_ids: MoveStruct<{
|
|
22
|
-
id:
|
|
23
|
-
size:
|
|
22
|
+
id: _mysten_sui_bcs248.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
size: _mysten_sui_bcs248.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
25
25
|
}, "@local-pkg/deepbook_predict::market_manager::MarketManager">;
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ declare const Registry: MoveStruct<{
|
|
|
28
28
|
* mints into this set and revokes from it.
|
|
29
29
|
*/
|
|
30
30
|
allowed_pause_caps: MoveStruct<{
|
|
31
|
-
contents:
|
|
31
|
+
contents: _mysten_sui_bcs248.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
32
32
|
length: number;
|
|
33
33
|
}, string>;
|
|
34
34
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -37,7 +37,7 @@ declare const Registry: MoveStruct<{
|
|
|
37
37
|
* markets. Admin mints into this set and revokes from it.
|
|
38
38
|
*/
|
|
39
39
|
allowed_lifecycle_caps: MoveStruct<{
|
|
40
|
-
contents:
|
|
40
|
+
contents: _mysten_sui_bcs248.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
41
41
|
length: number;
|
|
42
42
|
}, string>;
|
|
43
43
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -46,7 +46,7 @@ declare const Registry: MoveStruct<{
|
|
|
46
46
|
* valuation. Admin mints into this set and revokes from it.
|
|
47
47
|
*/
|
|
48
48
|
allowed_pool_valuation_caps: MoveStruct<{
|
|
49
|
-
contents:
|
|
49
|
+
contents: _mysten_sui_bcs248.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
50
50
|
length: number;
|
|
51
51
|
}, string>;
|
|
52
52
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs0 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions0 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/session_config.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace session_config_d_exports {
|
|
|
8
8
|
export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, IdArguments, IdOptions, SessionsAdminCap, SessionsConfig, VersionWatermarkArguments, VersionWatermarkOptions, bumpVersionWatermark, id, versionWatermark };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
12
|
-
version_watermark:
|
|
11
|
+
id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
version_watermark: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsConfig">;
|
|
14
14
|
declare const SessionsAdminCap: MoveStruct<{
|
|
15
|
-
id:
|
|
15
|
+
id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
16
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsAdminCap">;
|
|
17
17
|
interface IdArguments {
|
|
18
18
|
config?: RawTransactionArgument<string>;
|
|
@@ -26,7 +26,7 @@ interface IdOptions {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
/** Return the config object ID for external PTB construction. */
|
|
29
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
29
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
|
|
30
30
|
interface VersionWatermarkArguments {
|
|
31
31
|
config?: RawTransactionArgument<string>;
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ interface VersionWatermarkOptions {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
/** Return the minimum Sessions package version accepted by gated entrypoints. */
|
|
42
|
-
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) =>
|
|
42
|
+
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
|
|
43
43
|
interface BumpVersionWatermarkArguments {
|
|
44
44
|
config?: RawTransactionArgument<string>;
|
|
45
45
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -57,7 +57,7 @@ interface BumpVersionWatermarkOptions {
|
|
|
57
57
|
* so an upgraded package can retire older versions, and it cannot accept a
|
|
58
58
|
* caller-selected target.
|
|
59
59
|
*/
|
|
60
|
-
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) =>
|
|
60
|
+
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { session_config_d_exports };
|
|
63
63
|
//# sourceMappingURL=session_config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session_config.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/session_config.ts"],"mappings":";;;;;;;;;cAgBa,cAAA,EAAc,UAAA;;;;cAOd,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"session_config.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/session_config.ts"],"mappings":";;;;;;;;;cAgBa,cAAA,EAAc,UAAA;;;;cAOd,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,SAAA;EAChB,OAAA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