@pafi-dev/core 0.9.1 → 0.9.3
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/abi/index.cjs +3 -3
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.js +3 -3
- package/dist/{chunk-JH6XFHES.cjs → chunk-2EBPG75P.cjs} +32 -6
- package/dist/chunk-2EBPG75P.cjs.map +1 -0
- package/dist/{chunk-57KR35JW.cjs → chunk-C7VB6WTL.cjs} +636 -2
- package/dist/chunk-C7VB6WTL.cjs.map +1 -0
- package/dist/{chunk-JWZTY5UL.js → chunk-CWH4KOUW.js} +1 -635
- package/dist/chunk-CWH4KOUW.js.map +1 -0
- package/dist/{chunk-FHFZ2F34.js → chunk-LF5GIN5P.js} +636 -2
- package/dist/chunk-LF5GIN5P.js.map +1 -0
- package/dist/{chunk-G7NS4TS3.cjs → chunk-MIQA46E3.cjs} +2 -636
- package/dist/chunk-MIQA46E3.cjs.map +1 -0
- package/dist/{chunk-PWQWNHGI.js → chunk-RFKS5BHE.js} +29 -3
- package/dist/chunk-RFKS5BHE.js.map +1 -0
- package/dist/contract/index.cjs +7 -3
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +20 -1
- package/dist/contract/index.d.ts +20 -1
- package/dist/contract/index.js +6 -2
- package/dist/index.cjs +20 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-57KR35JW.cjs.map +0 -1
- package/dist/chunk-FHFZ2F34.js.map +0 -1
- package/dist/chunk-G7NS4TS3.cjs.map +0 -1
- package/dist/chunk-JH6XFHES.cjs.map +0 -1
- package/dist/chunk-JWZTY5UL.js.map +0 -1
- package/dist/chunk-PWQWNHGI.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { P as PoolKey, C as ChainConfig, a as PafiSDKConfig, b as PointTokenDoma
|
|
|
3
3
|
export { B as BestQuote, c as BlackoutWindow, d as BurnRequest, e as ExactOutputBestQuote, f as ExactOutputQuoteResult, I as Issuer, g as PathKey, Q as QuoteResult, h as Recipient, i as RedemptionDecision, j as RedemptionDenial, k as RedemptionDenialCode, l as RedemptionPolicy, m as RedemptionPolicySource, n as RedemptionPreview, T as TokenCap } from './types-DWLZNgcw.cjs';
|
|
4
4
|
export { pointTokenAbi as POINT_TOKEN_V2_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v4QuoterAbi } from './abi/index.cjs';
|
|
5
5
|
export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, buildReceiverConsentTypedData, signBurnRequest, signMintRequest, signReceiverConsent, verifyBurnRequest, verifyMintRequest, verifyReceiverConsent } from './eip712/index.cjs';
|
|
6
|
-
export { getBurnRequestNonce, getIssuer, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.cjs';
|
|
6
|
+
export { getBurnRequestNonce, getIssuer, getMintFeeBps, getMintFeeRecipients, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.cjs';
|
|
7
7
|
import { LoginMessageParams } from './auth/index.cjs';
|
|
8
8
|
export { BuildSponsorAuthParams, BuiltSponsorAuth, SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, SponsorAuthPayload, SponsorAuthVerifyResult, VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, getSponsorAuthDomainAnchor, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth } from './auth/index.cjs';
|
|
9
9
|
|
|
@@ -1631,9 +1631,12 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
|
|
|
1631
1631
|
*
|
|
1632
1632
|
* ## What lives where
|
|
1633
1633
|
*
|
|
1634
|
-
* pointToken —
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1634
|
+
* pointToken — DEAD legacy field (per-issuer, not chain-level).
|
|
1635
|
+
* Each issuer's clone is configured via env or
|
|
1636
|
+
* resolved from PointTokenFactory at runtime. Set
|
|
1637
|
+
* to a deterministic dead address so misuse fails
|
|
1638
|
+
* loudly. Will be removed when downstream consumers
|
|
1639
|
+
* stop referencing it.
|
|
1637
1640
|
* batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
|
|
1638
1641
|
* usdt — MockERC20 used by Uniswap pools
|
|
1639
1642
|
* issuerRegistry — registry of all issuers on this chain
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { P as PoolKey, C as ChainConfig, a as PafiSDKConfig, b as PointTokenDoma
|
|
|
3
3
|
export { B as BestQuote, c as BlackoutWindow, d as BurnRequest, e as ExactOutputBestQuote, f as ExactOutputQuoteResult, I as Issuer, g as PathKey, Q as QuoteResult, h as Recipient, i as RedemptionDecision, j as RedemptionDenial, k as RedemptionDenialCode, l as RedemptionPolicy, m as RedemptionPolicySource, n as RedemptionPreview, T as TokenCap } from './types-DWLZNgcw.js';
|
|
4
4
|
export { pointTokenAbi as POINT_TOKEN_V2_ABI, erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v4QuoterAbi } from './abi/index.js';
|
|
5
5
|
export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, buildReceiverConsentTypedData, signBurnRequest, signMintRequest, signReceiverConsent, verifyBurnRequest, verifyMintRequest, verifyReceiverConsent } from './eip712/index.js';
|
|
6
|
-
export { getBurnRequestNonce, getIssuer, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.js';
|
|
6
|
+
export { getBurnRequestNonce, getIssuer, getMintFeeBps, getMintFeeRecipients, getMintRequestNonce, getPointTokenBalance, getPointTokenIssuer, getPointTokenIssuerAddress, getReceiverConsentNonce, getTokenName, isActiveIssuer, isMinter, issuerRegistryGetIssuerFlatAbi, verifyMintCap } from './contract/index.js';
|
|
7
7
|
import { LoginMessageParams } from './auth/index.js';
|
|
8
8
|
export { BuildSponsorAuthParams, BuiltSponsorAuth, SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, SponsorAuthPayload, SponsorAuthVerifyResult, VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, getSponsorAuthDomainAnchor, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth } from './auth/index.js';
|
|
9
9
|
|
|
@@ -1631,9 +1631,12 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
|
|
|
1631
1631
|
*
|
|
1632
1632
|
* ## What lives where
|
|
1633
1633
|
*
|
|
1634
|
-
* pointToken —
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1634
|
+
* pointToken — DEAD legacy field (per-issuer, not chain-level).
|
|
1635
|
+
* Each issuer's clone is configured via env or
|
|
1636
|
+
* resolved from PointTokenFactory at runtime. Set
|
|
1637
|
+
* to a deterministic dead address so misuse fails
|
|
1638
|
+
* loudly. Will be removed when downstream consumers
|
|
1639
|
+
* stop referencing it.
|
|
1637
1640
|
* batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
|
|
1638
1641
|
* usdt — MockERC20 used by Uniswap pools
|
|
1639
1642
|
* issuerRegistry — registry of all issuers on this chain
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
erc20Abi,
|
|
3
|
-
mintFeeWrapperAbi,
|
|
4
3
|
permit2Abi,
|
|
5
4
|
pointTokenFactoryAbi,
|
|
6
5
|
universalRouterAbi,
|
|
7
6
|
v4QuoterAbi
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CWH4KOUW.js";
|
|
9
8
|
import {
|
|
10
9
|
SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET,
|
|
11
10
|
SPONSOR_AUTH_DOMAIN_NAME,
|
|
@@ -26,6 +25,8 @@ import {
|
|
|
26
25
|
getBurnRequestNonce,
|
|
27
26
|
getIssuer,
|
|
28
27
|
getIssuer2,
|
|
28
|
+
getMintFeeBps,
|
|
29
|
+
getMintFeeRecipients,
|
|
29
30
|
getMintRequestNonce,
|
|
30
31
|
getPointTokenBalance,
|
|
31
32
|
getPointTokenIssuer,
|
|
@@ -35,11 +36,12 @@ import {
|
|
|
35
36
|
isMinter,
|
|
36
37
|
issuerRegistryGetIssuerFlatAbi,
|
|
37
38
|
verifyMintCap
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RFKS5BHE.js";
|
|
39
40
|
import {
|
|
40
41
|
issuerRegistryAbi,
|
|
42
|
+
mintFeeWrapperAbi,
|
|
41
43
|
mintingOracleAbi
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LF5GIN5P.js";
|
|
43
45
|
import {
|
|
44
46
|
COMMON_POOLS,
|
|
45
47
|
COMMON_TOKENS,
|
|
@@ -808,11 +810,14 @@ var CONTRACT_ADDRESSES = {
|
|
|
808
810
|
// mockUsdt: MockERC20 0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382
|
|
809
811
|
// batchExecutor: Pimlico Simple7702 0xe6Cae83BdE06E4c305530e199D7217f42808555B (unchanged from v1.5)
|
|
810
812
|
//
|
|
811
|
-
// pointToken:
|
|
812
|
-
//
|
|
813
|
-
//
|
|
814
|
-
//
|
|
815
|
-
//
|
|
813
|
+
// pointToken: PER-ISSUER, not chain-level. Each issuer deploys their
|
|
814
|
+
// own clone via PointTokenFactory.createToken() and tracks the address
|
|
815
|
+
// separately (env var, DB, or factory readout). This field is a
|
|
816
|
+
// historical leftover from v1.4 single-issuer days and has no SDK
|
|
817
|
+
// consumer — kept as dead-zero so any code that mistakenly reads it
|
|
818
|
+
// fails loudly instead of silently routing to a stale token.
|
|
819
|
+
// Known clones (informational, NOT to be used as a default):
|
|
820
|
+
// gg56 (Test Point / TPT) — 0x855c2046AD49AcF9B3B32557176FfCB1a1A38A22
|
|
816
821
|
8453: {
|
|
817
822
|
pointToken: PLACEHOLDER_DEAD("dead"),
|
|
818
823
|
batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
|
|
@@ -1635,6 +1640,8 @@ export {
|
|
|
1635
1640
|
getContractAddresses,
|
|
1636
1641
|
getDummySignatureFor7702,
|
|
1637
1642
|
getIssuer2 as getIssuer,
|
|
1643
|
+
getMintFeeBps,
|
|
1644
|
+
getMintFeeRecipients,
|
|
1638
1645
|
getMintRequestNonce,
|
|
1639
1646
|
getPafiServiceUrls,
|
|
1640
1647
|
getPafiWebModalAdapter,
|