scrypt-ts
Advanced tools
Comparing version 1.3.9 to 1.3.10
# CHANGELOG | ||
## 1.3.10 | ||
- rename `setConstructor()` to `init()` | ||
- add `fromUTXO()` | ||
## 1.3.9 | ||
@@ -17,3 +24,3 @@ | ||
demo.setNOPScript(nopScript) | ||
demo.prependNOPScript(nopScript) | ||
@@ -20,0 +27,0 @@ // contract deployment |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { PublicKey, Transaction } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { PublicKey, Transaction } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="chrome" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Provider } from "../../abstract-provider"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Signer, SignatureRequest, SignatureResponse, SignTransactionOptions } from "../abstract-signer"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from "../../core/action"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from "../../core/action"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from "../../core/action"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { SmartContract } from "../../smart-contract/contract"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from "../../core/action"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from "../../core/action"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface UtxoSpentEvent { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=utxoSpent.event.js.map |
@@ -0,0 +0,0 @@ import { Action } from "./action"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { RequestMethod } from "./request-controller"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=action.js.map |
@@ -0,0 +0,0 @@ export declare class Config { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ActionResolver } from "./action-resolver"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Config } from "./config"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Config } from './config'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface JSONResponseEnvelope<T> { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
@@ -0,0 +0,0 @@ import { BsvApi } from "./apis/bsv-api"; |
@@ -0,0 +0,0 @@ "use strict"; |
"use strict"; | ||
//# sourceMappingURL=types.js.map |
import { bsv } from "scryptlib"; | ||
export declare function getTransaction(network: bsv.Networks.Network, txId: string): Promise<bsv.Transaction>; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { prop, method } from './smart-contract/decorators'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Networks } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Networks } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export { WhatsonchainProvider } from './whatsonchain-provider'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Provider, TransactionResponse, UtxoQueryOptions } from "../bsv/abstract-provider"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Networks } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Networks } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Networks } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Networks } from "bsv"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './privateKey'; | ||
export * from './publicKey'; | ||
export * from './address'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { SigHashType, Ripemd160, Sha256, Sha1 } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AbstractContract } from "scryptlib/dist"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { SupportedParamType, AbstractContract } from "scryptlib/dist"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ByteString } from "./types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Flavor } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -157,3 +157,3 @@ import "reflect-metadata"; | ||
*/ | ||
setConstructor(...args: any[]): void; | ||
init(...args: any[]): void; | ||
/** | ||
@@ -513,2 +513,3 @@ * Execute the contract | ||
* @param offchainValues the value of offchain properties, the raw data of onchain `HashedMap` and `HashedSet` properties, at this locking script moment | ||
* @param nopScript a script if contract locking script startwiths a nopScript. | ||
*/ | ||
@@ -523,4 +524,14 @@ static fromLockingScript(script: string, offchainValues?: Record<string, any>, nopScript?: bsv.Script): SmartContract; | ||
* @param offchainValues the value of offchain properties, the raw data of onchain `HashedMap` and `HashedSet` properties, at this transaction moment | ||
* @param nopScript a script if contract locking script startwiths a nopScript. | ||
*/ | ||
static fromTx<T extends SmartContract>(this: new (...args: any[]) => T, tx: bsv.Transaction, atOutputIndex: number, offchainValues?: Record<string, any>, nopScript?: bsv.Script): T; | ||
/** | ||
* recover a `SmartContract` instance from the transaction | ||
* if the contract contains onchain properties of type `HashedMap` or `HashedSet` | ||
* it's required to pass all their offchain raw data at this transaction moment | ||
* @param tx transaction | ||
* @param offchainValues the value of offchain properties, the raw data of onchain `HashedMap` and `HashedSet` properties, at this transaction moment | ||
* @param nopScript a script if contract locking script startwiths a nopScript. | ||
*/ | ||
static fromUTXO<T extends SmartContract>(this: new (...args: any[]) => T, utxo: UTXO, offchainValues?: Record<string, any>, nopScript?: bsv.Script): T; | ||
/** @ignore */ | ||
@@ -527,0 +538,0 @@ private static dummySignMultiCallTx; |
@@ -0,0 +0,0 @@ import { SigHashType } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import "reflect-metadata"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=contract-call.js.map |
export * from './contract-call'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from 'scryptlib'; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function throwUnInitializing(name: string): void; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { bsv } from "scryptlib"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "scrypt-ts", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"description": "A toolset for building sCrypt smart contract applications on Bitcoin SV network written in typescript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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 too big to display
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
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
11411
663035