@iexec/web3mail
Version:
This product enables users to confidentially store data–such as mail address, documents, personal information ...
42 lines (32 loc) • 805 B
text/typescript
import { IExec } from 'iexec';
import { IExecDataProtectorCore } from '@iexec/dataprotector';
import { Address } from './types.js';
import { GraphQLClient } from 'graphql-request';
export type ProtectedDataQuery = {
id: string;
name: string;
};
export type GraphQLResponse = {
protectedDatas: ProtectedDataQuery[];
};
export type DappAddressConsumer = {
dappAddress: Address;
};
export type IpfsNodeConfigConsumer = {
ipfsNode: string;
};
export type IpfsGatewayConfigConsumer = {
ipfsGateway: string;
};
export type DappWhitelistAddressConsumer = {
dappWhitelistAddress: string;
};
export type IExecConsumer = {
iexec: IExec;
};
export type SubgraphConsumer = {
graphQLClient: GraphQLClient;
};
export type DataProtectorConsumer = {
dataProtector: IExecDataProtectorCore;
};