@effectai/sdk
Version:
Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))
29 lines (28 loc) • 905 B
TypeScript
import { UInt128 } from "@wharfkit/antelope";
import type { Client } from "../../../client";
import type { GetTableRowsResponse } from "../../../types/helpers";
import type { Campaign } from "../../../@generated/types/tasks.efx";
export type CampaignInfo = {
category: string;
description: string;
estimated_time: number;
example_task: string;
image: string;
instructions: string;
input_schema: string | null;
output_schema: string | null;
template: string;
title: string;
version: number;
};
export type CampaignWithInfo = Campaign & {
info?: CampaignInfo;
};
export type GetCampaignsArgs = {
client: Client;
page?: number;
limit?: number;
reverse?: boolean;
ipfsFetch?: boolean;
};
export declare const getCampaigns: ({ client, page, limit, reverse, ipfsFetch, }: GetCampaignsArgs) => Promise<GetTableRowsResponse<UInt128, Campaign>>;