@iexec/iexec-oracle-factory-wrapper
Version:
A wrapper for creating API based oracles for ethereum on the top of iExec
19 lines (18 loc) • 742 B
TypeScript
import { getSignerFromPrivateKey } from 'iexec/utils';
import { getDefaults } from '../config/config.js';
import { ParamSet } from '../types/common.js';
import testRawParams from './callTester.js';
interface GetParamSetOptions {
paramSetOrCid: ParamSet | string;
ipfsGateway?: string;
}
interface ParamSetResult {
paramSet: ParamSet;
paramsJson: string;
isUploaded: boolean;
}
declare const getParamSet: ({ paramSetOrCid, ipfsGateway, }: GetParamSetOptions) => Promise<ParamSetResult>;
declare const computeOracleId: (paramSetOrCid: any, { ipfsGateway }?: {
ipfsGateway?: string;
}) => Promise<string>;
export { getParamSet, computeOracleId, testRawParams, getSignerFromPrivateKey, getDefaults as getChainDefaults, };