import { multicall } from '../../utils' ; export const author = 'davekaj' ; export const version = '0.1.0' ; const abi = [ { constant : true , inputs : [ { internalType : 'address' , name : 'owner' , type : 'address' } ] , name : 'isOwner' , outputs : [ { internalType : 'bool' , name : '' , type : 'bool' } ] , payable : false , stateMutability : 'view' , type : 'function' } ] ; export async function strategy ( space , network , provider , addresses , options , snapshot ) { const blockTag = typeof snapshot === 'number' ? snapshot : 'latest' ; const response = await multicall ( network , provider , abi , addresses . map ( ( address ) => [ options . address , 'isOwner' , [ address ] ] ) , { blockTag } ) ; return Object . fromEntries ( response . map ( ( value , i ) => [ addresses [ i ] , value [ 0 ] ? 1 : 0 ] ) ) ; }