Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ import { ethers } from "ethers";
// --- Constants ---

// Address of the ERC-4337 EntryPoint contract
const ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
// Supported EntryPoint addresses by version:
// v0.6: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
// v0.7: 0x0000000071727De22E5E9d8BAf0edAc6f37da032
// v0.8: 0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108
// Use the address matching your smart account's EntryPoint version.
// This example uses v0.6; update to the appropriate version as needed.
const ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"; // EntryPoint v0.6

// ABI for the EntryPoint contract, specifically for the getNonce function
const ENTRYPOINT_ABI = [
Expand Down
4 changes: 2 additions & 2 deletions content/wallets/pages/resources/types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ export type UserOperationRequest<
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
> = (TEntryPointVersion extends "0.6.0"
? UserOperationRequest_v6
: TEntryPointVersion extends "0.7.0"
: TEntryPointVersion extends "0.7.0" | "0.8.0"
? UserOperationRequest_v7
: never) &
Eip7702ExtendedFields;
Expand Down Expand Up @@ -705,7 +705,7 @@ export type UserOperationStruct<
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
> = (TEntryPointVersion extends "0.6.0"
? UserOperationStruct_v6
: TEntryPointVersion extends "0.7.0"
: TEntryPointVersion extends "0.7.0" | "0.8.0"
? UserOperationStruct_v7
: never) &
Eip7702ExtendedFields;
Expand Down
2 changes: 1 addition & 1 deletion content/wallets/shared/estimate-gas-with-any-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const quote = await client?.request({
params: [
{
policyId: policyId,
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', // EntryPoint v0.6; use 0x0000000071727De22E5E9d8BAf0edAc6f37da032 for v0.7 or 0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108 for v0.8
dummySignature: userOp.signature,
userOperation: {
sender: userOp.sender,
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/portfolio/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ UserOperationReceipt:
EntryPoint:
$ref: "#/Hex"
title: Entrypoint Address
description: The entrypoint address the request should be sent through. This MUST be one of the entry points returned by the `supportedEntryPoints` RPC call.
default: "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
description: The entrypoint address the request should be sent through. This MUST be one of the entry points returned by the `supportedEntryPoints` RPC call. Supported versions - v0.6: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789, v0.7: 0x0000000071727De22E5E9d8BAf0edAc6f37da032, v0.8: 0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108.
default: "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108"

BlockOverride:
$ref: "#/Hex"
Expand Down
7 changes: 4 additions & 3 deletions src/openrpc/alchemy/bundler/bundler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ methods:
result:
name: Supported entryPoints
value:
- "0xcd01C8aa8995A59eB7B2627E69b40e0524B5ecf8"
- "0x7A0A0d159218E6a2f407B99173A2b12A6DDfC2a6"
- "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
- "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
- "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108"

- name: eth_getUserOperationByHash
description: |
Expand Down Expand Up @@ -610,7 +611,7 @@ methods:
- name: UserOperation
value: { sender: "0x...", nonce: "0x...", callData: "0x..." }
- name: Entrypoint address
value: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
value: "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108"
result:
name: userOpHash
value:
Expand Down
Loading