Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pact-ts is ts-pact #4

Merged
merged 3 commits into from
Nov 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pact-ts
# ts-pact

TypeScript library for running and deploying Pact code.

Expand All @@ -12,7 +12,7 @@ for instructions.

```typescript
import pactLang from 'pact-lang-api'
import PactApi, { IKeyPair, pactUtils } from 'pact-ts'
import PactApi, { IKeyPair, pactUtils } from 'ts-pact'

const keyPair = pactLang.crypto.genKeyPair()
const args = [
Expand All @@ -30,12 +30,12 @@ return this.pactApi.eval({

## Running scripts

This package comes with a few utility scripts in `src/scripts/.`
This package comes with some utility scripts in `src/scripts/`.
The scripts will look in the environmental variables for a Pact key and URL
to use when sending transactions, falling back to defaults if these are not available.
See `src/scripts/config.ts` for details.

Compile the Node scripts:
Compile scripts:

```
yarn compile
Expand All @@ -53,8 +53,7 @@ Deploy a contract or run a Pact script:
node dist/src/scripts/runFile.js
```

Example Node script for running a combination of files and commands in order to
deploy and initialize a set of smart contracts:
Example: deploy and initialize a set of smart contracts:

```
node dist/src/scripts/deployContracts.js
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "pact-ts",
"name": "ts-pact",
"version": "0.1.1",
"author": "Blend",
"author": "Finprint",
"license": "MIT",
"description": "TypeScript library for running and deploying Pact code.",
"repository": {
"type": "git",
"url": "https://github.com/blend/pact-ts.git"
"url": "https://github.com/finprint/ts-pact.git"
},
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down