@pafi-dev/issuer 0.19.0 → 0.21.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/README.md +11 -6
- package/dist/index.cjs +375 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +260 -49
- package/dist/index.d.ts +260 -49
- package/dist/index.js +368 -69
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -621,6 +621,35 @@ declare class RelayService {
|
|
|
621
621
|
* issuer-signed `BurnRequest` path.
|
|
622
622
|
*/
|
|
623
623
|
prepareBurn(params: PrepareBurnParams): Promise<PartialUserOperation>;
|
|
624
|
+
/**
|
|
625
|
+
* Build a dummy `PartialUserOperation` for the mint scenario, suitable
|
|
626
|
+
* for `feeManager.estimateGasFee({ partialUserOp, ... })`. NO signing —
|
|
627
|
+
* uses a 65-byte zero signature placeholder.
|
|
628
|
+
*/
|
|
629
|
+
previewMintUserOp(params: PreviewMintParams): PartialUserOperation;
|
|
630
|
+
/** Burn-side mirror of `previewMintUserOp`. */
|
|
631
|
+
previewBurnUserOp(params: PreviewBurnParams): PartialUserOperation;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Inputs for `previewMintUserOp` — strict subset of `PrepareMintParams`
|
|
635
|
+
* that excludes the signing wallet, EIP-712 domain, and on-chain
|
|
636
|
+
* `mintRequestNonces` lookup since those don't affect calldata shape
|
|
637
|
+
* (the bundler estimate is shape-invariant under their values).
|
|
638
|
+
*/
|
|
639
|
+
interface PreviewMintParams {
|
|
640
|
+
userAddress: Address;
|
|
641
|
+
aaNonce: bigint;
|
|
642
|
+
pointTokenAddress: Address;
|
|
643
|
+
amount: bigint;
|
|
644
|
+
deadline: bigint;
|
|
645
|
+
mintFeeWrapperAddress?: Address;
|
|
646
|
+
}
|
|
647
|
+
interface PreviewBurnParams {
|
|
648
|
+
userAddress: Address;
|
|
649
|
+
aaNonce: bigint;
|
|
650
|
+
pointTokenAddress: Address;
|
|
651
|
+
amount: bigint;
|
|
652
|
+
deadline: bigint;
|
|
624
653
|
}
|
|
625
654
|
/**
|
|
626
655
|
* Sig-gated `PointToken.mint(to, amount, deadline, minterSig)`.
|
|
@@ -708,66 +737,206 @@ interface PrepareBurnParams {
|
|
|
708
737
|
preVerificationGas?: bigint;
|
|
709
738
|
}
|
|
710
739
|
|
|
740
|
+
/**
|
|
741
|
+
* Caller-supplied fetch implementation, matching the WHATWG Fetch API
|
|
742
|
+
* shape. Defaults to `globalThis.fetch` when omitted; tests and
|
|
743
|
+
* non-browser/node environments can plug in their own.
|
|
744
|
+
*/
|
|
745
|
+
type FetchImpl = (input: string, init?: RequestInit) => Promise<Response>;
|
|
746
|
+
/**
|
|
747
|
+
* Duck-typed estimator interface. `FeeManager` accepts any object
|
|
748
|
+
* satisfying this surface so the SDK stays decoupled from where the
|
|
749
|
+
* bundler estimate physically lives (PAFI sponsor-relayer in production,
|
|
750
|
+
* a mock in tests, a local Pimlico proxy in dev).
|
|
751
|
+
*
|
|
752
|
+
* The estimator's job: given the preview UserOp shape, return the gas
|
|
753
|
+
* units to multiply by `gasPrice` and feed into the caller's fee
|
|
754
|
+
* quoter. Premium and PM overhead are the estimator's responsibility,
|
|
755
|
+
* NOT the SDK's — preventing double-padding.
|
|
756
|
+
*/
|
|
757
|
+
interface BundlerEstimatorClient {
|
|
758
|
+
/**
|
|
759
|
+
* Resolve gas units for a sponsored UserOp.
|
|
760
|
+
*
|
|
761
|
+
* @throws — implementations should throw on transport / auth /
|
|
762
|
+
* protocol errors so `FeeManager` can degrade to its hardcoded
|
|
763
|
+
* fallback. Network failures must NOT silently return a default,
|
|
764
|
+
* since that would mask a misconfiguration as a successful estimate.
|
|
765
|
+
*/
|
|
766
|
+
getGasUnits(input: {
|
|
767
|
+
scenario: string;
|
|
768
|
+
contractAddress: Address;
|
|
769
|
+
paymasterAddress?: Address;
|
|
770
|
+
partialUserOp: {
|
|
771
|
+
sender: Address;
|
|
772
|
+
nonce: bigint;
|
|
773
|
+
callData: Hex;
|
|
774
|
+
signature?: Hex;
|
|
775
|
+
};
|
|
776
|
+
}): Promise<{
|
|
777
|
+
gasUnits: bigint;
|
|
778
|
+
source: "cache" | "bundler" | "fallback";
|
|
779
|
+
expiresAt: number;
|
|
780
|
+
}>;
|
|
781
|
+
}
|
|
782
|
+
interface PafiEstimatorClientConfig {
|
|
783
|
+
/**
|
|
784
|
+
* Base URL of the PAFI sponsor-relayer (no trailing slash). The
|
|
785
|
+
* adapter appends `/v1/estimate-gas-fee` — issuer infrastructure
|
|
786
|
+
* never talks to Pimlico directly.
|
|
787
|
+
*/
|
|
788
|
+
baseUrl: string;
|
|
789
|
+
/** Issuer's PAFI API key — the same one used for `/paymaster/sponsor`. */
|
|
790
|
+
apiKey: string;
|
|
791
|
+
/** Issuer ID used in `X-Issuer-Id` header. */
|
|
792
|
+
issuerId: string;
|
|
793
|
+
/** Custom fetch (e.g. `undici` in tests). Defaults to `globalThis.fetch`. */
|
|
794
|
+
fetchImpl?: FetchImpl;
|
|
795
|
+
}
|
|
796
|
+
declare class PafiEstimatorHttpError extends Error {
|
|
797
|
+
readonly status: number;
|
|
798
|
+
readonly body: unknown;
|
|
799
|
+
constructor(status: number, body: unknown, message?: string);
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* HTTP adapter that hits PAFI sponsor-relayer's `/v1/estimate-gas-fee`
|
|
803
|
+
* endpoint. The SDK never imports Pimlico-specific code or holds the
|
|
804
|
+
* Pimlico API key — the bundler call happens server-side at PAFI.
|
|
805
|
+
*
|
|
806
|
+
* Authentication mirrors `/paymaster/sponsor`:
|
|
807
|
+
* - `Authorization: Bearer <apiKey>`
|
|
808
|
+
* - `X-Issuer-Id: <issuerId>`
|
|
809
|
+
*
|
|
810
|
+
* Issuers wire this once at boot via `createPafiEstimatorClient({
|
|
811
|
+
* baseUrl, apiKey, issuerId })` and pass it to `FeeManager` as
|
|
812
|
+
* `bundlerClient`. The same `baseUrl`/`apiKey`/`issuerId` already
|
|
813
|
+
* authenticate other PAFI calls — no new secrets required.
|
|
814
|
+
*/
|
|
815
|
+
declare function createPafiEstimatorClient(config: PafiEstimatorClientConfig): BundlerEstimatorClient;
|
|
816
|
+
|
|
817
|
+
type GasFeeSource = "estimator" | "fallback" | "cached-fee";
|
|
818
|
+
/**
|
|
819
|
+
* Hooks for observability. Sync, best-effort — errors thrown by hooks
|
|
820
|
+
* are swallowed so they cannot break the user-facing fee flow.
|
|
821
|
+
*/
|
|
822
|
+
interface FeeManagerMetrics {
|
|
823
|
+
onEstimate?: (info: {
|
|
824
|
+
source: GasFeeSource;
|
|
825
|
+
scenario?: string;
|
|
826
|
+
gasUnits: bigint;
|
|
827
|
+
latencyMs: number;
|
|
828
|
+
}) => void;
|
|
829
|
+
onEstimatorError?: (info: {
|
|
830
|
+
scenario?: string;
|
|
831
|
+
reason: string;
|
|
832
|
+
}) => void;
|
|
833
|
+
}
|
|
711
834
|
interface FeeManagerConfig {
|
|
712
|
-
/** Provider used for gas
|
|
835
|
+
/** Provider used for gas-price reads. */
|
|
713
836
|
provider: PublicClient;
|
|
714
837
|
/**
|
|
715
|
-
*
|
|
716
|
-
*
|
|
717
|
-
*
|
|
838
|
+
* Hardcoded fallback gas units, used when (a) no `bundlerClient` is
|
|
839
|
+
* configured, OR (b) the bundler call fails and `partialUserOp` was
|
|
840
|
+
* not supplied. Default: 500_000n. Sized as a safe over-estimate vs
|
|
841
|
+
* the historically observed mint/burn cost so a fallback never
|
|
842
|
+
* under-charges the sponsor.
|
|
718
843
|
*/
|
|
719
844
|
gasUnits?: bigint;
|
|
720
845
|
/**
|
|
721
|
-
*
|
|
722
|
-
*
|
|
846
|
+
* SDK-side premium in basis points. Default: 10_000 (100% = no extra
|
|
847
|
+
* padding). Pimlico's bundler pads ~10-15% internally, and PAFI
|
|
848
|
+
* sponsor-relayer applies its own premium (110%) before returning
|
|
849
|
+
* gasUnits, so adding more here would compound the over-charge that
|
|
850
|
+
* the v0.20 refactor was designed to remove. Override only when the
|
|
851
|
+
* caller's `bundlerClient` returns raw bundler values without a
|
|
852
|
+
* premium applied.
|
|
723
853
|
*/
|
|
724
854
|
gasPremiumBps?: number;
|
|
725
855
|
/**
|
|
726
856
|
* Quote function — given an amount of native wei, return the
|
|
727
|
-
* equivalent amount in the fee currency (
|
|
728
|
-
* USDT 6-decimal for swap / perp deposit
|
|
729
|
-
*
|
|
730
|
-
*
|
|
731
|
-
* wire it to `@pafi-dev/core` Quoter helpers, a PAFI subgraph query,
|
|
732
|
-
* or an oracle feed.
|
|
857
|
+
* equivalent amount in the fee currency (PT raw units for mint/burn,
|
|
858
|
+
* USDT/USDC 6-decimal for swap / perp deposit). Chain- and
|
|
859
|
+
* token-agnostic by design; wire to `createNativePtQuoter` for PT or
|
|
860
|
+
* `quoteOperatorFeeUsdt` for stables.
|
|
733
861
|
*/
|
|
734
862
|
quoteNativeToFee: (amountNative: bigint) => Promise<bigint>;
|
|
863
|
+
/**
|
|
864
|
+
* Optional bundler-driven gas-units estimator. When set,
|
|
865
|
+
* `estimateGasFee({ partialUserOp, scenario, contractAddress })` calls
|
|
866
|
+
* the estimator for per-UserOp accuracy. When unset, the legacy
|
|
867
|
+
* hardcoded path runs — backward-compatible with v0.16/0.19 callers.
|
|
868
|
+
*/
|
|
869
|
+
bundlerClient?: BundlerEstimatorClient;
|
|
870
|
+
/** Optional observability hooks. Throws inside hooks are swallowed. */
|
|
871
|
+
metrics?: FeeManagerMetrics;
|
|
735
872
|
}
|
|
736
873
|
/**
|
|
737
|
-
*
|
|
738
|
-
*
|
|
874
|
+
* Parameters for a single bundler-driven `estimateGasFee` call. All
|
|
875
|
+
* fields optional for backwards compatibility — when `partialUserOp` is
|
|
876
|
+
* absent the SDK falls back to the hardcoded path.
|
|
877
|
+
*/
|
|
878
|
+
interface EstimateGasFeeOptions {
|
|
879
|
+
partialUserOp?: {
|
|
880
|
+
sender: Address;
|
|
881
|
+
nonce: bigint;
|
|
882
|
+
callData: Hex;
|
|
883
|
+
signature?: Hex;
|
|
884
|
+
};
|
|
885
|
+
scenario?: string;
|
|
886
|
+
contractAddress?: Address;
|
|
887
|
+
paymasterAddress?: Address;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Computes the operator fee the issuer charges users for sponsored gas.
|
|
739
891
|
*
|
|
740
|
-
*
|
|
741
|
-
*
|
|
892
|
+
* Fee currency is whatever the injected `quoteNativeToFee` returns —
|
|
893
|
+
* PT for mint/burn, USDT/USDC for swap & perp deposit.
|
|
742
894
|
*
|
|
743
|
-
*
|
|
744
|
-
*
|
|
745
|
-
*
|
|
746
|
-
*
|
|
747
|
-
*
|
|
895
|
+
* Two execution paths:
|
|
896
|
+
*
|
|
897
|
+
* 1. **Estimator path** (recommended) — caller wires `bundlerClient`
|
|
898
|
+
* (typically `createPafiEstimatorClient`). Each call hits the PAFI
|
|
899
|
+
* sponsor-relayer's `/v1/estimate-gas-fee` which caches by
|
|
900
|
+
* `(scenario, contract codehash, paymaster)` and applies its own
|
|
901
|
+
* premium. Result is the most accurate fee available and matches
|
|
902
|
+
* what sponsor-relayer's verify path expects, eliminating
|
|
903
|
+
* `INSUFFICIENT_FEE` rejects from formula drift.
|
|
904
|
+
*
|
|
905
|
+
* 2. **Fallback path** — no bundler client OR estimator threw. Use
|
|
906
|
+
* hardcoded `gasUnits × premium`. Same shape as v0.16/0.19 so
|
|
907
|
+
* legacy integrations get identical behaviour.
|
|
908
|
+
*
|
|
909
|
+
* **No operator rebalancing**: the operator does NOT hold ETH; gas is
|
|
910
|
+
* paid by PAFI's Pimlico paymaster. The fee here is an
|
|
911
|
+
* application-level ERC-20 transfer in the same UserOp batch.
|
|
748
912
|
*/
|
|
749
913
|
declare class FeeManager {
|
|
750
914
|
private readonly provider;
|
|
751
|
-
private readonly
|
|
915
|
+
private readonly fallbackGasUnits;
|
|
752
916
|
private readonly gasPremiumBps;
|
|
753
917
|
private readonly quoteNativeToFee;
|
|
918
|
+
private readonly bundlerClient;
|
|
919
|
+
private readonly metrics;
|
|
754
920
|
private cachedFee;
|
|
755
921
|
private cacheExpiresAt;
|
|
756
|
-
private static readonly
|
|
922
|
+
private static readonly FEE_CACHE_TTL_MS;
|
|
757
923
|
constructor(config: FeeManagerConfig);
|
|
758
924
|
/**
|
|
759
|
-
* Estimate the fee
|
|
760
|
-
* next sponsored UserOp:
|
|
925
|
+
* Estimate the operator fee for the next sponsored UserOp.
|
|
761
926
|
*
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
* fee = quoteNativeToFee(withPremium)
|
|
927
|
+
* Without `opts` → legacy path: `gasUnits × gasPrice × premium →
|
|
928
|
+
* quoteNativeToFee`. Cached for 10 s to absorb bursts.
|
|
765
929
|
*
|
|
766
|
-
*
|
|
767
|
-
*
|
|
768
|
-
*
|
|
930
|
+
* With `opts` AND `bundlerClient` → estimator path. Each call may
|
|
931
|
+
* hit a different bundler-cached result; the SDK does NOT add its
|
|
932
|
+
* own value cache because the estimator's cache TTL is the source
|
|
933
|
+
* of truth for "how long is this estimate good for".
|
|
769
934
|
*/
|
|
770
|
-
estimateGasFee(): Promise<bigint>;
|
|
935
|
+
estimateGasFee(opts?: EstimateGasFeeOptions): Promise<bigint>;
|
|
936
|
+
/** Manually purge the legacy 10s fee cache. */
|
|
937
|
+
invalidateCache(): void;
|
|
938
|
+
private resolveGasUnits;
|
|
939
|
+
private safeEmit;
|
|
771
940
|
}
|
|
772
941
|
|
|
773
942
|
/** Decoded Transfer(from=0x0 → to) event used to finalize a mint. */
|
|
@@ -1483,6 +1652,43 @@ declare class IssuerApiHandlers {
|
|
|
1483
1652
|
private requireSupportedToken;
|
|
1484
1653
|
}
|
|
1485
1654
|
|
|
1655
|
+
/**
|
|
1656
|
+
* Resolves the EIP-712 domain `name` for a PointToken. Used by handlers
|
|
1657
|
+
* (PTClaimHandler / PTRedeemHandler) that sign requests for multiple
|
|
1658
|
+
* PointTokens within the same issuer backend.
|
|
1659
|
+
*
|
|
1660
|
+
* Resolution order per address:
|
|
1661
|
+
* 1. Cache hit → return immediately (no RPC)
|
|
1662
|
+
* 2. Static override map (config.overrides) → cache + return
|
|
1663
|
+
* 3. On-chain `name()` lookup → cache + return
|
|
1664
|
+
*
|
|
1665
|
+
* Cache is per-instance — share one resolver across handlers so mint +
|
|
1666
|
+
* redeem paths amortise the same set of lookups.
|
|
1667
|
+
*
|
|
1668
|
+
* Why the override map: production issuers often know their PTs at
|
|
1669
|
+
* boot (env / DB) and want to avoid RPC quota churn + tolerate transient
|
|
1670
|
+
* RPC failures. The on-chain fallback handles ad-hoc PTs not in the map
|
|
1671
|
+
* (e.g. newly deployed during the process lifetime).
|
|
1672
|
+
*/
|
|
1673
|
+
interface PointTokenDomainResolverConfig {
|
|
1674
|
+
provider: PublicClient;
|
|
1675
|
+
/**
|
|
1676
|
+
* Optional pre-configured map — checksummed (or lowercased) PointToken
|
|
1677
|
+
* address → ERC-20 `name()` value. When a PT's address is in this map,
|
|
1678
|
+
* the resolver short-circuits without an RPC call.
|
|
1679
|
+
*/
|
|
1680
|
+
overrides?: Record<string, string>;
|
|
1681
|
+
}
|
|
1682
|
+
declare class PointTokenDomainResolver {
|
|
1683
|
+
private readonly provider;
|
|
1684
|
+
private readonly overrides;
|
|
1685
|
+
private readonly cache;
|
|
1686
|
+
constructor(config: PointTokenDomainResolverConfig);
|
|
1687
|
+
resolve(pointTokenAddress: Address): Promise<string>;
|
|
1688
|
+
/** Invalidate one address (after deploy / proxy upgrade) or all. */
|
|
1689
|
+
invalidate(pointTokenAddress?: Address): void;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1486
1692
|
/**
|
|
1487
1693
|
* Reverse flow — user-initiated PT redeem.
|
|
1488
1694
|
*
|
|
@@ -1512,22 +1718,20 @@ interface PTRedeemHandlerConfig {
|
|
|
1512
1718
|
ledger: IPointLedger;
|
|
1513
1719
|
relayService: RelayService;
|
|
1514
1720
|
provider: PublicClient;
|
|
1515
|
-
/** PointToken contract address (chain-specific). */
|
|
1516
|
-
pointTokenAddress: Address;
|
|
1517
1721
|
/** BatchExecutor delegation target (chain-specific). */
|
|
1518
1722
|
batchExecutorAddress: Address;
|
|
1519
1723
|
/** Chain id — used for the BurnRequest EIP-712 domain. */
|
|
1520
1724
|
chainId: number;
|
|
1521
1725
|
/**
|
|
1522
|
-
* EIP-712 domain
|
|
1523
|
-
*
|
|
1524
|
-
*
|
|
1525
|
-
*
|
|
1726
|
+
* Resolver for the EIP-712 domain `name` (= PointToken.name() on-chain).
|
|
1727
|
+
* Required because mint/redeem now route the `pointTokenAddress` per
|
|
1728
|
+
* request — the handler can't bind a single domain at construction.
|
|
1729
|
+
* Pass a shared resolver instance so mint + redeem amortise the same
|
|
1730
|
+
* cache. The handler always uses `pointTokenAddress` as the EIP-712
|
|
1731
|
+
* `verifyingContract` — no override (per-PT domain separator is
|
|
1732
|
+
* isolated by contract address).
|
|
1526
1733
|
*/
|
|
1527
|
-
|
|
1528
|
-
name: string;
|
|
1529
|
-
verifyingContract?: Address;
|
|
1530
|
-
};
|
|
1734
|
+
domainResolver: PointTokenDomainResolver;
|
|
1531
1735
|
/**
|
|
1532
1736
|
* Issuer burner signer wallet — signs the `BurnRequest` EIP-712.
|
|
1533
1737
|
* Must be whitelisted via `PointToken.addBurner(signerAddr)` at
|
|
@@ -1570,6 +1774,10 @@ interface PTRedeemRequest {
|
|
|
1570
1774
|
authenticatedAddress: Address;
|
|
1571
1775
|
userAddress: Address;
|
|
1572
1776
|
amount: bigint;
|
|
1777
|
+
/** PointToken contract to redeem. The handler resolves the EIP-712
|
|
1778
|
+
* domain (name + verifyingContract) from this address via the
|
|
1779
|
+
* configured `domainResolver`. */
|
|
1780
|
+
pointTokenAddress: Address;
|
|
1573
1781
|
/** ERC-4337 account nonce for the user's EOA. */
|
|
1574
1782
|
aaNonce: bigint;
|
|
1575
1783
|
/**
|
|
@@ -1637,10 +1845,9 @@ declare class PTRedeemHandler {
|
|
|
1637
1845
|
private readonly relayService;
|
|
1638
1846
|
private readonly provider;
|
|
1639
1847
|
private readonly feeService?;
|
|
1640
|
-
private readonly pointTokenAddress;
|
|
1641
1848
|
private readonly batchExecutorAddress;
|
|
1642
1849
|
private readonly chainId;
|
|
1643
|
-
private readonly
|
|
1850
|
+
private readonly domainResolver;
|
|
1644
1851
|
private readonly burnerSignerWallet;
|
|
1645
1852
|
private readonly redeemLockDurationMs;
|
|
1646
1853
|
private readonly signatureDeadlineSeconds;
|
|
@@ -2355,11 +2562,14 @@ interface PTClaimHandlerConfig {
|
|
|
2355
2562
|
/** Issuer minter signer wallet — passed through to RelayService.prepareMint. */
|
|
2356
2563
|
issuerSignerWallet: WalletClient;
|
|
2357
2564
|
/**
|
|
2358
|
-
* EIP-712 domain `name`
|
|
2359
|
-
*
|
|
2360
|
-
* the
|
|
2565
|
+
* Resolver for the EIP-712 domain `name` (= PointToken.name() on-chain).
|
|
2566
|
+
* Required because mint routes the `pointTokenAddress` per request —
|
|
2567
|
+
* the handler can't bind a single domain at construction. Pass a
|
|
2568
|
+
* shared resolver instance so mint + redeem amortise the same cache.
|
|
2569
|
+
* `chainId` + `verifyingContract` are derived from the request's
|
|
2570
|
+
* `chainId` + `pointTokenAddress` respectively.
|
|
2361
2571
|
*/
|
|
2362
|
-
|
|
2572
|
+
domainResolver: PointTokenDomainResolver;
|
|
2363
2573
|
/** Optional — when wired, used to estimate the PT gas-reimbursement fee. */
|
|
2364
2574
|
feeService?: FeeManager;
|
|
2365
2575
|
/** Optional — pre-validates issuer status + cap before locking balance. */
|
|
@@ -2927,6 +3137,7 @@ declare class IssuerApiAdapter {
|
|
|
2927
3137
|
redeem(input: {
|
|
2928
3138
|
authenticatedAddress: Address;
|
|
2929
3139
|
chainId: number;
|
|
3140
|
+
pointTokenAddress: Address;
|
|
2930
3141
|
amount: bigint;
|
|
2931
3142
|
aaNonce: bigint;
|
|
2932
3143
|
}): Promise<RedeemDto>;
|
|
@@ -3487,4 +3698,4 @@ declare class MemoryRedemptionHistoryStore implements IRedemptionHistoryStore {
|
|
|
3487
3698
|
|
|
3488
3699
|
declare const PAFI_ISSUER_SDK_VERSION: string;
|
|
3489
3700
|
|
|
3490
|
-
export { AdapterMisconfiguredError, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiRedemptionEvaluateRequest, type ApiRedemptionEvaluateResponse, type ApiRedemptionPreviewRequest, type ApiRedemptionPreviewResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BundlerNotConfiguredError, BundlerRejectedError, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type BurnStatusParams, type BurnStatusResponse, type ClaimDto, type ConfigDto, ConfigurationError, DEFAULT_REDEMPTION_POLICY, type DecodedCallDto, DefaultPolicyEngine, type DefaultPolicyEngineOptions, type DelegatePrepareDto, type DelegateStatusDto, type EvaluateInput, FeeManager, type FeeManagerConfig, type FetchFailureReason, type FetchResult, type GasFeeDto, type HandleDelegateSubmitParams, type HandleDelegateSubmitResult, type HandleMobilePrepareParams, type HandleMobilePrepareResult, type HandleMobileSubmitParams, type IIndexerCursorStore, type IPendingUserOpStore, type IPointLedger, type IPolicyEngine, type IRateLimiter, type IRedemptionHistoryStore, type ISessionStore, InMemoryCursorStore, IssuerApiAdapter, type IssuerApiAdapterConfig, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerRegistryRecord, type IssuerService, type IssuerServiceConfig, IssuerStateError, IssuerStateValidator, LockNotFoundError, type LockedMintRequest, type LoginResult, MemoryPendingUserOpStore, MemoryRateLimiter, MemoryRedemptionHistoryStore, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintStatusParams, type MintStatusResponse, type MintingStatus, type MobilePrepareDto, type MobileSubmitDto, type NativePtQuoterConfig, NonceManager, NoopRateLimiter, PAFI_ISSUER_SDK_VERSION, PTClaimError, PTClaimHandler, type PTClaimHandlerConfig, type PTClaimRequest, type PTClaimResponse, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, type PaymasterGasEstimates, type PendingCredit, type PendingUserOpEntry, PendingUserOpForbiddenError, PendingUserOpNotFoundError, type PerpDepositDto, PerpDepositError, PerpDepositHandler, type PerpDepositHandlerConfig, type PerpDepositRequest, type PerpDepositResponse, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, PolicyProvider, type PolicyProviderConfig, type PoolsDto, type PoolsProvider, type PreValidateMintResult, type PrepareBurnParams, type PrepareMintParams, type PrepareMobileUserOpParams, type PrepareMobileUserOpResult, type PreparedUserOp, REDEMPTION_HISTORY_WINDOW_SEC, type RateLimitAction, type RateLimiterConfig, type RedeemDto, type RedeemPrepareDto, RedemptionService, type RedemptionServiceConfig, RelayError, type RelayErrorCode, RelayService, type RelayUserOpParams, type RelayUserOpRequest, type RelayUserOpResponse, type RequestPaymasterParams, type ResolvedPolicy, type RetryConfig, type SdkErrorBody, type SdkErrorMapperFactories, type SdkErrorStatus, type SerializedUserOpTypedData, type Session, SettlementClient, type SettlementClientConfig, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, type UserDto, type UserHistory, applyPaymasterGasEstimates, authenticateRequest, buildSdkErrorBody, createIssuerService, createNativePtQuoter, createSdkErrorMapper, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider, defaultPolicyFor, evaluateRedemption, handleClaimStatus, handleDelegateSubmit, handleMobilePrepare, handleMobileSubmit, handleRedeemStatus, mergePaymasterFields, prepareMobileUserOp, relayUserOp, requestPaymaster, serializeEntryToJsonRpc, serializeUserOpTypedData };
|
|
3701
|
+
export { AdapterMisconfiguredError, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiRedemptionEvaluateRequest, type ApiRedemptionEvaluateResponse, type ApiRedemptionPreviewRequest, type ApiRedemptionPreviewResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, type BundlerEstimatorClient, BundlerNotConfiguredError, BundlerRejectedError, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type BurnStatusParams, type BurnStatusResponse, type ClaimDto, type ConfigDto, ConfigurationError, DEFAULT_REDEMPTION_POLICY, type DecodedCallDto, DefaultPolicyEngine, type DefaultPolicyEngineOptions, type DelegatePrepareDto, type DelegateStatusDto, type EstimateGasFeeOptions, type EvaluateInput, FeeManager, type FeeManagerConfig, type FeeManagerMetrics, type FetchFailureReason, type FetchImpl, type FetchResult, type GasFeeDto, type GasFeeSource, type HandleDelegateSubmitParams, type HandleDelegateSubmitResult, type HandleMobilePrepareParams, type HandleMobilePrepareResult, type HandleMobileSubmitParams, type IIndexerCursorStore, type IPendingUserOpStore, type IPointLedger, type IPolicyEngine, type IRateLimiter, type IRedemptionHistoryStore, type ISessionStore, InMemoryCursorStore, IssuerApiAdapter, type IssuerApiAdapterConfig, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerRegistryRecord, type IssuerService, type IssuerServiceConfig, IssuerStateError, IssuerStateValidator, LockNotFoundError, type LockedMintRequest, type LoginResult, MemoryPendingUserOpStore, MemoryRateLimiter, MemoryRedemptionHistoryStore, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintStatusParams, type MintStatusResponse, type MintingStatus, type MobilePrepareDto, type MobileSubmitDto, type NativePtQuoterConfig, NonceManager, NoopRateLimiter, PAFI_ISSUER_SDK_VERSION, PTClaimError, PTClaimHandler, type PTClaimHandlerConfig, type PTClaimRequest, type PTClaimResponse, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, type PafiEstimatorClientConfig, PafiEstimatorHttpError, type PaymasterGasEstimates, type PendingCredit, type PendingUserOpEntry, PendingUserOpForbiddenError, PendingUserOpNotFoundError, type PerpDepositDto, PerpDepositError, PerpDepositHandler, type PerpDepositHandlerConfig, type PerpDepositRequest, type PerpDepositResponse, PointIndexer, type PointIndexerConfig, PointTokenDomainResolver, type PointTokenDomainResolverConfig, type PolicyDecision, type PolicyEvalRequest, PolicyProvider, type PolicyProviderConfig, type PoolsDto, type PoolsProvider, type PreValidateMintResult, type PrepareBurnParams, type PrepareMintParams, type PrepareMobileUserOpParams, type PrepareMobileUserOpResult, type PreparedUserOp, type PreviewBurnParams, type PreviewMintParams, REDEMPTION_HISTORY_WINDOW_SEC, type RateLimitAction, type RateLimiterConfig, type RedeemDto, type RedeemPrepareDto, RedemptionService, type RedemptionServiceConfig, RelayError, type RelayErrorCode, RelayService, type RelayUserOpParams, type RelayUserOpRequest, type RelayUserOpResponse, type RequestPaymasterParams, type ResolvedPolicy, type RetryConfig, type SdkErrorBody, type SdkErrorMapperFactories, type SdkErrorStatus, type SerializedUserOpTypedData, type Session, SettlementClient, type SettlementClientConfig, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, type UserDto, type UserHistory, applyPaymasterGasEstimates, authenticateRequest, buildSdkErrorBody, createIssuerService, createNativePtQuoter, createPafiEstimatorClient, createSdkErrorMapper, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider, defaultPolicyFor, evaluateRedemption, handleClaimStatus, handleDelegateSubmit, handleMobilePrepare, handleMobileSubmit, handleRedeemStatus, mergePaymasterFields, prepareMobileUserOp, relayUserOp, requestPaymaster, serializeEntryToJsonRpc, serializeUserOpTypedData };
|