nirium-pollar-adapter 0.6.5 → 0.6.6
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Two things matter most here: **x402** pays per request, and `anchorOnTransaction
|
|
|
10
10
|
|
|
11
11
|
**What a receipt adds over the ledger:** a Stellar payment is already public, so a receipt that only repeats payer, payee and amount proves nothing new; link the transaction instead. Receipts are for what the ledger doesn't hold: policy decisions (including refused payments that were never signed), what a payment was for, off-chain records, and who declared them. More in the [design FAQ](https://github.com/nirium-protocol/nirium/blob/main/docs/DESIGN-FAQ.md).
|
|
12
12
|
|
|
13
|
-
Both surfaces are **software-only and non-custodial**, and both are **live on Stellar mainnet**: the last x402 payment settled on [
|
|
13
|
+
Both surfaces are **software-only and non-custodial**, and both are **live on Stellar mainnet**: the last x402 payment settled on [18 Nov 2026](https://stellar.expert/explorer/public/tx/0f6250773f9c3311bb27da64f5194c06e5d24cf2507d234a9df8c17ad156994b) (a real USDC transfer on mainnet), and the last Audit Trail anchor is from 18 Nov 2026, both checked on 21 Nov 2026 against Horizon and the mainnet agent's `GET /api/reporting/summary?network=mainnet` (`anchors.lastAnchoredAt`).
|
|
14
14
|
|
|
15
15
|
Wraps [`nirium`](https://github.com/nirium-protocol/nirium), the TypeScript/Python SDK this adapter signs for. See that repo for the full API this exposes through a Pollar wallet instead of a raw keypair.
|
|
16
16
|
|
|
@@ -39,7 +39,7 @@ sequenceDiagram
|
|
|
39
39
|
A->>S: retry with the payment
|
|
40
40
|
S->>F: settle, facilitator pays the fee (user holds 0 XLM)
|
|
41
41
|
S-->>A: 200 + the data
|
|
42
|
-
A->>N:
|
|
42
|
+
A->>N: adapter.anchorAuditRecord({ record }): what the call was for
|
|
43
43
|
N-->>A: receipt CID, anyone can verify it
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -189,7 +189,7 @@ Returns:
|
|
|
189
189
|
- **`x402Fetch(url, init?)`**: fetch that pays on `402` and retries. Passes through untouched on `200`.
|
|
190
190
|
- **`getPremiumSignals()`**: typed shortcut to the agent's paid signals endpoint. **Testnet only**: signals come from the autonomous loop, which does not run on the mainnet box; there the endpoint returns 501 without charging.
|
|
191
191
|
- **`getPremiumMarket()`**: typed shortcut to the agent's paid market-state endpoint ($0.05). Works and charges on **both** networks, with no dependency on the autonomous loop.
|
|
192
|
-
- **`anchorAuditRecord({ hash?, record?, txHash?, tag? })`**: anchors evidence to IPFS and returns the CID. No signature, no payment. Anchor **hashes, not personal data**: IPFS
|
|
192
|
+
- **`anchorAuditRecord({ hash?, record?, txHash?, tag? })`**: anchors evidence to IPFS and returns the CID. No signature, no payment. Anchor **hashes, not personal data**: nobody can guarantee that something is deleted from IPFS, since anyone with the CID may have kept a copy.
|
|
193
193
|
- **`getCetesRate()`**: CETES rate as a number, no key required. It is **not a live reading**: today the agent serves a fixed value (5.57, read in June 2026 from app.etherfuse.com/b/cetes).
|
|
194
194
|
|
|
195
195
|
### `createPollarSigner(pollarClient, opts?)`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirium-pollar-adapter",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Let Pollar users who sign in with email or Google pay per request (x402) on Stellar and get a receipt anyone can verify. The facilitator sponsors network fees.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|