@pafi-dev/core 0.13.0 → 0.14.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/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Address, Hex, TypedDataDomain, PublicClient, WalletClient, TransactionReceipt, HttpTransport } from 'viem';
2
2
  import { P as PoolKey, C as ChainConfig, V as V3Path, a as PafiSDKConfig, b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerifyOptions, c as SignatureVerification } from './types-C17pznGz.cjs';
3
3
  export { B as BestQuote, d as BlackoutWindow, e as BurnRequest, f as ExactOutputBestQuote, g as ExactOutputQuoteResult, I as Issuer, Q as QuoteResult, R as Recipient, h as RedemptionDecision, i as RedemptionDenial, j as RedemptionDenialCode, k as RedemptionPolicy, l as RedemptionPolicySource, m as RedemptionPreview, n as SignatureVerificationFailReason, T as TokenCap } from './types-C17pznGz.cjs';
4
- export { pointTokenAbi as POINT_TOKEN_V2_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v3QuoterV2Abi } from './abi/index.cjs';
4
+ export { pointTokenAbi as POINT_TOKEN_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v3QuoterV2Abi } from './abi/index.cjs';
5
5
  export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, signBurnRequest, signMintRequest, verifyBurnRequest, verifyMintRequest } from './eip712/index.cjs';
6
6
  export { getBurnRequestNonce, getIssuer, getMintFeeBps, getMintFeeRecipients, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getTokenCap, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.cjs';
7
7
  import { LoginMessageParams } from './auth/index.cjs';
@@ -1697,7 +1697,10 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1697
1697
  * ## What lives where
1698
1698
  *
1699
1699
  * batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
1700
- * usdt — Stablecoin used by Uniswap pools
1700
+ * usdt — Stablecoin used by Uniswap pools (6 decimals)
1701
+ * usdc — Stablecoin used as the perp-deposit fee token and
1702
+ * Orderly settlement asset (6 decimals). Optional —
1703
+ * may be undefined on chains without a canonical USDC.
1701
1704
  * issuerRegistry — registry of all issuers on this chain
1702
1705
  * mintingOracle — per-token mint cap enforcer
1703
1706
  * mintFeeWrapper — mint-time fee splitter (single global instance)
@@ -1716,6 +1719,13 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1716
1719
  interface ContractAddresses {
1717
1720
  batchExecutor: Address;
1718
1721
  usdt: Address;
1722
+ /**
1723
+ * Canonical USDC (6 decimals) on this chain — the fee token used by
1724
+ * the perp-deposit scenario (Orderly settlement asset) and accepted
1725
+ * by sponsor-relayer's stable fee path. Optional because not every
1726
+ * chain has a recognised canonical USDC.
1727
+ */
1728
+ usdc?: Address;
1719
1729
  issuerRegistry: Address;
1720
1730
  mintingOracle: Address;
1721
1731
  /**
@@ -1818,7 +1828,10 @@ declare function getPafiServiceUrls(chainId: number): PafiServiceUrls;
1818
1828
  * burnerSig)`.
1819
1829
  *
1820
1830
  * Exports:
1821
- * - `POINT_TOKEN_V2_ABI` — full mint + burn + admin surface
1831
+ * - `POINT_TOKEN_ABI` — full mint + burn + admin surface
1832
+ * (canonical name; not version-suffixed
1833
+ * so future Uniswap fork bumps don't
1834
+ * collide with PointToken internals)
1822
1835
  * - `BATCH_EXECUTOR_*` — EIP-7702 delegation target (ABI real,
1823
1836
  * address still placeholder on all
1824
1837
  * chains until SC delivers)
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Address, Hex, TypedDataDomain, PublicClient, WalletClient, TransactionReceipt, HttpTransport } from 'viem';
2
2
  import { P as PoolKey, C as ChainConfig, V as V3Path, a as PafiSDKConfig, b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerifyOptions, c as SignatureVerification } from './types-C17pznGz.js';
3
3
  export { B as BestQuote, d as BlackoutWindow, e as BurnRequest, f as ExactOutputBestQuote, g as ExactOutputQuoteResult, I as Issuer, Q as QuoteResult, R as Recipient, h as RedemptionDecision, i as RedemptionDenial, j as RedemptionDenialCode, k as RedemptionPolicy, l as RedemptionPolicySource, m as RedemptionPreview, n as SignatureVerificationFailReason, T as TokenCap } from './types-C17pznGz.js';
4
- export { pointTokenAbi as POINT_TOKEN_V2_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v3QuoterV2Abi } from './abi/index.js';
4
+ export { pointTokenAbi as POINT_TOKEN_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v3QuoterV2Abi } from './abi/index.js';
5
5
  export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, signBurnRequest, signMintRequest, verifyBurnRequest, verifyMintRequest } from './eip712/index.js';
6
6
  export { getBurnRequestNonce, getIssuer, getMintFeeBps, getMintFeeRecipients, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getTokenCap, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.js';
7
7
  import { LoginMessageParams } from './auth/index.js';
@@ -1697,7 +1697,10 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1697
1697
  * ## What lives where
1698
1698
  *
1699
1699
  * batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
1700
- * usdt — Stablecoin used by Uniswap pools
1700
+ * usdt — Stablecoin used by Uniswap pools (6 decimals)
1701
+ * usdc — Stablecoin used as the perp-deposit fee token and
1702
+ * Orderly settlement asset (6 decimals). Optional —
1703
+ * may be undefined on chains without a canonical USDC.
1701
1704
  * issuerRegistry — registry of all issuers on this chain
1702
1705
  * mintingOracle — per-token mint cap enforcer
1703
1706
  * mintFeeWrapper — mint-time fee splitter (single global instance)
@@ -1716,6 +1719,13 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1716
1719
  interface ContractAddresses {
1717
1720
  batchExecutor: Address;
1718
1721
  usdt: Address;
1722
+ /**
1723
+ * Canonical USDC (6 decimals) on this chain — the fee token used by
1724
+ * the perp-deposit scenario (Orderly settlement asset) and accepted
1725
+ * by sponsor-relayer's stable fee path. Optional because not every
1726
+ * chain has a recognised canonical USDC.
1727
+ */
1728
+ usdc?: Address;
1719
1729
  issuerRegistry: Address;
1720
1730
  mintingOracle: Address;
1721
1731
  /**
@@ -1818,7 +1828,10 @@ declare function getPafiServiceUrls(chainId: number): PafiServiceUrls;
1818
1828
  * burnerSig)`.
1819
1829
  *
1820
1830
  * Exports:
1821
- * - `POINT_TOKEN_V2_ABI` — full mint + burn + admin surface
1831
+ * - `POINT_TOKEN_ABI` — full mint + burn + admin surface
1832
+ * (canonical name; not version-suffixed
1833
+ * so future Uniswap fork bumps don't
1834
+ * collide with PointToken internals)
1822
1835
  * - `BATCH_EXECUTOR_*` — EIP-7702 delegation target (ABI real,
1823
1836
  * address still placeholder on all
1824
1837
  * chains until SC delivers)
package/dist/index.js CHANGED
@@ -1,3 +1,10 @@
1
+ import {
2
+ erc20Abi,
3
+ permit2Abi,
4
+ pointTokenFactoryAbi,
5
+ universalRouterAbi,
6
+ v3QuoterV2Abi
7
+ } from "./chunk-ZJXXCG5P.js";
1
8
  import {
2
9
  SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET,
3
10
  SPONSOR_AUTH_DOMAIN_NAME,
@@ -14,13 +21,6 @@ import {
14
21
  verifyLoginMessage,
15
22
  verifySponsorAuth
16
23
  } from "./chunk-4EGXLYMM.js";
17
- import {
18
- erc20Abi,
19
- permit2Abi,
20
- pointTokenFactoryAbi,
21
- universalRouterAbi,
22
- v3QuoterV2Abi
23
- } from "./chunk-ZJXXCG5P.js";
24
24
  import {
25
25
  getBurnRequestNonce,
26
26
  getIssuer,
@@ -828,6 +828,7 @@ var CONTRACT_ADDRESSES = {
828
828
  8453: {
829
829
  batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
830
830
  usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
831
+ usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
831
832
  issuerRegistry: "0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01",
832
833
  mintingOracle: "0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0",
833
834
  mintFeeWrapper: "0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93",
@@ -1576,10 +1577,10 @@ export {
1576
1577
  PAFI_SERVICE_URLS,
1577
1578
  PAFI_SUBGRAPH_URL,
1578
1579
  PERMIT2_ADDRESS,
1580
+ pointTokenAbi as POINT_TOKEN_ABI,
1579
1581
  POINT_TOKEN_FACTORY_ADDRESSES,
1580
1582
  POINT_TOKEN_IMPL_ADDRESSES,
1581
1583
  POINT_TOKEN_POOLS,
1582
- pointTokenAbi as POINT_TOKEN_V2_ABI,
1583
1584
  PafiSDK,
1584
1585
  PafiSdkError,
1585
1586
  QUOTER_V2_ADDRESSES,