-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: payment-processor new package (#130)
- Loading branch information
1 parent
0c36de1
commit a2ce521
Showing
34 changed files
with
3,207 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extension": [ | ||
".ts" | ||
], | ||
"include": [ | ||
"src/*.ts", | ||
"src/**/*.ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
], | ||
"reporter": [ | ||
"text-summary", | ||
"json", | ||
"html" | ||
], | ||
"sourceMap":true, | ||
"all": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tslint.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"src/**/*.ts": ["tslint --project . --fix", "prettier --single-quote --write", "git add"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extension": [ | ||
".ts" | ||
], | ||
"include": [ | ||
"src/*.ts", | ||
"src/**/*.ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
], | ||
"reporter": [ | ||
"text-summary", | ||
"json", | ||
"html" | ||
], | ||
"sourceMap":true, | ||
"all": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"mochaExplorer.files": "**/test/**/*.ts", | ||
"mochaExplorer.require": "ts-node/register", | ||
"mochaExplorer.cwd": "../.." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @requestnetwork/payment-processor | ||
|
||
`@requestnetwork/payment-processor` is a typescript library part of the [Request Network protocol](https://github.com/RequestNetwork/requestNetwork). | ||
It contains client-side payment methods for: | ||
|
||
- ERC20 proxy contract | ||
- ETH input data | ||
|
||
### Basic Usage | ||
|
||
see [ERC20](/packages/usage-examples/src/pay-erc20-request.ts) and [ETH](/packages/usage-examples/src/pay-eth-request.ts) usage examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"name": "@requestnetwork/payment-processor", | ||
"version": "0.12.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"description": "Payment processing using ethers.", | ||
"keywords": [ | ||
"requestnetwork" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/RequestNetwork/requestNetwork.git" | ||
}, | ||
"homepage": "https://github.com/RequestNetwork/requestNetwork/tree/master/packages/payment-processor#readme", | ||
"bugs": { | ||
"url": "https://github.com/RequestNetwork/requestNetwork/issues" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=8.0.0" | ||
}, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"directories": { | ||
"lib": "src", | ||
"test": "test" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsc -b", | ||
"clean": "shx rm -rf dist tsconfig.tsbuildinfo", | ||
"lint": "tslint --project . && eslint \"src/**/*.ts\"", | ||
"lint-staged": "lint-staged", | ||
"prepare": "yarn run build", | ||
"test": "nyc mocha --extension ts --require ts-node/register --require source-map-support/register \"test/**/*.ts\"", | ||
"test:watch": "yarn test --watch" | ||
}, | ||
"dependencies": { | ||
"@requestnetwork/payment-detection": "0.12.0", | ||
"@requestnetwork/smart-contracts": "0.3.0", | ||
"@requestnetwork/types": "0.11.0", | ||
"@requestnetwork/utils": "0.10.0", | ||
"ethers": "4.0.43" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "4.1.7", | ||
"@types/mocha": "5.2.7", | ||
"@types/sinon": "7.5.0", | ||
"@typescript-eslint/parser": "1.2.0", | ||
"chai": "4.2.0", | ||
"chai-as-promised": "7.1.1", | ||
"chai-spies": "1.0.0", | ||
"eslint": "5.13.0", | ||
"eslint-plugin-spellcheck": "0.0.14", | ||
"eslint-plugin-typescript": "0.14.0", | ||
"lint-staged": "8.1.3", | ||
"mocha": "6.2.2", | ||
"nyc": "15.0.0", | ||
"prettier": "1.19.1", | ||
"shx": "0.3.2", | ||
"sinon": "7.5.0", | ||
"source-map-support": "0.5.13", | ||
"tslint": "5.12.1", | ||
"typescript": "3.7.2" | ||
} | ||
} |
Oops, something went wrong.