@pafi-dev/core 0.9.0 → 0.9.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/dist/index.cjs +23 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -16
- package/dist/index.d.ts +26 -16
- package/dist/index.js +23 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1617,25 +1617,29 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_MAINNET: `0x${string}`;
|
|
|
1617
1617
|
declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
|
-
* Per-chain deployed contract addresses — v1.
|
|
1620
|
+
* Per-chain deployed contract addresses — v1.6 flow.
|
|
1621
1621
|
*
|
|
1622
|
-
* ## Status (2026-
|
|
1622
|
+
* ## Status (2026-05-07)
|
|
1623
1623
|
*
|
|
1624
|
-
* Base mainnet (8453):
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1624
|
+
* Base mainnet (8453): v1.6 redeploy. PAFIHook removed entirely — fee on
|
|
1625
|
+
* mint now happens via `MintFeeWrapper` (single global instance, multi-PT).
|
|
1626
|
+
* `pafiHook` field kept as placeholder for back-compat with consumers that
|
|
1627
|
+
* still reference it; set to a deterministic dead address to make misuse
|
|
1628
|
+
* obvious.
|
|
1628
1629
|
*
|
|
1629
1630
|
* Base Sepolia (84532): entire row is placeholder — not in active use.
|
|
1630
1631
|
*
|
|
1631
1632
|
* ## What lives where
|
|
1632
1633
|
*
|
|
1633
|
-
* pointToken
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1634
|
+
* pointToken — live POINT clone of PointToken impl (per-issuer; this
|
|
1635
|
+
* is the gg56 clone; other issuers have their own and
|
|
1636
|
+
* should read from the factory at runtime)
|
|
1637
|
+
* batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
|
|
1638
|
+
* usdt — MockERC20 used by Uniswap pools
|
|
1639
|
+
* issuerRegistry — registry of all issuers on this chain
|
|
1640
|
+
* mintingOracle — per-token mint cap enforcer (v1.6: per-token, not per-issuer)
|
|
1641
|
+
* mintFeeWrapper — v1.6 mint-time fee splitter (single global instance)
|
|
1642
|
+
* pafiHook — DEAD; v1.5 V4 swap fee removed in v1.6. Kept for ABI compat.
|
|
1639
1643
|
*
|
|
1640
1644
|
* PointTokenFactory + PointToken implementation addresses live in
|
|
1641
1645
|
* separate exports below — they're only needed at provisioning /
|
|
@@ -1649,10 +1653,16 @@ interface ContractAddresses {
|
|
|
1649
1653
|
issuerRegistry: Address;
|
|
1650
1654
|
mintingOracle: Address;
|
|
1651
1655
|
/**
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1655
|
-
*
|
|
1656
|
+
* v1.6 — single-instance MintFeeWrapper that skims a fee on every
|
|
1657
|
+
* sig-gated mint and distributes across the registered recipient
|
|
1658
|
+
* list for the target PointToken. Issuers route mints through this
|
|
1659
|
+
* by passing `mintFeeWrapperAddress` to `prepareMint`.
|
|
1660
|
+
*/
|
|
1661
|
+
mintFeeWrapper: Address;
|
|
1662
|
+
/**
|
|
1663
|
+
* @deprecated v1.5 PAFIHook (10% PT→USDT swap fee) was removed in
|
|
1664
|
+
* v1.6. Field kept as a dead placeholder so older consumers don't
|
|
1665
|
+
* crash on missing-property errors; do not use for new code.
|
|
1656
1666
|
*/
|
|
1657
1667
|
pafiHook: Address;
|
|
1658
1668
|
/** Chainlink ETH/USD price feed — used by FeeManager to convert gas cost to USDT. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1617,25 +1617,29 @@ declare const BATCH_EXECUTOR_ADDRESS_BASE_MAINNET: `0x${string}`;
|
|
|
1617
1617
|
declare const BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA: `0x${string}`;
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
|
-
* Per-chain deployed contract addresses — v1.
|
|
1620
|
+
* Per-chain deployed contract addresses — v1.6 flow.
|
|
1621
1621
|
*
|
|
1622
|
-
* ## Status (2026-
|
|
1622
|
+
* ## Status (2026-05-07)
|
|
1623
1623
|
*
|
|
1624
|
-
* Base mainnet (8453):
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1624
|
+
* Base mainnet (8453): v1.6 redeploy. PAFIHook removed entirely — fee on
|
|
1625
|
+
* mint now happens via `MintFeeWrapper` (single global instance, multi-PT).
|
|
1626
|
+
* `pafiHook` field kept as placeholder for back-compat with consumers that
|
|
1627
|
+
* still reference it; set to a deterministic dead address to make misuse
|
|
1628
|
+
* obvious.
|
|
1628
1629
|
*
|
|
1629
1630
|
* Base Sepolia (84532): entire row is placeholder — not in active use.
|
|
1630
1631
|
*
|
|
1631
1632
|
* ## What lives where
|
|
1632
1633
|
*
|
|
1633
|
-
* pointToken
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1634
|
+
* pointToken — live POINT clone of PointToken impl (per-issuer; this
|
|
1635
|
+
* is the gg56 clone; other issuers have their own and
|
|
1636
|
+
* should read from the factory at runtime)
|
|
1637
|
+
* batchExecutor — EIP-7702 delegation target (Pimlico Simple7702Account)
|
|
1638
|
+
* usdt — MockERC20 used by Uniswap pools
|
|
1639
|
+
* issuerRegistry — registry of all issuers on this chain
|
|
1640
|
+
* mintingOracle — per-token mint cap enforcer (v1.6: per-token, not per-issuer)
|
|
1641
|
+
* mintFeeWrapper — v1.6 mint-time fee splitter (single global instance)
|
|
1642
|
+
* pafiHook — DEAD; v1.5 V4 swap fee removed in v1.6. Kept for ABI compat.
|
|
1639
1643
|
*
|
|
1640
1644
|
* PointTokenFactory + PointToken implementation addresses live in
|
|
1641
1645
|
* separate exports below — they're only needed at provisioning /
|
|
@@ -1649,10 +1653,16 @@ interface ContractAddresses {
|
|
|
1649
1653
|
issuerRegistry: Address;
|
|
1650
1654
|
mintingOracle: Address;
|
|
1651
1655
|
/**
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1655
|
-
*
|
|
1656
|
+
* v1.6 — single-instance MintFeeWrapper that skims a fee on every
|
|
1657
|
+
* sig-gated mint and distributes across the registered recipient
|
|
1658
|
+
* list for the target PointToken. Issuers route mints through this
|
|
1659
|
+
* by passing `mintFeeWrapperAddress` to `prepareMint`.
|
|
1660
|
+
*/
|
|
1661
|
+
mintFeeWrapper: Address;
|
|
1662
|
+
/**
|
|
1663
|
+
* @deprecated v1.5 PAFIHook (10% PT→USDT swap fee) was removed in
|
|
1664
|
+
* v1.6. Field kept as a dead placeholder so older consumers don't
|
|
1665
|
+
* crash on missing-property errors; do not use for new code.
|
|
1656
1666
|
*/
|
|
1657
1667
|
pafiHook: Address;
|
|
1658
1668
|
/** Chainlink ETH/USD price feed — used by FeeManager to convert gas cost to USDT. */
|
package/dist/index.js
CHANGED
|
@@ -799,31 +799,28 @@ function buildEip7702Authorization(params) {
|
|
|
799
799
|
// src/contracts/real/addresses.ts
|
|
800
800
|
var PLACEHOLDER_DEAD = (suffix) => `0x000000000000000000000000000000000000${suffix.toLowerCase().padStart(4, "0")}`;
|
|
801
801
|
var CONTRACT_ADDRESSES = {
|
|
802
|
-
// Base mainnet —
|
|
803
|
-
// registry:
|
|
804
|
-
// factory:
|
|
805
|
-
// oracle:
|
|
806
|
-
// tokenImpl:
|
|
807
|
-
//
|
|
808
|
-
//
|
|
809
|
-
// batchExecutor:
|
|
810
|
-
//
|
|
811
|
-
//
|
|
812
|
-
//
|
|
813
|
-
//
|
|
814
|
-
//
|
|
815
|
-
//
|
|
816
|
-
// v0.7 ECDSA dummy and matches what the web FE +
|
|
817
|
-
// permissionless `to7702SimpleSmartAccount` already
|
|
818
|
-
// used in production.)
|
|
819
|
-
// pafiHook: PAFIHook (V4, 10%) 0x870cAF9882d3160602AaC1769C2B264A2d8EC044
|
|
802
|
+
// Base mainnet — v1.6 redeploy (2026-05-07)
|
|
803
|
+
// registry: IssuerRegistry 0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01
|
|
804
|
+
// factory: PointTokenFactory 0xA08274458b43E7D6F4ff61ddFe8A9852c6531085
|
|
805
|
+
// oracle: MintingOracle 0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0
|
|
806
|
+
// tokenImpl: PointToken (impl) 0xc41c3F8A0380c7760Ee1209d6d19C4b81dE994e4
|
|
807
|
+
// mintFeeWrapper: MintFeeWrapper 0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93
|
|
808
|
+
// mockUsdt: MockERC20 0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382
|
|
809
|
+
// batchExecutor: Pimlico Simple7702 0xe6Cae83BdE06E4c305530e199D7217f42808555B (unchanged from v1.5)
|
|
810
|
+
//
|
|
811
|
+
// pointToken: gg56's clone redeploy is pending. Field set to dead
|
|
812
|
+
// placeholder until SC team provides the new clone address — consumers
|
|
813
|
+
// that need a specific PointToken should read from PointTokenFactory or
|
|
814
|
+
// the issuer's env config (`POINT_TOKEN_ADDRESS`). Old v1.5 clone
|
|
815
|
+
// `0x7d25E7156E51F865D522fd3ef257a6B5DD41b97e` is no longer authoritative.
|
|
820
816
|
8453: {
|
|
821
|
-
pointToken: "
|
|
817
|
+
pointToken: PLACEHOLDER_DEAD("dead"),
|
|
822
818
|
batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
|
|
823
|
-
usdt: "
|
|
824
|
-
issuerRegistry: "
|
|
825
|
-
mintingOracle: "
|
|
826
|
-
|
|
819
|
+
usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
|
|
820
|
+
issuerRegistry: "0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01",
|
|
821
|
+
mintingOracle: "0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0",
|
|
822
|
+
mintFeeWrapper: "0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93",
|
|
823
|
+
pafiHook: PLACEHOLDER_DEAD("dead"),
|
|
827
824
|
chainlinkEthUsd: "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70",
|
|
828
825
|
orderlyRelay: "0xDA082DAce1522c185aeB5A713FcA6fa6B6E99e7f",
|
|
829
826
|
pafiFeeRecipient: "0xa3F71eadEd101513a0151007590020dCFD7C495e",
|
|
@@ -837,6 +834,7 @@ var CONTRACT_ADDRESSES = {
|
|
|
837
834
|
usdt: PLACEHOLDER_DEAD("dead"),
|
|
838
835
|
issuerRegistry: PLACEHOLDER_DEAD("dead"),
|
|
839
836
|
mintingOracle: PLACEHOLDER_DEAD("dead"),
|
|
837
|
+
mintFeeWrapper: PLACEHOLDER_DEAD("dead"),
|
|
840
838
|
pafiHook: PLACEHOLDER_DEAD("dead"),
|
|
841
839
|
chainlinkEthUsd: PLACEHOLDER_DEAD("de02"),
|
|
842
840
|
orderlyRelay: PLACEHOLDER_DEAD("de03"),
|
|
@@ -845,11 +843,11 @@ var CONTRACT_ADDRESSES = {
|
|
|
845
843
|
}
|
|
846
844
|
};
|
|
847
845
|
var POINT_TOKEN_FACTORY_ADDRESSES = {
|
|
848
|
-
8453: "
|
|
846
|
+
8453: "0xA08274458b43E7D6F4ff61ddFe8A9852c6531085",
|
|
849
847
|
84532: PLACEHOLDER_DEAD("dead")
|
|
850
848
|
};
|
|
851
849
|
var POINT_TOKEN_IMPL_ADDRESSES = {
|
|
852
|
-
8453: "
|
|
850
|
+
8453: "0xc41c3F8A0380c7760Ee1209d6d19C4b81dE994e4",
|
|
853
851
|
84532: PLACEHOLDER_DEAD("dead")
|
|
854
852
|
};
|
|
855
853
|
function getContractAddresses(chainId) {
|