UNPKG

@iexec/iexec-oracle-factory-wrapper

Version:
12 lines (11 loc) 750 B
import { RawParams } from '../types/common.js'; import { CreateOracleOptions, CreateOracleMessage } from '../types/createOracle.js'; import { IExecConsumer } from '../types/internal.js'; import { Observable } from '../utils/reactive.js'; /** * Creates a new oracle based on the provided parameters. * @param {RawParams & CreateOracleConfig & IExecConsumer} options Options for creating the oracle. * @returns {Observable<CreateOracleMessage>} Observable regarding the oracle creation process. */ declare const createOracle: ({ url, method, headers, body, JSONPath, dataType, apiKey, iexec, oracleAppWhitelist, ipfsGateway, ipfsNode, }: RawParams & CreateOracleOptions & IExecConsumer) => Observable<CreateOracleMessage>; export { createOracle };