cashscript
Advanced tools
Comparing version 0.8.0-next.0 to 0.8.0-next.1
{ | ||
"name": "cashscript", | ||
"version": "0.8.0-next.0", | ||
"version": "0.8.0-next.1", | ||
"description": "Easily write and interact with Bitcoin Cash contracts", | ||
@@ -24,5 +24,5 @@ "keywords": [ | ||
], | ||
"main": "dist/main/index", | ||
"module": "dist/module/index", | ||
"types": "dist/module/index", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"sideEffects": false, | ||
@@ -34,15 +34,16 @@ "directories": { | ||
"scripts": { | ||
"build": "npm run clean && npm run compile", | ||
"build": "yarn clean && yarn compile", | ||
"build:test": "yarn clean:test && yarn compile:test", | ||
"clean": "rm -rf ./dist", | ||
"compile": "npm run compile:main && npm run compile:module", | ||
"compile:main": "tsc -p tsconfig.build.main.json", | ||
"compile:module": "tsc -p tsconfig.build.module.json", | ||
"clean:test": "rm -rf ./dist-test", | ||
"compile": "tsc -p tsconfig.build.json", | ||
"compile:test": "tsc -p tsconfig.test.json", | ||
"lint": "eslint . --ext .ts --ignore-path ../../.eslintignore", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm test && npm run lint", | ||
"test": "jest --config=../../jest.config.js packages/cashscript" | ||
"prepare": "yarn build", | ||
"pretest": "yarn build:test", | ||
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest" | ||
}, | ||
"dependencies": { | ||
"@bitauth/libauth": "^1.18.1", | ||
"@cashscript/utils": "^0.8.0-next.0", | ||
"@bitauth/libauth": "^2.0.0-alpha.8", | ||
"@cashscript/utils": "^0.8.0-next.1", | ||
"bip68": "^1.0.4", | ||
@@ -54,10 +55,10 @@ "bitcoin-rpc-promise-retry": "^1.3.0", | ||
"devDependencies": { | ||
"@jest/globals": "^29.4.1", | ||
"@psf/bch-js": "^4.15.0", | ||
"bitbox-sdk": "^8.11.2", | ||
"bip39": "^3.0.4", | ||
"eslint": "^7.20.0", | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.5.1", | ||
"jest": "^29.4.1", | ||
"typescript": "^4.1.5" | ||
}, | ||
"gitHead": "18d793bbb5aa4aef1a07587cd1565ae2a63b0728" | ||
"gitHead": "77c621fb963cc8e8951faebae53267d3520b7fe9" | ||
} |
# CashScript | ||
[![Build Status](https://travis-ci.org/Bitcoin-com/cashscript.svg)](https://travis-ci.org/Bitcoin-com/cashscript) | ||
![Build Status](https://github.com/CashScript/cashscript/actions/workflows/github-actions.yml/badge.svg) | ||
[![Coverage Status](https://img.shields.io/codecov/c/github/Bitcoin-com/cashscript.svg)](https://codecov.io/gh/Bitcoin-com/cashscript/) | ||
@@ -29,6 +29,2 @@ [![NPM Version](https://img.shields.io/npm/v/cashscript.svg)](https://www.npmjs.com/package/cashscript) | ||
```js | ||
const { Contract, ... } = require('cashscript'); | ||
``` | ||
Using the CashScript SDK, you can import contract artifact files, create new instances of these contracts, and interact with these instances: | ||
@@ -39,3 +35,3 @@ | ||
// Import the P2PKH artifact | ||
const P2PKH = require('./p2pkh-artifact.json'); | ||
import P2PKH from './p2pkh-artifact.json' assert { type: 'json' }; | ||
@@ -42,0 +38,0 @@ // Instantiate a network provider for CashScript's network operations |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Yes
70952
31
1459
1
56
1
- Removed@bitauth/libauth@1.19.1(transitive)