@pafi-dev/issuer 0.15.0 → 0.15.1

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
@@ -561,7 +561,7 @@ declare class RelayError extends PafiSdkError {
561
561
  *
562
562
  * 1. Resolve `feeRecipient = getContractAddresses(chainId).pafiFeeRecipient`
563
563
  * 2. If `feeAmount` is undefined → run `quoteOperatorFeePt(...)` against
564
- * Chainlink + V4 subgraph to compute the PT amount.
564
+ * Chainlink + PAFI subgraph to compute the PT amount.
565
565
  *
566
566
  * When unset, the legacy "caller passes feeAmount + feeRecipient or no
567
567
  * fee" behavior applies, so existing integrations keep working.
@@ -728,8 +728,8 @@ interface FeeManagerConfig {
728
728
  * USDT 6-decimal for swap / perp deposit flows).
729
729
  *
730
730
  * Injected so the manager stays chain- and token-agnostic. Issuers
731
- * wire it to `@pafi-dev/core` V4 quoting, a subgraph query, or an
732
- * oracle feed.
731
+ * wire it to `@pafi-dev/core` Quoter helpers, a PAFI subgraph query,
732
+ * or an oracle feed.
733
733
  */
734
734
  quoteNativeToFee: (amountNative: bigint) => Promise<bigint>;
735
735
  }
package/dist/index.d.ts CHANGED
@@ -561,7 +561,7 @@ declare class RelayError extends PafiSdkError {
561
561
  *
562
562
  * 1. Resolve `feeRecipient = getContractAddresses(chainId).pafiFeeRecipient`
563
563
  * 2. If `feeAmount` is undefined → run `quoteOperatorFeePt(...)` against
564
- * Chainlink + V4 subgraph to compute the PT amount.
564
+ * Chainlink + PAFI subgraph to compute the PT amount.
565
565
  *
566
566
  * When unset, the legacy "caller passes feeAmount + feeRecipient or no
567
567
  * fee" behavior applies, so existing integrations keep working.
@@ -728,8 +728,8 @@ interface FeeManagerConfig {
728
728
  * USDT 6-decimal for swap / perp deposit flows).
729
729
  *
730
730
  * Injected so the manager stays chain- and token-agnostic. Issuers
731
- * wire it to `@pafi-dev/core` V4 quoting, a subgraph query, or an
732
- * oracle feed.
731
+ * wire it to `@pafi-dev/core` Quoter helpers, a PAFI subgraph query,
732
+ * or an oracle feed.
733
733
  */
734
734
  quoteNativeToFee: (amountNative: bigint) => Promise<bigint>;
735
735
  }
package/dist/index.js CHANGED
@@ -579,7 +579,7 @@ import {
579
579
  erc20Abi
580
580
  } from "viem";
581
581
  import {
582
- POINT_TOKEN_V2_ABI,
582
+ POINT_TOKEN_ABI,
583
583
  mintFeeWrapperAbi,
584
584
  buildPartialUserOperation,
585
585
  signMintRequest,
@@ -714,7 +714,7 @@ var RelayService = class {
714
714
  mintTarget = params.mintFeeWrapperAddress;
715
715
  } else {
716
716
  mintCallData = encodeFunctionData({
717
- abi: POINT_TOKEN_V2_ABI,
717
+ abi: POINT_TOKEN_ABI,
718
718
  functionName: "mint",
719
719
  args: [params.userAddress, params.amount, params.deadline, minterSig]
720
720
  });
@@ -801,7 +801,7 @@ var RelayService = class {
801
801
  let burnCallData;
802
802
  try {
803
803
  burnCallData = encodeFunctionData({
804
- abi: POINT_TOKEN_V2_ABI,
804
+ abi: POINT_TOKEN_ABI,
805
805
  functionName: "burn",
806
806
  args: [
807
807
  params.burnRequest.from,
@@ -1712,7 +1712,7 @@ var IssuerApiHandlers = class _IssuerApiHandlers {
1712
1712
  import { getAddress as getAddress6 } from "viem";
1713
1713
  import {
1714
1714
  signBurnRequest,
1715
- POINT_TOKEN_V2_ABI as POINT_TOKEN_V2_ABI2,
1715
+ POINT_TOKEN_ABI as POINT_TOKEN_ABI2,
1716
1716
  getPointTokenBalance as getPointTokenBalance2,
1717
1717
  getContractAddresses as getContractAddresses2
1718
1718
  } from "@pafi-dev/core";
@@ -1819,7 +1819,7 @@ var PTRedeemHandler = class {
1819
1819
  try {
1820
1820
  burnNonce = await this.provider.readContract({
1821
1821
  address: this.pointTokenAddress,
1822
- abi: POINT_TOKEN_V2_ABI2,
1822
+ abi: POINT_TOKEN_ABI2,
1823
1823
  functionName: "burnRequestNonces",
1824
1824
  args: [request.userAddress]
1825
1825
  });
@@ -4313,7 +4313,7 @@ function createIssuerService(config) {
4313
4313
  // src/issuer-state/validator.ts
4314
4314
  import { getAddress as getAddress12 } from "viem";
4315
4315
  import {
4316
- POINT_TOKEN_V2_ABI as POINT_TOKEN_V2_ABI3,
4316
+ POINT_TOKEN_ABI as POINT_TOKEN_ABI3,
4317
4317
  issuerRegistryAbi,
4318
4318
  getContractAddresses as getContractAddresses8,
4319
4319
  getTokenCap
@@ -4363,7 +4363,7 @@ var IssuerStateValidator = class _IssuerStateValidator {
4363
4363
  if (cached) return cached;
4364
4364
  const issuer = await this.provider.readContract({
4365
4365
  address: key,
4366
- abi: POINT_TOKEN_V2_ABI3,
4366
+ abi: POINT_TOKEN_ABI3,
4367
4367
  functionName: "issuer"
4368
4368
  });
4369
4369
  this.pointTokenIssuerCache.set(key, getAddress12(issuer));
@@ -4460,7 +4460,7 @@ var IssuerStateValidator = class _IssuerStateValidator {
4460
4460
  getTokenCap(this.provider, issuer.mintingOracle, tokenAddr),
4461
4461
  this.provider.readContract({
4462
4462
  address: tokenAddr,
4463
- abi: POINT_TOKEN_V2_ABI3,
4463
+ abi: POINT_TOKEN_ABI3,
4464
4464
  functionName: "totalSupply"
4465
4465
  })
4466
4466
  ]);
@@ -4517,7 +4517,7 @@ var MemoryRedemptionHistoryStore = class {
4517
4517
  };
4518
4518
 
4519
4519
  // src/index.ts
4520
- var PAFI_ISSUER_SDK_VERSION = true ? "0.15.0" : "dev";
4520
+ var PAFI_ISSUER_SDK_VERSION = true ? "0.15.1" : "dev";
4521
4521
  export {
4522
4522
  AdapterMisconfiguredError,
4523
4523
  AuthError,