1 | export interface Campaign {
|
2 | id: number;
|
3 | tasks_done: number;
|
4 | total_tasks: number;
|
5 | active_batch: number;
|
6 | num_batches: number;
|
7 | owner: [string, string];
|
8 | paused: number;
|
9 | content: {
|
10 | field_0: number;
|
11 | field_1: string;
|
12 | };
|
13 | max_task_time: number;
|
14 | reward: {
|
15 | quantity: string;
|
16 | contract: string;
|
17 | };
|
18 | qualis?: any[];
|
19 | info?: {
|
20 | version: number;
|
21 | title: string;
|
22 | description: string;
|
23 | instructions: string;
|
24 | template: string;
|
25 | input_schema?: any;
|
26 | output_schema?: any;
|
27 | image: string;
|
28 | category?: any;
|
29 | example_task?: any;
|
30 | estimated_time: number;
|
31 | };
|
32 | }
|
33 | export interface InitCampaign {
|
34 | quantity: string;
|
35 | max_task_time: number;
|
36 | qualis?: any[];
|
37 | info: {
|
38 | version: number;
|
39 | title: string;
|
40 | description: string;
|
41 | instructions: string;
|
42 | template: string;
|
43 | input_schema?: any;
|
44 | output_schema?: any;
|
45 | image: string;
|
46 | category?: any;
|
47 | example_task?: any;
|
48 | estimated_time: number;
|
49 | };
|
50 | }
|
51 | export interface Reservation {
|
52 | id: number;
|
53 | task_idx: number;
|
54 | account_id: number;
|
55 | batch_id: number;
|
56 | reserved_on: string;
|
57 | campaign_id: number;
|
58 | }
|
59 | export interface Batch {
|
60 | id: number;
|
61 | campaign_id: number;
|
62 | content: {
|
63 | field_0: number;
|
64 | field_1: string;
|
65 | };
|
66 | balance: {
|
67 | quantity: string;
|
68 | contract: string;
|
69 | };
|
70 | repetitions: number;
|
71 | tasks_done: number;
|
72 | num_tasks: number;
|
73 | start_task_idx: number;
|
74 | reward: {
|
75 | quantity: string;
|
76 | contract: string;
|
77 | };
|
78 | }
|
79 | export interface InitBatch {
|
80 | campaign_id: number;
|
81 | repetitions: number;
|
82 | data: any[];
|
83 | }
|
84 | export interface TasksSettings {
|
85 | vaccount_contract: string;
|
86 | force_vaccount_id: number;
|
87 | payout_delay_sec: number;
|
88 | release_task_delay_sec: number;
|
89 | fee_contract: string;
|
90 | fee_percentage: string;
|
91 | ram_payer?: string;
|
92 | }
|
93 | export interface RepsDone {
|
94 | campaign_id: number;
|
95 | task_idx: number;
|
96 | value: number;
|
97 | }
|
98 | export interface DaoConfig {
|
99 | stake_contract: string;
|
100 | proposal_contract: string;
|
101 | utl_token_sym: {
|
102 | sym: string;
|
103 | contract: string;
|
104 | };
|
105 | gov_token_sym: {
|
106 | sym: string;
|
107 | contract: string;
|
108 | };
|
109 | allowed_collections: string[];
|
110 | }
|
111 | export interface AtomicAsset {
|
112 | asset_id: string;
|
113 | collection_name: string;
|
114 | schema_name: string;
|
115 | template_id: string;
|
116 | ram_payer: string;
|
117 | backed_tokens: string[];
|
118 | immutable_serialized_data: Uint8Array;
|
119 | mutable_serialized_data: Uint8Array;
|
120 | immutable_deserialized_data: AtomicAssetSchema;
|
121 | mutable_deserialized_data: AtomicAssetSchema;
|
122 | }
|
123 | export interface SchemaObject {
|
124 | name: string;
|
125 | type: any;
|
126 | }
|
127 | export interface AtomicAssetSchema {
|
128 | schema_name: string;
|
129 | format: SchemaObject[];
|
130 | }
|