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

scryptlib

Package Overview
Dependencies
Maintainers
5
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scryptlib - npm Package Compare versions

Comparing version 2.1.37 to 2.1.38

2

package.json
{
"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

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