UNPKG

@iexec/web3mail

Version:

This product enables users to confidentially store data–such as mail address, documents, personal information ...

17 lines 744 B
import { booleanSchema, throwIfMissing } from '../utils/validators.js'; import { fetchUserContacts } from './fetchUserContacts.js'; export const fetchMyContacts = async ({ graphQLClient = throwIfMissing(), iexec = throwIfMissing(), dappAddressOrENS = throwIfMissing(), dappWhitelistAddress = throwIfMissing(), isUserStrict = false, }) => { const vIsUserStrict = booleanSchema() .label('isUserStrict') .validateSync(isUserStrict); const userAddress = await iexec.wallet.getAddress(); return fetchUserContacts({ iexec, graphQLClient, dappAddressOrENS, dappWhitelistAddress, userAddress, isUserStrict: vIsUserStrict, }); }; //# sourceMappingURL=fetchMyContacts.js.map