viz-js-lib 0.13.0 → 0.13.2
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/VIZ-JS-LIB-COVERAGE-STATUS.md +20 -4
- package/dist/statistics.html +1 -1
- package/dist/viz-tests.min.js.gz +0 -0
- package/dist/viz.min.js +4 -4
- package/dist/viz.min.js.gz +0 -0
- package/lib/auth/serializer/src/ChainTypes.js +2 -0
- package/lib/auth/serializer/src/operations.js +15 -4
- package/package.json +1 -1
package/dist/viz.min.js.gz
CHANGED
|
Binary file
|
|
@@ -118,6 +118,8 @@ ChainTypes.operations = {
|
|
|
118
118
|
pm_unban: 99,
|
|
119
119
|
// Prediction Markets (HF14) — ban expiry virtual operation
|
|
120
120
|
pm_ban_expired: 100,
|
|
121
|
+
// Prediction Markets (HF14) — oracle-accept-window expiry virtual operation
|
|
122
|
+
pm_market_expired: 101,
|
|
121
123
|
// Aliases for backward compatibility (old witness names)
|
|
122
124
|
witness_update: 6,
|
|
123
125
|
account_witness_vote: 7,
|
|
@@ -639,9 +639,10 @@ var chain_properties_hf14 = new Serializer(5, {
|
|
|
639
639
|
pm_min_oracle_insurance: asset,
|
|
640
640
|
pm_market_creation_fee: asset,
|
|
641
641
|
pm_min_liquidity: asset,
|
|
642
|
-
pm_max_outcomes:
|
|
642
|
+
pm_max_outcomes: uint8,
|
|
643
643
|
pm_max_market_duration: uint32,
|
|
644
644
|
pm_max_oracle_fee_percent: uint16,
|
|
645
|
+
pm_oracle_accept_window_sec: uint32,
|
|
645
646
|
pm_listing_min_coverage_percent: uint16,
|
|
646
647
|
pm_betting_min_coverage_percent: uint16,
|
|
647
648
|
pm_default_time_penalty_percent: uint16,
|
|
@@ -667,6 +668,7 @@ var chain_properties_hf14 = new Serializer(5, {
|
|
|
667
668
|
pm_lazy_lock_sec: uint32,
|
|
668
669
|
pm_lazy_recall_step_percent: uint16,
|
|
669
670
|
pm_lazy_emergency_penalty_percent: uint16,
|
|
671
|
+
pm_lazy_min_liquidity_fee_percent: uint16,
|
|
670
672
|
pm_leverage_enabled: bool,
|
|
671
673
|
pm_leverage_fund_percent: uint16,
|
|
672
674
|
pm_leverage_max_per_position_bp: uint16,
|
|
@@ -677,7 +679,8 @@ var chain_properties_hf14 = new Serializer(5, {
|
|
|
677
679
|
pm_leverage_max_position_ratio_percent: uint16,
|
|
678
680
|
pm_leverage_expiration_buffer_sec: uint32,
|
|
679
681
|
pm_leverage_m_factor_percent: uint16,
|
|
680
|
-
pm_conversion_profit_cost_percent: uint16
|
|
682
|
+
pm_conversion_profit_cost_percent: uint16,
|
|
683
|
+
pm_closed_market_retention_sec: uint32
|
|
681
684
|
});
|
|
682
685
|
|
|
683
686
|
var versioned_chain_properties_update = new Serializer("versioned_chain_properties_update", {
|
|
@@ -1164,9 +1167,17 @@ var pm_ban_expired = new Serializer("pm_ban_expired", {
|
|
|
1164
1167
|
creator: bool
|
|
1165
1168
|
});
|
|
1166
1169
|
|
|
1170
|
+
// 101 — pm_market_expired (virtual)
|
|
1171
|
+
var pm_market_expired = new Serializer("pm_market_expired", {
|
|
1172
|
+
oracle: string,
|
|
1173
|
+
creator: string,
|
|
1174
|
+
market_id: int64,
|
|
1175
|
+
refunded_liquidity: asset
|
|
1176
|
+
});
|
|
1177
|
+
|
|
1167
1178
|
operation.st_operations = [vote, content, transfer, transfer_to_vesting, withdraw_vesting, account_update, validator_update, account_validator_vote, account_validator_proxy, delete_content, custom, set_withdraw_vesting_route, request_account_recovery, recover_account, change_recovery_account, escrow_transfer, escrow_dispute, escrow_release, escrow_approve, delegate_vesting_shares, account_create, account_metadata, proposal_create, proposal_update, proposal_delete, chain_properties_update, author_reward, curation_reward, content_reward, fill_vesting_withdraw, shutdown_validator, hardfork, content_payout_update, content_benefactor_reward, return_vesting_delegation, committee_worker_create_request, committee_worker_cancel_request, committee_vote_request, committee_cancel_request, committee_approve_request, committee_pay_request, committee_payout_request, validator_reward, create_invite, claim_invite_balance, invite_registration, versioned_chain_properties_update, award, receive_award, benefactor_award, set_paid_subscription, paid_subscribe, paid_subscription_action, cancel_paid_subscription, set_account_price, set_subaccount_price, buy_account, account_sale, use_invite_balance, expire_escrow_ratification, fixed_award, target_account_sale, bid, outbid, set_reward_sharing, stakeholder_reward,
|
|
1168
|
-
// Prediction Markets (HF14) — op-ids 66..
|
|
1169
|
-
pm_oracle_register, pm_oracle_update, pm_create_market, pm_oracle_accept_market, pm_place_bet, pm_commit_bet, pm_reveal_bet, pm_cancel_bet, pm_add_liquidity, pm_withdraw_liquidity, pm_resolve_market, pm_no_contest, pm_dispute_create, pm_dispute_vote, pm_dispute_resolve, pm_transfer_position, pm_lazy_deposit, pm_lazy_withdraw, pm_batch_settle, pm_commit_forfeit, pm_auto_payout, pm_dispute_finalize, pm_dispute_auto_close, pm_oracle_missed_penalty, pm_lazy_recall, pm_leverage_open, pm_leverage_close, pm_leverage_convert, pm_leverage_liquidate, pm_leverage_resolve, pm_market_accepted, pm_payout, pm_dispute_oracle_respond, pm_unban, pm_ban_expired];
|
|
1179
|
+
// Prediction Markets (HF14) — op-ids 66..101, positional order is the tag
|
|
1180
|
+
pm_oracle_register, pm_oracle_update, pm_create_market, pm_oracle_accept_market, pm_place_bet, pm_commit_bet, pm_reveal_bet, pm_cancel_bet, pm_add_liquidity, pm_withdraw_liquidity, pm_resolve_market, pm_no_contest, pm_dispute_create, pm_dispute_vote, pm_dispute_resolve, pm_transfer_position, pm_lazy_deposit, pm_lazy_withdraw, pm_batch_settle, pm_commit_forfeit, pm_auto_payout, pm_dispute_finalize, pm_dispute_auto_close, pm_oracle_missed_penalty, pm_lazy_recall, pm_leverage_open, pm_leverage_close, pm_leverage_convert, pm_leverage_liquidate, pm_leverage_resolve, pm_market_accepted, pm_payout, pm_dispute_oracle_respond, pm_unban, pm_ban_expired, pm_market_expired];
|
|
1170
1181
|
|
|
1171
1182
|
// Export old witness names as aliases for backward compatibility
|
|
1172
1183
|
module.exports.witness_update = validator_update;
|