@pafi-dev/core 0.16.0 → 0.18.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/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1714,7 +1714,8 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
|
|
|
1714
1714
|
* chainlinkEthUsd — ETH/USD price feed used by FeeManager
|
|
1715
1715
|
* orderlyRelay — Orderly perp-deposit Relay
|
|
1716
1716
|
* pafiFeeRecipient — PAFI-controlled fee recipient (sponsored gas reimbursement)
|
|
1717
|
-
* universalRouter —
|
|
1717
|
+
* universalRouter — PAFI v3 fork UniversalRouter
|
|
1718
|
+
* permit2 — PAFI fork Permit2 (paired with the PAFI UR above)
|
|
1718
1719
|
*
|
|
1719
1720
|
* PointToken addresses are per-issuer and resolved from the issuer's
|
|
1720
1721
|
* config (env / DB / PointTokenFactory readout). PointTokenFactory and
|
|
@@ -1761,6 +1762,15 @@ interface ContractAddresses {
|
|
|
1761
1762
|
pafiFeeRecipient: Address;
|
|
1762
1763
|
/** Uniswap V4 UniversalRouter — swap entry point for the swap handler. */
|
|
1763
1764
|
universalRouter: Address;
|
|
1765
|
+
/**
|
|
1766
|
+
* PAFI fork of Uniswap's Permit2. Acts as the unified token-approval
|
|
1767
|
+
* authority for UniversalRouter swaps and any other PAFI-paired flow
|
|
1768
|
+
* that needs gasless allowances. Differs from Uniswap canonical
|
|
1769
|
+
* Permit2 (`0x000000000022D473...`) — must use the PAFI fork because
|
|
1770
|
+
* the fork UR was deployed against this Permit2 instance. Keep in
|
|
1771
|
+
* sync with `PERMIT2_ADDRESS` top-level export.
|
|
1772
|
+
*/
|
|
1773
|
+
permit2: Address;
|
|
1764
1774
|
}
|
|
1765
1775
|
declare const CONTRACT_ADDRESSES: Record<number, ContractAddresses>;
|
|
1766
1776
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1714,7 +1714,8 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
|
|
|
1714
1714
|
* chainlinkEthUsd — ETH/USD price feed used by FeeManager
|
|
1715
1715
|
* orderlyRelay — Orderly perp-deposit Relay
|
|
1716
1716
|
* pafiFeeRecipient — PAFI-controlled fee recipient (sponsored gas reimbursement)
|
|
1717
|
-
* universalRouter —
|
|
1717
|
+
* universalRouter — PAFI v3 fork UniversalRouter
|
|
1718
|
+
* permit2 — PAFI fork Permit2 (paired with the PAFI UR above)
|
|
1718
1719
|
*
|
|
1719
1720
|
* PointToken addresses are per-issuer and resolved from the issuer's
|
|
1720
1721
|
* config (env / DB / PointTokenFactory readout). PointTokenFactory and
|
|
@@ -1761,6 +1762,15 @@ interface ContractAddresses {
|
|
|
1761
1762
|
pafiFeeRecipient: Address;
|
|
1762
1763
|
/** Uniswap V4 UniversalRouter — swap entry point for the swap handler. */
|
|
1763
1764
|
universalRouter: Address;
|
|
1765
|
+
/**
|
|
1766
|
+
* PAFI fork of Uniswap's Permit2. Acts as the unified token-approval
|
|
1767
|
+
* authority for UniversalRouter swaps and any other PAFI-paired flow
|
|
1768
|
+
* that needs gasless allowances. Differs from Uniswap canonical
|
|
1769
|
+
* Permit2 (`0x000000000022D473...`) — must use the PAFI fork because
|
|
1770
|
+
* the fork UR was deployed against this Permit2 instance. Keep in
|
|
1771
|
+
* sync with `PERMIT2_ADDRESS` top-level export.
|
|
1772
|
+
*/
|
|
1773
|
+
permit2: Address;
|
|
1764
1774
|
}
|
|
1765
1775
|
declare const CONTRACT_ADDRESSES: Record<number, ContractAddresses>;
|
|
1766
1776
|
/**
|
package/dist/index.js
CHANGED
|
@@ -839,7 +839,17 @@ var CONTRACT_ADDRESSES = {
|
|
|
839
839
|
chainlinkEthUsd: "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70",
|
|
840
840
|
orderlyRelay: "0xDA082DAce1522c185aeB5A713FcA6fa6B6E99e7f",
|
|
841
841
|
pafiFeeRecipient: "0xa3F71eadEd101513a0151007590020dCFD7C495e",
|
|
842
|
-
|
|
842
|
+
// PAFI fork UniversalRouter — DIFFERS from Uniswap canonical Base UR
|
|
843
|
+
// (`0x6fF5693b...`). The PAFI fork has its own factory + poolInitCodeHash,
|
|
844
|
+
// so only this UR can route through PAFI v3 fork pools. Keep in sync with
|
|
845
|
+
// `UNIVERSAL_ROUTER_ADDRESSES` in `chains.ts`.
|
|
846
|
+
universalRouter: "0x008887C992A5bDC24097E717Bfb71CE89483c5A2",
|
|
847
|
+
// PAFI fork Permit2 — DIFFERS from Uniswap canonical Permit2
|
|
848
|
+
// (`0x000000000022D473...`). PAFI's UR was deployed against this
|
|
849
|
+
// Permit2, so swaps signed against the canonical Permit2 fail
|
|
850
|
+
// signature verification. Keep in sync with `PERMIT2_ADDRESS`
|
|
851
|
+
// top-level export.
|
|
852
|
+
permit2: "0xEB450d21ae68D3303Cf5775A54Cc84EE7c3fC8eC"
|
|
843
853
|
},
|
|
844
854
|
// Base Sepolia — not in active use; placeholders kept so the map
|
|
845
855
|
// compiles for tooling that enumerates chains.
|
|
@@ -852,7 +862,8 @@ var CONTRACT_ADDRESSES = {
|
|
|
852
862
|
chainlinkEthUsd: PLACEHOLDER_DEAD("de02"),
|
|
853
863
|
orderlyRelay: PLACEHOLDER_DEAD("de03"),
|
|
854
864
|
pafiFeeRecipient: PLACEHOLDER_DEAD("de04"),
|
|
855
|
-
universalRouter: PLACEHOLDER_DEAD("de05")
|
|
865
|
+
universalRouter: PLACEHOLDER_DEAD("de05"),
|
|
866
|
+
permit2: PLACEHOLDER_DEAD("de06")
|
|
856
867
|
}
|
|
857
868
|
};
|
|
858
869
|
var POINT_TOKEN_FACTORY_ADDRESSES = {
|