import { OnetimeLockRequestDispatcherAbi, ONETIME_LOCK_DISPATCHER, } from '@prex0/prex-structs'; import { Hex, PublicActions } from 'viem'; export async function getLinkRequest(client: PublicActions, id: Hex) { return await client.readContract({ address: ONETIME_LOCK_DISPATCHER, abi: OnetimeLockRequestDispatcherAbi, functionName: 'pendingRequests', args: [id], }); }