UNPKG

@iexec/dataprotector

Version:

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

15 lines 810 B
import { Contract } from 'ethers'; import { ABI } from '../../../../generated/abis/sharing/interfaces/IRegistry.sol/IRegistry.js'; export async function getPocoDatasetRegistryContract(iexec) { const { signer, getIExecContract } = await iexec.config.resolveContractsClient(); const poco = getIExecContract(); const datasetRegistryAddress = await poco.datasetregistry(); return new Contract(datasetRegistryAddress, ABI).connect(signer); } export async function getPocoAppRegistryContract(iexec) { const { signer, getIExecContract } = await iexec.config.resolveContractsClient(); const poco = getIExecContract(); const appRegistryAddress = await poco.appregistry(); return new Contract(appRegistryAddress, ABI).connect(signer); } //# sourceMappingURL=getPocoRegistryContract.js.map