s402 0.1.3 → 0.1.5

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 CHANGED
@@ -45,11 +45,11 @@ s402 <-- You are here. Protocol spec. Zero runtime deps.
45
45
  |-- Compat Optional x402 migration aid
46
46
  |-- Errors Typed error codes with recovery hints
47
47
  |
48
- @sweepay/sui <-- Sui-specific implementations (coming soon)
49
- @sweepay/sdk <-- High-level DX (coming soon)
48
+ @sweefi/sui <-- Sui-specific implementations (coming soon)
49
+ @sweefi/sdk <-- High-level DX (coming soon)
50
50
  ```
51
51
 
52
- `s402` is **chain-agnostic protocol plumbing**. It defines _what_ gets sent over HTTP. The Sui-specific _how_ will live in `@sweepay/sui` (coming soon).
52
+ `s402` is **chain-agnostic protocol plumbing**. It defines _what_ gets sent over HTTP. The Sui-specific _how_ will live in `@sweefi/sui` (coming soon).
53
53
 
54
54
  ## Payment Schemes
55
55
 
@@ -212,7 +212,7 @@ import { s402Client } from 's402';
212
212
 
213
213
  const client = new s402Client();
214
214
 
215
- // Register scheme implementations (from @sweepay/sui or your own)
215
+ // Register scheme implementations (from @sweefi/sui or your own)
216
216
  client.register('sui:mainnet', exactScheme);
217
217
  client.register('sui:mainnet', streamScheme);
218
218
 
@@ -258,7 +258,7 @@ import type {
258
258
  } from 's402';
259
259
  ```
260
260
 
261
- The reference Sui implementation of all five schemes will be available in `@sweepay/sui` (coming soon).
261
+ The reference Sui implementation of all five schemes will be available in `@sweefi/sui` (coming soon).
262
262
 
263
263
  ## Wire Format
264
264
 
@@ -310,7 +310,7 @@ const requirements: s402PaymentRequirements = {
310
310
 
311
311
  ## Design Principles
312
312
 
313
- 1. **Protocol-agnostic core, Sui-native reference.** `s402` defines chain-agnostic protocol types and HTTP encoding. The reference implementation (`@sweepay/sui`, coming soon) will exploit Sui's unique properties — PTBs, object model, sub-second finality. Other chains can implement s402 schemes using their own primitives.
313
+ 1. **Protocol-agnostic core, Sui-native reference.** `s402` defines chain-agnostic protocol types and HTTP encoding. The reference implementation (`@sweefi/sui`, coming soon) will exploit Sui's unique properties — PTBs, object model, sub-second finality. Other chains can implement s402 schemes using their own primitives.
314
314
 
315
315
  2. **Optional x402 compat.** The `s402/compat` subpath provides a migration aid for codebases with x402-formatted JSON. It normalizes x402 V1 (`maxAmountRequired`) and V2 (`amount`) to s402 format. This is opt-in — the core protocol has no x402 dependency.
316
316
 
package/SECURITY.md CHANGED
@@ -15,7 +15,7 @@ You will receive an acknowledgment within 48 hours. We aim to provide a fix or m
15
15
 
16
16
  This policy covers the `s402` npm package — the protocol types, HTTP encoding/decoding, scheme registry, and compat layer.
17
17
 
18
- Security issues in downstream packages (`@sweepay/sui`, `@sweepay/sdk`, etc.) should be reported to the same email.
18
+ Security issues in downstream packages (`@sweefi/sui`, `@sweefi/sdk`, etc.) should be reported to the same email.
19
19
 
20
20
  ## What qualifies
21
21
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "s402",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "s402 — Sui-native HTTP 402 wire format. Types, HTTP encoding, and scheme registry for five payment schemes. Wire-compatible with x402. Zero runtime dependencies.",
6
6
  "license": "Apache-2.0",
7
- "author": "Swee Group LLC <daniel@sweeinc.com> (https://s402-protocol.org)",
7
+ "author": "SweeInc <daniel@sweeinc.com> (https://s402-protocol.org)",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/s402-protocol/core.git"