import { InfuraProvider } from '@ethersproject/providers' ; import { Task } from 'types' ; export async function verify ( task , address ) { try { const provider = new InfuraProvider ( task . chainId || 1 ) ; const name = await provider . lookupAddress ( address ) ; if ( ! name ) return false ; const resolver = await provider . getResolver ( name ) ; if ( ! resolver ) return false ; const avatar = await resolver . getAvatar ( ) ; return ! ! avatar ; } catch ( e ) { return false ; } }