@iexec/iexec-oracle-factory-wrapper
Version:
A wrapper for creating API based oracles for ethereum on the top of iExec
12 lines (11 loc) • 750 B
TypeScript
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 };