@pafi-dev/core 0.13.1 → 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_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';
@@ -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
  /**
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';
@@ -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
  /**
package/dist/index.js CHANGED
@@ -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,