@pafi-dev/core 0.5.18 → 0.5.20
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/auth/index.cjs +4 -2
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +58 -1
- package/dist/auth/index.d.ts +58 -1
- package/dist/auth/index.js +3 -1
- package/dist/{chunk-W6VULMCO.js → chunk-QGXJLLKF.js} +26 -1
- package/dist/chunk-QGXJLLKF.js.map +1 -0
- package/dist/{chunk-FNJZUNK3.cjs → chunk-RZDG6SRR.cjs} +27 -2
- package/dist/chunk-RZDG6SRR.cjs.map +1 -0
- package/dist/index.cjs +194 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +191 -71
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-FNJZUNK3.cjs.map +0 -1
- package/dist/chunk-W6VULMCO.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkR6OFGVMPcjs = require('./chunk-R6OFGVMP.cjs');
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
@@ -9,10 +10,10 @@
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
var _chunkFNJZUNK3cjs = require('./chunk-FNJZUNK3.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
var _chunkRZDG6SRRcjs = require('./chunk-RZDG6SRR.cjs');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
@@ -624,6 +625,76 @@ async function sendWithPaymasterFallback(params) {
|
|
|
624
625
|
}
|
|
625
626
|
}
|
|
626
627
|
|
|
628
|
+
// src/fee/operatorFeeQuoter.ts
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
// src/subgraph/pools.ts
|
|
632
|
+
|
|
633
|
+
var PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-v2";
|
|
634
|
+
var POOL_QUERY = `
|
|
635
|
+
query GetPoolForPointToken($id: ID!) {
|
|
636
|
+
pafiToken(id: $id) {
|
|
637
|
+
id
|
|
638
|
+
pool {
|
|
639
|
+
id
|
|
640
|
+
feeTier
|
|
641
|
+
tickSpacing
|
|
642
|
+
hooks
|
|
643
|
+
token0 { id }
|
|
644
|
+
token1 { id }
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
`;
|
|
649
|
+
function sortCurrencies(a, b) {
|
|
650
|
+
return a.toLowerCase() < b.toLowerCase() ? [a, b] : [b, a];
|
|
651
|
+
}
|
|
652
|
+
async function fetchPafiPools(_chainId, pointTokenAddress, subgraphUrl = PAFI_SUBGRAPH_URL) {
|
|
653
|
+
let response;
|
|
654
|
+
try {
|
|
655
|
+
response = await fetch(subgraphUrl, {
|
|
656
|
+
method: "POST",
|
|
657
|
+
headers: { "Content-Type": "application/json" },
|
|
658
|
+
body: JSON.stringify({
|
|
659
|
+
query: POOL_QUERY,
|
|
660
|
+
variables: { id: pointTokenAddress.toLowerCase() }
|
|
661
|
+
})
|
|
662
|
+
});
|
|
663
|
+
} catch (err) {
|
|
664
|
+
console.warn("[fetchPafiPools] subgraph unreachable:", err.message);
|
|
665
|
+
return [];
|
|
666
|
+
}
|
|
667
|
+
if (!response.ok) {
|
|
668
|
+
console.warn(`[fetchPafiPools] subgraph returned ${response.status}`);
|
|
669
|
+
return [];
|
|
670
|
+
}
|
|
671
|
+
const json = await response.json();
|
|
672
|
+
if (json.errors && json.errors.length > 0) {
|
|
673
|
+
console.warn(
|
|
674
|
+
"[fetchPafiPools] subgraph errors:",
|
|
675
|
+
json.errors.map((e) => e.message).join("; ")
|
|
676
|
+
);
|
|
677
|
+
return [];
|
|
678
|
+
}
|
|
679
|
+
const pool = _optionalChain([json, 'access', _23 => _23.data, 'optionalAccess', _24 => _24.pafiToken, 'optionalAccess', _25 => _25.pool]);
|
|
680
|
+
if (!pool) return [];
|
|
681
|
+
if (!_viem.isAddress.call(void 0, pool.hooks) || !_viem.isAddress.call(void 0, pool.token0.id) || !_viem.isAddress.call(void 0, pool.token1.id) || !Number.isFinite(Number(pool.feeTier)) || !Number.isFinite(Number(pool.tickSpacing))) {
|
|
682
|
+
console.error("[fetchPafiPools] invalid pool data in subgraph response \u2014 skipping");
|
|
683
|
+
return [];
|
|
684
|
+
}
|
|
685
|
+
const [currency0, currency1] = sortCurrencies(
|
|
686
|
+
pool.token0.id,
|
|
687
|
+
pool.token1.id
|
|
688
|
+
);
|
|
689
|
+
return [{
|
|
690
|
+
currency0,
|
|
691
|
+
currency1,
|
|
692
|
+
fee: Number(pool.feeTier),
|
|
693
|
+
tickSpacing: Number(pool.tickSpacing),
|
|
694
|
+
hooks: pool.hooks
|
|
695
|
+
}];
|
|
696
|
+
}
|
|
697
|
+
|
|
627
698
|
// src/contracts/real/addresses.ts
|
|
628
699
|
var PLACEHOLDER_DEAD = (suffix) => `0x000000000000000000000000000000000000${suffix.toLowerCase().padStart(4, "0")}`;
|
|
629
700
|
var CONTRACT_ADDRESSES = {
|
|
@@ -679,6 +750,120 @@ function getContractAddresses(chainId) {
|
|
|
679
750
|
return addrs;
|
|
680
751
|
}
|
|
681
752
|
|
|
753
|
+
// src/fee/operatorFeeQuoter.ts
|
|
754
|
+
var CHAINLINK_ABI = _viem.parseAbi.call(void 0, [
|
|
755
|
+
"function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80)"
|
|
756
|
+
]);
|
|
757
|
+
var CHAINLINK_MAX_AGE_S = 3600n;
|
|
758
|
+
var POOL_PRICE_QUERY = `
|
|
759
|
+
query GetPoolPrice($id: ID!) {
|
|
760
|
+
pafiToken(id: $id) {
|
|
761
|
+
pool {
|
|
762
|
+
token0 { id }
|
|
763
|
+
token1 { id }
|
|
764
|
+
token0Price
|
|
765
|
+
token1Price
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
`;
|
|
770
|
+
var DEFAULT_GAS_UNITS = 500000n;
|
|
771
|
+
var DEFAULT_PREMIUM_BPS = 12e3;
|
|
772
|
+
var DEFAULT_USDT_DECIMALS = 6;
|
|
773
|
+
async function quoteOperatorFeePt(config) {
|
|
774
|
+
const {
|
|
775
|
+
provider,
|
|
776
|
+
chainId,
|
|
777
|
+
pointTokenAddress,
|
|
778
|
+
gasUnits = DEFAULT_GAS_UNITS,
|
|
779
|
+
premiumBps = DEFAULT_PREMIUM_BPS,
|
|
780
|
+
subgraphUrl = PAFI_SUBGRAPH_URL,
|
|
781
|
+
usdtDecimals = DEFAULT_USDT_DECIMALS,
|
|
782
|
+
fallbackEthPriceUsd = 3e3,
|
|
783
|
+
fallbackPtPriceUsdt = 0.1,
|
|
784
|
+
fetchImpl = globalThis.fetch
|
|
785
|
+
} = config;
|
|
786
|
+
const chainlinkFeedAddress = _nullishCoalesce(config.chainlinkFeedAddress, () => ( getContractAddresses(chainId).chainlinkEthUsd));
|
|
787
|
+
const gasPrice = await provider.getGasPrice();
|
|
788
|
+
const nativeCost = gasPrice * gasUnits;
|
|
789
|
+
const withPremium = nativeCost * BigInt(premiumBps) / 10000n;
|
|
790
|
+
const [ethPrice8dec, ptPerUsdt18dec] = await Promise.all([
|
|
791
|
+
getEthPrice8dec(provider, chainlinkFeedAddress, fallbackEthPriceUsd),
|
|
792
|
+
getPtPerUsdt18dec(
|
|
793
|
+
fetchImpl,
|
|
794
|
+
subgraphUrl,
|
|
795
|
+
pointTokenAddress,
|
|
796
|
+
fallbackPtPriceUsdt
|
|
797
|
+
)
|
|
798
|
+
]);
|
|
799
|
+
return withPremium * ethPrice8dec * ptPerUsdt18dec / 10n ** 26n;
|
|
800
|
+
}
|
|
801
|
+
async function getEthPrice8dec(provider, feed, fallback) {
|
|
802
|
+
try {
|
|
803
|
+
const result = await provider.readContract({
|
|
804
|
+
address: feed,
|
|
805
|
+
abi: CHAINLINK_ABI,
|
|
806
|
+
functionName: "latestRoundData"
|
|
807
|
+
});
|
|
808
|
+
const answer = result[1];
|
|
809
|
+
const updatedAt = result[3];
|
|
810
|
+
if (answer <= 0n) throw new Error("Chainlink: non-positive price");
|
|
811
|
+
const ageS = BigInt(Math.floor(Date.now() / 1e3)) - updatedAt;
|
|
812
|
+
if (ageS > CHAINLINK_MAX_AGE_S) {
|
|
813
|
+
throw new Error(`Chainlink: price stale by ${ageS}s`);
|
|
814
|
+
}
|
|
815
|
+
return answer;
|
|
816
|
+
} catch (err) {
|
|
817
|
+
console.warn(
|
|
818
|
+
"[quoteOperatorFeePt] Chainlink unavailable, using fallback:",
|
|
819
|
+
err.message
|
|
820
|
+
);
|
|
821
|
+
return BigInt(Math.round(fallback * 1e8));
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fallbackPtPriceUsdt) {
|
|
825
|
+
try {
|
|
826
|
+
const response = await fetchImpl(subgraphUrl, {
|
|
827
|
+
method: "POST",
|
|
828
|
+
headers: { "Content-Type": "application/json" },
|
|
829
|
+
body: JSON.stringify({
|
|
830
|
+
query: POOL_PRICE_QUERY,
|
|
831
|
+
variables: { id: pointTokenAddress.toLowerCase() }
|
|
832
|
+
})
|
|
833
|
+
});
|
|
834
|
+
if (!response.ok) throw new Error(`subgraph HTTP ${response.status}`);
|
|
835
|
+
const json = await response.json();
|
|
836
|
+
if (_optionalChain([json, 'access', _26 => _26.errors, 'optionalAccess', _27 => _27.length])) {
|
|
837
|
+
throw new Error(json.errors.map((e) => e.message).join("; "));
|
|
838
|
+
}
|
|
839
|
+
const pool = _optionalChain([json, 'access', _28 => _28.data, 'optionalAccess', _29 => _29.pafiToken, 'optionalAccess', _30 => _30.pool]);
|
|
840
|
+
if (!pool) throw new Error("pafiToken or pool not found");
|
|
841
|
+
const isPtToken0 = pool.token0.id.toLowerCase() === pointTokenAddress.toLowerCase();
|
|
842
|
+
const priceStr = isPtToken0 ? pool.token0Price : pool.token1Price;
|
|
843
|
+
if (!priceStr || Number(priceStr) <= 0) {
|
|
844
|
+
throw new Error(`invalid pool price from subgraph: ${priceStr}`);
|
|
845
|
+
}
|
|
846
|
+
const raw = parseBigDecimalTo18(priceStr);
|
|
847
|
+
if (raw === 0n) {
|
|
848
|
+
throw new Error(`pool price parsed to zero: ${priceStr}`);
|
|
849
|
+
}
|
|
850
|
+
return 10n ** 24n / raw;
|
|
851
|
+
} catch (err) {
|
|
852
|
+
console.warn(
|
|
853
|
+
"[quoteOperatorFeePt] subgraph unavailable, using fallback:",
|
|
854
|
+
err.message
|
|
855
|
+
);
|
|
856
|
+
const ptPerUsdtHuman = 1 / fallbackPtPriceUsdt;
|
|
857
|
+
return parseBigDecimalTo18(ptPerUsdtHuman.toFixed(18));
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function parseBigDecimalTo18(s) {
|
|
861
|
+
const SCALE = 18;
|
|
862
|
+
const [whole = "0", frac = ""] = s.split(".");
|
|
863
|
+
const padded = (frac + "0".repeat(SCALE)).slice(0, SCALE);
|
|
864
|
+
return BigInt(whole + padded);
|
|
865
|
+
}
|
|
866
|
+
|
|
682
867
|
// src/contracts/real/batchExecutor.ts
|
|
683
868
|
var BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = getContractAddresses(8453).batchExecutor;
|
|
684
869
|
var BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = getContractAddresses(84532).batchExecutor;
|
|
@@ -696,8 +881,8 @@ function openWebPopup(url, options = {}) {
|
|
|
696
881
|
const width = _nullishCoalesce(options.width, () => ( DEFAULT_WIDTH));
|
|
697
882
|
const height = _nullishCoalesce(options.height, () => ( DEFAULT_HEIGHT));
|
|
698
883
|
const name = _nullishCoalesce(options.windowName, () => ( DEFAULT_NAME));
|
|
699
|
-
const screenW = _nullishCoalesce(_optionalChain([window, 'access',
|
|
700
|
-
const screenH = _nullishCoalesce(_optionalChain([window, 'access',
|
|
884
|
+
const screenW = _nullishCoalesce(_optionalChain([window, 'access', _31 => _31.screen, 'optionalAccess', _32 => _32.availWidth]), () => ( window.innerWidth));
|
|
885
|
+
const screenH = _nullishCoalesce(_optionalChain([window, 'access', _33 => _33.screen, 'optionalAccess', _34 => _34.availHeight]), () => ( window.innerHeight));
|
|
701
886
|
const left = Math.max(0, Math.floor((screenW - width) / 2));
|
|
702
887
|
const top = Math.max(0, Math.floor((screenH - height) / 2));
|
|
703
888
|
const features = [
|
|
@@ -730,7 +915,7 @@ function openWebPopup(url, options = {}) {
|
|
|
730
915
|
window.removeEventListener("message", messageListener);
|
|
731
916
|
messageListener = null;
|
|
732
917
|
}
|
|
733
|
-
_optionalChain([options, 'access',
|
|
918
|
+
_optionalChain([options, 'access', _35 => _35.onClose, 'optionalCall', _36 => _36()]);
|
|
734
919
|
};
|
|
735
920
|
pollId = setInterval(() => {
|
|
736
921
|
if (popup.closed) {
|
|
@@ -804,73 +989,6 @@ async function openPafiWebModal(url, options = {}) {
|
|
|
804
989
|
);
|
|
805
990
|
}
|
|
806
991
|
|
|
807
|
-
// src/subgraph/pools.ts
|
|
808
|
-
|
|
809
|
-
var PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-v2";
|
|
810
|
-
var POOL_QUERY = `
|
|
811
|
-
query GetPoolForPointToken($id: ID!) {
|
|
812
|
-
pafiToken(id: $id) {
|
|
813
|
-
id
|
|
814
|
-
pool {
|
|
815
|
-
id
|
|
816
|
-
feeTier
|
|
817
|
-
tickSpacing
|
|
818
|
-
hooks
|
|
819
|
-
token0 { id }
|
|
820
|
-
token1 { id }
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
`;
|
|
825
|
-
function sortCurrencies(a, b) {
|
|
826
|
-
return a.toLowerCase() < b.toLowerCase() ? [a, b] : [b, a];
|
|
827
|
-
}
|
|
828
|
-
async function fetchPafiPools(_chainId, pointTokenAddress, subgraphUrl = PAFI_SUBGRAPH_URL) {
|
|
829
|
-
let response;
|
|
830
|
-
try {
|
|
831
|
-
response = await fetch(subgraphUrl, {
|
|
832
|
-
method: "POST",
|
|
833
|
-
headers: { "Content-Type": "application/json" },
|
|
834
|
-
body: JSON.stringify({
|
|
835
|
-
query: POOL_QUERY,
|
|
836
|
-
variables: { id: pointTokenAddress.toLowerCase() }
|
|
837
|
-
})
|
|
838
|
-
});
|
|
839
|
-
} catch (err) {
|
|
840
|
-
console.warn("[fetchPafiPools] subgraph unreachable:", err.message);
|
|
841
|
-
return [];
|
|
842
|
-
}
|
|
843
|
-
if (!response.ok) {
|
|
844
|
-
console.warn(`[fetchPafiPools] subgraph returned ${response.status}`);
|
|
845
|
-
return [];
|
|
846
|
-
}
|
|
847
|
-
const json = await response.json();
|
|
848
|
-
if (json.errors && json.errors.length > 0) {
|
|
849
|
-
console.warn(
|
|
850
|
-
"[fetchPafiPools] subgraph errors:",
|
|
851
|
-
json.errors.map((e) => e.message).join("; ")
|
|
852
|
-
);
|
|
853
|
-
return [];
|
|
854
|
-
}
|
|
855
|
-
const pool = _optionalChain([json, 'access', _29 => _29.data, 'optionalAccess', _30 => _30.pafiToken, 'optionalAccess', _31 => _31.pool]);
|
|
856
|
-
if (!pool) return [];
|
|
857
|
-
if (!_viem.isAddress.call(void 0, pool.hooks) || !_viem.isAddress.call(void 0, pool.token0.id) || !_viem.isAddress.call(void 0, pool.token1.id) || !Number.isFinite(Number(pool.feeTier)) || !Number.isFinite(Number(pool.tickSpacing))) {
|
|
858
|
-
console.error("[fetchPafiPools] invalid pool data in subgraph response \u2014 skipping");
|
|
859
|
-
return [];
|
|
860
|
-
}
|
|
861
|
-
const [currency0, currency1] = sortCurrencies(
|
|
862
|
-
pool.token0.id,
|
|
863
|
-
pool.token1.id
|
|
864
|
-
);
|
|
865
|
-
return [{
|
|
866
|
-
currency0,
|
|
867
|
-
currency1,
|
|
868
|
-
fee: Number(pool.feeTier),
|
|
869
|
-
tickSpacing: Number(pool.tickSpacing),
|
|
870
|
-
hooks: pool.hooks
|
|
871
|
-
}];
|
|
872
|
-
}
|
|
873
|
-
|
|
874
992
|
// src/index.ts
|
|
875
993
|
var PafiSDK = class {
|
|
876
994
|
|
|
@@ -1078,7 +1196,7 @@ var PafiSDK = class {
|
|
|
1078
1196
|
if (!account) {
|
|
1079
1197
|
throw new (0, _chunkJJ2LGENOcjs.ConfigurationError)("signer has no account attached");
|
|
1080
1198
|
}
|
|
1081
|
-
return
|
|
1199
|
+
return _chunkRZDG6SRRcjs.createLoginMessage.call(void 0, { ...params, address: account.address, chainId });
|
|
1082
1200
|
}
|
|
1083
1201
|
/** Sign a login message string with the current signer (personal_sign) */
|
|
1084
1202
|
async signLoginMessage(message) {
|
|
@@ -1223,5 +1341,7 @@ var PafiSDK = class {
|
|
|
1223
1341
|
|
|
1224
1342
|
|
|
1225
1343
|
|
|
1226
|
-
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
exports.ApiError = _chunkJJ2LGENOcjs.ApiError; exports.BATCH_EXECUTOR_7702_IMPL = BATCH_EXECUTOR_7702_IMPL; exports.BATCH_EXECUTOR_ABI = _chunkJJ2LGENOcjs.BATCH_EXECUTOR_ABI; exports.BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = BATCH_EXECUTOR_ADDRESS_BASE_MAINNET; exports.BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA; exports.BROKER_HASHES = BROKER_HASHES; exports.COMMON_POOLS = _chunkX2JZFK4Ccjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunkX2JZFK4Ccjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = _chunkJJ2LGENOcjs.ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunkX2JZFK4Ccjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunkX2JZFK4Ccjs.ENTRY_POINT_V08; exports.ORDERLY_RELAY_ABI = ORDERLY_RELAY_ABI; exports.ORDERLY_VAULT_ABI = ORDERLY_VAULT_ABI; exports.ORDERLY_VAULT_ADDRESSES = ORDERLY_VAULT_ADDRESSES; exports.ORDERLY_VAULT_BASE_MAINNET = ORDERLY_VAULT_BASE_MAINNET; exports.PAFI_SUBGRAPH_URL = PAFI_SUBGRAPH_URL; exports.PERMIT2_ADDRESS = _chunkX2JZFK4Ccjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_POOLS = _chunkX2JZFK4Ccjs.POINT_TOKEN_POOLS; exports.POINT_TOKEN_V2_ABI = _chunkLRHY7GORcjs.pointTokenAbi; exports.PafiSDK = PafiSDK; exports.PafiSDKError = _chunkJJ2LGENOcjs.PafiSDKError; exports.SETTLE_ALL = _chunkJJ2LGENOcjs.SETTLE_ALL; exports.SIMPLE_7702_IMPL_BASE_MAINNET = SIMPLE_7702_IMPL_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_NAME = _chunkRZDG6SRRcjs.SPONSOR_AUTH_DOMAIN_NAME; exports.SPONSOR_AUTH_TYPES = _chunkRZDG6SRRcjs.SPONSOR_AUTH_TYPES; exports.SUPPORTED_CHAINS = _chunkX2JZFK4Ccjs.SUPPORTED_CHAINS; exports.SWAP_EXACT_IN = _chunkJJ2LGENOcjs.SWAP_EXACT_IN; exports.SigningError = _chunkJJ2LGENOcjs.SigningError; exports.SimulationError = _chunkJJ2LGENOcjs.SimulationError; exports.TAKE_ALL = _chunkJJ2LGENOcjs.TAKE_ALL; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunkX2JZFK4Ccjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V4_QUOTER_ADDRESSES = _chunkX2JZFK4Ccjs.V4_QUOTER_ADDRESSES; exports.V4_SWAP = _chunkJJ2LGENOcjs.V4_SWAP; exports.ZERO_VALUE = ZERO_VALUE; exports._resetPaymasterConfigForTests = _resetPaymasterConfigForTests; exports.assembleUserOperation = _chunkJJ2LGENOcjs.assembleUserOperation; exports.buildAllPaths = _chunkL5UHQQVCcjs.buildAllPaths; exports.buildAndSignSponsorAuth = _chunkRZDG6SRRcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunkDX73FB4Pcjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunkDX73FB4Pcjs.buildDomain; exports.buildErc20ApprovalCalldata = _chunkJJ2LGENOcjs.buildErc20ApprovalCalldata; exports.buildMintRequestTypedData = _chunkDX73FB4Pcjs.buildMintRequestTypedData; exports.buildPartialUserOperation = _chunkJJ2LGENOcjs.buildPartialUserOperation; exports.buildPermit2ApprovalCalldata = _chunkJJ2LGENOcjs.buildPermit2ApprovalCalldata; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildReceiverConsentTypedData = _chunkDX73FB4Pcjs.buildReceiverConsentTypedData; exports.buildSponsorAuthDomain = _chunkRZDG6SRRcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunkRZDG6SRRcjs.buildSponsorAuthTypedData; exports.buildSwapFromQuote = _chunkJJ2LGENOcjs.buildSwapFromQuote; exports.buildSwapWithGasDeduction = _chunkJJ2LGENOcjs.buildSwapWithGasDeduction; exports.buildUniversalRouterExecuteArgs = _chunkJJ2LGENOcjs.buildUniversalRouterExecuteArgs; exports.buildUserOpTypedData = buildUserOpTypedData; exports.buildV4SwapInput = _chunkJJ2LGENOcjs.buildV4SwapInput; exports.burnRequestTypes = _chunkX2JZFK4Ccjs.burnRequestTypes; exports.checkAllowance = _chunkJJ2LGENOcjs.checkAllowance; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.combineRoutes = _chunkL5UHQQVCcjs.combineRoutes; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunkRZDG6SRRcjs.computeCallDataHash; exports.computeUserOpHash = computeUserOpHash; exports.createLoginMessage = _chunkRZDG6SRRcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = _chunkJJ2LGENOcjs.decodeBatchExecuteCalls; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = _chunkJJ2LGENOcjs.encodeBatchExecute; exports.erc20Abi = _chunkIPXARZ6Fcjs.erc20Abi; exports.erc20ApproveOp = _chunkJJ2LGENOcjs.erc20ApproveOp; exports.erc20BurnOp = _chunkJJ2LGENOcjs.erc20BurnOp; exports.erc20TransferOp = _chunkJJ2LGENOcjs.erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; exports.findBestQuote = _chunkL5UHQQVCcjs.findBestQuote; exports.getAaNonce = getAaNonce; exports.getBurnRequestNonce = _chunkCLPRSQT2cjs.getBurnRequestNonce; exports.getContractAddresses = getContractAddresses; exports.getDummySignatureFor7702 = getDummySignatureFor7702; exports.getIssuer = _chunkCLPRSQT2cjs.getIssuer2; exports.getMintRequestNonce = _chunkCLPRSQT2cjs.getMintRequestNonce; exports.getPafiWebModalAdapter = getPafiWebModalAdapter; exports.getPaymasterConfig = getPaymasterConfig; exports.getPointTokenBalance = _chunkCLPRSQT2cjs.getPointTokenBalance; exports.getPointTokenIssuer = _chunkCLPRSQT2cjs.getPointTokenIssuer; exports.getPointTokenIssuerAddress = _chunkCLPRSQT2cjs.getIssuer; exports.getReceiverConsentNonce = _chunkCLPRSQT2cjs.getReceiverConsentNonce; exports.getTokenName = _chunkCLPRSQT2cjs.getTokenName; exports.isActiveIssuer = _chunkCLPRSQT2cjs.isActiveIssuer; exports.isDelegatedTo = isDelegatedTo; exports.isDelegatedToTarget = isDelegatedToTarget; exports.isMinter = _chunkCLPRSQT2cjs.isMinter; exports.isPaymasterConfigured = isPaymasterConfigured; exports.isPaymasterError = isPaymasterError; exports.issuerRegistryAbi = _chunkLRHY7GORcjs.issuerRegistryAbi; exports.issuerRegistryGetIssuerFlatAbi = _chunkCLPRSQT2cjs.issuerRegistryGetIssuerFlatAbi; exports.mintRequestTypes = _chunkX2JZFK4Ccjs.mintRequestTypes; exports.mintingOracleAbi = _chunkLRHY7GORcjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunkRZDG6SRRcjs.parseLoginMessage; exports.permit2Abi = _chunkIPXARZ6Fcjs.permit2Abi; exports.pointTokenAbi = _chunkLRHY7GORcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkR6OFGVMPcjs.pointTokenFactoryAbi; exports.quoteBestRoute = _chunkL5UHQQVCcjs.quoteBestRoute; exports.quoteExactInput = _chunkL5UHQQVCcjs.quoteExactInput; exports.quoteExactInputSingle = _chunkL5UHQQVCcjs.quoteExactInputSingle; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.rawCallOp = _chunkJJ2LGENOcjs.rawCallOp; exports.receiverConsentTypes = _chunkX2JZFK4Ccjs.receiverConsentTypes; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.setPaymasterConfig = setPaymasterConfig; exports.signBurnRequest = _chunkDX73FB4Pcjs.signBurnRequest; exports.signMintRequest = _chunkDX73FB4Pcjs.signMintRequest; exports.signReceiverConsent = _chunkDX73FB4Pcjs.signReceiverConsent; exports.signSponsorAuth = _chunkRZDG6SRRcjs.signSponsorAuth; exports.simulateSwap = _chunkJJ2LGENOcjs.simulateSwap; exports.universalRouterAbi = _chunkIPXARZ6Fcjs.universalRouterAbi; exports.v4QuoterAbi = _chunkCL3QSI4Ocjs.v4QuoterAbi; exports.verifyBurnRequest = _chunkDX73FB4Pcjs.verifyBurnRequest; exports.verifyLoginMessage = _chunkRZDG6SRRcjs.verifyLoginMessage; exports.verifyMintCap = _chunkCLPRSQT2cjs.verifyMintCap; exports.verifyMintRequest = _chunkDX73FB4Pcjs.verifyMintRequest; exports.verifyReceiverConsent = _chunkDX73FB4Pcjs.verifyReceiverConsent; exports.verifySponsorAuth = _chunkRZDG6SRRcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
|
|
1227
1347
|
//# sourceMappingURL=index.cjs.map
|