scryptlib
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -9,3 +9,3 @@ import { AbstractContract, TxContext, VerifyResult, AsmVarValues } from './contract'; | ||
type: ABIEntityType; | ||
name: string; | ||
name?: string; | ||
params: Array<{ | ||
@@ -12,0 +12,0 @@ name: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ABICoder = exports.FunctionCall = exports.ABIEntityType = void 0; | ||
const ts_optchain_1 = require("ts-optchain"); | ||
@@ -5,0 +4,0 @@ const utils_1 = require("./utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compilerVersion = exports.compile = exports.DebugModeTag = exports.CompileErrorType = void 0; | ||
const path_1 = require("path"); | ||
@@ -269,7 +268,6 @@ const child_process_1 = require("child_process"); | ||
// explict constructor | ||
if (mainContract['construcotr']) { | ||
if (mainContract['constructor']) { | ||
interfaces.push({ | ||
type: abi_1.ABIEntityType.CONSTRUCTOR, | ||
name: 'constructor', | ||
params: mainContract['construcotr']['params'].map(p => { return { name: p['name'], type: p['type'] }; }), | ||
params: mainContract['constructor']['params'].map(p => { return { name: p['name'], type: p['type'] }; }), | ||
}); | ||
@@ -282,3 +280,2 @@ } | ||
type: abi_1.ABIEntityType.CONSTRUCTOR, | ||
name: 'constructor', | ||
params: mainContract['properties'].map(p => { return { name: p['name'].replace('this.', ''), type: p['type'] }; }), | ||
@@ -285,0 +282,0 @@ }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildContractClass = exports.AbstractContract = void 0; | ||
const abi_1 = require("./abi"); | ||
@@ -5,0 +4,0 @@ const utils_1 = require("./utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var contract_1 = require("./contract"); | ||
Object.defineProperty(exports, "buildContractClass", { enumerable: true, get: function () { return contract_1.buildContractClass; } }); | ||
exports.buildContractClass = contract_1.buildContractClass; | ||
var compilerWrapper_1 = require("./compilerWrapper"); | ||
Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return compilerWrapper_1.compile; } }); | ||
exports.compile = compilerWrapper_1.compile; | ||
var utils_1 = require("./utils"); | ||
Object.defineProperty(exports, "bsv", { enumerable: true, get: function () { return utils_1.bsv; } }); | ||
Object.defineProperty(exports, "signTx", { enumerable: true, get: function () { return utils_1.signTx; } }); | ||
Object.defineProperty(exports, "toHex", { enumerable: true, get: function () { return utils_1.toHex; } }); | ||
Object.defineProperty(exports, "getPreimage", { enumerable: true, get: function () { return utils_1.getPreimage; } }); | ||
Object.defineProperty(exports, "num2bin", { enumerable: true, get: function () { return utils_1.num2bin; } }); | ||
exports.bsv = utils_1.bsv; | ||
exports.signTx = utils_1.signTx; | ||
exports.toHex = utils_1.toHex; | ||
exports.getPreimage = utils_1.getPreimage; | ||
exports.num2bin = utils_1.num2bin; | ||
var scryptTypes_1 = require("./scryptTypes"); | ||
Object.defineProperty(exports, "Int", { enumerable: true, get: function () { return scryptTypes_1.Int; } }); | ||
Object.defineProperty(exports, "Bool", { enumerable: true, get: function () { return scryptTypes_1.Bool; } }); | ||
Object.defineProperty(exports, "Bytes", { enumerable: true, get: function () { return scryptTypes_1.Bytes; } }); | ||
Object.defineProperty(exports, "PrivKey", { enumerable: true, get: function () { return scryptTypes_1.PrivKey; } }); | ||
Object.defineProperty(exports, "PubKey", { enumerable: true, get: function () { return scryptTypes_1.PubKey; } }); | ||
Object.defineProperty(exports, "Sig", { enumerable: true, get: function () { return scryptTypes_1.Sig; } }); | ||
Object.defineProperty(exports, "Ripemd160", { enumerable: true, get: function () { return scryptTypes_1.Ripemd160; } }); | ||
Object.defineProperty(exports, "Sha1", { enumerable: true, get: function () { return scryptTypes_1.Sha1; } }); | ||
Object.defineProperty(exports, "Sha256", { enumerable: true, get: function () { return scryptTypes_1.Sha256; } }); | ||
Object.defineProperty(exports, "SigHashType", { enumerable: true, get: function () { return scryptTypes_1.SigHashType; } }); | ||
Object.defineProperty(exports, "OpCodeType", { enumerable: true, get: function () { return scryptTypes_1.OpCodeType; } }); | ||
exports.Int = scryptTypes_1.Int; | ||
exports.Bool = scryptTypes_1.Bool; | ||
exports.Bytes = scryptTypes_1.Bytes; | ||
exports.PrivKey = scryptTypes_1.PrivKey; | ||
exports.PubKey = scryptTypes_1.PubKey; | ||
exports.Sig = scryptTypes_1.Sig; | ||
exports.Ripemd160 = scryptTypes_1.Ripemd160; | ||
exports.Sha1 = scryptTypes_1.Sha1; | ||
exports.Sha256 = scryptTypes_1.Sha256; | ||
exports.SigHashType = scryptTypes_1.SigHashType; | ||
exports.OpCodeType = scryptTypes_1.OpCodeType; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OpCodeType = exports.SigHashType = exports.Sha256 = exports.Sha1 = exports.Ripemd160 = exports.Sig = exports.PubKey = exports.PrivKey = exports.Bytes = exports.Bool = exports.Int = exports.ScryptType = void 0; | ||
const utils_1 = require("./utils"); | ||
@@ -5,0 +4,0 @@ class ScryptType { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.uri2path = exports.path2uri = exports.num2bin = exports.getPreimage = exports.toHex = exports.signTx = exports.getValidatedHexString = exports.hexStringToBytes = exports.bytesToHexString = exports.bytes2Literal = exports.literal2Asm = exports.int2Asm = exports.bool2Asm = exports.DEFAULT_SIGHASH_TYPE = exports.DEFAULT_FLAGS = exports.bsv = void 0; | ||
const url_1 = require("url"); | ||
@@ -5,0 +4,0 @@ const bsv = require("bsv"); |
{ | ||
"name": "scryptlib", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"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
51157
1124