Skip to main content

EntryPoints and Kernel

The ERC-4337 contracts on PEPU mainnet: EntryPoint v0.6 and v0.7, the ZeroDev Kernel v3.1 account stack (factory, meta-factory, implementation, ECDSA validator and signer) and the session-key policies, with the ABIs the SDK ships. Read it to know which address does what and which versions to pin.

These contracts were deployed by ZeroDev's one-click Conduit Marketplace integration; mainnet only. pnpm --filter @pepu-chain/sdk live-check re-checks every address with eth_getCode. See Infrastructure Map.

EntryPoints​

VersionAddressBytesUse
v0.70x0000000071727De22E5E9d8BAf0edAc6f37da03216035Kernel v3.x, the PEPU paymaster, Privy's smart-wallet integration. Use this one
v0.60x5FF137D4b0FDCD49DcA30c7CF57E578a026d278923689Deployed and served by the bundler; nothing in the dev kit targets it

Both are at the canonical addresses. The paymaster, the bundler and the policy service all use v0.7. The SDK ships entryPointV07Abi (from @pepu-chain/sdk); the paymaster deposit is read through it (getPaymasterDeposit in @pepu-chain/sdk/aa).

Kernel account stack​

ComponentAddressRole
Kernel v3 factory0xaac5D4240AF87249B3f71BC8E4A2cae074A3E419Creates accounts; getAddress(...) returns the counterfactual address, so never re-implement the CREATE2 hash
Kernel MetaFactory0xd703aaE79538628d27099B8c4f621bE4CCd142d5Factory of factories
Kernel v3.1 implementation0xbAC849bB641841b44E965fb01A4Bf5F074F84B4dWhat the factory's implementation() resolves to; accounts are proxies to it
Kernel ECDSA validator0x845ADb2C711129d4f3966735eD98a9F09fC4cE57Default root validator: one ECDSA key (for example a Privy embedded wallet) authorises the account
Kernel ECDSA signer module0x6A6F069E2a08c2468e7724Ab3250CdBFBA14D4FFSigner used inside permission-validator session keys

The SDK pins Kernel v3.1 (KERNEL_VERSION in @pepu-chain/sdk/aa/kernel). Accounts are deployed on the user's first UserOperation (the operation carries factory and factoryData), which is why a first transaction costs about 12 PEPU worst case against about 3 PEPU afterwards.

Session-key policies​

PolicyAddressWhat it enforces
Call policy v0.0.40x9a52283276A0ec8740DF50bF01B28A80D880eaf2Only the listed targets and selectors, with a native value no larger than the limit (default 0)
Timestamp policy0xB9f8f524bE6EcD8C945b1b87f9ae5C192FdCE20FThe permission is invalid outside validAfter to validUntil

Why v0.0.4, not v0.0.5. ZeroDev's call policy v0.0.5 is not deployed on PEPU. The SDK pins CallPolicyVersion.V0_0_4 and exports the address as CALL_POLICY_V0_0_4_ADDRESS (and TIMESTAMP_POLICY_ADDRESS) from @pepu-chain/sdk/session/kernel. An out-of-scope UserOperation is rejected by the EntryPoint itself, whoever relays it. Do not configure a newer policy version or a client default that selects v0.0.5; it will point at an address with no code. See Session Keys.

ABIs in the SDK​

ExportCovers
entryPointV07AbiEntryPoint v0.7
kernelFactoryAbi, kernelEcdsaValidatorAbiKernel factory and validator. KERNEL_V3_1_IMPLEMENTATION_ADDRESS and ERC7579_MODULE_TYPE are exported alongside
multicall3Abi, permit2AbiThe two infrastructure contracts, Multicall3 and Permit2
pepuSponsoredPaymasterV2Abi (from /paymaster)The v2 paymaster

Registry access: getContract(97741, "entryPoint07"), getContract(97741, "kernelFactory") and so on; isDeployed narrows the type so an undeployed entry can never be read as an address. Names: entryPoint06, entryPoint07, kernelFactory, kernelMetaFactory, kernelImplementation, ecdsaValidator, kernelEcdsaSignerModule, kernelCallPolicyV004, kernelTimestampPolicy.

Common failures​

SymptomCauseFix
Session key setup reverts or the policy has no codeA client defaulted to call policy v0.0.5Pin v0.0.4
Counterfactual address differs from the deployed oneDifferent Kernel version, validator or indexUse the factory's getAddress with the SDK's pinned version
Operation rejected during account creationWrong factory or init dataBuild the account with toPepuKernelAccount / getKernelAddress from @pepu-chain/sdk/aa/kernel
Bundler says EntryPoint unsupportedSent v0.6Use v0.7