viz-js-lib 0.12.3 → 0.12.4

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.
Binary file
@@ -74,7 +74,8 @@ ChainTypes.operations = {
74
74
  fixed_award: 60,
75
75
  target_account_sale: 61,
76
76
  bid: 62,
77
- outbid: 63
77
+ outbid: 63,
78
+ set_reward_sharing: 64
78
79
  };
79
80
 
80
81
  //types.hpp
@@ -572,10 +572,38 @@ var chain_properties_hf9 = new Serializer(3, {
572
572
  witness_declaration_fee: asset,
573
573
  withdraw_intervals: uint16
574
574
  });
575
+ var chain_properties_hf13 = new Serializer(4, {
576
+ account_creation_fee: asset,
577
+ maximum_block_size: uint32,
578
+ create_account_delegation_ratio: uint32,
579
+ create_account_delegation_time: uint32,
580
+ min_delegation: asset,
581
+ min_curation_percent: int16,
582
+ max_curation_percent: int16,
583
+ bandwidth_reserve_percent: int16,
584
+ bandwidth_reserve_below: asset,
585
+ flag_energy_additional_cost: int16,
586
+ vote_accounting_min_rshares: uint32,
587
+ committee_request_approve_min_percent: int16,
588
+ inflation_witness_percent: int16,
589
+ inflation_ratio_committee_vs_reward_fund: int16,
590
+ inflation_recalc_period: uint32,
591
+ data_operations_cost_additional_bandwidth: uint32,
592
+ witness_miss_penalty_percent: int16,
593
+ witness_miss_penalty_duration: uint32,
594
+ create_invite_min_balance: asset,
595
+ committee_create_request_fee: asset,
596
+ create_paid_subscription_fee: asset,
597
+ account_on_sale_fee: asset,
598
+ subaccount_on_sale_fee: asset,
599
+ witness_declaration_fee: asset,
600
+ withdraw_intervals: uint16,
601
+ distribution_epoch_length: uint32
602
+ });
575
603
 
576
604
  var versioned_chain_properties_update = new Serializer("versioned_chain_properties_update", {
577
605
  owner: string,
578
- props: static_variant([chain_properties_init, chain_properties_hf4, chain_properties_hf6, chain_properties_hf9])
606
+ props: static_variant([chain_properties_init, chain_properties_hf4, chain_properties_hf6, chain_properties_hf9, chain_properties_hf13])
579
607
  });
580
608
 
581
609
  var receive_award = new Serializer("receive_award", {
@@ -690,7 +718,12 @@ var outbid = new Serializer("outbid", {
690
718
  bid: asset
691
719
  });
692
720
 
693
- operation.st_operations = [vote, content, transfer, transfer_to_vesting, withdraw_vesting, account_update, witness_update, account_witness_vote, account_witness_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_witness, 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, witness_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];
721
+ var set_reward_sharing = new Serializer("set_reward_sharing", {
722
+ owner: string,
723
+ sharing_rate: uint16
724
+ });
725
+
726
+ operation.st_operations = [vote, content, transfer, transfer_to_vesting, withdraw_vesting, account_update, witness_update, account_witness_vote, account_witness_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_witness, 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, witness_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];
694
727
 
695
728
  //# -------------------------------
696
729
  //# Generated code end S T O P
@@ -180,4 +180,8 @@ module.exports = [{
180
180
  "roles": ["active"],
181
181
  "operation": "use_invite_balance",
182
182
  "params": ["initiator", "receiver", "invite_secret"]
183
+ }, {
184
+ "roles": ["active"],
185
+ "operation": "set_reward_sharing",
186
+ "params": ["owner", "sharing_rate"]
183
187
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viz-js-lib",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "viz.js the JavaScript Library with API support for VIZ blockchain",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -14,7 +14,8 @@
14
14
  },
15
15
  "browser": {
16
16
  "ws": false,
17
- "crypto": false
17
+ "crypto": false,
18
+ "async_hooks": false
18
19
  },
19
20
  "repository": {
20
21
  "type": "git",
@@ -73,6 +73,9 @@ function makeConfig(options) {
73
73
  filename: '[name].min.js',
74
74
  },
75
75
  plugins: makePlugins(options),
76
+ node: {
77
+ async_hooks: 'empty',
78
+ },
76
79
  module: {
77
80
  loaders: [
78
81
  {