bcnmy / bcnmy/userop-debugger-backend

Add getEntryPointContractInstance function in service-manager

Open
#41 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Background
Query on EntryPoint contract needs to load its contract instance from EPAddress, Ep-ABI and provider on a given chainId

## Change Proposal
Add a function `getEntryPointContractInstance` in `service-manager.ts`
maintain a map with key as networkId and value as EPContractInstance

```js
const epContractInstanceMap = new Map();
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in service-manager.ts and trace how EntryPoint contract queries currently obtain their provider, address, ABI, and chainId. Implement the requested getEntryPointContractInstance entry point and verify that the per-network instance map is reused for subsequent queries; the issue does not name a test file or command.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, blockchain
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.