@piprail/sdk 2.0.1 → 2.0.2
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/CHANGELOG.md +19 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to `@piprail/sdk` are documented here. The format
|
|
|
4
4
|
follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the
|
|
5
5
|
versions follow [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [2.0.2] — 2026-06-15 — docs/JSDoc accuracy (no code change)
|
|
8
|
+
|
|
9
|
+
A documentation-accuracy patch from a final repo-wide doc↔source sweep. **No behaviour or API
|
|
10
|
+
change** — published purely to refresh the shipped TypeScript JSDoc + npm README.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **`payExact` SPI JSDoc** (`drivers/types.ts`) said "EVM + EIP-3009 only" — corrected to
|
|
15
|
+
"EVM EIP-3009/Permit2 + Solana SVM", matching the shipped Solana `exact` buyer rail.
|
|
16
|
+
- **`WalletInput` JSDoc** notes Tron accepts its hex `key` with or without the `0x` prefix.
|
|
17
|
+
- **`ERRORS.md`**: added the `WALLET_REQUIRED` / `WalletRequiredError` row to §2; included Aptos in
|
|
18
|
+
the no-receive-prerequisite list (§6.1); and corrected `UNSUPPORTED_SCHEME` to reflect that
|
|
19
|
+
`exact` now ships on **EVM + Solana** (not EVM-only).
|
|
20
|
+
|
|
21
|
+
(Docs-site + `llms.txt` accuracy fixes — TON `estimateCost` `cost` fields, the MCP read-only tool
|
|
22
|
+
count, the `paymentTools` 7-tool list, the Kaia USDT default, and the additional `@piprail/mcp`
|
|
23
|
+
library exports — shipped in the same sweep via the docs/site deploy.)
|
|
24
|
+
|
|
7
25
|
## [2.0.1] — 2026-06-15 — clearer typed errors (robustness; no API change)
|
|
8
26
|
|
|
9
27
|
A patch release hardening error reporting at every wrong-input boundary — found by a
|
|
@@ -1131,6 +1149,7 @@ straight into your wallet. The API is small and self-contained.
|
|
|
1131
1149
|
to your wallet; PipRail never holds funds.
|
|
1132
1150
|
- `viem ^2.21` is a peer dependency. Node 20+ or a modern browser.
|
|
1133
1151
|
|
|
1152
|
+
[2.0.2]: https://www.npmjs.com/package/@piprail/sdk
|
|
1134
1153
|
[2.0.1]: https://www.npmjs.com/package/@piprail/sdk
|
|
1135
1154
|
[2.0.0]: https://www.npmjs.com/package/@piprail/sdk
|
|
1136
1155
|
[1.25.0]: https://www.npmjs.com/package/@piprail/sdk
|
package/dist/index.d.cts
CHANGED
|
@@ -4349,7 +4349,7 @@ interface ResolvedNetwork {
|
|
|
4349
4349
|
reason?: RecipientReason;
|
|
4350
4350
|
}>;
|
|
4351
4351
|
/**
|
|
4352
|
-
* OPTIONAL (EVM
|
|
4352
|
+
* OPTIONAL (EVM EIP-3009/Permit2 + Solana SVM) — the BUYER counterpart to {@link settleExactSelf}.
|
|
4353
4353
|
* Build + EIP-712-sign an EIP-3009 `transferWithAuthorization` for a standard x402
|
|
4354
4354
|
* `exact` rail, so a PipRail agent can PAY any standard x402 server (not just PipRail's
|
|
4355
4355
|
* own `onchain-proof` gates). The client frames the returned `payload` + `accepted` echo
|
|
@@ -4881,7 +4881,7 @@ type PipRailEvent = {
|
|
|
4881
4881
|
* Wallet for the chosen chain family. **One field, every chain: `{ key }`** — the
|
|
4882
4882
|
* chain's secret as a string (the `chain` selector routes; each driver validates the
|
|
4883
4883
|
* format). NEAR also needs `{ accountId }`. What `key` is, per chain:
|
|
4884
|
-
* - EVM / Tron → a 0x… hex private key (secp256k1)
|
|
4884
|
+
* - EVM / Tron → a 0x… hex private key (secp256k1; Tron also accepts it without the 0x prefix)
|
|
4885
4885
|
* - Sui → a `suiprivkey1…` bech32 secret
|
|
4886
4886
|
* - Aptos → an AIP-80 `ed25519-priv-0x…` (or raw `0x…`) secret
|
|
4887
4887
|
* - Solana → a base58 secret key (or a `Uint8Array`)
|
package/dist/index.d.ts
CHANGED
|
@@ -4349,7 +4349,7 @@ interface ResolvedNetwork {
|
|
|
4349
4349
|
reason?: RecipientReason;
|
|
4350
4350
|
}>;
|
|
4351
4351
|
/**
|
|
4352
|
-
* OPTIONAL (EVM
|
|
4352
|
+
* OPTIONAL (EVM EIP-3009/Permit2 + Solana SVM) — the BUYER counterpart to {@link settleExactSelf}.
|
|
4353
4353
|
* Build + EIP-712-sign an EIP-3009 `transferWithAuthorization` for a standard x402
|
|
4354
4354
|
* `exact` rail, so a PipRail agent can PAY any standard x402 server (not just PipRail's
|
|
4355
4355
|
* own `onchain-proof` gates). The client frames the returned `payload` + `accepted` echo
|
|
@@ -4881,7 +4881,7 @@ type PipRailEvent = {
|
|
|
4881
4881
|
* Wallet for the chosen chain family. **One field, every chain: `{ key }`** — the
|
|
4882
4882
|
* chain's secret as a string (the `chain` selector routes; each driver validates the
|
|
4883
4883
|
* format). NEAR also needs `{ accountId }`. What `key` is, per chain:
|
|
4884
|
-
* - EVM / Tron → a 0x… hex private key (secp256k1)
|
|
4884
|
+
* - EVM / Tron → a 0x… hex private key (secp256k1; Tron also accepts it without the 0x prefix)
|
|
4885
4885
|
* - Sui → a `suiprivkey1…` bech32 secret
|
|
4886
4886
|
* - Aptos → an AIP-80 `ed25519-priv-0x…` (or raw `0x…`) secret
|
|
4887
4887
|
* - Solana → a base58 secret key (or a `Uint8Array`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piprail/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Accept x402 crypto payments across 29 chains — every major EVM chain plus Solana, TON, Tron, NEAR, Sui, Aptos, Algorand, Stellar & XRPL — in a couple of lines. No backend, no database, no fee; payments settle straight to your wallet.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|