viz-js-lib 0.17.0 → 0.18.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/api-frontend/app.js +3 -1
- package/api-frontend/jsonrpc-api-spec.json +17 -0
- package/dist/statistics.html +1 -1
- package/dist/viz-tests.min.js +1 -1
- package/dist/viz-tests.min.js.gz +0 -0
- package/dist/viz.min.js +2 -2
- package/dist/viz.min.js.gz +0 -0
- package/lib/api/methods.js +4 -0
- package/lib/auth/serializer/src/operations.js +14 -1
- package/lib/broadcast/operations.js +4 -0
- package/package.json +1 -1
- package/test/methods_by_version.js +1 -0
package/dist/viz.min.js.gz
CHANGED
|
Binary file
|
package/lib/api/methods.js
CHANGED
|
@@ -183,6 +183,10 @@ module.exports = [{
|
|
|
183
183
|
"api": "database_api",
|
|
184
184
|
"method": "get_subaccounts_on_sale",
|
|
185
185
|
"params": ["from", "limit", "name_prefix"]
|
|
186
|
+
}, {
|
|
187
|
+
"api": "database_api",
|
|
188
|
+
"method": "get_agent_permissions",
|
|
189
|
+
"params": ["account"]
|
|
186
190
|
}, {
|
|
187
191
|
"api": "account_by_key",
|
|
188
192
|
"method": "get_key_references",
|
|
@@ -1177,6 +1177,19 @@ var pm_dispute_oracle_respond = new Serializer("pm_dispute_oracle_respond", {
|
|
|
1177
1177
|
extensions: set(future_extensions)
|
|
1178
1178
|
});
|
|
1179
1179
|
|
|
1180
|
+
// 105 — set_agent_permission (active: account). HF15 agent access; addons = off-chain scopes
|
|
1181
|
+
// (e.g. "vizhub"), not checked by the node; empty operations AND addons = revoke,
|
|
1182
|
+
// expiration epoch = perpetual.
|
|
1183
|
+
var set_agent_permission = new Serializer("set_agent_permission", {
|
|
1184
|
+
account: string,
|
|
1185
|
+
agent_name: string,
|
|
1186
|
+
agent_key: public_key,
|
|
1187
|
+
operations: set(string),
|
|
1188
|
+
expiration: time_point_sec,
|
|
1189
|
+
addons: set(string),
|
|
1190
|
+
extensions: set(future_extensions)
|
|
1191
|
+
});
|
|
1192
|
+
|
|
1180
1193
|
// 99 — pm_unban (active: resolver)
|
|
1181
1194
|
var pm_unban = new Serializer("pm_unban", {
|
|
1182
1195
|
resolver: string,
|
|
@@ -1222,7 +1235,7 @@ var pm_lp_payout = new Serializer("pm_lp_payout", {
|
|
|
1222
1235
|
|
|
1223
1236
|
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,
|
|
1224
1237
|
// Prediction Markets (HF14) — op-ids 66..101, positional order is the tag
|
|
1225
|
-
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, pm_dispute_opened, pm_early_exit_claim_paid, pm_lp_payout];
|
|
1238
|
+
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, pm_dispute_opened, pm_early_exit_claim_paid, pm_lp_payout, set_agent_permission];
|
|
1226
1239
|
|
|
1227
1240
|
// Export old witness names as aliases for backward compatibility
|
|
1228
1241
|
module.exports.witness_update = validator_update;
|
|
@@ -288,4 +288,8 @@ module.exports = [{
|
|
|
288
288
|
"roles": ["active"],
|
|
289
289
|
"operation": "pm_unban",
|
|
290
290
|
"params": ["resolver", "target", "unban_oracle", "unban_creator", "extensions"]
|
|
291
|
+
}, {
|
|
292
|
+
"roles": ["active"],
|
|
293
|
+
"operation": "set_agent_permission",
|
|
294
|
+
"params": ["account", "agent_name", "agent_key", "operations", "expiration", "addons", "extensions"]
|
|
291
295
|
}];
|
package/package.json
CHANGED