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

@zilliqa-js/blockchain

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zilliqa-js/blockchain - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

zilliqa-js-blockchain-0.5.4.tgz

4

dist/index.esm.js

@@ -90,4 +90,4 @@ import { BN, Long } from '@zilliqa-js/util';

function toTxParams(response) {
var _a = response.result, toAddr = _a.toAddr, gasPrice = _a.gasPrice, gasLimit = _a.gasLimit, amount = _a.amount, nonce = _a.nonce, receipt = _a.receipt, version = _a.version, rest = __rest(_a, ["toAddr", "gasPrice", "gasLimit", "amount", "nonce", "receipt", "version"]);
return __assign({}, rest, { version: parseInt(version, 10), toAddr: toAddr, gasPrice: new BN(gasPrice), gasLimit: Long.fromString(gasLimit, 10), amount: new BN(amount), receipt: __assign({}, receipt, { cumulative_gas: parseInt(receipt.cumulative_gas, 10) }) });
var _a = response.result, toAddr = _a.toAddr, senderPubKey = _a.senderPubKey, gasPrice = _a.gasPrice, gasLimit = _a.gasLimit, nonce = _a.nonce, amount = _a.amount, receipt = _a.receipt, version = _a.version, rest = __rest(_a, ["toAddr", "senderPubKey", "gasPrice", "gasLimit", "nonce", "amount", "receipt", "version"]);
return __assign({}, rest, { version: parseInt(version, 10), toAddr: toAddr, pubKey: senderPubKey, gasPrice: new BN(gasPrice), gasLimit: Long.fromString(gasLimit, 10), amount: new BN(amount), nonce: parseInt(nonce, 10), receipt: __assign({}, receipt, { cumulative_gas: parseInt(receipt.cumulative_gas, 10) }) });
}

@@ -94,0 +94,0 @@

@@ -92,4 +92,4 @@ (function (global, factory) {

function toTxParams(response) {
var _a = response.result, toAddr = _a.toAddr, gasPrice = _a.gasPrice, gasLimit = _a.gasLimit, amount = _a.amount, nonce = _a.nonce, receipt = _a.receipt, version = _a.version, rest = __rest(_a, ["toAddr", "gasPrice", "gasLimit", "amount", "nonce", "receipt", "version"]);
return __assign({}, rest, { version: parseInt(version, 10), toAddr: toAddr, gasPrice: new util.BN(gasPrice), gasLimit: util.Long.fromString(gasLimit, 10), amount: new util.BN(amount), receipt: __assign({}, receipt, { cumulative_gas: parseInt(receipt.cumulative_gas, 10) }) });
var _a = response.result, toAddr = _a.toAddr, senderPubKey = _a.senderPubKey, gasPrice = _a.gasPrice, gasLimit = _a.gasLimit, nonce = _a.nonce, amount = _a.amount, receipt = _a.receipt, version = _a.version, rest = __rest(_a, ["toAddr", "senderPubKey", "gasPrice", "gasLimit", "nonce", "amount", "receipt", "version"]);
return __assign({}, rest, { version: parseInt(version, 10), toAddr: toAddr, pubKey: senderPubKey, gasPrice: new util.BN(gasPrice), gasLimit: util.Long.fromString(gasLimit, 10), amount: new util.BN(amount), nonce: parseInt(nonce, 10), receipt: __assign({}, receipt, { cumulative_gas: parseInt(receipt.cumulative_gas, 10) }) });
}

@@ -96,0 +96,0 @@

@@ -6,6 +6,6 @@ "use strict";

function toTxParams(response) {
var _a = response.result, toAddr = _a.toAddr, gasPrice = _a.gasPrice, gasLimit = _a.gasLimit, amount = _a.amount, nonce = _a.nonce, receipt = _a.receipt, version = _a.version, rest = tslib_1.__rest(_a, ["toAddr", "gasPrice", "gasLimit", "amount", "nonce", "receipt", "version"]);
return tslib_1.__assign({}, rest, { version: parseInt(version, 10), toAddr: toAddr, gasPrice: new util_1.BN(gasPrice), gasLimit: util_1.Long.fromString(gasLimit, 10), amount: new util_1.BN(amount), receipt: tslib_1.__assign({}, receipt, { cumulative_gas: parseInt(receipt.cumulative_gas, 10) }) });
var _a = response.result, toAddr = _a.toAddr, senderPubKey = _a.senderPubKey, gasPrice = _a.gasPrice, gasLimit = _a.gasLimit, nonce = _a.nonce, amount = _a.amount, receipt = _a.receipt, version = _a.version, rest = tslib_1.__rest(_a, ["toAddr", "senderPubKey", "gasPrice", "gasLimit", "nonce", "amount", "receipt", "version"]);
return tslib_1.__assign({}, rest, { version: parseInt(version, 10), toAddr: toAddr, pubKey: senderPubKey, gasPrice: new util_1.BN(gasPrice), gasLimit: util_1.Long.fromString(gasLimit, 10), amount: new util_1.BN(amount), nonce: parseInt(nonce, 10), receipt: tslib_1.__assign({}, receipt, { cumulative_gas: parseInt(receipt.cumulative_gas, 10) }) });
}
exports.toTxParams = toTxParams;
//# sourceMappingURL=util.js.map
{
"name": "@zilliqa-js/blockchain",
"version": "0.5.3",
"version": "0.5.4",
"description": "Class(es) for interacting with the Zilliqa blockchain.",

@@ -22,9 +22,9 @@ "main": "dist/index.js",

"dependencies": {
"@zilliqa-js/account": "0.5.1",
"@zilliqa-js/contract": "0.5.3",
"@zilliqa-js/core": "0.5.0",
"@zilliqa-js/account": "0.5.4",
"@zilliqa-js/contract": "0.5.4",
"@zilliqa-js/core": "0.5.4",
"@zilliqa-js/util": "0.5.0",
"utility-types": "^3.4.1"
},
"gitHead": "1c3630c5e7e0c2ec87ed0f77169c6b5aa78b8a97"
"gitHead": "d176dfb13cd2dcb4f7bc59dd8939048b64ea410d"
}

@@ -10,6 +10,7 @@ import { TxParams } from '@zilliqa-js/account';

toAddr,
senderPubKey,
gasPrice,
gasLimit,
nonce,
amount,
nonce,
receipt,

@@ -24,5 +25,7 @@ version,

toAddr,
pubKey: senderPubKey,
gasPrice: new BN(gasPrice),
gasLimit: Long.fromString(gasLimit, 10),
amount: new BN(amount),
nonce: parseInt(nonce, 10),
receipt: {

@@ -29,0 +32,0 @@ ...receipt,

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 not supported yet

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