UNPKG

@effectai/sdk

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

25 lines (24 loc) 971 B
import { type AnyAction } from "@wharfkit/antelope"; import type { Client } from "../../../client"; import type { Mkbatch, Settings } from "../../../@generated/types/tasks.efx"; export type CreateBatchActionArgs = { client: Client; forceSettings: Settings; batch: Mkbatch; hash: string; }; export declare const createBatchAction: ({ client, forceSettings, batch, hash, }: CreateBatchActionArgs) => AnyAction; export type PublishBatchActionArgs = { client: Client; batchId: number; numTasks: number; }; export declare const publishBatchAction: ({ client, batchId, numTasks, }: PublishBatchActionArgs) => AnyAction; export type CreateBatchArgs = { client: Client; campaignId: number; repetitions: number; reward: number; taskData: Record<string, unknown>[]; }; export declare const createBatch: ({ client, campaignId, repetitions, reward, taskData, }: CreateBatchArgs) => Promise<import("@wharfkit/session").TransactResult>;