@pafi-dev/issuer 0.12.3 → 0.12.5

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.cjs CHANGED
@@ -849,7 +849,13 @@ var RelayService = class {
849
849
  const feeAmount = await (0, import_core5.quoteOperatorFeePt)({
850
850
  provider: this.provider,
851
851
  chainId: this.chainId,
852
- pointTokenAddress: params.pointTokenAddress
852
+ pointTokenAddress: params.pointTokenAddress,
853
+ allowStaleFallback: true,
854
+ onFallback: (info) => {
855
+ console.warn(
856
+ `[RelayService] operatorFeeQuoter fallback (${info.source}): ${info.reason} \u2192 using ${info.fallbackValue}`
857
+ );
858
+ }
853
859
  });
854
860
  return { feeAmount, feeRecipient };
855
861
  }
@@ -4653,20 +4659,20 @@ var IssuerStateValidator = class _IssuerStateValidator {
4653
4659
  }
4654
4660
  async fetchIssuerState(tokenAddr) {
4655
4661
  const issuerAddr = await this.getIssuerAddressForPointToken(tokenAddr);
4656
- const issuerTuple = await this.provider.readContract({
4662
+ const issuerStruct = await this.provider.readContract({
4657
4663
  address: this.registryAddress,
4658
- abi: import_core20.issuerRegistryGetIssuerFlatAbi,
4664
+ abi: import_core20.issuerRegistryAbi,
4659
4665
  functionName: "getIssuer",
4660
4666
  args: [issuerAddr]
4661
4667
  });
4662
4668
  const issuer = {
4663
- issuerAddress: issuerTuple[0],
4664
- signerAddress: issuerTuple[1],
4665
- name: issuerTuple[2],
4666
- symbol: issuerTuple[3],
4667
- active: issuerTuple[4],
4668
- pointToken: issuerTuple[5],
4669
- mintingOracle: issuerTuple[6]
4669
+ issuerAddress: issuerStruct.issuerAddress,
4670
+ signerAddress: issuerStruct.signerAddress,
4671
+ name: issuerStruct.name,
4672
+ symbol: issuerStruct.symbol,
4673
+ active: issuerStruct.active,
4674
+ pointToken: issuerStruct.pointToken,
4675
+ mintingOracle: issuerStruct.mintingOracle
4670
4676
  };
4671
4677
  const [tokenCap, totalSupply] = await Promise.all([
4672
4678
  (0, import_core20.getTokenCap)(this.provider, issuer.mintingOracle, tokenAddr),
@@ -4729,7 +4735,7 @@ var MemoryRedemptionHistoryStore = class {
4729
4735
  };
4730
4736
 
4731
4737
  // src/index.ts
4732
- var PAFI_ISSUER_SDK_VERSION = true ? "0.12.3" : "dev";
4738
+ var PAFI_ISSUER_SDK_VERSION = true ? "0.12.5" : "dev";
4733
4739
  // Annotate the CommonJS export names for ESM import in node:
4734
4740
  0 && (module.exports = {
4735
4741
  AdapterMisconfiguredError,