diff --git a/src/types/eip1193.ts b/src/types/eip1193.ts index 4499512c28c..9a12dbb6333 100644 --- a/src/types/eip1193.ts +++ b/src/types/eip1193.ts @@ -143,44 +143,45 @@ export type WalletCallReceipt = { } export type WalletGrantPermissionsParameters = { - address?: Address | undefined - chainId?: Hex | undefined - expiry: number - permissions?: - | readonly { - data: unknown - policies: readonly { - data: unknown - type: string - }[] - required?: boolean | undefined - type: string - }[] - | undefined signer?: | { type: string data?: unknown | undefined } | undefined + permissions: readonly { + data: unknown + policies: readonly { + data: unknown + type: string + }[] + required?: boolean | undefined + type: string + }[] + expiry: number } -export type WalletGrantPermissionsReturnType = - WalletGrantPermissionsParameters & { - accountMeta?: - | { - factory?: `0x${string}` | undefined - factoryData?: string | undefined - } - | undefined - context: Hex - signerMeta?: - | { - userOpBuilder?: `0x${string}` | undefined - submitToAddress?: `0x${string}` | undefined - } - | undefined - } +export type WalletGrantPermissionsReturnType = { + expiry: number + factory?: `0x${string}` | undefined + factoryData?: string | undefined + grantedPermissions: readonly { + data: unknown + policies: readonly { + data: unknown + type: string + }[] + required?: boolean | undefined + type: string + }[] + permissionsContext: string + signerData?: + | { + userOpBuilder?: `0x${string}` | undefined + submitToAddress?: `0x${string}` | undefined + } + | undefined +} export type WalletGetCallsStatusReturnType = { status: 'PENDING' | 'CONFIRMED'