@integraledger/profile-facilitator 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Approving that transaction is then the buyer's acceptance of that exact record,
|
|
|
20
20
|
| `x402/exact/polkadot/lcp-assets-remark` | `polkadot:68d56f15f85d3136970ec16946040bc1` (Polkadot Asset Hub) or `polkadot:67f9723393ef76214df0118c34bbbd3d` (Westend Asset Hub) | `lcp-assets-remark` | `system.remark_with_event(R)`, where R is exactly `lcp:sha256:` followed by H in lowercase hex, batched with `assets.transfer_keep_alive` in one `utility.batch_all`. |
|
|
21
21
|
|
|
22
22
|
This package implements each profile's rule 5, the facilitator's duties. The profiles themselves are published with
|
|
23
|
-
`@integraledger/lcp`, in [its repository at 0.
|
|
23
|
+
`@integraledger/lcp`, in [its repository at 0.5.0](https://github.com/IntegraLedger/integra-protocol/tree/v0.5.0/lcp/profiles), the release this package pins.
|
|
24
24
|
|
|
25
25
|
The facilitator is a pass-through. It checks the payment against the requirements it is given, asks a node to
|
|
26
26
|
validate or simulate it, submits exactly the bytes the payer signed, deduplicates, and reports what the network shows.
|
|
@@ -61,14 +61,14 @@ sequenceDiagram
|
|
|
61
61
|
## Install
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
|
-
npm install @integraledger/profile-facilitator @integraledger/lcp@~0.
|
|
64
|
+
npm install @integraledger/profile-facilitator @integraledger/lcp@~0.5.0
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
It needs Node.js `>=
|
|
67
|
+
It needs Node.js `>=24`, Postgres (the tests run on Postgres 18), and an HTTP endpoint for each network you
|
|
68
68
|
serve: a Tron FullNode that keeps the block history (not a lite FullNode) and a Solidity node, or a Polkadot Asset Hub
|
|
69
69
|
RPC node. A Polkadot node that keeps the state of every block (an archive node) gives the events of any block; a
|
|
70
70
|
pruning node discards the state of older blocks, and a block that holds the extrinsic and whose state is discarded
|
|
71
|
-
keeps the answer `settlement_pending`. It is ESM only. `@integraledger/lcp` (`~0.
|
|
71
|
+
keeps the answer `settlement_pending`. It is ESM only. `@integraledger/lcp` (`~0.5.0`) is its peer dependency: install
|
|
72
72
|
it beside it.
|
|
73
73
|
|
|
74
74
|
## Quickstart
|
|
@@ -559,7 +559,7 @@ false. On Polkadot they also cover a repeat of a consumed payment, a block answe
|
|
|
559
559
|
|
|
560
560
|
## Requirements
|
|
561
561
|
|
|
562
|
-
- Node.js `>=
|
|
562
|
+
- Node.js `>=24`.
|
|
563
563
|
- Postgres; the tests run on Postgres 18.
|
|
564
564
|
- For Tron, a FullNode and a Solidity node with java-tron's HTTP API: the FullNode serves `/wallet/getaccount`,
|
|
565
565
|
`/wallet/getnowblock`, `/wallet/getblock`, `/wallet/gettransactionbyid`, `/wallet/gettransactionfrompending`,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@integraledger/profile-facilitator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "An x402 facilitator for the LCP profiles x402/exact/tron/lcp-trc20-memo and x402/exact/polkadot/lcp-assets-remark: verifies and settles payments whose signed transaction carries the ATR hash.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=24"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"LICENSE"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@integraledger/lcp": "~0.
|
|
42
|
+
"@integraledger/lcp": "~0.5.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@noble/curves": "2.4.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"pg": "8.23.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@integraledger/lcp": "0.
|
|
51
|
+
"@integraledger/lcp": "0.5.0",
|
|
52
52
|
"vitest": "5.0.4"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|