viz-js-lib 0.13.0 → 0.13.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.
@@ -10,11 +10,11 @@
10
10
  | Category | Total | Implemented | Missing | Coverage |
11
11
  |----------|-------|-------------|---------|----------|
12
12
  | **Regular Operations** | 54 | 54 | 0 | 100% |
13
- | **Virtual Operations** | 35 | 35 | 0 | 100% |
13
+ | **Virtual Operations** | 36 | 36 | 0 | 100% |
14
14
  | **Plugin API Methods** | 117 | 115 | 2 | 98% |
15
15
 
16
16
  Includes the HF14 Prediction Markets additions: 23 signed ops + `stakeholder_reward`
17
- and 12 PM virtual ops in the serializer, and 29 `prediction_market_api` read methods.
17
+ and 13 PM virtual ops in the serializer, and 29 `prediction_market_api` read methods.
18
18
 
19
19
  **Overall Status:** ✅ **FULL COVERAGE**
20
20
 
@@ -22,7 +22,7 @@ and 12 PM virtual ops in the serializer, and 29 `prediction_market_api` read met
22
22
 
23
23
  ## Prediction Markets (Onix, HF14)
24
24
 
25
- Op-ids are the exact positions in the global `operation` static_variant (65–100),
25
+ Op-ids are the exact positions in the global `operation` static_variant (65–101),
26
26
  so binary signing produces the correct varint tag. `stakeholder_reward` (65, virtual)
27
27
  was added to close the gap before the PM range.
28
28
 
@@ -60,7 +60,7 @@ was added to close the gap before the PM range.
60
60
  `pm_auto_payout` (86), `pm_dispute_finalize` (87), `pm_dispute_auto_close` (88),
61
61
  `pm_oracle_missed_penalty` (89), `pm_lazy_recall` (90), `pm_leverage_liquidate` (94),
62
62
  `pm_leverage_resolve` (95), `pm_market_accepted` (96), `pm_payout` (97),
63
- `pm_ban_expired` (100).
63
+ `pm_ban_expired` (100), `pm_market_expired` (101).
64
64
 
65
65
  ### API read methods (`viz.api.*`, plugin `prediction_market_api`)
66
66
 
@@ -80,6 +80,22 @@ was added to close the gap before the PM range.
80
80
  - `viz.formatter.predictionMarketCommitment(marketId, account, side, outcomeIndex, amount, minTokens, salt)`
81
81
  — byte-exact SHA-256 commitment for the commit-reveal flow.
82
82
 
83
+ ### Delta — 2026-07 (oracle-accept window + lazy-pool min-fee)
84
+
85
+ Two consensus additions surfaced through existing read methods — no new signed op.
86
+ The serializer gained one virtual op (`pm_market_expired`, 101, added above).
87
+
88
+ - `getPmChainProperties` now also returns `pm_oracle_accept_window_sec` (uint32, seconds,
89
+ default 3600) and `pm_lazy_min_liquidity_fee_percent` (uint16, bp, default 200). These are
90
+ pass-through fields — no client code change needed to read them.
91
+ - `pm_market_object` now carries a read-only `accept_deadline` (time): `created_time +
92
+ pm_oracle_accept_window_sec` on pending markets, `0` (epoch) on markets active at creation.
93
+ Surfaced pass-through via `getMarket`/`getMarketFull`.
94
+ - `pm_market_expired` (vop 101): `oracle`, `creator`, `market_id` (int64),
95
+ `refunded_liquidity` (asset) — emitted when the oracle-accept window lapses and the cron
96
+ refunds the creator's seed liquidity (creation fee forfeited). A rejected market emits no
97
+ vop — detect via `status = -1`.
98
+
83
99
  ---
84
100
 
85
101
  ## Regular Operations (Broadcastable)