@mysten/deepbook-v3 2.4.2 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/contracts/account/account_events.d.mts +20 -20
  3. package/dist/contracts/account/account_events.d.mts.map +1 -1
  4. package/dist/contracts/account/account_registry.d.mts +6 -6
  5. package/dist/contracts/deepbook/account.d.mts +18 -18
  6. package/dist/contracts/deepbook/balances.d.mts +4 -4
  7. package/dist/contracts/deepbook/deep_price.d.mts +3 -3
  8. package/dist/contracts/deepbook/order.d.mts +12 -12
  9. package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
  10. package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
  11. package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
  12. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
  13. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
  14. package/dist/contracts/deepbook_predict/config_events.d.mts +67 -67
  15. package/dist/contracts/deepbook_predict/expiry_market.d.mts +46 -46
  16. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
  17. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +3 -3
  18. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
  19. package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
  20. package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
  21. package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
  22. package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
  23. package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
  24. package/dist/contracts/deepbook_predict/plp.d.mts +72 -72
  25. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
  26. package/dist/contracts/deepbook_predict/plp.mjs +1 -1
  27. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
  28. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
  29. package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
  30. package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
  31. package/dist/contracts/deepbook_predict/pricing.d.mts +92 -51
  32. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
  33. package/dist/contracts/deepbook_predict/pricing.mjs +57 -7
  34. package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
  35. package/dist/contracts/deepbook_predict/protocol_config.d.mts +64 -64
  36. package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
  37. package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
  38. package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
  39. package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
  40. package/dist/contracts/deepbook_predict/strike_exposure.mjs +3 -2
  41. package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
  42. package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
  43. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  44. package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
  45. package/dist/deployments/mainnet.mjs +21 -21
  46. package/dist/deployments/mainnet.mjs.map +1 -1
  47. package/dist/deployments/testnet.mjs +21 -21
  48. package/dist/deployments/testnet.mjs.map +1 -1
  49. package/dist/predict/index.mjs +1 -1
  50. package/dist/predict/reads/markets.mjs +11 -3
  51. package/dist/predict/reads/markets.mjs.map +1 -1
  52. package/dist/predict/reads/pricing.d.mts +0 -1
  53. package/dist/predict/reads/pricing.d.mts.map +1 -1
  54. package/dist/predict/reads/pricing.mjs +1 -1
  55. package/dist/transactions/balanceManager.d.mts +12 -12
  56. package/dist/transactions/balanceManager.d.mts.map +1 -1
  57. package/dist/transactions/deepbook.d.mts +20 -20
  58. package/dist/transactions/deepbook.d.mts.map +1 -1
  59. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  60. package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
  61. package/dist/transactions/marginAdmin.d.mts +7 -7
  62. package/dist/transactions/marginAdmin.d.mts.map +1 -1
  63. package/dist/transactions/marginLiquidations.d.mts +3 -3
  64. package/dist/transactions/marginMaintainer.d.mts +5 -5
  65. package/dist/transactions/marginMaintainer.d.mts.map +1 -1
  66. package/dist/transactions/marginManager.d.mts +32 -32
  67. package/dist/transactions/marginManager.d.mts.map +1 -1
  68. package/dist/transactions/marginPool.d.mts +18 -18
  69. package/dist/transactions/marginPool.d.mts.map +1 -1
  70. package/dist/transactions/marginRegistry.d.mts +16 -16
  71. package/dist/transactions/marginTPSL.d.mts +10 -10
  72. package/dist/transactions/marginTPSL.d.mts.map +1 -1
  73. package/dist/transactions/poolProxy.d.mts +8 -8
  74. package/dist/transactions/poolProxy.d.mts.map +1 -1
  75. package/package.json +1 -1
  76. package/src/contracts/deepbook_predict/pricing.ts +88 -6
  77. package/src/contracts/deepbook_predict/strike_exposure.ts +3 -2
  78. package/src/contracts/propbook/block_scholes_store.ts +34 -0
  79. package/src/contracts/propbook/pyth_feed.ts +3 -1
  80. package/src/deployments/mainnet.ts +22 -22
  81. package/src/deployments/testnet.ts +22 -22
  82. package/src/predict/reads/markets.ts +16 -3
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;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AAA;EAChB,OAAA;EACA,SAAA,EAAW,4BAAA;EACX,MAAA;IACC,SAAA,EAAW,WAAA;IACX,cAAA,EAAgB,WAAA;IAChB,gBAAA;EAAA;AAAA;;;;AA3pBF;iBAkqBgB,mBAAA,CAAoB,OAAA,EAAS,0BAAA,IAapC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAgBP,8BAAA;EAChB,KAAA,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"}
@@ -2,8 +2,8 @@ import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
2
2
  import { MoveStruct, normalizeMoveArguments } from "../utils/index.mjs";
3
3
  import { U64 } from "../../bcs/integers.mjs";
4
4
  import { Balance } from "./deps/sui/balance.mjs";
5
- import { VecMap } from "./deps/sui/vec_map.mjs";
6
5
  import { FrozenPricer } from "./pricing.mjs";
6
+ import { VecMap } from "./deps/sui/vec_map.mjs";
7
7
  import { LpBook } from "./lp_book.mjs";
8
8
  import { Ledger } from "./pool_accounting.mjs";
9
9
  import { bcs } from "@mysten/sui/bcs";
@@ -1,6 +1,6 @@
1
1
  import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs73 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions58 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs139 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions191 from "@mysten/sui/transactions";
4
4
  import { Transaction } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/deepbook_predict/pool_valuation_cap.d.ts
@@ -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: _mysten_sui_bcs73.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ id: _mysten_sui_bcs139.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>;
@@ -21,7 +21,7 @@ interface IdOptions {
21
21
  };
22
22
  }
23
23
  /** Returns the capability identity used by the registry allowlist. */
24
- declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions58.TransactionResult;
24
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions191.TransactionResult;
25
25
  interface DestroyArguments {
26
26
  cap: RawTransactionArgument<string>;
27
27
  }
@@ -33,7 +33,7 @@ interface DestroyOptions {
33
33
  };
34
34
  }
35
35
  /** Destroy a `PoolValuationCap` the holder no longer needs. */
36
- declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions58.TransactionResult;
36
+ declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions191.TransactionResult;
37
37
  //#endregion
38
38
  export { pool_valuation_cap_d_exports };
39
39
  //# sourceMappingURL=pool_valuation_cap.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pool_valuation_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pool_valuation_cap.ts"],"mappings":";;;;;;;;;cAea,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,GAAA,EAAK,sBAAA;EACpC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
1
+ {"version":3,"file":"pool_valuation_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pool_valuation_cap.ts"],"mappings":";;;;;;;;;cAea,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,GAAA,EAAK,sBAAA;EACpC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
@@ -1,33 +1,33 @@
1
1
  import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs75 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions63 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs140 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions193 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/deepbook_predict/predict_account.d.ts
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 [_mysten_sui_bcs75.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::predict_account::PredictApp">;
10
+ declare const PredictApp: MoveTuple<readonly [_mysten_sui_bcs140.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::predict_account::PredictApp">;
11
11
  declare const PositionKey: MoveStruct<{
12
- expiry_market_id: _mysten_sui_bcs75.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
13
- order_id: _mysten_sui_bcs75.BcsType<bigint, string | number | bigint, "u256">;
12
+ expiry_market_id: _mysten_sui_bcs140.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
13
+ order_id: _mysten_sui_bcs140.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: _mysten_sui_bcs75.BcsType<bigint, string | number | bigint, "u256">;
16
+ /** Root order ID, carried forward unchanged across partial-close replacements. */root_id: _mysten_sui_bcs140.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: _mysten_sui_bcs75.BcsType<bigint, string | number | bigint, "u64">;
23
+ opened_at_ms: _mysten_sui_bcs140.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: _mysten_sui_bcs75.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
- size: _mysten_sui_bcs75.BcsType<bigint, string | number | bigint, "u64">;
27
+ id: _mysten_sui_bcs140.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
+ size: _mysten_sui_bcs140.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: _mysten_sui_bcs75.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
30
+ builder_code_id: _mysten_sui_bcs140.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;
@@ -42,7 +42,7 @@ interface HasPositionOptions {
42
42
  };
43
43
  }
44
44
  /** Return whether an account holds a position for SDK and devInspect state reads. */
45
- declare function hasPosition(options: HasPositionOptions): (tx: Transaction) => _mysten_sui_transactions63.TransactionResult;
45
+ declare function hasPosition(options: HasPositionOptions): (tx: Transaction) => _mysten_sui_transactions193.TransactionResult;
46
46
  interface BuilderCodeIdArguments {
47
47
  account: TransactionArgument;
48
48
  }
@@ -54,7 +54,7 @@ interface BuilderCodeIdOptions {
54
54
  };
55
55
  }
56
56
  /** Return the sticky builder-code ID, if set. */
57
- declare function builderCodeId(options: BuilderCodeIdOptions): (tx: Transaction) => _mysten_sui_transactions63.TransactionResult;
57
+ declare function builderCodeId(options: BuilderCodeIdOptions): (tx: Transaction) => _mysten_sui_transactions193.TransactionResult;
58
58
  interface SetBuilderCodeArguments {
59
59
  wrapper: RawTransactionArgument<string>;
60
60
  auth: TransactionArgument;
@@ -71,7 +71,7 @@ interface SetBuilderCodeOptions {
71
71
  * Set sticky builder-code attribution for future trades using valid account auth.
72
72
  * Owner auth and authorized-app auth both satisfy the account borrow boundary.
73
73
  */
74
- declare function setBuilderCode(options: SetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions63.TransactionResult;
74
+ declare function setBuilderCode(options: SetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions193.TransactionResult;
75
75
  interface UnsetBuilderCodeArguments {
76
76
  wrapper: RawTransactionArgument<string>;
77
77
  auth: TransactionArgument;
@@ -84,7 +84,7 @@ interface UnsetBuilderCodeOptions {
84
84
  };
85
85
  }
86
86
  /** Clear sticky builder-code attribution using valid owner or authorized-app auth. */
87
- declare function unsetBuilderCode(options: UnsetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions63.TransactionResult;
87
+ declare function unsetBuilderCode(options: UnsetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions193.TransactionResult;
88
88
  //#endregion
89
89
  export { predict_account_d_exports };
90
90
  //# sourceMappingURL=predict_account.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"predict_account.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/predict_account.ts"],"mappings":";;;;;;;;;cA4Ba,UAAA,EAAU,SAAA,WAGrB,iBAAA,CAHqB,OAAA;AAAA,cAIV,WAAA,EAAW,UAAA;;;;cAOX,QAAA,EAAQ,UAAA;6FAanB,iBAAA,CAAA,OAAA;EAxBW;;;;;AAIb;;;cAqBa,WAAA,EAAW,UAAA;;;;iDArBA;;;UA8BP,oBAAA;EAChB,OAAA,EAAS,mBAAA;EACT,cAAA,EAAgB,sBAAA;EAChB,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,kBAAA;EAChB,OAAA;EACA,SAAA,EACG,oBAAA,IAEA,OAAA,EAAS,mBAAA,EACT,cAAA,EAAgB,sBAAA,UAChB,OAAA,EAAS,sBAAA;EAEZ,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,WAAA,CAAY,OAAA,EAAS,kBAAA,IAK5B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,sBAAA;EAChB,OAAA,EAAS,mBAAA;AAAA;AAAA,UAEO,oBAAA;EAChB,OAAA;EACA,SAAA,EAAW,sBAAA,IAA0B,OAAA,EAAS,mBAAA;EAC9C,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,aAAA,CAAc,OAAA,EAAS,oBAAA,IAK9B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,uBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;EACN,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,qBAAA;EAChB,OAAA;EACA,SAAA,EACG,uBAAA,IAEA,OAAA,EAAS,sBAAA,UACT,IAAA,EAAM,mBAAA,EACN,IAAA,EAAM,sBAAA;EAET,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,cAAA,CAAe,OAAA,EAAS,qBAAA,IAK/B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,yBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;AAAA;AAAA,UAEU,uBAAA;EAChB,OAAA;EACA,SAAA,EACG,yBAAA,IACC,OAAA,EAAS,sBAAA,UAAgC,IAAA,EAAM,mBAAA;EACnD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAKjC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
1
+ {"version":3,"file":"predict_account.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/predict_account.ts"],"mappings":";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AA,EAAM,mBAAA;AAAA;AAAA,UAEU,uBAAA;EAChB,OAAA;EACA,SAAA,EACG,yBAAA,IACC,OAAA,EAAS,sBAAA,UAAgC,IAAA,EAAM,mBAAA;EACnD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAKjC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
@@ -1,64 +1,64 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs129 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions91 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs148 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions197 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/deepbook_predict/pricing.d.ts
7
7
  declare namespace pricing_d_exports {
8
- export { FrozenPricer, Pricer, PricingSVI, RangePriceArguments, RangePriceOptions, RawSVI, UpPriceArguments, UpPriceOptions, rangePrice, upPrice };
8
+ export { FrozenPricer, HigherUpArguments, HigherUpOptions, LowerUpArguments, LowerUpOptions, Pricer, PricingSVI, ProbabilityArguments, ProbabilityOptions, RangePrice, RangePriceArguments, RangePriceOptions, RawSVI, UpPriceArguments, UpPriceOptions, higherUp, lowerUp, probability, 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: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u128">;
12
- a_is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
13
- b: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u128">;
11
+ /** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u128">;
12
+ a_is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
13
+ b: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u128">;
14
14
  rho: MoveStruct<{
15
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
16
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
15
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
16
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
17
17
  }, "fixed_math::i64::I64">;
18
18
  m: MoveStruct<{
19
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
20
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
19
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
20
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
21
21
  }, "fixed_math::i64::I64">;
22
- sigma: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
22
+ sigma: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
23
23
  }, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
24
24
  declare const FrozenPricer: MoveStruct<{
25
- expiry_market_id: _mysten_sui_bcs129.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
26
- forward: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
25
+ expiry_market_id: _mysten_sui_bcs148.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
26
+ forward: _mysten_sui_bcs148.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: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u128">;
29
- a_is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
30
- b: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u128">;
28
+ /** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u128">;
29
+ a_is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
30
+ b: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u128">;
31
31
  rho: MoveStruct<{
32
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
33
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
32
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
33
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
34
34
  }, "fixed_math::i64::I64">;
35
35
  m: MoveStruct<{
36
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
37
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
36
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
37
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
38
38
  }, "fixed_math::i64::I64">;
39
- sigma: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
39
+ sigma: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
40
40
  }, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
41
- pyth_spot_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
42
- block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
43
- block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
44
- block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
41
+ pyth_spot_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
42
+ block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
43
+ block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
44
+ block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs148.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: _mysten_sui_bcs129.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
48
- forward: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
47
+ /** Expiry market this snapshot was loaded for. */expiry_market_id: _mysten_sui_bcs148.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
48
+ forward: _mysten_sui_bcs148.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: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u128">;
51
- a_is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
52
- b: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u128">;
50
+ /** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u128">;
51
+ a_is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
52
+ b: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u128">;
53
53
  rho: MoveStruct<{
54
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
55
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
54
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
55
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
56
56
  }, "fixed_math::i64::I64">;
57
57
  m: MoveStruct<{
58
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
59
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
58
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
59
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
60
60
  }, "fixed_math::i64::I64">;
61
- sigma: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
61
+ sigma: _mysten_sui_bcs148.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,30 @@ 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: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
72
- block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
73
- block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
74
- block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
71
+ pyth_spot_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
72
+ block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
73
+ block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
74
+ block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
75
75
  }, "@local-pkg/deepbook_predict::pricing::Pricer">;
76
+ declare const RangePrice: MoveStruct<{
77
+ lower_up: _mysten_sui_bcs148.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
78
+ higher_up: _mysten_sui_bcs148.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
79
+ }, "@local-pkg/deepbook_predict::pricing::RangePrice">;
76
80
  declare const RawSVI: MoveStruct<{
77
81
  a: MoveStruct<{
78
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
79
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
82
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
83
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
80
84
  }, "fixed_math::i64::I64">;
81
- b: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
85
+ b: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
82
86
  rho: MoveStruct<{
83
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
84
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
87
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
88
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
85
89
  }, "fixed_math::i64::I64">;
86
90
  m: MoveStruct<{
87
- magnitude: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
88
- is_negative: _mysten_sui_bcs129.BcsType<boolean, boolean, "bool">;
91
+ magnitude: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
92
+ is_negative: _mysten_sui_bcs148.BcsType<boolean, boolean, "bool">;
89
93
  }, "fixed_math::i64::I64">;
90
- sigma: _mysten_sui_bcs129.BcsType<bigint, string | number | bigint, "u64">;
94
+ sigma: _mysten_sui_bcs148.BcsType<bigint, string | number | bigint, "u64">;
91
95
  }, "@local-pkg/deepbook_predict::pricing::RawSVI">;
92
96
  interface UpPriceArguments {
93
97
  pricer: TransactionArgument;
@@ -104,7 +108,7 @@ interface UpPriceOptions {
104
108
  * Return the current UP digital probability for a typed strike. Public PTB and
105
109
  * devInspect reads can compose it with a transaction-local `Pricer`.
106
110
  */
107
- declare function upPrice(options: UpPriceOptions): (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
111
+ declare function upPrice(options: UpPriceOptions): (tx: Transaction) => _mysten_sui_transactions197.TransactionResult;
108
112
  interface RangePriceArguments {
109
113
  pricer: TransactionArgument;
110
114
  lower: TransactionArgument;
@@ -118,10 +122,47 @@ interface RangePriceOptions {
118
122
  };
119
123
  }
120
124
  /**
121
- * Return the current probability for `(lower, higher]`, floored at zero if the two
122
- * approximated boundary probabilities invert.
125
+ * Return both boundary probabilities for `(lower, higher]`. Use `probability()`
126
+ * for the combined range probability; absent boundaries are infinite sentinels.
123
127
  */
124
- declare function rangePrice(options: RangePriceOptions): (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
128
+ declare function rangePrice(options: RangePriceOptions): (tx: Transaction) => _mysten_sui_transactions197.TransactionResult;
129
+ interface LowerUpArguments {
130
+ price: TransactionArgument;
131
+ }
132
+ interface LowerUpOptions {
133
+ package?: string;
134
+ arguments: LowerUpArguments | [price: TransactionArgument];
135
+ config?: {
136
+ predictPackageId?: string;
137
+ };
138
+ }
139
+ declare function lowerUp(options: LowerUpOptions): (tx: Transaction) => _mysten_sui_transactions197.TransactionResult;
140
+ interface HigherUpArguments {
141
+ price: TransactionArgument;
142
+ }
143
+ interface HigherUpOptions {
144
+ package?: string;
145
+ arguments: HigherUpArguments | [price: TransactionArgument];
146
+ config?: {
147
+ predictPackageId?: string;
148
+ };
149
+ }
150
+ declare function higherUp(options: HigherUpOptions): (tx: Transaction) => _mysten_sui_transactions197.TransactionResult;
151
+ interface ProbabilityArguments {
152
+ price: TransactionArgument;
153
+ }
154
+ interface ProbabilityOptions {
155
+ package?: string;
156
+ arguments: ProbabilityArguments | [price: TransactionArgument];
157
+ config?: {
158
+ predictPackageId?: string;
159
+ };
160
+ }
161
+ /**
162
+ * Return the combined probability, floored at zero if approximated boundary prices
163
+ * invert.
164
+ */
165
+ declare function probability(options: ProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions197.TransactionResult;
125
166
  //#endregion
126
167
  export { pricing_d_exports };
127
168
  //# sourceMappingURL=pricing.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"mappings":";;;;;;;;;cAqBa,UAAA,EAAU,UAAA;sFAYrB,kBAAA,CAAA,OAAA;uEAZW;;;;;;;;;;;;cAaA,YAAA,EAAY,UAAA;;;;IAbF;;;;;;;;;;;;;;;;;;cAyBV,MAAA,EAAM,UAAA;;;;IADjB;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBW,MAAA,EAAM,UAAA;;eASjB,kBAAA,CAAA,OAAA;;;;;;;;;;;;;;UACe,gBAAA;EAChB,MAAA,EAAQ,mBAAA;EACR,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,MAAA,EAAQ,mBAAA,EAAqB,MAAA,EAAQ,mBAAA;EACpE,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,mBAAA;EAChB,MAAA,EAAQ,mBAAA;EACR,KAAA,EAAO,mBAAA;EACP,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,iBAAA;EAChB,OAAA;EACA,SAAA,EACG,mBAAA,IACC,MAAA,EAAQ,mBAAA,EAAqB,KAAA,EAAO,mBAAA,EAAqB,MAAA,EAAQ,mBAAA;EACrE,MAAA;IAC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A,UAES,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,KAAA,EAAO,mBAAA;EACtC,MAAA;IACC,gBAAA;EAAA;AAAA;AAAA,iBAGc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,iBAAA;EAChB,KAAA,EAAO,mBAAA;AAAA;AAAA,UAES,eAAA;EAChB,OAAA;EACA,SAAA,EAAW,iBAAA,IAAqB,KAAA,EAAO,mBAAA;EACvC,MAAA;IACC,gBAAA;EAAA;AAAA;AAAA,iBAGc,QAAA,CAAS,OAAA,EAAS,eAAA,IAKzB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,oBAAA;EAChB,KAAA,EAAO,mBAAA;AAAA;AAAA,UAES,kBAAA;EAChB,OAAA;EACA,SAAA,EAAW,oBAAA,IAAwB,KAAA,EAAO,mBAAA;EAC1C,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,WAAA,CAAY,OAAA,EAAS,kBAAA,IAK5B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
@@ -13,16 +13,22 @@ import { bcs } from "@mysten/sui/bcs";
13
13
  *
14
14
  * This module reads canonical Propbook Pyth and Block Scholes feeds and computes
15
15
  * SVI-adjusted digital probabilities. Live reads require fresh, pricing-safe Block
16
- * Scholes spot, forward, and SVI observations. The live forward comes from one of
17
- * two admin-selected sources (`PricingConfig.use_pyth_spot_for_forward`): a fresh
18
- * positive Pyth spot carrying the Block Scholes basis, or the Block Scholes
19
- * forward directly. Exact-history reads do not apply live freshness policy.
16
+ * Scholes spot, forward, and SVI observations. The latest forward is paired with
17
+ * an exact source-timestamp spot from Propbook's bounded recent history. The live
18
+ * forward comes from one of two admin-selected sources
19
+ * (`PricingConfig.use_pyth_spot_for_forward`): a fresh positive Pyth spot carrying
20
+ * the Block Scholes basis, or the Block Scholes forward directly. Exact-history
21
+ * reads do not apply live freshness policy.
20
22
  */
21
23
  var pricing_exports = /* @__PURE__ */ __exportAll({
22
24
  FrozenPricer: () => FrozenPricer,
23
25
  Pricer: () => Pricer,
24
26
  PricingSVI: () => PricingSVI,
27
+ RangePrice: () => RangePrice,
25
28
  RawSVI: () => RawSVI,
29
+ higherUp: () => higherUp,
30
+ lowerUp: () => lowerUp,
31
+ probability: () => probability,
26
32
  rangePrice: () => rangePrice,
27
33
  upPrice: () => upPrice
28
34
  });
@@ -62,6 +68,13 @@ const Pricer = new MoveStruct({
62
68
  block_scholes_svi_source_timestamp_ms: U64
63
69
  }
64
70
  });
71
+ const RangePrice = new MoveStruct({
72
+ name: `${$moduleName}::RangePrice`,
73
+ fields: {
74
+ lower_up: bcs.option(U64),
75
+ higher_up: bcs.option(U64)
76
+ }
77
+ });
65
78
  const RawSVI = new MoveStruct({
66
79
  name: `${$moduleName}::RawSVI`,
67
80
  fields: {
@@ -88,8 +101,8 @@ function upPrice(options) {
88
101
  });
89
102
  }
90
103
  /**
91
- * Return the current probability for `(lower, higher]`, floored at zero if the two
92
- * approximated boundary probabilities invert.
104
+ * Return both boundary probabilities for `(lower, higher]`. Use `probability()`
105
+ * for the combined range probability; absent boundaries are infinite sentinels.
93
106
  */
94
107
  function rangePrice(options) {
95
108
  const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
@@ -110,7 +123,44 @@ function rangePrice(options) {
110
123
  arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
111
124
  });
112
125
  }
126
+ function lowerUp(options) {
127
+ const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
128
+ const argumentsTypes = [null];
129
+ const parameterNames = ["price"];
130
+ return (tx) => tx.moveCall({
131
+ package: packageAddress,
132
+ module: "pricing",
133
+ function: "lower_up",
134
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
135
+ });
136
+ }
137
+ function higherUp(options) {
138
+ const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
139
+ const argumentsTypes = [null];
140
+ const parameterNames = ["price"];
141
+ return (tx) => tx.moveCall({
142
+ package: packageAddress,
143
+ module: "pricing",
144
+ function: "higher_up",
145
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
146
+ });
147
+ }
148
+ /**
149
+ * Return the combined probability, floored at zero if approximated boundary prices
150
+ * invert.
151
+ */
152
+ function probability(options) {
153
+ const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
154
+ const argumentsTypes = [null];
155
+ const parameterNames = ["price"];
156
+ return (tx) => tx.moveCall({
157
+ package: packageAddress,
158
+ module: "pricing",
159
+ function: "probability",
160
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
161
+ });
162
+ }
113
163
 
114
164
  //#endregion
115
- export { FrozenPricer, Pricer, pricing_exports, rangePrice };
165
+ export { FrozenPricer, Pricer, RangePrice, pricing_exports, probability, rangePrice };
116
166
  //# sourceMappingURL=pricing.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing.mjs","names":["i64.I64"],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Pricing for Predict markets.\n *\n * This module reads canonical Propbook Pyth and Block Scholes feeds and computes\n * SVI-adjusted digital probabilities. Live reads require fresh, pricing-safe Block\n * Scholes spot, forward, and SVI observations. The live forward comes from one of\n * two admin-selected sources (`PricingConfig.use_pyth_spot_for_forward`): a fresh\n * positive Pyth spot carrying the Block Scholes basis, or the Block Scholes\n * forward directly. Exact-history reads do not apply live freshness policy.\n */\n\nimport { MoveStruct, normalizeMoveArguments } from '../utils/index.js';\nimport { U128, U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nimport * as i64 from './deps/fixed_math/i64.js';\nconst $moduleName = '@local-pkg/deepbook_predict::pricing';\nexport const PricingSVI = new MoveStruct({\n\tname: `${$moduleName}::PricingSVI`,\n\tfields: {\n\t\t/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */\n\t\ta_magnitude: U128,\n\t\ta_is_negative: bcs.bool(),\n\t\t/** Rolled-down SVI `b`, at 1e18. */\n\t\tb: U128,\n\t\trho: i64.I64,\n\t\tm: i64.I64,\n\t\tsigma: U64,\n\t},\n});\nexport const FrozenPricer = new MoveStruct({\n\tname: `${$moduleName}::FrozenPricer`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tforward: U64,\n\t\tsvi: PricingSVI,\n\t\tpyth_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_forward_source_timestamp_ms: U64,\n\t\tblock_scholes_svi_source_timestamp_ms: U64,\n\t},\n});\nexport const Pricer = new MoveStruct({\n\tname: `${$moduleName}::Pricer`,\n\tfields: {\n\t\t/** Expiry market this snapshot was loaded for. */\n\t\texpiry_market_id: bcs.Address,\n\t\tforward: U64,\n\t\tsvi: PricingSVI,\n\t\t/**\n\t\t * Timestamps of the oracle observations this snapshot validated, as trade events\n\t\t * report them — each observation's own economic clock. Pyth carries its source\n\t\t * timestamp (`0` only when no usable normalized observation exists); Block Scholes\n\t\t * spot and forward carry the provider `value_timestamp`, and SVI carries the\n\t\t * provider `svi_timestamp`. Those timestamps are the clocks freshness gates and\n\t\t * SVI roll-down use.\n\t\t */\n\t\tpyth_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_forward_source_timestamp_ms: U64,\n\t\tblock_scholes_svi_source_timestamp_ms: U64,\n\t},\n});\nexport const RawSVI = new MoveStruct({\n\tname: `${$moduleName}::RawSVI`,\n\tfields: {\n\t\ta: i64.I64,\n\t\tb: U64,\n\t\trho: i64.I64,\n\t\tm: i64.I64,\n\t\tsigma: U64,\n\t},\n});\nexport interface UpPriceArguments {\n\tpricer: TransactionArgument;\n\tstrike: TransactionArgument;\n}\nexport interface UpPriceOptions {\n\tpackage?: string;\n\targuments: UpPriceArguments | [pricer: TransactionArgument, strike: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the current UP digital probability for a typed strike. Public PTB and\n * devInspect reads can compose it with a transaction-local `Pricer`.\n */\nexport function upPrice(options: UpPriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null] satisfies (string | null)[];\n\tconst parameterNames = ['pricer', 'strike'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'up_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RangePriceArguments {\n\tpricer: TransactionArgument;\n\tlower: TransactionArgument;\n\thigher: TransactionArgument;\n}\nexport interface RangePriceOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RangePriceArguments\n\t\t| [pricer: TransactionArgument, lower: TransactionArgument, higher: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the current probability for `(lower, higher]`, floored at zero if the two\n * approximated boundary probabilities invert.\n */\nexport function rangePrice(options: RangePriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['pricer', 'lower', 'higher'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'range_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n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P,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC"}
1
+ {"version":3,"file":"pricing.mjs","names":["i64.I64"],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Pricing for Predict markets.\n *\n * This module reads canonical Propbook Pyth and Block Scholes feeds and computes\n * SVI-adjusted digital probabilities. Live reads require fresh, pricing-safe Block\n * Scholes spot, forward, and SVI observations. The latest forward is paired with\n * an exact source-timestamp spot from Propbook's bounded recent history. The live\n * forward comes from one of two admin-selected sources\n * (`PricingConfig.use_pyth_spot_for_forward`): a fresh positive Pyth spot carrying\n * the Block Scholes basis, or the Block Scholes forward directly. Exact-history\n * reads do not apply live freshness policy.\n */\n\nimport { MoveStruct, normalizeMoveArguments } from '../utils/index.js';\nimport { U128, U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nimport * as i64 from './deps/fixed_math/i64.js';\nconst $moduleName = '@local-pkg/deepbook_predict::pricing';\nexport const PricingSVI = new MoveStruct({\n\tname: `${$moduleName}::PricingSVI`,\n\tfields: {\n\t\t/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */\n\t\ta_magnitude: U128,\n\t\ta_is_negative: bcs.bool(),\n\t\t/** Rolled-down SVI `b`, at 1e18. */\n\t\tb: U128,\n\t\trho: i64.I64,\n\t\tm: i64.I64,\n\t\tsigma: U64,\n\t},\n});\nexport const FrozenPricer = new MoveStruct({\n\tname: `${$moduleName}::FrozenPricer`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tforward: U64,\n\t\tsvi: PricingSVI,\n\t\tpyth_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_forward_source_timestamp_ms: U64,\n\t\tblock_scholes_svi_source_timestamp_ms: U64,\n\t},\n});\nexport const Pricer = new MoveStruct({\n\tname: `${$moduleName}::Pricer`,\n\tfields: {\n\t\t/** Expiry market this snapshot was loaded for. */\n\t\texpiry_market_id: bcs.Address,\n\t\tforward: U64,\n\t\tsvi: PricingSVI,\n\t\t/**\n\t\t * Timestamps of the oracle observations this snapshot validated, as trade events\n\t\t * report them — each observation's own economic clock. Pyth carries its source\n\t\t * timestamp (`0` only when no usable normalized observation exists); Block Scholes\n\t\t * spot and forward carry the provider `value_timestamp`, and SVI carries the\n\t\t * provider `svi_timestamp`. Those timestamps are the clocks freshness gates and\n\t\t * SVI roll-down use.\n\t\t */\n\t\tpyth_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_forward_source_timestamp_ms: U64,\n\t\tblock_scholes_svi_source_timestamp_ms: U64,\n\t},\n});\nexport const RangePrice = new MoveStruct({\n\tname: `${$moduleName}::RangePrice`,\n\tfields: {\n\t\tlower_up: bcs.option(U64),\n\t\thigher_up: bcs.option(U64),\n\t},\n});\nexport const RawSVI = new MoveStruct({\n\tname: `${$moduleName}::RawSVI`,\n\tfields: {\n\t\ta: i64.I64,\n\t\tb: U64,\n\t\trho: i64.I64,\n\t\tm: i64.I64,\n\t\tsigma: U64,\n\t},\n});\nexport interface UpPriceArguments {\n\tpricer: TransactionArgument;\n\tstrike: TransactionArgument;\n}\nexport interface UpPriceOptions {\n\tpackage?: string;\n\targuments: UpPriceArguments | [pricer: TransactionArgument, strike: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the current UP digital probability for a typed strike. Public PTB and\n * devInspect reads can compose it with a transaction-local `Pricer`.\n */\nexport function upPrice(options: UpPriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null] satisfies (string | null)[];\n\tconst parameterNames = ['pricer', 'strike'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'up_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RangePriceArguments {\n\tpricer: TransactionArgument;\n\tlower: TransactionArgument;\n\thigher: TransactionArgument;\n}\nexport interface RangePriceOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RangePriceArguments\n\t\t| [pricer: TransactionArgument, lower: TransactionArgument, higher: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return both boundary probabilities for `(lower, higher]`. Use `probability()`\n * for the combined range probability; absent boundaries are infinite sentinels.\n */\nexport function rangePrice(options: RangePriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['pricer', 'lower', 'higher'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'range_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface LowerUpArguments {\n\tprice: TransactionArgument;\n}\nexport interface LowerUpOptions {\n\tpackage?: string;\n\targuments: LowerUpArguments | [price: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function lowerUp(options: LowerUpOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['price'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'lower_up',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface HigherUpArguments {\n\tprice: TransactionArgument;\n}\nexport interface HigherUpOptions {\n\tpackage?: string;\n\targuments: HigherUpArguments | [price: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function higherUp(options: HigherUpOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['price'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'higher_up',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ProbabilityArguments {\n\tprice: TransactionArgument;\n}\nexport interface ProbabilityOptions {\n\tpackage?: string;\n\targuments: ProbabilityArguments | [price: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the combined probability, floored at zero if approximated boundary prices\n * invert.\n */\nexport function probability(options: ProbabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['price'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pricing',\n\t\t\tfunction: 'probability',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,cAAc;AACpB,MAAa,aAAa,IAAI,WAAW;CACxC,MAAM,GAAG,YAAY;CACrB,QAAQ;EAEP,aAAa;EACb,eAAe,IAAI,MAAM;EAEzB,GAAG;EACH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