diff --git a/.changeset/neat-coats-compete.md b/.changeset/neat-coats-compete.md new file mode 100644 index 00000000..f079c8c6 --- /dev/null +++ b/.changeset/neat-coats-compete.md @@ -0,0 +1,5 @@ +--- +"permissionless": patch +--- + +Added Erc7677 upgrade to include sponsor & isFinal in paymaster stub data. diff --git a/packages/permissionless-test/mock-aa-infra/mock-paymaster/relay.ts b/packages/permissionless-test/mock-aa-infra/mock-paymaster/relay.ts index 79723c25..326af8d6 100644 --- a/packages/permissionless-test/mock-aa-infra/mock-paymaster/relay.ts +++ b/packages/permissionless-test/mock-aa-infra/mock-paymaster/relay.ts @@ -324,19 +324,28 @@ const handleMethod = async ( const [, entryPoint] = params.data + const sponsorData = { + name: "Pimlico", + icon: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEAkACQAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCADEAMQDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJ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rH/q7iv+f9D/yp/wDIH4G/8Fnf+Divx/8A8FOfhtZ/s3/Cf4VXfwG/Z0bXNL8SeNrTXvEVv4n+IHxQ1Xw/eJqPhu01y50yz0/RPD3hTRNUjt9Zj8OWQ1u5v9e07StWudeSOwg01PpMg4Wp5RWeLr11icVyuNPli4U6KmnGbjduU5Si+XmkopRcko63PVy3J1g5+2qTVSrZqPKnGME97Xd5SfdpWTtbqfzSV9fHqe41cMVdxcq8wxRcOVeYYouHKvMMUXDlXmGKLhyrzDFFw5V5hii4cq8wxRcOVeYYouHKvMMUXDlXmQUigoAKACgAoAKAJR0H0FHL5kPdhRy+Ygo5fMAo5fMAo5fMAo5fMAo5fMBRUtWLjt8x1EeowqgCgAoAKACgAoAKACgAoAKAK9ABQAUAFABQAUASjoPoKZm936i0wCgAoAKACgAoAUVEuhcdvmLSj1GFUAUAFABQAUAFABQAUAFABQBXoAKACgAoAKACgCUdB9BTM3u/UWmAUAFABQAUAFACiol0Ljt8xaUeowqgCgAoAKACgAoAKACgAoAKAK9ABQAUAFABQAUASjoPoKZm936i0wCgAoAKACgAoAUVEuhcdvmLSj1GFUAUAFABQAUAFABQAUAFABQBXoAKACgAoAKACgCUdB9BTM3u/UWmAUAFABQAUAFACiol0Ljt8xaUeowqgCgAoAKACgAoAKACgAoAKAK9ABQAUAFABQAUASjoPoKZm936i0wCgAoAKACgAoAUVEuhcdvmLSj1GFUAUAFABQAUAFABQAUAFABQAP/Z" + } + if (entryPoint === ENTRYPOINT_ADDRESS_V07) { return { paymaster: verifyingPaymasterV07.address, paymasterData: "0x00000000000000000000000000000000000000000000000000000101010101010000000000000000000000000000000000000000000000000000000000000000cd91f19f0f19ce862d7bec7b7d9b95457145afc6f639c28fd0360f488937bfa41e6eedcd3a46054fd95fcd0e3ef6b0bc0a615c4d975eef55c8a3517257904d5b1c", paymasterVerificationGasLimit: toHex(50_000n), - paymasterPostOpGasLimit: toHex(20_000n) + paymasterPostOpGasLimit: toHex(20_000n), + sponsor: sponsorData, + isFinal: false } } if (entryPoint === ENTRYPOINT_ADDRESS_V06) { return { - paymasterAndData: `${verifyingPaymasterV06.address}00000000000000000000000000000000000000000000000000000101010101010000000000000000000000000000000000000000000000000000000000000000cd91f19f0f19ce862d7bec7b7d9b95457145afc6f639c28fd0360f488937bfa41e6eedcd3a46054fd95fcd0e3ef6b0bc0a615c4d975eef55c8a3517257904d5b1c` + paymasterAndData: `${verifyingPaymasterV06.address}00000000000000000000000000000000000000000000000000000101010101010000000000000000000000000000000000000000000000000000000000000000cd91f19f0f19ce862d7bec7b7d9b95457145afc6f639c28fd0360f488937bfa41e6eedcd3a46054fd95fcd0e3ef6b0bc0a615c4d975eef55c8a3517257904d5b1c`, + sponsor: sponsorData, + isFinal: false } } diff --git a/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.test.ts b/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.test.ts index 003b510a..991fbc75 100644 --- a/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.test.ts +++ b/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.test.ts @@ -43,6 +43,9 @@ describe("EIP-7677 getPaymasterStubData", () => { }) expect(stubData).not.toBeNull() expect(stubData?.paymasterAndData).not.toBeNull() + expect(stubData?.isFinal).toBe(false) + expect(stubData?.sponsor?.icon).toBeTruthy() + expect(stubData?.sponsor?.name).toBe("Pimlico") }) testWithRpc("getPaymasterStubData_V07", async ({ rpc }) => { @@ -80,5 +83,8 @@ describe("EIP-7677 getPaymasterStubData", () => { expect(stubData?.paymasterData).not.toBeNull() expect(stubData?.paymasterPostOpGasLimit).not.toBeNull() expect(stubData?.paymasterVerificationGasLimit).not.toBeNull() + expect(stubData?.isFinal).toBe(false) + expect(stubData?.sponsor?.icon).toBeTruthy() + expect(stubData?.sponsor?.name).toBe("Pimlico") }) }) diff --git a/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.ts b/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.ts index 7cc300d2..0d0ba502 100644 --- a/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.ts +++ b/packages/permissionless/experimental/eip7677/actions/getPaymasterStubData.ts @@ -72,12 +72,16 @@ export type GetPaymasterStubDataReturnType = GetEntryPointVersion extends "v0.6" ? { paymasterAndData: Hex + sponsor?: { name: string; icon?: string } + isFinal?: boolean } : { paymaster: Hex paymasterData: Hex paymasterVerificationGasLimit?: bigint paymasterPostOpGasLimit?: bigint + sponsor?: { name: string; icon?: string } + isFinal?: boolean } export async function getPaymasterStubData< @@ -145,7 +149,9 @@ export async function getPaymasterStubData< response as GetRpcPaymasterStubDataReturnType return { - paymasterAndData: responseV06.paymasterAndData + paymasterAndData: responseV06.paymasterAndData, + sponsor: responseV06.sponsor, + isFinal: responseV06.isFinal } as GetPaymasterStubDataReturnType } @@ -160,6 +166,8 @@ export async function getPaymasterStubData< : undefined, paymasterPostOpGasLimit: responseV07.paymasterPostOpGasLimit ? BigInt(responseV07.paymasterPostOpGasLimit) - : undefined + : undefined, + sponsor: responseV07.sponsor, + isFinal: responseV07.isFinal } as GetPaymasterStubDataReturnType } diff --git a/packages/permissionless/experimental/eip7677/types/paymaster.ts b/packages/permissionless/experimental/eip7677/types/paymaster.ts index de1342f0..bf41777c 100644 --- a/packages/permissionless/experimental/eip7677/types/paymaster.ts +++ b/packages/permissionless/experimental/eip7677/types/paymaster.ts @@ -18,12 +18,16 @@ export type GetRpcPaymasterStubDataReturnType = GetEntryPointVersion extends "v0.6" ? { paymasterAndData: Hex + sponsor?: { name: string; icon?: string } + isFinal?: boolean } : { paymaster: Hex paymasterData: Hex paymasterVerificationGasLimit?: Hex | null paymasterPostOpGasLimit?: Hex | null + sponsor?: { name: string; icon?: string } + isFinal?: boolean } export type GetRpcPaymasterDataParameters = [