viz-js-lib
Advanced tools
Comparing version 0.9.20 to 0.9.21
@@ -67,3 +67,7 @@ "use strict"; | ||
paid_subscription_action: 52, | ||
cancel_paid_subscription: 53 | ||
cancel_paid_subscription: 53, | ||
set_account_price: 54, | ||
set_subaccount_price: 55, | ||
buy_account: 56, | ||
account_sale: 57 | ||
}; | ||
@@ -70,0 +74,0 @@ |
@@ -591,4 +591,33 @@ "use strict"; | ||
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]; | ||
var set_account_price = new Serializer("set_account_price", { | ||
account: string, | ||
account_seller: string, | ||
account_offer_price: asset, | ||
account_on_sale: bool | ||
}); | ||
var set_subaccount_price = new Serializer("set_subaccount_price", { | ||
account: string, | ||
subaccount_seller: string, | ||
subaccount_offer_price: asset, | ||
subaccount_on_sale: bool | ||
}); | ||
var buy_account = new Serializer("buy_account", { | ||
buyer: string, | ||
account: string, | ||
account_offer_price: asset, | ||
account_authorities_key: public_key, | ||
tokens_to_shares: asset | ||
}); | ||
var account_sale = new Serializer("account_sale", { | ||
account: string, | ||
price: asset, | ||
buyer: string, | ||
seller: string | ||
}); | ||
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]; | ||
//# ------------------------------- | ||
@@ -595,0 +624,0 @@ //# Generated code end S T O P |
@@ -159,2 +159,14 @@ "use strict"; | ||
"params": ["subscriber", "account", "level", "amount", "period", "auto_renewal"] | ||
}, { | ||
"roles": ["master"], | ||
"operation": "set_account_price", | ||
"params": ["account", "account_seller", "account_offer_price", "account_on_sale"] | ||
}, { | ||
"roles": ["master"], | ||
"operation": "set_subaccount_price", | ||
"params": ["account", "subaccount_seller", "subaccount_offer_price", "subaccount_on_sale"] | ||
}, { | ||
"roles": ["active"], | ||
"operation": "buy_account", | ||
"params": ["buyer", "account", "account_offer_price", "account_authorities_key", "tokens_to_shares"] | ||
}]; |
{ | ||
"name": "viz-js-lib", | ||
"version": "0.9.20", | ||
"version": "0.9.21", | ||
"description": "viz.js the JavaScript Library with API support for VIZ blockchain", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,3 +34,3 @@ # viz.js | ||
viz.config.set('websocket','wss://viz.lexai.host/'); | ||
viz.config.set('websocket','https://rpc.viz.ropox.app/'); | ||
viz.config.set('websocket','https://rpc.viz.lexai.host/'); | ||
``` | ||
@@ -43,3 +43,3 @@ | ||
var wif = viz.auth.toWif(username, password, 'posting'); | ||
var wif = viz.auth.toWif(username, password, 'regular'); | ||
viz.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) { | ||
@@ -46,0 +46,0 @@ console.log(err, result); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13181374
9512