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

cashscript

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cashscript - npm Package Compare versions

Comparing version 0.8.0-next.0 to 0.8.0-next.1

dist/Argument.d.ts

35

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

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