scryptlib
Advanced tools
Comparing version 2.1.37 to 2.1.38
{ | ||
"name": "scryptlib", | ||
"version": "2.1.37", | ||
"version": "2.1.38", | ||
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -932,2 +932,3 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
): this; | ||
removeInput(txId: string, outputIndex: number): void; | ||
addOutput(output: Transaction.Output): this; | ||
@@ -962,5 +963,3 @@ addData(value: Buffer | string): this; | ||
_getUnspentValue(): number; | ||
_estimateFee(): number; | ||
_estimateSize: number; | ||
getUnspentValue(): number; | ||
setInputScript(inputIndex: number | { | ||
@@ -983,2 +982,3 @@ inputIndex: number, | ||
getChangeAmount(): number; | ||
getEstimateSize(): number; | ||
getEstimateFee(): number; | ||
@@ -985,0 +985,0 @@ checkFeeRate(feePerKb?: number): boolean; |
@@ -205,3 +205,3 @@ 'use strict' | ||
var unspent = this._getUnspentValue() | ||
var unspent = this.getUnspentValue() | ||
var unspentError | ||
@@ -880,3 +880,3 @@ if (unspent < 0) { | ||
})) | ||
var available = this._getUnspentValue() | ||
var available = this.getUnspentValue() | ||
var fee = this.getFee() | ||
@@ -922,3 +922,3 @@ var changeAmount = available - fee | ||
if (!this._changeScript) { | ||
return this._getUnspentValue() | ||
return this.getUnspentValue() | ||
} | ||
@@ -936,3 +936,3 @@ return this._estimateFee() | ||
Transaction.prototype._getUnspentValue = function () { | ||
Transaction.prototype.getUnspentValue = function () { | ||
return this._getInputAmount() - this._getOutputAmount() | ||
@@ -958,2 +958,6 @@ } | ||
// 4 locktime | ||
Transaction.prototype.getEstimateSize = function () { | ||
return this._estimateSize() | ||
} | ||
Transaction.prototype._estimateSize = function () { | ||
@@ -1447,3 +1451,3 @@ var result = 4 + 4 // size of version + size of locktime | ||
Transaction.prototype.checkFeeRate = function (feePerKb) { | ||
var fee = this._getUnspentValue() | ||
var fee = this.getUnspentValue() | ||
@@ -1450,0 +1454,0 @@ var estimatedSize = this._estimateSize() |
Sorry, the diff of this file is too big to display
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
976156
24061