Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

beowulf-js

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beowulf-js - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

70

lib/wallet/index.js

@@ -87,41 +87,53 @@ 'use strict';

beowulfWallet.supernodeUpdate = function (_ref4, cb) {
beowulfWallet.accountSupernodeVote = function (_ref4, cb) {
var wif = _ref4.wif,
owner = _ref4.owner,
block_signing_key = _ref4.block_signing_key,
supernode = _ref4.supernode,
account = _ref4.account,
approve = _ref4.approve,
votes = _ref4.votes,
_ref4$fee = _ref4.fee,
fee = _ref4$fee === undefined ? '0.01000 W' : _ref4$fee;
_broadcast2.default.supernodeUpdate(wif, owner, block_signing_key, fee, cb);
_broadcast2.default.accountSupernodeVote(wif, supernode, account, approve, votes, fee, cb);
};
beowulfWallet.transferToVesting = function (_ref5, cb) {
beowulfWallet.supernodeUpdate = function (_ref5, cb) {
var wif = _ref5.wif,
from = _ref5.from,
to = _ref5.to,
amount = _ref5.amount,
owner = _ref5.owner,
block_signing_key = _ref5.block_signing_key,
_ref5$fee = _ref5.fee,
fee = _ref5$fee === undefined ? '0.01000 W' : _ref5$fee;
_broadcast2.default.transferToVesting(wif, from, to, amount, fee, cb);
_broadcast2.default.supernodeUpdate(wif, owner, block_signing_key, fee, cb);
};
beowulfWallet.withdrawVesting = function (_ref6, cb) {
beowulfWallet.transferToVesting = function (_ref6, cb) {
var wif = _ref6.wif,
account = _ref6.account,
vesting_shares = _ref6.vesting_shares,
from = _ref6.from,
to = _ref6.to,
amount = _ref6.amount,
_ref6$fee = _ref6.fee,
fee = _ref6$fee === undefined ? '0.01000 W' : _ref6$fee;
_broadcast2.default.withdrawVesting(wif, account, vesting_shares, fee, cb);
_broadcast2.default.transferToVesting(wif, from, to, amount, fee, cb);
};
beowulfWallet.accountUpdateMul = function (_ref7, cb) {
var wallet = _ref7.wallet,
weight_threshold = _ref7.weight_threshold,
beowulfWallet.withdrawVesting = function (_ref7, cb) {
var wif = _ref7.wif,
account = _ref7.account,
wif = _ref7.wif,
vesting_shares = _ref7.vesting_shares,
_ref7$fee = _ref7.fee,
fee = _ref7$fee === undefined ? '0.10000 W' : _ref7$fee;
fee = _ref7$fee === undefined ? '0.01000 W' : _ref7$fee;
_broadcast2.default.withdrawVesting(wif, account, vesting_shares, fee, cb);
};
beowulfWallet.accountUpdateMul = function (_ref8, cb) {
var wallet = _ref8.wallet,
weight_threshold = _ref8.weight_threshold,
account = _ref8.account,
wif = _ref8.wif,
_ref8$fee = _ref8.fee,
fee = _ref8$fee === undefined ? '0.10000 W' : _ref8$fee;
if (weight_threshold <= 0) {

@@ -142,10 +154,10 @@ throw new Error("weight threshold is wrong");

beowulfWallet.submitMulWallet = function (_ref8, cb) {
var wallet = _ref8.wallet,
weight_threshold = _ref8.weight_threshold,
account = _ref8.account,
creator = _ref8.creator,
creatorWif = _ref8.creatorWif,
_ref8$fee = _ref8.fee,
fee = _ref8$fee === undefined ? '0.10000 W' : _ref8$fee;
beowulfWallet.submitMulWallet = function (_ref9, cb) {
var wallet = _ref9.wallet,
weight_threshold = _ref9.weight_threshold,
account = _ref9.account,
creator = _ref9.creator,
creatorWif = _ref9.creatorWif,
_ref9$fee = _ref9.fee,
fee = _ref9$fee === undefined ? '0.10000 W' : _ref9$fee;

@@ -170,5 +182,5 @@ if (weight_threshold <= 0) {

function encryptWallet(_ref9, password) {
var account = _ref9.account,
wallet = _ref9.wallet;
function encryptWallet(_ref10, password) {
var account = _ref10.account,
wallet = _ref10.wallet;

@@ -175,0 +187,0 @@ var salt = _keygen2.default.keyGen(16, true, true, true, true, false);

{
"name": "beowulf-js",
"version": "1.0.3",
"version": "1.0.4",
"description": "Beowulf the JavaScript API for Beowulf blockchain",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc