@pafi-dev/issuer 0.19.0 → 0.21.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 CHANGED
@@ -14,20 +14,25 @@ interfaces. Don't bundle into a browser app — use
14
14
 
15
15
  ---
16
16
 
17
- ## v0.15.0 — Uniswap V3 migration (breaking)
17
+ ## v0.15.x — Uniswap V3 migration (breaking)
18
18
 
19
- - `createSubgraphPoolsProvider` now returns the V3 `PoolKey` shape (`{ token0, token1, fee }`) instead of the V4 shape (`{ currency0, currency1, fee, tickSpacing, hooks }`). Pulls through from `@pafi-dev/core`.
19
+ **v0.15.0** initial V3 migration:
20
+ - `createSubgraphPoolsProvider` returns the Uniswap V3 `PoolKey` shape (`{ token0, token1, fee }`) — sourced from `@pafi-dev/core`. Any consumer typed against an older shape with extra fields will see compile-time type errors and must be updated.
20
21
  - New `onError?: (err: Error) => void` option — forward recoverable errors (network, GraphQL, parse) to your observability stack. Throws inside the callback are swallowed so the provider stays total.
21
22
  - `feeTier` is range-checked (uint24, < 1_000_000) before building the `PoolKey`; invalid values are skipped with a console.error + `onError` invocation.
22
- - Subgraph endpoint default → `…/pafi-subgraph-v4` (PAFI V3-fork DEX + extensions); see `@pafi-dev/core` for the constant.
23
+ - Subgraph endpoint default → `…/pafi-subgraph-v4` (the active PAFI Base-mainnet subgraph; see `@pafi-dev/core` for the constant).
23
24
  - Bumps peer-deps on `@pafi-dev/core` to `^0.13.0` (V3 types + ABIs).
24
25
 
26
+ **v0.15.1** — documentation-only cleanup: refreshed JSDoc comments in `nativePtQuoter`, `feeManager`, `relayService` to match the V3 implementation. No behavior change.
27
+
28
+ **v0.15.2** — `POINT_TOKEN_V2_ABI` → `POINT_TOKEN_ABI` rename across core+issuer (canonical name, no version suffix). Breaking export name change; the back-compat alias was removed. Requires `@pafi-dev/core` `^0.14.0`.
29
+
25
30
  ## Requirements
26
31
 
27
32
  - Node.js ≥ 18
28
33
  - TypeScript ≥ 5.0
29
34
  - `viem` ^2.0.0 (peer)
30
- - `@pafi-dev/core` ^0.13.0 (transitive — re-exported)
35
+ - `@pafi-dev/core` ^0.14.0 (transitive — re-exported)
31
36
 
32
37
  ## Installation
33
38
 
@@ -156,7 +161,7 @@ export const issuerApiAdapterProvider: Provider = {
156
161
  provide: ISSUER_API_ADAPTER,
157
162
  useFactory: (issuerService, provider, walletClient, dataSource, config) => {
158
163
  const ledger = new PostgresPointLedger(dataSource);
159
- const { issuerRegistry, batchExecutor } = getContractAddresses(8453);
164
+ const { issuerRegistry, batchExecutor, usdc } = getContractAddresses(8453);
160
165
  const chainId = config.get<number>("CHAIN_ID");
161
166
  const pointToken = config.get<`0x${string}`>("POINT_TOKEN_ADDRESS");
162
167
 
@@ -369,7 +374,7 @@ All SDK errors inherit `PafiSdkError`. Subclasses + HTTP mapping:
369
374
  ## References
370
375
 
371
376
  - Architecture: [`ARCHITECTURE.md`](../../ARCHITECTURE.md) at SDK root
372
- - Fee flow & math: [`docs/FEE_FLOW.md`](../../../docs/FEE_FLOW.md)
377
+ - Fee flow & math: see [`@pafi-dev/core` README — Operator fee quoter](../core/README.md#operator-fee-quoter)
373
378
 
374
379
  ## License
375
380