nirium-pollar-adapter 0.3.0 → 0.3.1
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 -4
- package/package.json +17 -5
package/README.md
CHANGED
|
@@ -27,12 +27,12 @@ const nirium = createNiriumAdapter({
|
|
|
27
27
|
|
|
28
28
|
// A normal fetch. The 402, the signature and the retry happen underneath.
|
|
29
29
|
const res = await nirium.x402Fetch(
|
|
30
|
-
"https://nirium-agent-mainnet.fly.dev/api/v1/premium/
|
|
30
|
+
"https://nirium-agent-mainnet.fly.dev/api/v1/premium/market",
|
|
31
31
|
);
|
|
32
32
|
const data = await res.json();
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The user pays **$0.
|
|
35
|
+
The user pays **$0.05 USDC** and signs nothing else — network fees are sponsored by the x402 facilitator, so the wallet does not need XLM for gas.
|
|
36
36
|
|
|
37
37
|
### Requires @pollar/core 0.11+
|
|
38
38
|
|
|
@@ -93,7 +93,7 @@ source. The user never saw a key, a seed phrase or a gas prompt.
|
|
|
93
93
|
Returns:
|
|
94
94
|
|
|
95
95
|
- **`x402Fetch(url, init?)`** — fetch that pays on `402` and retries. Passes through untouched on `200`.
|
|
96
|
-
- **`getPremiumSignals()`** — typed shortcut to the agent's paid signals endpoint.
|
|
96
|
+
- **`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.
|
|
97
97
|
- **`anchorAuditRecord({ hash?, record?, txHash?, tag? })`** — anchors evidence to IPFS, returns the CID. No signature, no payment. Anchor **hashes, not personal data** — IPFS cannot be deleted.
|
|
98
98
|
- **`getCetesRate()`** — public reference rate, no key required.
|
|
99
99
|
|
|
@@ -153,7 +153,8 @@ request is rejected.
|
|
|
153
153
|
|---|---|
|
|
154
154
|
| x402 Settlement | ✅ mainnet |
|
|
155
155
|
| Audit Trail (IPFS) | ✅ mainnet |
|
|
156
|
-
| Treasury
|
|
156
|
+
| Treasury vault (DeFindex, client-owned) | ✅ mainnet — invite-only during legal review |
|
|
157
|
+
| Nirium's own NiriumVault | audit-gated — testnet only |
|
|
157
158
|
| MPP session channels | audit-gated — testnet only |
|
|
158
159
|
|
|
159
160
|
Nirium never holds customer funds. The user's signature is the authorization; regulated partners execute any financial settlement.
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirium-pollar-adapter",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Nirium adapter for the Pollar SDK
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Nirium adapter for the Pollar SDK \u2014 x402 pay-per-request and IPFS audit anchoring using the wallet a user onboarded through Pollar. Signs SEP-43 auth entries; the facilitator sponsors network fees.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"examples"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
13
|
"build": "tsc -p tsconfig.json",
|
|
11
14
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
@@ -20,9 +23,18 @@
|
|
|
20
23
|
"@pollar/core": ">=0.11.0"
|
|
21
24
|
},
|
|
22
25
|
"peerDependenciesMeta": {
|
|
23
|
-
"@pollar/core": {
|
|
26
|
+
"@pollar/core": {
|
|
27
|
+
"optional": true
|
|
28
|
+
}
|
|
24
29
|
},
|
|
25
|
-
"keywords": [
|
|
30
|
+
"keywords": [
|
|
31
|
+
"nirium",
|
|
32
|
+
"pollar",
|
|
33
|
+
"stellar",
|
|
34
|
+
"soroban",
|
|
35
|
+
"x402",
|
|
36
|
+
"adapter"
|
|
37
|
+
],
|
|
26
38
|
"homepage": "https://nirium.xyz",
|
|
27
39
|
"license": "MIT"
|
|
28
40
|
}
|