Skip to content

Commit

Permalink
Configure AA_SENDER_CREATOR for ERC7562Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Jan 21, 2025
1 parent 646c686 commit 6f61c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bundler/src/modules/initServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { MempoolManager } from './MempoolManager'
import { BundleManager } from './BundleManager'
import {
AA_ENTRY_POINT,
AA_SENDER_CREATOR,
AA_STAKE_MANAGER,
IValidationManager,
ValidationManager,
Expand Down Expand Up @@ -47,7 +48,7 @@ export function initServer (config: BundlerConfig, signer: Signer): [ExecutionMa
bundleManager = new BundleManager(entryPoint, entryPoint.provider as JsonRpcProvider, signer, eventsManager, mempoolManager, validationManager, reputationManager,
config.beneficiary, parseEther(config.minBalance), config.maxBundleGas, config.conditionalRpc)
} else {
const erc7562Parser = new ERC7562Parser(AA_ENTRY_POINT, config.senderCreator, true)
const erc7562Parser = new ERC7562Parser(AA_ENTRY_POINT, AA_SENDER_CREATOR, true)
const stakeManager = IRip7560StakeManager__factory.connect(AA_STAKE_MANAGER, signer)
validationManager = new ValidationManagerRIP7560(stakeManager, entryPoint.provider as JsonRpcProvider, erc7562Parser, config.unsafe)
bundleManager = new BundleManagerRIP7560(entryPoint.provider as JsonRpcProvider, signer, eventsManager, mempoolManager, validationManager, reputationManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { eth_traceRip7560Validation } from './GethTracer'
import { ERC7562Parser } from './ERC7562Parser'

export const AA_ENTRY_POINT = '0x0000000000000000000000000000000000007560'
export const AA_SENDER_CREATOR = '0x00000000000000000000000000000000ffff7560'
export const AA_STAKE_MANAGER = '0x570Aa568b6cf62ff08c6C3a3b3DB1a0438E871Fb'

export class ValidationManagerRIP7560 implements IValidationManager {
Expand Down

0 comments on commit 6f61c92

Please sign in to comment.