From b8b75547baa3d5b6030be8dbb5eef00401a9423d Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 21 Nov 2019 01:16:01 -0800 Subject: [PATCH 1/3] pact-ts is ts-pact --- README.md | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cfe47c8..c32a98d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# pact-ts +# ts-pact TypeScript library for running and deploying Pact code. @@ -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 = [ diff --git a/package.json b/package.json index 018429d..9e0d1d6 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "pact-ts", + "name": "ts-pact", "version": "0.1.1", "author": "Blend", "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/blend/ts-pact.git" }, "main": "dist/src/index.js", "types": "dist/src/index.d.ts", From 4c6f443c081995fbbf857d018e0d27f5c3685e62 Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 21 Nov 2019 01:22:13 -0800 Subject: [PATCH 2/3] More updates to package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e0d1d6..e51ed61 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "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/ts-pact.git" + "url": "https://github.com/finprint/ts-pact.git" }, "main": "dist/src/index.js", "types": "dist/src/index.d.ts", From e8e26b0769a21082accdf0e73e276db737dd42aa Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 21 Nov 2019 01:22:29 -0800 Subject: [PATCH 3/3] Update README while we're at it --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c32a98d..2751900 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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