Skip to content

Commit

Permalink
feat(pay): open payments support
Browse files Browse the repository at this point in the history
- resolve and pay Open Payments invoices with `invoiceUrl` option
- add docs, schema, and validation for invoices
- resolve Open Payments accounts in parallel with SPSP query
- improve test coverage to 100%, better validation and other tests
- fix: probed exchange rate mistakenly reset
- fix: don't send u64 probe packet, rate may incorrectly be 1:1
- update deps for all packages
- try to fix issue with pay flag coverage reported incorrectly
- fix vscode not respecting gitignore
  • Loading branch information
kincaidoneil committed Jun 24, 2020
1 parent fdcb132 commit b9b838b
Show file tree
Hide file tree
Showing 30 changed files with 2,148 additions and 2,517 deletions.
18 changes: 9 additions & 9 deletions .codecov.yml
Expand Up @@ -14,28 +14,28 @@ coverage:
flags:
connection_tag_utils:
paths:
- packages/connection-tag-utils/
- packages/connection-tag-utils/src/
ilp_logger:
paths:
- packages/ilp-logger/
- packages/ilp-logger/src/
ilp_packet:
paths:
- packages/ilp-packet/
- packages/ilp-packet/src/
ilp_plugin:
paths:
- packages/ilp-packet/
- packages/ilp-packet/src/
ilp_protocol_ccp:
paths:
- packages/ilp-protocol-ccp/
- packages/ilp-protocol-ccp/src/
ilp_protocol-ildcp:
paths:
- packages/ilp-protocol-ildcp/
- packages/ilp-protocol-ildcp/src/
ilp_spsp_payout:
paths:
- packages/ilp-spsp-payout/
- packages/ilp-spsp-payout/src/
oer_utils:
paths:
- packages/oer-utils/
- packages/oer-utils/src/
pay:
paths:
- packages/pay/
- packages/pay/src/
8 changes: 4 additions & 4 deletions .gitignore
@@ -1,10 +1,10 @@
node_modules
coverage
.nyc_output
packages/*/dist
packages/*/test/*.js
packages/*/test/*.js.map
packages/*/test/*.d.ts
packages/**/dist
packages/**/test/*.js
packages/**/test/*.js.map
packages/**/test/*.d.ts
lerna-debug.log
npm-debug.log
yarn-error.log
Expand Down
26 changes: 13 additions & 13 deletions README.md
Expand Up @@ -7,22 +7,22 @@

### Payments

Name | Version | Description
--- | --- | ---
[`@interledger/pay`](./packages/pay) | [![NPM Package](https://img.shields.io/npm/v/@interledger/pay.svg?style=flat&logo=npm)](https://npmjs.org/package/@interledger/pay) | Send payments over Interledger using STREAM
[`ilp-spsp-payout`](./packages/ilp-spsp-payout) | [![NPM Package](https://img.shields.io/npm/v/ilp-spsp-payout.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-spsp-payout) | Payout utility for SPSP servers
| Name | Version | Description |
| :---------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------ |
| [`@interledger/pay`](./packages/pay) | [![NPM Package](https://img.shields.io/npm/v/@interledger/pay.svg?style=flat&logo=npm)](https://npmjs.org/package/@interledger/pay) | Send payments over Interledger using STREAM |
| [`ilp-spsp-payout`](./packages/ilp-spsp-payout) | [![NPM Package](https://img.shields.io/npm/v/ilp-spsp-payout.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-spsp-payout) | Payout utility for SPSP servers |

### Utilities

Name | Version | Description
--- | --- | ---
[`@interledger/connection-tag-utils`](./packages/connection-tag-utils) | [![NPM Package](https://img.shields.io/npm/v/@interledger/connection-tag-utils.svg?style=flat&logo=npm)](https://npmjs.org/package/@interledger/connection-tag-utils) | Encryption utilities for STREAM connection tags
[`ilp-logger`](./packages/ilp-logger) | [![NPM Package](https://img.shields.io/npm/v/ilp-logger.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-logger) | Debug logging utility for Interledger modules
[`ilp-packet`](./packages/ilp-packet) | [![NPM Package](https://img.shields.io/npm/v/ilp-packet.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-packet) | Serialization/deserialization for ILP packets
[`ilp-plugin`](./packages/ilp-plugin) | [![NPM Package](https://img.shields.io/npm/v/ilp-plugin.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-plugin) | Connect to a local, open BTP server
[`ilp-protocol-ccp`](./packages/ilp-protocol-ccp) | [![NPM Package](https://img.shields.io/npm/v/ilp-protocol-ccp.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-protocol-ccp) | Serialization/deserialization for the CCP routing protocol
[`ilp-protocol-ildcp`](./packages/ilp-protocol-ildcp) | [![NPM Package](https://img.shields.io/npm/v/ilp-protocol-ildcp.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-protocol-ildcp) | Fetch asset and account details from a parent
[`oer-utils`](./packages/oer-utils) | [![NPM Package](https://img.shields.io/npm/v/oer-utils.svg?style=flat&logo=npm)](https://npmjs.org/package/oer-utils) | Tools for OER parsing and serialization
| Name | Version | Description |
| :--------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------- |
| [`@interledger/connection-tag-utils`](./packages/connection-tag-utils) | [![NPM Package](https://img.shields.io/npm/v/@interledger/connection-tag-utils.svg?style=flat&logo=npm)](https://npmjs.org/package/@interledger/connection-tag-utils) | Encryption utilities for STREAM connection tags |
| [`ilp-logger`](./packages/ilp-logger) | [![NPM Package](https://img.shields.io/npm/v/ilp-logger.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-logger) | Debug logging utility for Interledger modules |
| [`ilp-packet`](./packages/ilp-packet) | [![NPM Package](https://img.shields.io/npm/v/ilp-packet.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-packet) | Serialization/deserialization for ILP packets |
| [`ilp-plugin`](./packages/ilp-plugin) | [![NPM Package](https://img.shields.io/npm/v/ilp-plugin.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-plugin) | Connect to a local, open BTP server |
| [`ilp-protocol-ccp`](./packages/ilp-protocol-ccp) | [![NPM Package](https://img.shields.io/npm/v/ilp-protocol-ccp.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-protocol-ccp) | Serialization/deserialization for the CCP routing protocol |
| [`ilp-protocol-ildcp`](./packages/ilp-protocol-ildcp) | [![NPM Package](https://img.shields.io/npm/v/ilp-protocol-ildcp.svg?style=flat&logo=npm)](https://npmjs.org/package/ilp-protocol-ildcp) | Fetch asset and account details from a parent |
| [`oer-utils`](./packages/oer-utils) | [![NPM Package](https://img.shields.io/npm/v/oer-utils.svg?style=flat&logo=npm)](https://npmjs.org/package/oer-utils) | Tools for OER parsing and serialization |

## Installation

Expand Down
26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -78,34 +78,34 @@
"@types/chai-as-promised": "^7.1.0",
"@types/long": "^4.0.0",
"@types/sinon": "^9.0.4",
"@typescript-eslint/eslint-plugin": "^3.1.0",
"@typescript-eslint/parser": "^3.1.0",
"@typescript-eslint/eslint-plugin": "^3.4.0",
"@typescript-eslint/parser": "^3.4.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"codecov": "^3.5.0",
"eslint": "^7.2.0",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.21.0",
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-mocha": "^7.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"husky": "^3.0.0",
"jest": "^26.0.1",
"lerna": "^3.15.0",
"lint-staged": "^9.0.2",
"mocha": "^7.2.0",
"husky": "^4.2.5",
"jest": "^26.1.0",
"lerna": "^3.22.1",
"lint-staged": "^10.2.11",
"mocha": "^8.0.1",
"mocha-typescript": "^1.1.17",
"nyc": "^15.1.0",
"prettier": "2.0.5",
"prettier-standard": "^16.3.0",
"rimraf": "^3.0.2",
"sinon": "^9.0.2",
"source-map-support": "^0.5.12",
"ts-jest": "^26.1.0",
"source-map-support": "^0.5.19",
"ts-jest": "^26.1.1",
"ts-node": "^8.10.2",
"typescript": "^3.5.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ilp-logger/package.json
Expand Up @@ -24,6 +24,6 @@
"dependencies": {
"@types/debug": "^4.1.0",
"debug": "^4.1.0",
"supports-color": "^5.5.0"
"supports-color": "^7.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/ilp-protocol-ildcp/package.json
Expand Up @@ -25,7 +25,7 @@
"codecov": "curl -s https://codecov.io/bash | bash -s - -s coverage -F ilp_protocol_ildcp"
},
"dependencies": {
"debug": "^3.1.0",
"debug": "^4.1.1",
"ilp-packet": "^3.1.0-alpha.0",
"oer-utils": "^5.1.0-alpha.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ilp-spsp-payout/package.json
Expand Up @@ -24,6 +24,6 @@
"dependencies": {
"axios": "^0.19.0",
"ilp-plugin": "^3.4.1",
"ilp-protocol-stream": "^1.8.9"
"ilp-protocol-stream": "^2.6.4"
}
}
2 changes: 1 addition & 1 deletion packages/oer-utils/package.json
Expand Up @@ -26,7 +26,7 @@
"codecov": "curl -s https://codecov.io/bash | bash -s - -s coverage -F oer_utils"
},
"dependencies": {
"@types/long": "4.0.0",
"@types/long": "4.0.1",
"long": "^4.0.0"
}
}

0 comments on commit b9b838b

Please sign in to comment.