Skip to content
Merged
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
9 changes: 0 additions & 9 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
ACTIVE_SPONSORSHIP_POLICY=<policy id to use>
BUNDLER_RPC_HOST=https://api.pimlico.io/v1/<CHAIN_NAME>/rpc?apikey=<API_KEY>
PIMLICO_BUNDLER_RPC_HOST=https://api.pimlico.io/v1/<CHAIN_NAME>/rpc?apikey=<API_KEY>
PIMLICO_PAYMASTER_RPC_HOST=https://api.pimlico.io/v2/<CHAIN_NAME>/rpc?apikey=<API_KEY>
RPC_URL
TEST_PRIVATE_KEY
ENTRYPOINT_ADDRESS=0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
# Simple Account Factory Address
FACTORY_ADDRESS=0x9406Cc6185a346906296840746125a0E44976454
TEST_CHAIN_ID=<CHAIN_ID_NUMBER>
DEBUG=true
94 changes: 87 additions & 7 deletions bun.lock

Large diffs are not rendered by default.

Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@changesets/cli": "^2.26.2",
"@permissionless/wagmi": "workspace:packages/wagmi",
"@pimlico/mock-paymaster": "workspace:packages/mock-paymaster",
"@pimlico/alto": "0.0.0-main.20250527T165035",
"@pimlico/alto": "^0.0.19",
"@size-limit/esbuild-why": "^9.0.0",
"@size-limit/preset-small-lib": "^9.0.0",
"@tanstack/react-query": "5.45.1",
Expand Down
15 changes: 2 additions & 13 deletions packages/permissionless-test/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,11 @@ export const getCoreSmartAccounts = (): Array<{
}),
supportsEntryPointV06: false,
supportsEntryPointV07: true,
supportsEntryPointV08: true,
supportsEntryPointV08: false,
isEip1271Compliant: true
},
{
name: "Kernel 7579 0.3.3 + EIP-7702",
name: "Kernel 0.3.3 + EIP-7702",
getSmartAccountClient: async (conf: AAParamType<EntryPointVersion>) =>
getBundlerClient({
account: await getKernelEcdsaClient({
Expand All @@ -786,17 +786,6 @@ export const getCoreSmartAccounts = (): Array<{
}),
...conf
}),
getErc7579SmartAccountClient: async (
conf: AAParamType<EntryPointVersion>
) =>
getSmartAccountClient({
account: await getKernelEcdsaClient({
...(conf as AAParamType<"0.6" | "0.7">),
version: "0.3.3" as KernelVersion<"0.6" | "0.7">,
eip7702: true
}),
...conf
}),
supportsEntryPointV06: false,
supportsEntryPointV07: true,
supportsEntryPointV08: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,10 @@ export async function toKernelSmartAccount<
return this.signMessage({ message: hash })
},
async signMessage({ message }) {
if (eip7702) {
throw new Error("Kernel with EIP-7702 isn't 1271 compliant")
}

const signature = await signMessage({
owner,
message,
Expand All @@ -741,6 +745,10 @@ export async function toKernelSmartAccount<
])
},
async signTypedData(typedData) {
if (eip7702) {
throw new Error("Kernel with EIP-7702 isn't 1271 compliant")
}

const signature = await signTypedData({
owner: owner,
chainId: await getMemoizedChainId(),
Expand Down
Loading