import { multicall } from '../../utils' ; export const author = 'dimsome' ; export const version = '0.1.0' ; const abi = [ 'function ownerOf(uint256 tokenId) public view returns (address owner)' ] ; export async function strategy ( space , network , provider , addresses , options , snapshot ) { const blockTag = typeof snapshot === 'number' ? snapshot : 'latest' ; const response = await multicall ( network , provider , abi , options . tokenIds . map ( ( id ) => [ options . address , 'ownerOf' , [ id ] ] ) , { blockTag } ) ; return Object . fromEntries ( addresses . map ( ( address ) => [ address , response . findIndex ( ( res ) => res . owner . toLowerCase ( ) === address . toLowerCase ( ) ) > - 1 ? 1 : 0 ] ) ) ; }