@zilliqa-js/blockchain
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
221586
34
2901
1
+ Added@zilliqa-js/account@0.5.4(transitive)
+ Added@zilliqa-js/contract@0.5.4(transitive)
+ Added@zilliqa-js/core@0.5.4(transitive)
- Removed@zilliqa-js/account@0.5.1(transitive)
- Removed@zilliqa-js/contract@0.5.3(transitive)
- Removed@zilliqa-js/core@0.5.0(transitive)
Updated@zilliqa-js/account@0.5.4
Updated@zilliqa-js/contract@0.5.4
Updated@zilliqa-js/core@0.5.4