@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 +17 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -618,7 +618,13 @@ var RelayService = class {
|
|
|
618
618
|
const feeAmount = await quoteOperatorFeePt({
|
|
619
619
|
provider: this.provider,
|
|
620
620
|
chainId: this.chainId,
|
|
621
|
-
pointTokenAddress: params.pointTokenAddress
|
|
621
|
+
pointTokenAddress: params.pointTokenAddress,
|
|
622
|
+
allowStaleFallback: true,
|
|
623
|
+
onFallback: (info) => {
|
|
624
|
+
console.warn(
|
|
625
|
+
`[RelayService] operatorFeeQuoter fallback (${info.source}): ${info.reason} \u2192 using ${info.fallbackValue}`
|
|
626
|
+
);
|
|
627
|
+
}
|
|
622
628
|
});
|
|
623
629
|
return { feeAmount, feeRecipient };
|
|
624
630
|
}
|
|
@@ -4348,7 +4354,7 @@ function createIssuerService(config) {
|
|
|
4348
4354
|
import { getAddress as getAddress12 } from "viem";
|
|
4349
4355
|
import {
|
|
4350
4356
|
POINT_TOKEN_V2_ABI as POINT_TOKEN_V2_ABI3,
|
|
4351
|
-
|
|
4357
|
+
issuerRegistryAbi,
|
|
4352
4358
|
getContractAddresses as getContractAddresses8,
|
|
4353
4359
|
getTokenCap
|
|
4354
4360
|
} from "@pafi-dev/core";
|
|
@@ -4475,20 +4481,20 @@ var IssuerStateValidator = class _IssuerStateValidator {
|
|
|
4475
4481
|
}
|
|
4476
4482
|
async fetchIssuerState(tokenAddr) {
|
|
4477
4483
|
const issuerAddr = await this.getIssuerAddressForPointToken(tokenAddr);
|
|
4478
|
-
const
|
|
4484
|
+
const issuerStruct = await this.provider.readContract({
|
|
4479
4485
|
address: this.registryAddress,
|
|
4480
|
-
abi:
|
|
4486
|
+
abi: issuerRegistryAbi,
|
|
4481
4487
|
functionName: "getIssuer",
|
|
4482
4488
|
args: [issuerAddr]
|
|
4483
4489
|
});
|
|
4484
4490
|
const issuer = {
|
|
4485
|
-
issuerAddress:
|
|
4486
|
-
signerAddress:
|
|
4487
|
-
name:
|
|
4488
|
-
symbol:
|
|
4489
|
-
active:
|
|
4490
|
-
pointToken:
|
|
4491
|
-
mintingOracle:
|
|
4491
|
+
issuerAddress: issuerStruct.issuerAddress,
|
|
4492
|
+
signerAddress: issuerStruct.signerAddress,
|
|
4493
|
+
name: issuerStruct.name,
|
|
4494
|
+
symbol: issuerStruct.symbol,
|
|
4495
|
+
active: issuerStruct.active,
|
|
4496
|
+
pointToken: issuerStruct.pointToken,
|
|
4497
|
+
mintingOracle: issuerStruct.mintingOracle
|
|
4492
4498
|
};
|
|
4493
4499
|
const [tokenCap, totalSupply] = await Promise.all([
|
|
4494
4500
|
getTokenCap(this.provider, issuer.mintingOracle, tokenAddr),
|
|
@@ -4551,7 +4557,7 @@ var MemoryRedemptionHistoryStore = class {
|
|
|
4551
4557
|
};
|
|
4552
4558
|
|
|
4553
4559
|
// src/index.ts
|
|
4554
|
-
var PAFI_ISSUER_SDK_VERSION = true ? "0.12.
|
|
4560
|
+
var PAFI_ISSUER_SDK_VERSION = true ? "0.12.5" : "dev";
|
|
4555
4561
|
export {
|
|
4556
4562
|
AdapterMisconfiguredError,
|
|
4557
4563
|
AuthError,
|