scryptlib
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -79,2 +79,14 @@ export declare abstract class ScryptType { | ||
toLiteral(): string; | ||
toJSON(): { | ||
nVersion: number; | ||
hashPrevouts: string; | ||
hashSequence: string; | ||
outpoint: Outpoint; | ||
scriptCode: string; | ||
amount: number; | ||
nSequence: number; | ||
hashOutputs: string; | ||
nLocktime: number; | ||
sighashType: string; | ||
}; | ||
} | ||
@@ -81,0 +93,0 @@ export declare class OpCodeType extends ScryptType { |
@@ -222,2 +222,16 @@ "use strict"; | ||
} | ||
toJSON() { | ||
return { | ||
nVersion: this.nVersion, | ||
hashPrevouts: this.hashOutputs, | ||
hashSequence: this.hashSequence, | ||
outpoint: this.outpoint, | ||
scriptCode: this.scriptCode, | ||
amount: this.amount, | ||
nSequence: this.nSequence, | ||
hashOutputs: this.hashOutputs, | ||
nLocktime: this.nLocktime, | ||
sighashType: new SigHashType(this.sighashType).toString() | ||
}; | ||
} | ||
} | ||
@@ -224,0 +238,0 @@ exports.SigHashPreimage = SigHashPreimage; |
{ | ||
"name": "scryptlib", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
59236
1299