@pafi-dev/core 0.18.0 → 0.20.1
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 +55 -10
- package/dist/abi/index.cjs +14 -4
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.d.cts +3846 -482
- package/dist/abi/index.d.ts +3846 -482
- package/dist/abi/index.js +15 -5
- package/dist/{chunk-KRHGFUDI.cjs → chunk-245YA3CQ.cjs} +87 -20
- package/dist/chunk-245YA3CQ.cjs.map +1 -0
- package/dist/{chunk-C7VB6WTL.cjs → chunk-2CU7ZH2A.cjs} +490 -497
- package/dist/chunk-2CU7ZH2A.cjs.map +1 -0
- package/dist/chunk-2DVM77Y2.cjs +5018 -0
- package/dist/chunk-2DVM77Y2.cjs.map +1 -0
- package/dist/{chunk-UZUDJXKE.cjs → chunk-3ZT7KTN4.cjs} +5 -3
- package/dist/chunk-3ZT7KTN4.cjs.map +1 -0
- package/dist/{chunk-H3X3FYUU.js → chunk-4VPIPVV5.js} +62 -35
- package/dist/chunk-4VPIPVV5.js.map +1 -0
- package/dist/{chunk-UCO5DXD6.js → chunk-5Y7MGN56.js} +87 -20
- package/dist/chunk-5Y7MGN56.js.map +1 -0
- package/dist/chunk-DQKCPH6B.cjs +199 -0
- package/dist/chunk-DQKCPH6B.cjs.map +1 -0
- package/dist/{chunk-4TNHRZ4X.js → chunk-K4GBOB5V.js} +4 -2
- package/dist/chunk-K4GBOB5V.js.map +1 -0
- package/dist/{chunk-LF5GIN5P.js → chunk-W2DHHR2N.js} +490 -497
- package/dist/chunk-W2DHHR2N.js.map +1 -0
- package/dist/chunk-ZQVYWMOG.js +5018 -0
- package/dist/chunk-ZQVYWMOG.js.map +1 -0
- package/dist/contract/index.cjs +8 -4
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +53 -27
- package/dist/contract/index.d.ts +53 -27
- package/dist/contract/index.js +13 -9
- package/dist/eip712/index.cjs +3 -3
- package/dist/eip712/index.d.cts +7 -1
- package/dist/eip712/index.d.ts +7 -1
- package/dist/eip712/index.js +2 -2
- package/dist/index.cjs +227 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +601 -11
- package/dist/index.d.ts +601 -11
- package/dist/index.js +213 -24
- package/dist/index.js.map +1 -1
- package/dist/{types-C17pznGz.d.ts → types-Hn1zUPTt.d.cts} +46 -13
- package/dist/{types-C17pznGz.d.cts → types-Hn1zUPTt.d.ts} +46 -13
- package/package.json +1 -1
- package/dist/chunk-4TNHRZ4X.js.map +0 -1
- package/dist/chunk-C7VB6WTL.cjs.map +0 -1
- package/dist/chunk-H3X3FYUU.js.map +0 -1
- package/dist/chunk-KRHGFUDI.cjs.map +0 -1
- package/dist/chunk-LF5GIN5P.js.map +0 -1
- package/dist/chunk-TRYGIC2I.cjs +0 -172
- package/dist/chunk-TRYGIC2I.cjs.map +0 -1
- package/dist/chunk-UCO5DXD6.js.map +0 -1
- package/dist/chunk-UZUDJXKE.cjs.map +0 -1
- package/dist/chunk-XXLIIWIF.cjs +0 -711
- package/dist/chunk-XXLIIWIF.cjs.map +0 -1
- package/dist/chunk-ZJXXCG5P.js +0 -711
- package/dist/chunk-ZJXXCG5P.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
erc20Abi,
|
|
3
3
|
permit2Abi,
|
|
4
|
+
pointModuleCoreAbi,
|
|
4
5
|
pointTokenFactoryAbi,
|
|
6
|
+
settlementVaultAbi,
|
|
7
|
+
tokenRegistryAbi,
|
|
5
8
|
universalRouterAbi,
|
|
6
|
-
v3QuoterV2Abi
|
|
7
|
-
|
|
9
|
+
v3QuoterV2Abi,
|
|
10
|
+
vaultFactoryAbi,
|
|
11
|
+
vaultRegistryAbi
|
|
12
|
+
} from "./chunk-ZQVYWMOG.js";
|
|
8
13
|
import {
|
|
9
14
|
SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET,
|
|
10
15
|
SPONSOR_AUTH_DOMAIN_NAME,
|
|
@@ -22,26 +27,29 @@ import {
|
|
|
22
27
|
verifySponsorAuth
|
|
23
28
|
} from "./chunk-4EGXLYMM.js";
|
|
24
29
|
import {
|
|
30
|
+
Source,
|
|
31
|
+
computeEquityCap,
|
|
25
32
|
getBurnRequestNonce,
|
|
26
33
|
getIssuer,
|
|
27
34
|
getIssuer2,
|
|
28
35
|
getMintFeeBps,
|
|
29
36
|
getMintFeeRecipients,
|
|
30
37
|
getMintRequestNonce,
|
|
38
|
+
getOracleRegistries,
|
|
31
39
|
getPointTokenBalance,
|
|
32
|
-
getPointTokenIssuer,
|
|
33
|
-
getTokenCap,
|
|
34
40
|
getTokenName,
|
|
35
41
|
isActiveIssuer,
|
|
36
42
|
isMinter,
|
|
37
43
|
issuerRegistryGetIssuerFlatAbi,
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
verifyEquityMint,
|
|
45
|
+
verifyIssuerOperative,
|
|
46
|
+
verifyMint
|
|
47
|
+
} from "./chunk-4VPIPVV5.js";
|
|
40
48
|
import {
|
|
41
49
|
issuerRegistryAbi,
|
|
42
50
|
mintFeeWrapperAbi,
|
|
43
51
|
mintingOracleAbi
|
|
44
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-W2DHHR2N.js";
|
|
45
53
|
import {
|
|
46
54
|
COMMON_POOLS,
|
|
47
55
|
COMMON_TOKENS,
|
|
@@ -66,10 +74,10 @@ import {
|
|
|
66
74
|
signMintRequest,
|
|
67
75
|
verifyBurnRequest,
|
|
68
76
|
verifyMintRequest
|
|
69
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-K4GBOB5V.js";
|
|
70
78
|
import {
|
|
71
79
|
pointTokenAbi
|
|
72
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-5Y7MGN56.js";
|
|
73
81
|
import "./chunk-DGUM43GV.js";
|
|
74
82
|
|
|
75
83
|
// src/index.ts
|
|
@@ -532,6 +540,43 @@ function buildPerpDepositViaRelay(params) {
|
|
|
532
540
|
});
|
|
533
541
|
}
|
|
534
542
|
|
|
543
|
+
// src/transfer/buildErc20Transfer.ts
|
|
544
|
+
function buildErc20TransferUserOp(params) {
|
|
545
|
+
if (params.amount <= 0n) {
|
|
546
|
+
throw new Error("buildErc20TransferUserOp: amount must be positive");
|
|
547
|
+
}
|
|
548
|
+
const operations = [];
|
|
549
|
+
if (params.feeAmount && params.feeAmount > 0n) {
|
|
550
|
+
if (!params.feeRecipient) {
|
|
551
|
+
throw new Error(
|
|
552
|
+
"buildErc20TransferUserOp: feeRecipient required when feeAmount > 0"
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
operations.push(
|
|
556
|
+
erc20TransferOp(
|
|
557
|
+
params.tokenAddress,
|
|
558
|
+
params.feeRecipient,
|
|
559
|
+
params.feeAmount
|
|
560
|
+
)
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
operations.push(
|
|
564
|
+
erc20TransferOp(params.tokenAddress, params.recipient, params.amount)
|
|
565
|
+
);
|
|
566
|
+
return buildPartialUserOperation({
|
|
567
|
+
sender: params.userAddress,
|
|
568
|
+
nonce: params.aaNonce,
|
|
569
|
+
operations,
|
|
570
|
+
gasLimits: {
|
|
571
|
+
// 2 simple ERC-20 transfers + 7702 batch overhead. ~70-90k actual;
|
|
572
|
+
// 200k matches the `delegate` scenario budget and covers premium.
|
|
573
|
+
callGasLimit: params.gasLimits?.callGasLimit ?? 200000n,
|
|
574
|
+
verificationGasLimit: params.gasLimits?.verificationGasLimit ?? 150000n,
|
|
575
|
+
preVerificationGas: params.gasLimits?.preVerificationGas ?? 50000n
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
|
|
535
580
|
// src/userop/types.ts
|
|
536
581
|
var ZERO_VALUE = 0n;
|
|
537
582
|
|
|
@@ -828,14 +873,18 @@ function buildEip7702Authorization(params) {
|
|
|
828
873
|
// src/contracts/real/addresses.ts
|
|
829
874
|
var PLACEHOLDER_DEAD = (suffix) => `0x000000000000000000000000000000000000${suffix.toLowerCase().padStart(4, "0")}`;
|
|
830
875
|
var CONTRACT_ADDRESSES = {
|
|
831
|
-
//
|
|
876
|
+
// ──────────────────────────────────────────────────────────────────
|
|
877
|
+
// Base mainnet (8453) — V2 dual-bucket deploy 2026-06-12
|
|
878
|
+
//
|
|
879
|
+
// Replaces the v1.6 single-bucket deploy (2026-05-07). Periphery
|
|
880
|
+
// addresses (batchExecutor / chainlinkEthUsd / orderlyRelay /
|
|
881
|
+
// universalRouter / permit2 / pafiFeeRecipient) are inherited from
|
|
882
|
+
// v1.6 — they were not redeployed for V2. PointToken impl + factory
|
|
883
|
+
// were rotated as part of the dual-bucket schema change.
|
|
884
|
+
// ──────────────────────────────────────────────────────────────────
|
|
832
885
|
8453: {
|
|
886
|
+
// ── Periphery (inherited from v1.6, unchanged) ────────────────
|
|
833
887
|
batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
|
|
834
|
-
usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
|
|
835
|
-
usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
836
|
-
issuerRegistry: "0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01",
|
|
837
|
-
mintingOracle: "0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0",
|
|
838
|
-
mintFeeWrapper: "0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93",
|
|
839
888
|
chainlinkEthUsd: "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70",
|
|
840
889
|
orderlyRelay: "0xDA082DAce1522c185aeB5A713FcA6fa6B6E99e7f",
|
|
841
890
|
pafiFeeRecipient: "0xa3F71eadEd101513a0151007590020dCFD7C495e",
|
|
@@ -849,7 +898,22 @@ var CONTRACT_ADDRESSES = {
|
|
|
849
898
|
// Permit2, so swaps signed against the canonical Permit2 fail
|
|
850
899
|
// signature verification. Keep in sync with `PERMIT2_ADDRESS`
|
|
851
900
|
// top-level export.
|
|
852
|
-
permit2: "0xEB450d21ae68D3303Cf5775A54Cc84EE7c3fC8eC"
|
|
901
|
+
permit2: "0xEB450d21ae68D3303Cf5775A54Cc84EE7c3fC8eC",
|
|
902
|
+
// ── Stablecoins ───────────────────────────────────────────────
|
|
903
|
+
// USDT inherited from v1.6 (MockUSDT — no new V2 USDT deploy).
|
|
904
|
+
usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
|
|
905
|
+
// V2 USDC — PAFI ecosystem USDC (custom deploy, NOT canonical Base
|
|
906
|
+
// USDC `0x833589fC...`). Paired with the USDC/USD Chainlink feed below.
|
|
907
|
+
usdc: "0xf0Fa9eB05fd3a373d3c54775Ff0ed55Dc9cc2D3E",
|
|
908
|
+
chainlinkUsdcUsd: "0xEE86BfD4E2B3A1e71a1b45f750791D67e735e4a7",
|
|
909
|
+
// ── V2 core registries (replaces v1.6) ────────────────────────
|
|
910
|
+
issuerRegistry: "0x3e82647b0f716f80e65d311354E2C4F0DcFd6997",
|
|
911
|
+
mintingOracle: "0x19F5Ea31D42E957F66B672c83293588f190f9fEB",
|
|
912
|
+
mintFeeWrapper: "0x72B8FB182A72741d2F85Bd78B5cAAC8b98c5A493",
|
|
913
|
+
tokenRegistry: "0x7092b329a5c9a823EE0b629D391330D29E109d97",
|
|
914
|
+
vaultRegistry: "0x8D97352cEaA6d6C1Ee2ddFd327F1487357650712",
|
|
915
|
+
vaultFactory: "0xDaD6b27Be7d89A6776b85D0672e0B645318DE63b",
|
|
916
|
+
pointModuleCore: "0x3995fE8ED9dc563C2d7268fCA86d08cc1A2C1c9c"
|
|
853
917
|
},
|
|
854
918
|
// Base Sepolia — not in active use; placeholders kept so the map
|
|
855
919
|
// compiles for tooling that enumerates chains.
|
|
@@ -863,15 +927,31 @@ var CONTRACT_ADDRESSES = {
|
|
|
863
927
|
orderlyRelay: PLACEHOLDER_DEAD("de03"),
|
|
864
928
|
pafiFeeRecipient: PLACEHOLDER_DEAD("de04"),
|
|
865
929
|
universalRouter: PLACEHOLDER_DEAD("de05"),
|
|
866
|
-
permit2: PLACEHOLDER_DEAD("de06")
|
|
930
|
+
permit2: PLACEHOLDER_DEAD("de06"),
|
|
931
|
+
tokenRegistry: PLACEHOLDER_DEAD("de07"),
|
|
932
|
+
vaultRegistry: PLACEHOLDER_DEAD("de08"),
|
|
933
|
+
vaultFactory: PLACEHOLDER_DEAD("de09"),
|
|
934
|
+
pointModuleCore: PLACEHOLDER_DEAD("de0a")
|
|
867
935
|
}
|
|
868
936
|
};
|
|
869
937
|
var POINT_TOKEN_FACTORY_ADDRESSES = {
|
|
870
|
-
|
|
938
|
+
// V2 dual-bucket factory (2026-06-12). Replaces v1.6 factory
|
|
939
|
+
// `0xA08274458b43E7D6F4ff61ddFe8A9852c6531085`.
|
|
940
|
+
8453: "0x34f9F84841A77A19040686396b8B64522A2da4c8",
|
|
871
941
|
84532: PLACEHOLDER_DEAD("dead")
|
|
872
942
|
};
|
|
873
943
|
var POINT_TOKEN_IMPL_ADDRESSES = {
|
|
874
|
-
|
|
944
|
+
// V2 dual-bucket impl (2026-06-12). Replaces v1.6 impl
|
|
945
|
+
// `0xc41c3F8A0380c7760Ee1209d6d19C4b81dE994e4` (single-bucket).
|
|
946
|
+
8453: "0x067d2d82F7cfbAf9bBA1f493167cC6043eD5d7dd",
|
|
947
|
+
84532: PLACEHOLDER_DEAD("dead")
|
|
948
|
+
};
|
|
949
|
+
var POINT_TOKEN_BEACON_ADDRESSES = {
|
|
950
|
+
8453: "0xdC479E294FD12658FDC68B9400c2073De291acf3",
|
|
951
|
+
84532: PLACEHOLDER_DEAD("dead")
|
|
952
|
+
};
|
|
953
|
+
var VAULT_BEACON_ADDRESSES = {
|
|
954
|
+
8453: "0x4E583d64bfcCD86dFf1f68b792D5a1Cd169f22eB",
|
|
875
955
|
84532: PLACEHOLDER_DEAD("dead")
|
|
876
956
|
};
|
|
877
957
|
function getContractAddresses(chainId) {
|
|
@@ -1119,7 +1199,11 @@ var SCENARIO_GAS_UNITS = {
|
|
|
1119
1199
|
burn: 500000n,
|
|
1120
1200
|
swap: 700000n,
|
|
1121
1201
|
"perp-deposit": 800000n,
|
|
1122
|
-
delegate: 200000n
|
|
1202
|
+
delegate: 200000n,
|
|
1203
|
+
// 2-call batch: 1 ERC-20 fee transfer + 1 ERC-20 transfer + 7702
|
|
1204
|
+
// delegation overhead. ~70-90k empirical; 200k matches `delegate`
|
|
1205
|
+
// budget and gives headroom for premium variance.
|
|
1206
|
+
"erc20-transfer": 200000n
|
|
1123
1207
|
};
|
|
1124
1208
|
var DEFAULT_GAS_UNITS = 500000n;
|
|
1125
1209
|
var DEFAULT_PREMIUM_BPS = 12e3;
|
|
@@ -1184,6 +1268,42 @@ async function quoteOperatorFeePt(config) {
|
|
|
1184
1268
|
]);
|
|
1185
1269
|
return withPremium * ethPrice8dec * ptPerUsdt18dec / 10n ** 26n;
|
|
1186
1270
|
}
|
|
1271
|
+
async function quoteOperatorFeeForTransfer(config) {
|
|
1272
|
+
const { provider, chainId, tokenAddress } = config;
|
|
1273
|
+
const { usdc, usdt } = getContractAddresses(chainId);
|
|
1274
|
+
const tokenLower = tokenAddress.toLowerCase();
|
|
1275
|
+
const isStable = usdc && tokenLower === usdc.toLowerCase() || tokenLower === usdt.toLowerCase();
|
|
1276
|
+
if (isStable) {
|
|
1277
|
+
return quoteOperatorFeeUsdt({
|
|
1278
|
+
provider,
|
|
1279
|
+
chainId,
|
|
1280
|
+
scenario: "erc20-transfer",
|
|
1281
|
+
gasUnits: config.gasUnits,
|
|
1282
|
+
premiumBps: config.premiumBps,
|
|
1283
|
+
chainlinkFeedAddress: config.chainlinkFeedAddress,
|
|
1284
|
+
usdtDecimals: config.usdtDecimals,
|
|
1285
|
+
allowStaleFallback: config.allowStaleFallback,
|
|
1286
|
+
fallbackEthPriceUsd: config.fallbackEthPriceUsd,
|
|
1287
|
+
onFallback: config.onFallback
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
return quoteOperatorFeePt({
|
|
1291
|
+
provider,
|
|
1292
|
+
chainId,
|
|
1293
|
+
pointTokenAddress: tokenAddress,
|
|
1294
|
+
scenario: "erc20-transfer",
|
|
1295
|
+
gasUnits: config.gasUnits,
|
|
1296
|
+
premiumBps: config.premiumBps,
|
|
1297
|
+
chainlinkFeedAddress: config.chainlinkFeedAddress,
|
|
1298
|
+
subgraphUrl: config.subgraphUrl,
|
|
1299
|
+
usdtDecimals: config.usdtDecimals,
|
|
1300
|
+
allowStaleFallback: config.allowStaleFallback,
|
|
1301
|
+
fallbackEthPriceUsd: config.fallbackEthPriceUsd,
|
|
1302
|
+
fallbackPtPriceUsdt: config.fallbackPtPriceUsdt,
|
|
1303
|
+
onFallback: config.onFallback,
|
|
1304
|
+
fetchImpl: config.fetchImpl
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1187
1307
|
async function getEthPrice8dec(provider, feed, fallback, onFallback) {
|
|
1188
1308
|
try {
|
|
1189
1309
|
const result = await provider.readContract({
|
|
@@ -1279,6 +1399,60 @@ function parseBigDecimalTo18(s) {
|
|
|
1279
1399
|
return BigInt(whole + padded);
|
|
1280
1400
|
}
|
|
1281
1401
|
|
|
1402
|
+
// src/contracts/real/pointToken.ts
|
|
1403
|
+
import { parseAbi as parseAbi4 } from "viem";
|
|
1404
|
+
var POINT_TOKEN_MINT_SIG_ABI = parseAbi4([
|
|
1405
|
+
"function mint(address user, uint256 amount, uint8 source, uint256 deadline, bytes minterSig) external"
|
|
1406
|
+
]);
|
|
1407
|
+
var POINT_TOKEN_BURN_SIG_ABI = parseAbi4([
|
|
1408
|
+
"function burn(address from, uint256 amount, uint8 source, uint256 deadline, bytes burnerSig) external"
|
|
1409
|
+
]);
|
|
1410
|
+
var POINT_TOKEN_ABI = parseAbi4([
|
|
1411
|
+
// --- Mint paths (V2 dual-bucket: +uint8 source) ---
|
|
1412
|
+
"function mint(address to, uint256 amount, uint8 source) external",
|
|
1413
|
+
"function mint(address user, uint256 amount, uint8 source, uint256 deadline, bytes minterSig) external",
|
|
1414
|
+
// --- Burn paths (V2 dual-bucket: +uint8 source) ---
|
|
1415
|
+
"function burn(address from, uint256 amount, uint8 source) external",
|
|
1416
|
+
"function burn(address from, uint256 amount, uint8 source, uint256 deadline, bytes burnerSig) external",
|
|
1417
|
+
// --- V2 per-bucket supply views ---
|
|
1418
|
+
"function equitySupply() external view returns (uint256)",
|
|
1419
|
+
"function vaultSupply() external view returns (uint256)",
|
|
1420
|
+
// --- Authorization reads ---
|
|
1421
|
+
"function minters(address account) external view returns (bool)",
|
|
1422
|
+
"function burners(address account) external view returns (bool)",
|
|
1423
|
+
// --- Authorization writes (owner-only; used by provisioning scripts) ---
|
|
1424
|
+
"function addMinter(address minter) external",
|
|
1425
|
+
"function removeMinter(address minter) external",
|
|
1426
|
+
"function addBurner(address burner) external",
|
|
1427
|
+
"function removeBurner(address burner) external",
|
|
1428
|
+
// --- Nonces (sig-gated paths) ---
|
|
1429
|
+
"function mintRequestNonces(address receiver) external view returns (uint256)",
|
|
1430
|
+
"function burnRequestNonces(address from) external view returns (uint256)",
|
|
1431
|
+
// --- Oracle ---
|
|
1432
|
+
"function mintingOracle() external view returns (address)",
|
|
1433
|
+
"function setMintingOracle(address _mintingOracle) external",
|
|
1434
|
+
// --- Issuer ---
|
|
1435
|
+
"function issuer() external view returns (address)",
|
|
1436
|
+
// --- Standard ERC-20 reads ---
|
|
1437
|
+
"function balanceOf(address account) external view returns (uint256)",
|
|
1438
|
+
"function totalSupply() external view returns (uint256)",
|
|
1439
|
+
"function name() external view returns (string)",
|
|
1440
|
+
"function symbol() external view returns (string)",
|
|
1441
|
+
"function decimals() external view returns (uint8)",
|
|
1442
|
+
// --- EIP-712 domain (for off-chain sig verification) ---
|
|
1443
|
+
"function DOMAIN_SEPARATOR() external view returns (bytes32)",
|
|
1444
|
+
"function eip712Domain() external view returns (bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)",
|
|
1445
|
+
// --- Events ---
|
|
1446
|
+
// PointIndexer filters Transfer(from=0x0) for mints
|
|
1447
|
+
// BurnIndexer filters Transfer(to=0x0) for burns
|
|
1448
|
+
"event Transfer(address indexed from, address indexed to, uint256 value)",
|
|
1449
|
+
"event MinterAdded(address indexed minter)",
|
|
1450
|
+
"event MinterRemoved(address indexed minter)",
|
|
1451
|
+
"event BurnerAdded(address indexed burner)",
|
|
1452
|
+
"event BurnerRemoved(address indexed burner)",
|
|
1453
|
+
"event MintingOracleUpdated(address indexed mintingOracle)"
|
|
1454
|
+
]);
|
|
1455
|
+
|
|
1282
1456
|
// src/contracts/real/batchExecutor.ts
|
|
1283
1457
|
var BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = getContractAddresses(8453).batchExecutor;
|
|
1284
1458
|
var BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = getContractAddresses(84532).batchExecutor;
|
|
@@ -1592,13 +1766,17 @@ export {
|
|
|
1592
1766
|
PAFI_SERVICE_URLS,
|
|
1593
1767
|
PAFI_SUBGRAPH_URL,
|
|
1594
1768
|
PERMIT2_ADDRESS,
|
|
1595
|
-
|
|
1769
|
+
POINT_TOKEN_ABI,
|
|
1770
|
+
POINT_TOKEN_BEACON_ADDRESSES,
|
|
1771
|
+
POINT_TOKEN_BURN_SIG_ABI,
|
|
1596
1772
|
POINT_TOKEN_FACTORY_ADDRESSES,
|
|
1597
1773
|
POINT_TOKEN_IMPL_ADDRESSES,
|
|
1774
|
+
POINT_TOKEN_MINT_SIG_ABI,
|
|
1598
1775
|
POINT_TOKEN_POOLS,
|
|
1599
1776
|
PafiSDK,
|
|
1600
1777
|
PafiSdkError,
|
|
1601
1778
|
QUOTER_V2_ADDRESSES,
|
|
1779
|
+
SCENARIO_GAS_UNITS,
|
|
1602
1780
|
SDK_ERROR_HTTP_STATUS_CODE,
|
|
1603
1781
|
SIMPLE_7702_IMPL_BASE_MAINNET,
|
|
1604
1782
|
SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET,
|
|
@@ -1607,11 +1785,13 @@ export {
|
|
|
1607
1785
|
SUPPORTED_CHAINS,
|
|
1608
1786
|
SigningError,
|
|
1609
1787
|
SimulationError,
|
|
1788
|
+
Source,
|
|
1610
1789
|
TOKEN_HASHES,
|
|
1611
1790
|
UNIVERSAL_ROUTER_ADDRESSES,
|
|
1612
1791
|
V3_FACTORY_ADDRESSES,
|
|
1613
1792
|
V3_POOL_INIT_CODE_HASH,
|
|
1614
1793
|
V3_SWAP_ROUTER_ADDRESSES,
|
|
1794
|
+
VAULT_BEACON_ADDRESSES,
|
|
1615
1795
|
ValidationError,
|
|
1616
1796
|
ZERO_VALUE,
|
|
1617
1797
|
assembleUserOperation,
|
|
@@ -1621,6 +1801,7 @@ export {
|
|
|
1621
1801
|
buildDelegationUserOp,
|
|
1622
1802
|
buildDomain,
|
|
1623
1803
|
buildEip7702Authorization,
|
|
1804
|
+
buildErc20TransferUserOp,
|
|
1624
1805
|
buildMintRequestTypedData,
|
|
1625
1806
|
buildPartialUserOperation,
|
|
1626
1807
|
buildPerpDepositViaRelay,
|
|
@@ -1634,6 +1815,7 @@ export {
|
|
|
1634
1815
|
computeAccountId,
|
|
1635
1816
|
computeAuthorizationHash,
|
|
1636
1817
|
computeCallDataHash,
|
|
1818
|
+
computeEquityCap,
|
|
1637
1819
|
computeUserOpHash,
|
|
1638
1820
|
computeV3PoolAddress,
|
|
1639
1821
|
createLoginMessage,
|
|
@@ -1659,13 +1841,12 @@ export {
|
|
|
1659
1841
|
getMintFeeBps,
|
|
1660
1842
|
getMintFeeRecipients,
|
|
1661
1843
|
getMintRequestNonce,
|
|
1844
|
+
getOracleRegistries,
|
|
1662
1845
|
getPafiServiceUrls,
|
|
1663
1846
|
getPafiWebModalAdapter,
|
|
1664
1847
|
getPointTokenBalance,
|
|
1665
|
-
getPointTokenIssuer,
|
|
1666
1848
|
getIssuer as getPointTokenIssuerAddress,
|
|
1667
1849
|
getSponsorAuthDomainAnchor,
|
|
1668
|
-
getTokenCap,
|
|
1669
1850
|
getTokenName,
|
|
1670
1851
|
isActiveIssuer,
|
|
1671
1852
|
isDelegatedTo,
|
|
@@ -1682,23 +1863,31 @@ export {
|
|
|
1682
1863
|
parseEip7702DelegatedAddress,
|
|
1683
1864
|
parseLoginMessage,
|
|
1684
1865
|
permit2Abi,
|
|
1866
|
+
pointModuleCoreAbi,
|
|
1685
1867
|
pointTokenAbi,
|
|
1686
1868
|
pointTokenFactoryAbi,
|
|
1869
|
+
quoteOperatorFeeForTransfer,
|
|
1687
1870
|
quoteOperatorFeePt,
|
|
1688
1871
|
quoteOperatorFeeUsdt,
|
|
1689
1872
|
rawCallOp,
|
|
1690
1873
|
sendWithPaymasterFallback,
|
|
1691
1874
|
serializeUserOpToJsonRpc,
|
|
1692
1875
|
setPafiWebModalAdapter,
|
|
1876
|
+
settlementVaultAbi,
|
|
1693
1877
|
signBurnRequest,
|
|
1694
1878
|
signMintRequest,
|
|
1695
1879
|
signSponsorAuth,
|
|
1696
1880
|
splitAuthorizationSig,
|
|
1881
|
+
tokenRegistryAbi,
|
|
1697
1882
|
universalRouterAbi,
|
|
1698
1883
|
v3QuoterV2Abi,
|
|
1884
|
+
vaultFactoryAbi,
|
|
1885
|
+
vaultRegistryAbi,
|
|
1699
1886
|
verifyBurnRequest,
|
|
1887
|
+
verifyEquityMint,
|
|
1888
|
+
verifyIssuerOperative,
|
|
1700
1889
|
verifyLoginMessage,
|
|
1701
|
-
|
|
1890
|
+
verifyMint,
|
|
1702
1891
|
verifyMintRequest,
|
|
1703
1892
|
verifySponsorAuth,
|
|
1704
1893
|
webPopupAdapter
|