@pafi-dev/core 0.13.1 → 0.15.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_ABI, 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';
@@ -101,6 +101,9 @@ declare const ENTRY_POINT_V07: Address;
101
101
  */
102
102
  declare const ENTRY_POINT_V08: Address;
103
103
  /** Permit2 — Uniswap's universal approval contract, same address on all EVM chains. */
104
+ /**
105
+ * Permit2 — PAFI's deployed instance. PAFI ships its own forked deployment.
106
+ */
104
107
  declare const PERMIT2_ADDRESS: Address;
105
108
 
106
109
  /**
@@ -1697,7 +1700,10 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1697
1700
  * ## What lives where
1698
1701
  *
1699
1702
  * batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
1700
- * usdt — Stablecoin used by Uniswap pools
1703
+ * usdt — Stablecoin used by Uniswap pools (6 decimals)
1704
+ * usdc — Stablecoin used as the perp-deposit fee token and
1705
+ * Orderly settlement asset (6 decimals). Optional —
1706
+ * may be undefined on chains without a canonical USDC.
1701
1707
  * issuerRegistry — registry of all issuers on this chain
1702
1708
  * mintingOracle — per-token mint cap enforcer
1703
1709
  * mintFeeWrapper — mint-time fee splitter (single global instance)
@@ -1716,6 +1722,13 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1716
1722
  interface ContractAddresses {
1717
1723
  batchExecutor: Address;
1718
1724
  usdt: Address;
1725
+ /**
1726
+ * Canonical USDC (6 decimals) on this chain — the fee token used by
1727
+ * the perp-deposit scenario (Orderly settlement asset) and accepted
1728
+ * by sponsor-relayer's stable fee path. Optional because not every
1729
+ * chain has a recognised canonical USDC.
1730
+ */
1731
+ usdc?: Address;
1719
1732
  issuerRegistry: Address;
1720
1733
  mintingOracle: Address;
1721
1734
  /**
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_ABI, 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';
@@ -101,6 +101,9 @@ declare const ENTRY_POINT_V07: Address;
101
101
  */
102
102
  declare const ENTRY_POINT_V08: Address;
103
103
  /** Permit2 — Uniswap's universal approval contract, same address on all EVM chains. */
104
+ /**
105
+ * Permit2 — PAFI's deployed instance. PAFI ships its own forked deployment.
106
+ */
104
107
  declare const PERMIT2_ADDRESS: Address;
105
108
 
106
109
  /**
@@ -1697,7 +1700,10 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1697
1700
  * ## What lives where
1698
1701
  *
1699
1702
  * batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
1700
- * usdt — Stablecoin used by Uniswap pools
1703
+ * usdt — Stablecoin used by Uniswap pools (6 decimals)
1704
+ * usdc — Stablecoin used as the perp-deposit fee token and
1705
+ * Orderly settlement asset (6 decimals). Optional —
1706
+ * may be undefined on chains without a canonical USDC.
1701
1707
  * issuerRegistry — registry of all issuers on this chain
1702
1708
  * mintingOracle — per-token mint cap enforcer
1703
1709
  * mintFeeWrapper — mint-time fee splitter (single global instance)
@@ -1716,6 +1722,13 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
1716
1722
  interface ContractAddresses {
1717
1723
  batchExecutor: Address;
1718
1724
  usdt: Address;
1725
+ /**
1726
+ * Canonical USDC (6 decimals) on this chain — the fee token used by
1727
+ * the perp-deposit scenario (Orderly settlement asset) and accepted
1728
+ * by sponsor-relayer's stable fee path. Optional because not every
1729
+ * chain has a recognised canonical USDC.
1730
+ */
1731
+ usdc?: Address;
1719
1732
  issuerRegistry: Address;
1720
1733
  mintingOracle: Address;
1721
1734
  /**
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ import {
66
66
  signMintRequest,
67
67
  verifyBurnRequest,
68
68
  verifyMintRequest
69
- } from "./chunk-UEO4YN6T.js";
69
+ } from "./chunk-4TNHRZ4X.js";
70
70
  import {
71
71
  pointTokenAbi
72
72
  } from "./chunk-UCO5DXD6.js";
@@ -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",
@@ -1580,7 +1581,6 @@ export {
1580
1581
  POINT_TOKEN_FACTORY_ADDRESSES,
1581
1582
  POINT_TOKEN_IMPL_ADDRESSES,
1582
1583
  POINT_TOKEN_POOLS,
1583
- pointTokenAbi as POINT_TOKEN_V2_ABI,
1584
1584
  PafiSDK,
1585
1585
  PafiSdkError,
1586
1586
  QUOTER_V2_ADDRESSES,