Skip to content

Commit b6d6f36

Browse files
committed
feat: remove EP 0.6 support
1 parent 10577dd commit b6d6f36

File tree

3 files changed

+52
-93
lines changed

3 files changed

+52
-93
lines changed

config.yaml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: ERC4337 Indexer
22
description: ERC4337 Account and Module Indexer
33
contracts:
4-
- name: EntryPointV0_6_0
5-
abi_file_path: ./abi/entryPointV0_6_0.json
6-
handler: ./src/entryPoint.ts
7-
events:
8-
- event: UserOperationEvent(bytes32 indexed userOpHash, address indexed sender, address indexed paymaster, uint256 nonce, bool success, uint256 actualGasCost, uint256 actualGasUsed)
9-
- event: AccountDeployed(bytes32 indexed userOpHash, address indexed sender, address factory, address paymaster)
104
- name: EntryPointV0_7_0
115
abi_file_path: ./abi/entryPointV0_7_0.json
126
handler: ./src/entryPoint.ts
@@ -23,72 +17,52 @@ networks:
2317
- id: 1
2418
start_block: 0
2519
contracts:
26-
- name: EntryPointV0_6_0
27-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
2820
- name: EntryPointV0_7_0
2921
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
3022
- id: 11155111
3123
start_block: 0
3224
contracts:
33-
- name: EntryPointV0_6_0
34-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
3525
- name: EntryPointV0_7_0
3626
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
3727
- id: 10
3828
start_block: 0
3929
contracts:
40-
- name: EntryPointV0_6_0
41-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
4230
- name: EntryPointV0_7_0
4331
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
4432
- id: 11155420
4533
start_block: 0
4634
contracts:
47-
- name: EntryPointV0_6_0
48-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
4935
- name: EntryPointV0_7_0
5036
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
5137
- id: 137
5238
start_block: 0
5339
contracts:
54-
- name: EntryPointV0_6_0
55-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
5640
- name: EntryPointV0_7_0
5741
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
5842
- id: 80002
5943
hypersync_config:
6044
endpoint_url: "https://amoy.hypersync.xyz"
6145
start_block: 0
6246
contracts:
63-
- name: EntryPointV0_6_0
64-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
6547
- name: EntryPointV0_7_0
6648
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
6749
- id: 8453
6850
start_block: 0
6951
contracts:
70-
- name: EntryPointV0_6_0
71-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
7252
- name: EntryPointV0_7_0
7353
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
7454
- id: 84532
7555
start_block: 0
7656
contracts:
77-
- name: EntryPointV0_6_0
78-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
7957
- name: EntryPointV0_7_0
8058
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
8159
- id: 42161
8260
start_block: 0
8361
contracts:
84-
- name: EntryPointV0_6_0
85-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
8662
- name: EntryPointV0_7_0
8763
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"
8864
- id: 421614
8965
start_block: 0
9066
contracts:
91-
- name: EntryPointV0_6_0
92-
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
9367
- name: EntryPointV0_7_0
9468
address: "0x0000000071727de22e5e9d8baf0edac6f37da032"

pnpm-lock.yaml

Lines changed: 50 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/entryPoint.ts

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,16 @@
11
import {
2-
contractRegistrations,
3-
EntryPointV0_6_0,
4-
EntryPointV0_6_0_AccountDeployed_eventArgs,
5-
EntryPointV0_6_0_UserOperationEvent_eventArgs,
2+
EntryPointV0_7_0_UserOperationEvent_eventArgs,
63
EntryPointV0_7_0,
74
eventLog,
85
handlerContext,
96
} from "generated";
107

11-
EntryPointV0_6_0.AccountDeployed.contractRegister(({ event, context }) => {
12-
handleAccountDeployedContractRegister(event, context);
13-
});
14-
EntryPointV0_7_0.AccountDeployed.contractRegister(({ event, context }) => {
15-
handleAccountDeployedContractRegister(event, context);
16-
});
17-
18-
function handleAccountDeployedContractRegister(
19-
event: eventLog<EntryPointV0_6_0_AccountDeployed_eventArgs>,
20-
context: contractRegistrations
21-
) {
22-
const address = event.params.sender.toLowerCase();
23-
const factory = event.params.factory.toLowerCase();
24-
}
25-
26-
EntryPointV0_6_0.AccountDeployed.handler(async ({ event, context }) => {
27-
handleAccountDeployedEvent(event, context);
28-
});
29-
EntryPointV0_7_0.AccountDeployed.handler(async ({ event, context }) => {
30-
handleAccountDeployedEvent(event, context);
31-
});
32-
33-
async function handleAccountDeployedEvent(
34-
event: eventLog<EntryPointV0_6_0_AccountDeployed_eventArgs>,
35-
context: handlerContext
36-
) {
37-
const address = event.params.sender.toLowerCase();
38-
const factory = event.params.factory.toLowerCase();
39-
}
40-
41-
EntryPointV0_6_0.UserOperationEvent.handler(async ({ event, context }) => {
42-
handleUserOperationEvent(event, context);
43-
});
44-
458
EntryPointV0_7_0.UserOperationEvent.handler(async ({ event, context }) => {
469
handleUserOperationEvent(event, context);
4710
});
4811

4912
async function handleUserOperationEvent(
50-
event: eventLog<EntryPointV0_6_0_UserOperationEvent_eventArgs>,
13+
event: eventLog<EntryPointV0_7_0_UserOperationEvent_eventArgs>,
5114
context: handlerContext
5215
) {
5316
const hash = event.params.userOpHash;

0 commit comments

Comments
 (0)