Skip to content

Commit

Permalink
chore: revert 103de69
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 18, 2024
1 parent 75bcfa6 commit eb017f5
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions src/types/eip1193.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,44 +143,45 @@ export type WalletCallReceipt<quantity = Hex, status = Hex> = {
}

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<quantity = Hex, status = Hex> = {
status: 'PENDING' | 'CONFIRMED'
Expand Down

0 comments on commit eb017f5

Please sign in to comment.