Add a payments plugin to GQL server (#391)

* Add a custom payments plugin in server process

* Fix voucher channel read in voucher subscription

* Use voucher hash and signature for payment authentication

* Use a LRU hash map for storing received vouchers

* Avoid hoisting level types to resolve build errors

* Upgrade ts-nitro packages

* Add payments related logs

* Upgrade package versions

* Always allow latestBlock query

* Upgrade ts-nitro packages
This commit is contained in:
prathamesh0
2023-07-20 17:22:48 +05:30
committed by GitHub
parent 11930c0107
commit eec1965980
18 changed files with 369 additions and 34 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
{
"name": "@cerc-io/graph-node",
"version": "0.2.46",
"version": "0.2.47",
"main": "dist/index.js",
"license": "AGPL-3.0",
"devDependencies": {
"@cerc-io/solidity-mapper": "^0.2.46",
"@cerc-io/solidity-mapper": "^0.2.47",
"@ethersproject/providers": "^5.4.4",
"@graphprotocol/graph-ts": "^0.22.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
@@ -51,9 +51,9 @@
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/assemblyscript": "0.19.10-watcher-ts-0.1.2",
"@cerc-io/cache": "^0.2.46",
"@cerc-io/ipld-eth-client": "^0.2.46",
"@cerc-io/util": "^0.2.46",
"@cerc-io/cache": "^0.2.47",
"@cerc-io/ipld-eth-client": "^0.2.47",
"@cerc-io/util": "^0.2.47",
"@types/json-diff": "^0.5.2",
"@types/yargs": "^17.0.0",
"bn.js": "^4.11.9",