@iexec/web3telegram
Version:
Enables secure, blockchain-based messaging by encrypting Telegram user IDs for privacy. It lets users message Ethereum account holders without knowing their Telegram details.
40 lines (30 loc) • 817 B
text/typescript
import { IExec } from 'iexec';
import { AddressOrENS } from './types.js';
import { GraphQLClient } from 'graphql-request';
import { IExecDataProtectorCore } from '@iexec/dataprotector';
export type ProtectedDataQuery = {
id: string;
name: string;
};
export type GraphQLResponse = {
protectedDatas: ProtectedDataQuery[];
};
export type DappAddressConsumer = {
dappAddressOrENS: AddressOrENS;
};
export type IpfsNodeConfigConsumer = {
ipfsNode: string;
};
export type IpfsGatewayConfigConsumer = {
ipfsGateway: string;
};
export type DappWhitelistAddressConsumer = {
dappWhitelistAddress: string;
};
export type IExecConsumer = {
iexec: IExec;
};
export type DataProtectorConsumer = { dataProtector: IExecDataProtectorCore };
export type SubgraphConsumer = {
graphQLClient: GraphQLClient;
};