@pafi-dev/core 0.9.1 → 0.9.3

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/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { P as PoolKey, C as ChainConfig, a as PafiSDKConfig, b as PointTokenDoma
3
3
  export { B as BestQuote, c as BlackoutWindow, d as BurnRequest, e as ExactOutputBestQuote, f as ExactOutputQuoteResult, I as Issuer, g as PathKey, Q as QuoteResult, h as Recipient, i as RedemptionDecision, j as RedemptionDenial, k as RedemptionDenialCode, l as RedemptionPolicy, m as RedemptionPolicySource, n as RedemptionPreview, T as TokenCap } from './types-DWLZNgcw.cjs';
4
4
  export { pointTokenAbi as POINT_TOKEN_V2_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v4QuoterAbi } from './abi/index.cjs';
5
5
  export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, buildReceiverConsentTypedData, signBurnRequest, signMintRequest, signReceiverConsent, verifyBurnRequest, verifyMintRequest, verifyReceiverConsent } from './eip712/index.cjs';
6
- export { getBurnRequestNonce, getIssuer, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.cjs';
6
+ export { getBurnRequestNonce, getIssuer, getMintFeeBps, getMintFeeRecipients, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.cjs';
7
7
  import { LoginMessageParams } from './auth/index.cjs';
8
8
  export { BuildSponsorAuthParams, BuiltSponsorAuth, SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, SponsorAuthPayload, SponsorAuthVerifyResult, VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, getSponsorAuthDomainAnchor, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth } from './auth/index.cjs';
9
9
 
@@ -1631,9 +1631,12 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1631
1631
  *
1632
1632
  * ## What lives where
1633
1633
  *
1634
- * pointToken — live POINT clone of PointToken impl (per-issuer; this
1635
- * is the gg56 clone; other issuers have their own and
1636
- * should read from the factory at runtime)
1634
+ * pointToken — DEAD legacy field (per-issuer, not chain-level).
1635
+ * Each issuer's clone is configured via env or
1636
+ * resolved from PointTokenFactory at runtime. Set
1637
+ * to a deterministic dead address so misuse fails
1638
+ * loudly. Will be removed when downstream consumers
1639
+ * stop referencing it.
1637
1640
  * batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
1638
1641
  * usdt — MockERC20 used by Uniswap pools
1639
1642
  * issuerRegistry — registry of all issuers on this chain
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { P as PoolKey, C as ChainConfig, a as PafiSDKConfig, b as PointTokenDoma
3
3
  export { B as BestQuote, c as BlackoutWindow, d as BurnRequest, e as ExactOutputBestQuote, f as ExactOutputQuoteResult, I as Issuer, g as PathKey, Q as QuoteResult, h as Recipient, i as RedemptionDecision, j as RedemptionDenial, k as RedemptionDenialCode, l as RedemptionPolicy, m as RedemptionPolicySource, n as RedemptionPreview, T as TokenCap } from './types-DWLZNgcw.js';
4
4
  export { pointTokenAbi as POINT_TOKEN_V2_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v4QuoterAbi } from './abi/index.js';
5
5
  export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, buildReceiverConsentTypedData, signBurnRequest, signMintRequest, signReceiverConsent, verifyBurnRequest, verifyMintRequest, verifyReceiverConsent } from './eip712/index.js';
6
- export { getBurnRequestNonce, getIssuer, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.js';
6
+ export { getBurnRequestNonce, getIssuer, getMintFeeBps, getMintFeeRecipients, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.js';
7
7
  import { LoginMessageParams } from './auth/index.js';
8
8
  export { BuildSponsorAuthParams, BuiltSponsorAuth, SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, SponsorAuthPayload, SponsorAuthVerifyResult, VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, getSponsorAuthDomainAnchor, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth } from './auth/index.js';
9
9
 
@@ -1631,9 +1631,12 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1631
1631
  *
1632
1632
  * ## What lives where
1633
1633
  *
1634
- * pointToken — live POINT clone of PointToken impl (per-issuer; this
1635
- * is the gg56 clone; other issuers have their own and
1636
- * should read from the factory at runtime)
1634
+ * pointToken — DEAD legacy field (per-issuer, not chain-level).
1635
+ * Each issuer's clone is configured via env or
1636
+ * resolved from PointTokenFactory at runtime. Set
1637
+ * to a deterministic dead address so misuse fails
1638
+ * loudly. Will be removed when downstream consumers
1639
+ * stop referencing it.
1637
1640
  * batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
1638
1641
  * usdt — MockERC20 used by Uniswap pools
1639
1642
  * issuerRegistry — registry of all issuers on this chain
package/dist/index.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import {
2
2
  erc20Abi,
3
- mintFeeWrapperAbi,
4
3
  permit2Abi,
5
4
  pointTokenFactoryAbi,
6
5
  universalRouterAbi,
7
6
  v4QuoterAbi
8
- } from "./chunk-JWZTY5UL.js";
7
+ } from "./chunk-CWH4KOUW.js";
9
8
  import {
10
9
  SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET,
11
10
  SPONSOR_AUTH_DOMAIN_NAME,
@@ -26,6 +25,8 @@ import {
26
25
  getBurnRequestNonce,
27
26
  getIssuer,
28
27
  getIssuer2,
28
+ getMintFeeBps,
29
+ getMintFeeRecipients,
29
30
  getMintRequestNonce,
30
31
  getPointTokenBalance,
31
32
  getPointTokenIssuer,
@@ -35,11 +36,12 @@ import {
35
36
  isMinter,
36
37
  issuerRegistryGetIssuerFlatAbi,
37
38
  verifyMintCap
38
- } from "./chunk-PWQWNHGI.js";
39
+ } from "./chunk-RFKS5BHE.js";
39
40
  import {
40
41
  issuerRegistryAbi,
42
+ mintFeeWrapperAbi,
41
43
  mintingOracleAbi
42
- } from "./chunk-FHFZ2F34.js";
44
+ } from "./chunk-LF5GIN5P.js";
43
45
  import {
44
46
  COMMON_POOLS,
45
47
  COMMON_TOKENS,
@@ -808,11 +810,14 @@ var CONTRACT_ADDRESSES = {
808
810
  // mockUsdt: MockERC20 0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382
809
811
  // batchExecutor: Pimlico Simple7702 0xe6Cae83BdE06E4c305530e199D7217f42808555B (unchanged from v1.5)
810
812
  //
811
- // pointToken: gg56's clone redeploy is pending. Field set to dead
812
- // placeholder until SC team provides the new clone address — consumers
813
- // that need a specific PointToken should read from PointTokenFactory or
814
- // the issuer's env config (`POINT_TOKEN_ADDRESS`). Old v1.5 clone
815
- // `0x7d25E7156E51F865D522fd3ef257a6B5DD41b97e` is no longer authoritative.
813
+ // pointToken: PER-ISSUER, not chain-level. Each issuer deploys their
814
+ // own clone via PointTokenFactory.createToken() and tracks the address
815
+ // separately (env var, DB, or factory readout). This field is a
816
+ // historical leftover from v1.4 single-issuer days and has no SDK
817
+ // consumer kept as dead-zero so any code that mistakenly reads it
818
+ // fails loudly instead of silently routing to a stale token.
819
+ // Known clones (informational, NOT to be used as a default):
820
+ // gg56 (Test Point / TPT) — 0x855c2046AD49AcF9B3B32557176FfCB1a1A38A22
816
821
  8453: {
817
822
  pointToken: PLACEHOLDER_DEAD("dead"),
818
823
  batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
@@ -1635,6 +1640,8 @@ export {
1635
1640
  getContractAddresses,
1636
1641
  getDummySignatureFor7702,
1637
1642
  getIssuer2 as getIssuer,
1643
+ getMintFeeBps,
1644
+ getMintFeeRecipients,
1638
1645
  getMintRequestNonce,
1639
1646
  getPafiServiceUrls,
1640
1647
  getPafiWebModalAdapter,