@iexec/iexec-oracle-factory-wrapper
Version:
A wrapper for creating API based oracles for ethereum on the top of iExec
53 lines (52 loc) • 1.91 kB
TypeScript
import { ObjectSchema } from 'yup';
declare const callParamsSchema: () => ObjectSchema<{
url: string;
method: "GET" | "POST" | "PUT" | "DELETE";
headers: {};
body: string;
}, import("yup").AnyObject, {
url: undefined;
method: undefined;
headers: {};
body: "";
}, "">;
declare const strictCallParamsSchema: () => ObjectSchema<{}, import("yup").AnyObject, {}, "">;
declare const rawParamsSchema: () => ObjectSchema<{
url: string;
method: "GET" | "POST" | "PUT" | "DELETE";
headers: {};
body: string;
JSONPath: string;
dataType: "string" | "number" | "boolean";
apiKey: string;
}, import("yup").AnyObject, {
url: undefined;
method: undefined;
headers: {};
body: "";
JSONPath: undefined;
dataType: undefined;
apiKey: undefined;
}, "">;
declare const paramSetSchema: () => ObjectSchema<{
url: string;
method: "GET" | "POST" | "PUT" | "DELETE";
headers: {};
body: string;
JSONPath: string;
dataType: "string" | "number" | "boolean";
dataset: string;
}, import("yup").AnyObject, {
url: undefined;
method: undefined;
headers: {};
body: "";
JSONPath: undefined;
dataType: undefined;
dataset: "0x0000000000000000000000000000000000000000";
}, "">;
declare const strictParamSetSchema: () => ObjectSchema<any>;
declare const jsonParamSetSchema: () => import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
declare const readDataTypeSchema: () => import("yup").StringSchema<"string" | "number" | "boolean" | "raw", import("yup").AnyObject, undefined, "">;
declare const updateTargetBlockchainsSchema: () => import("yup").ArraySchema<number[], import("yup").AnyObject, any[], "d">;
export { callParamsSchema, rawParamsSchema, paramSetSchema, strictCallParamsSchema, strictParamSetSchema, jsonParamSetSchema, readDataTypeSchema, updateTargetBlockchainsSchema, };