@pafi-dev/core 0.9.4 → 0.9.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/{chunk-2EBPG75P.cjs → chunk-BNO5SM25.cjs} +18 -9
- package/dist/chunk-BNO5SM25.cjs.map +1 -0
- package/dist/{chunk-RFKS5BHE.js → chunk-Y5EYH2SQ.js} +17 -8
- package/dist/chunk-Y5EYH2SQ.js.map +1 -0
- package/dist/contract/index.cjs +4 -2
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +16 -7
- package/dist/contract/index.d.ts +16 -7
- package/dist/contract/index.js +3 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2EBPG75P.cjs.map +0 -1
- package/dist/chunk-RFKS5BHE.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, getMintFeeBps, getMintFeeRecipients, 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, getTokenCap, 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
|
|
|
@@ -1968,8 +1968,17 @@ declare function getPafiWebModalAdapter(): PafiWebModalAdapter | null;
|
|
|
1968
1968
|
*/
|
|
1969
1969
|
declare function openPafiWebModal(url: string, options?: ModalOpenOptions): Promise<PafiWebModalHandle>;
|
|
1970
1970
|
|
|
1971
|
-
/**
|
|
1972
|
-
|
|
1971
|
+
/**
|
|
1972
|
+
* PAFI-hosted subgraph endpoint — single source of truth across all SDK packages.
|
|
1973
|
+
*
|
|
1974
|
+
* v3 (deployed 2026-05-08) indexes the v1.6 contract redeploy starting at
|
|
1975
|
+
* block 45683465 — IssuerRegistry/PointTokenFactory/MintingOracle/MintFeeWrapper
|
|
1976
|
+
* (single global wrapper instance, replaces v1.5 PAFIHook). Schema additions:
|
|
1977
|
+
* `MintFeeWrapper`, `MintFeeConfig`, `FeeRecipient`, `MintWithFeeEvent`,
|
|
1978
|
+
* `FeeDistribution`. v2 endpoint is kept live as rollback for ~1 week before
|
|
1979
|
+
* removal.
|
|
1980
|
+
*/
|
|
1981
|
+
declare const PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-v3";
|
|
1973
1982
|
/**
|
|
1974
1983
|
* Fetch the Uniswap V4 pool(s) for a PAFI PointToken from the subgraph.
|
|
1975
1984
|
*
|
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, getMintFeeBps, getMintFeeRecipients, 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, getTokenCap, 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
|
|
|
@@ -1968,8 +1968,17 @@ declare function getPafiWebModalAdapter(): PafiWebModalAdapter | null;
|
|
|
1968
1968
|
*/
|
|
1969
1969
|
declare function openPafiWebModal(url: string, options?: ModalOpenOptions): Promise<PafiWebModalHandle>;
|
|
1970
1970
|
|
|
1971
|
-
/**
|
|
1972
|
-
|
|
1971
|
+
/**
|
|
1972
|
+
* PAFI-hosted subgraph endpoint — single source of truth across all SDK packages.
|
|
1973
|
+
*
|
|
1974
|
+
* v3 (deployed 2026-05-08) indexes the v1.6 contract redeploy starting at
|
|
1975
|
+
* block 45683465 — IssuerRegistry/PointTokenFactory/MintingOracle/MintFeeWrapper
|
|
1976
|
+
* (single global wrapper instance, replaces v1.5 PAFIHook). Schema additions:
|
|
1977
|
+
* `MintFeeWrapper`, `MintFeeConfig`, `FeeRecipient`, `MintWithFeeEvent`,
|
|
1978
|
+
* `FeeDistribution`. v2 endpoint is kept live as rollback for ~1 week before
|
|
1979
|
+
* removal.
|
|
1980
|
+
*/
|
|
1981
|
+
declare const PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-v3";
|
|
1973
1982
|
/**
|
|
1974
1983
|
* Fetch the Uniswap V4 pool(s) for a PAFI PointToken from the subgraph.
|
|
1975
1984
|
*
|
package/dist/index.js
CHANGED
|
@@ -31,12 +31,13 @@ import {
|
|
|
31
31
|
getPointTokenBalance,
|
|
32
32
|
getPointTokenIssuer,
|
|
33
33
|
getReceiverConsentNonce,
|
|
34
|
+
getTokenCap,
|
|
34
35
|
getTokenName,
|
|
35
36
|
isActiveIssuer,
|
|
36
37
|
isMinter,
|
|
37
38
|
issuerRegistryGetIssuerFlatAbi,
|
|
38
39
|
verifyMintCap
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Y5EYH2SQ.js";
|
|
40
41
|
import {
|
|
41
42
|
issuerRegistryAbi,
|
|
42
43
|
mintFeeWrapperAbi,
|
|
@@ -1008,7 +1009,7 @@ import { parseAbi as parseAbi3 } from "viem";
|
|
|
1008
1009
|
|
|
1009
1010
|
// src/subgraph/pools.ts
|
|
1010
1011
|
import { isAddress } from "viem";
|
|
1011
|
-
var PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-
|
|
1012
|
+
var PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-v3";
|
|
1012
1013
|
var POOL_QUERY = `
|
|
1013
1014
|
query GetPoolForPointToken($id: ID!) {
|
|
1014
1015
|
pafiToken(id: $id) {
|
|
@@ -1651,6 +1652,7 @@ export {
|
|
|
1651
1652
|
getIssuer as getPointTokenIssuerAddress,
|
|
1652
1653
|
getReceiverConsentNonce,
|
|
1653
1654
|
getSponsorAuthDomainAnchor,
|
|
1655
|
+
getTokenCap,
|
|
1654
1656
|
getTokenName,
|
|
1655
1657
|
isActiveIssuer,
|
|
1656
1658
|
isDelegatedTo,
|