@merkl/api 0.20.158 → 0.20.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/eden/index.d.ts +747 -747
- package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/metadata.js +36 -0
- package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Locker/tvl.js +21 -0
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
- package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
- package/dist/src/engine/metadata/factory.js +1 -0
- package/dist/src/engine/tvl/logStates.d.ts +17 -0
- package/dist/src/engine/tvl/logStates.js +106 -0
- package/dist/src/index.d.ts +255 -255
- package/dist/src/index.js +2 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
- package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
- package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
- package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
- package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
- package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
- package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
- package/dist/src/modules/v4/price/price.service.d.ts +4 -4
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
- package/dist/src/modules/v4/router.d.ts +255 -255
- package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
- package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
- package/dist/src/modules/v4/status/status.service.d.ts +7 -7
- package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.d.ts +14 -14
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -11,11 +11,11 @@ export declare abstract class CampaignService {
|
|
11
11
|
type?: string;
|
12
12
|
}): Promise<({
|
13
13
|
Opportunity: {
|
14
|
-
id: string;
|
15
|
-
name: string;
|
16
|
-
type: string;
|
17
14
|
status: import("@db/api").$Enums.Status;
|
15
|
+
type: string;
|
16
|
+
name: string;
|
18
17
|
description: string;
|
18
|
+
id: string;
|
19
19
|
tags: string[];
|
20
20
|
identifier: string;
|
21
21
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -31,9 +31,9 @@ export declare abstract class CampaignService {
|
|
31
31
|
lastCampaignCreatedAt: Date;
|
32
32
|
};
|
33
33
|
} & {
|
34
|
-
id: string;
|
35
34
|
type: string;
|
36
35
|
description: string | null;
|
36
|
+
id: string;
|
37
37
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
38
38
|
subType: number | null;
|
39
39
|
computeChainId: number;
|
@@ -54,11 +54,11 @@ export declare abstract class CampaignService {
|
|
54
54
|
type?: string;
|
55
55
|
}): Promise<({
|
56
56
|
Opportunity: {
|
57
|
-
id: string;
|
58
|
-
name: string;
|
59
|
-
type: string;
|
60
57
|
status: import("@db/api").$Enums.Status;
|
58
|
+
type: string;
|
59
|
+
name: string;
|
61
60
|
description: string;
|
61
|
+
id: string;
|
62
62
|
tags: string[];
|
63
63
|
identifier: string;
|
64
64
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -74,9 +74,9 @@ export declare abstract class CampaignService {
|
|
74
74
|
lastCampaignCreatedAt: Date;
|
75
75
|
};
|
76
76
|
} & {
|
77
|
-
id: string;
|
78
77
|
type: string;
|
79
78
|
description: string | null;
|
79
|
+
id: string;
|
80
80
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
81
81
|
subType: number | null;
|
82
82
|
computeChainId: number;
|
@@ -99,8 +99,8 @@ export declare abstract class CampaignService {
|
|
99
99
|
}): Promise<({
|
100
100
|
RewardToken: {
|
101
101
|
symbol: string;
|
102
|
-
id: string;
|
103
102
|
name: string | null;
|
103
|
+
id: string;
|
104
104
|
icon: string;
|
105
105
|
address: string;
|
106
106
|
chainId: number;
|
@@ -114,11 +114,11 @@ export declare abstract class CampaignService {
|
|
114
114
|
price: number | null;
|
115
115
|
};
|
116
116
|
Opportunity: {
|
117
|
-
id: string;
|
118
|
-
name: string;
|
119
|
-
type: string;
|
120
117
|
status: import("@db/api").$Enums.Status;
|
118
|
+
type: string;
|
119
|
+
name: string;
|
121
120
|
description: string;
|
121
|
+
id: string;
|
122
122
|
tags: string[];
|
123
123
|
identifier: string;
|
124
124
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -134,9 +134,9 @@ export declare abstract class CampaignService {
|
|
134
134
|
lastCampaignCreatedAt: Date;
|
135
135
|
};
|
136
136
|
} & {
|
137
|
-
id: string;
|
138
137
|
type: string;
|
139
138
|
description: string | null;
|
139
|
+
id: string;
|
140
140
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
141
141
|
subType: number | null;
|
142
142
|
computeChainId: number;
|
@@ -158,9 +158,9 @@ export declare abstract class CampaignService {
|
|
158
158
|
type?: string;
|
159
159
|
}): Promise<number>;
|
160
160
|
static create(body: Omit<CreateCampaignModel, "id">, dryRun?: boolean): Promise<{
|
161
|
-
id: string;
|
162
161
|
type: string;
|
163
162
|
description: string | null;
|
163
|
+
id: string;
|
164
164
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
165
165
|
subType: number | null;
|
166
166
|
computeChainId: number;
|
@@ -178,8 +178,8 @@ export declare abstract class CampaignService {
|
|
178
178
|
} | ({
|
179
179
|
Tokens: {
|
180
180
|
symbol: string;
|
181
|
-
id: string;
|
182
181
|
name: string | null;
|
182
|
+
id: string;
|
183
183
|
icon: string;
|
184
184
|
address: string;
|
185
185
|
chainId: number;
|
@@ -193,19 +193,19 @@ export declare abstract class CampaignService {
|
|
193
193
|
price: number | null;
|
194
194
|
}[];
|
195
195
|
Protocols: {
|
196
|
-
id: string;
|
197
|
-
name: string;
|
198
196
|
url: string;
|
197
|
+
name: string;
|
199
198
|
description: string;
|
199
|
+
id: string;
|
200
200
|
tags: string[];
|
201
201
|
icon: string;
|
202
202
|
}[];
|
203
203
|
} & {
|
204
|
-
id: string;
|
205
|
-
name: string;
|
206
|
-
type: string;
|
207
204
|
status: import("@db/api").$Enums.Status;
|
205
|
+
type: string;
|
206
|
+
name: string;
|
208
207
|
description: string;
|
208
|
+
id: string;
|
209
209
|
tags: string[];
|
210
210
|
identifier: string;
|
211
211
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -229,8 +229,8 @@ export declare abstract class CampaignService {
|
|
229
229
|
action: OpportunityAction;
|
230
230
|
tokens: ({
|
231
231
|
symbol: string;
|
232
|
-
id: string;
|
233
232
|
name: string | null;
|
233
|
+
id: string;
|
234
234
|
icon: string;
|
235
235
|
address: string;
|
236
236
|
chainId: number;
|
@@ -243,7 +243,7 @@ export declare abstract class CampaignService {
|
|
243
243
|
} & {
|
244
244
|
price?: number | null | undefined;
|
245
245
|
})[];
|
246
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
246
|
+
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
247
247
|
description: string;
|
248
248
|
howToSteps: string[];
|
249
249
|
depositUrl: string | undefined;
|
@@ -255,9 +255,9 @@ export declare abstract class CampaignService {
|
|
255
255
|
* @dev deprecated should be replaced with a manual override
|
256
256
|
*/
|
257
257
|
static updateMetaData(campaign: Omit<UpdateMetaDataCampaignModel, "id">): Promise<{
|
258
|
-
id: string;
|
259
258
|
type: string;
|
260
259
|
description: string | null;
|
260
|
+
id: string;
|
261
261
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
262
262
|
subType: number | null;
|
263
263
|
computeChainId: number;
|
@@ -289,16 +289,16 @@ export declare abstract class CampaignService {
|
|
289
289
|
static findMany(query: GetCampaignQueryModel): Promise<{
|
290
290
|
params: any;
|
291
291
|
chain: {
|
292
|
-
id: number;
|
293
292
|
name: string;
|
293
|
+
id: number;
|
294
294
|
icon: string;
|
295
295
|
};
|
296
296
|
endTimestamp: number;
|
297
297
|
startTimestamp: number;
|
298
298
|
rewardToken: {
|
299
299
|
symbol: string;
|
300
|
-
id: string;
|
301
300
|
name: string | null;
|
301
|
+
id: string;
|
302
302
|
icon: string;
|
303
303
|
address: string;
|
304
304
|
chainId: number;
|
@@ -312,15 +312,15 @@ export declare abstract class CampaignService {
|
|
312
312
|
price?: number | null | undefined;
|
313
313
|
};
|
314
314
|
distributionChain: {
|
315
|
-
id: number;
|
316
315
|
name: string;
|
316
|
+
id: number;
|
317
317
|
icon: string;
|
318
318
|
} | undefined;
|
319
319
|
campaignStatus: {
|
320
320
|
computedUntil: number;
|
321
321
|
processingStarted: number;
|
322
|
-
error: string;
|
323
322
|
status: import("@db/api").$Enums.RunStatus;
|
323
|
+
error: string;
|
324
324
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
325
325
|
campaignId: string;
|
326
326
|
} | undefined;
|
@@ -333,11 +333,11 @@ export declare abstract class CampaignService {
|
|
333
333
|
createdAt: string;
|
334
334
|
description: string | undefined;
|
335
335
|
Opportunity: {
|
336
|
-
id: string;
|
337
|
-
name: string;
|
338
|
-
type: string;
|
339
336
|
status: import("@db/api").$Enums.Status;
|
337
|
+
type: string;
|
338
|
+
name: string;
|
340
339
|
description: string;
|
340
|
+
id: string;
|
341
341
|
tags: string[];
|
342
342
|
identifier: string;
|
343
343
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -352,8 +352,8 @@ export declare abstract class CampaignService {
|
|
352
352
|
dailyRewards: number;
|
353
353
|
lastCampaignCreatedAt: Date;
|
354
354
|
};
|
355
|
-
id: string;
|
356
355
|
type: string;
|
356
|
+
id: string;
|
357
357
|
subType: number | null;
|
358
358
|
computeChainId: number;
|
359
359
|
distributionChainId: number;
|
@@ -366,16 +366,16 @@ export declare abstract class CampaignService {
|
|
366
366
|
static findAndGroupByChains(query: GetCampaignQueryModel): Promise<Map<number, {
|
367
367
|
params: any;
|
368
368
|
chain: {
|
369
|
-
id: number;
|
370
369
|
name: string;
|
370
|
+
id: number;
|
371
371
|
icon: string;
|
372
372
|
};
|
373
373
|
endTimestamp: number;
|
374
374
|
startTimestamp: number;
|
375
375
|
rewardToken: {
|
376
376
|
symbol: string;
|
377
|
-
id: string;
|
378
377
|
name: string | null;
|
378
|
+
id: string;
|
379
379
|
icon: string;
|
380
380
|
address: string;
|
381
381
|
chainId: number;
|
@@ -389,15 +389,15 @@ export declare abstract class CampaignService {
|
|
389
389
|
price?: number | null | undefined;
|
390
390
|
};
|
391
391
|
distributionChain: {
|
392
|
-
id: number;
|
393
392
|
name: string;
|
393
|
+
id: number;
|
394
394
|
icon: string;
|
395
395
|
} | undefined;
|
396
396
|
campaignStatus: {
|
397
397
|
computedUntil: number;
|
398
398
|
processingStarted: number;
|
399
|
-
error: string;
|
400
399
|
status: import("@db/api").$Enums.RunStatus;
|
400
|
+
error: string;
|
401
401
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
402
402
|
campaignId: string;
|
403
403
|
} | undefined;
|
@@ -410,11 +410,11 @@ export declare abstract class CampaignService {
|
|
410
410
|
createdAt: string;
|
411
411
|
description: string | undefined;
|
412
412
|
Opportunity: {
|
413
|
-
id: string;
|
414
|
-
name: string;
|
415
|
-
type: string;
|
416
413
|
status: import("@db/api").$Enums.Status;
|
414
|
+
type: string;
|
415
|
+
name: string;
|
417
416
|
description: string;
|
417
|
+
id: string;
|
418
418
|
tags: string[];
|
419
419
|
identifier: string;
|
420
420
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -429,8 +429,8 @@ export declare abstract class CampaignService {
|
|
429
429
|
dailyRewards: number;
|
430
430
|
lastCampaignCreatedAt: Date;
|
431
431
|
};
|
432
|
-
id: string;
|
433
432
|
type: string;
|
433
|
+
id: string;
|
434
434
|
subType: number | null;
|
435
435
|
computeChainId: number;
|
436
436
|
distributionChainId: number;
|
@@ -444,16 +444,16 @@ export declare abstract class CampaignService {
|
|
444
444
|
static findAndGroupByTypes(query: GetCampaignQueryModel): Promise<Map<string, {
|
445
445
|
params: any;
|
446
446
|
chain: {
|
447
|
-
id: number;
|
448
447
|
name: string;
|
448
|
+
id: number;
|
449
449
|
icon: string;
|
450
450
|
};
|
451
451
|
endTimestamp: number;
|
452
452
|
startTimestamp: number;
|
453
453
|
rewardToken: {
|
454
454
|
symbol: string;
|
455
|
-
id: string;
|
456
455
|
name: string | null;
|
456
|
+
id: string;
|
457
457
|
icon: string;
|
458
458
|
address: string;
|
459
459
|
chainId: number;
|
@@ -467,15 +467,15 @@ export declare abstract class CampaignService {
|
|
467
467
|
price?: number | null | undefined;
|
468
468
|
};
|
469
469
|
distributionChain: {
|
470
|
-
id: number;
|
471
470
|
name: string;
|
471
|
+
id: number;
|
472
472
|
icon: string;
|
473
473
|
} | undefined;
|
474
474
|
campaignStatus: {
|
475
475
|
computedUntil: number;
|
476
476
|
processingStarted: number;
|
477
|
-
error: string;
|
478
477
|
status: import("@db/api").$Enums.RunStatus;
|
478
|
+
error: string;
|
479
479
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
480
480
|
campaignId: string;
|
481
481
|
} | undefined;
|
@@ -488,11 +488,11 @@ export declare abstract class CampaignService {
|
|
488
488
|
createdAt: string;
|
489
489
|
description: string | undefined;
|
490
490
|
Opportunity: {
|
491
|
-
id: string;
|
492
|
-
name: string;
|
493
|
-
type: string;
|
494
491
|
status: import("@db/api").$Enums.Status;
|
492
|
+
type: string;
|
493
|
+
name: string;
|
495
494
|
description: string;
|
495
|
+
id: string;
|
496
496
|
tags: string[];
|
497
497
|
identifier: string;
|
498
498
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -507,8 +507,8 @@ export declare abstract class CampaignService {
|
|
507
507
|
dailyRewards: number;
|
508
508
|
lastCampaignCreatedAt: Date;
|
509
509
|
};
|
510
|
-
id: string;
|
511
510
|
type: string;
|
511
|
+
id: string;
|
512
512
|
subType: number | null;
|
513
513
|
computeChainId: number;
|
514
514
|
distributionChainId: number;
|
@@ -522,16 +522,16 @@ export declare abstract class CampaignService {
|
|
522
522
|
static findAndGroupByProtocols(query: GetCampaignQueryModel): Promise<Map<string | null, {
|
523
523
|
params: any;
|
524
524
|
chain: {
|
525
|
-
id: number;
|
526
525
|
name: string;
|
526
|
+
id: number;
|
527
527
|
icon: string;
|
528
528
|
};
|
529
529
|
endTimestamp: number;
|
530
530
|
startTimestamp: number;
|
531
531
|
rewardToken: {
|
532
532
|
symbol: string;
|
533
|
-
id: string;
|
534
533
|
name: string | null;
|
534
|
+
id: string;
|
535
535
|
icon: string;
|
536
536
|
address: string;
|
537
537
|
chainId: number;
|
@@ -545,15 +545,15 @@ export declare abstract class CampaignService {
|
|
545
545
|
price?: number | null | undefined;
|
546
546
|
};
|
547
547
|
distributionChain: {
|
548
|
-
id: number;
|
549
548
|
name: string;
|
549
|
+
id: number;
|
550
550
|
icon: string;
|
551
551
|
} | undefined;
|
552
552
|
campaignStatus: {
|
553
553
|
computedUntil: number;
|
554
554
|
processingStarted: number;
|
555
|
-
error: string;
|
556
555
|
status: import("@db/api").$Enums.RunStatus;
|
556
|
+
error: string;
|
557
557
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
558
558
|
campaignId: string;
|
559
559
|
} | undefined;
|
@@ -566,11 +566,11 @@ export declare abstract class CampaignService {
|
|
566
566
|
createdAt: string;
|
567
567
|
description: string | undefined;
|
568
568
|
Opportunity: {
|
569
|
-
id: string;
|
570
|
-
name: string;
|
571
|
-
type: string;
|
572
569
|
status: import("@db/api").$Enums.Status;
|
570
|
+
type: string;
|
571
|
+
name: string;
|
573
572
|
description: string;
|
573
|
+
id: string;
|
574
574
|
tags: string[];
|
575
575
|
identifier: string;
|
576
576
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -585,8 +585,8 @@ export declare abstract class CampaignService {
|
|
585
585
|
dailyRewards: number;
|
586
586
|
lastCampaignCreatedAt: Date;
|
587
587
|
};
|
588
|
-
id: string;
|
589
588
|
type: string;
|
589
|
+
id: string;
|
590
590
|
subType: number | null;
|
591
591
|
computeChainId: number;
|
592
592
|
distributionChainId: number;
|
@@ -608,19 +608,19 @@ export declare abstract class CampaignService {
|
|
608
608
|
static checkIfExist(campaign: CampaignUnique | string): Promise<boolean>;
|
609
609
|
static findUnique(campaign: CampaignUnique | string): Promise<({
|
610
610
|
ComputeChain: {
|
611
|
-
id: number;
|
612
611
|
name: string;
|
612
|
+
id: number;
|
613
613
|
icon: string;
|
614
614
|
};
|
615
615
|
DistributionChain: {
|
616
|
-
id: number;
|
617
616
|
name: string;
|
617
|
+
id: number;
|
618
618
|
icon: string;
|
619
619
|
};
|
620
620
|
RewardToken: {
|
621
621
|
symbol: string;
|
622
|
-
id: string;
|
623
622
|
name: string | null;
|
623
|
+
id: string;
|
624
624
|
icon: string;
|
625
625
|
address: string;
|
626
626
|
chainId: number;
|
@@ -639,17 +639,17 @@ export declare abstract class CampaignService {
|
|
639
639
|
creatorId: string | null;
|
640
640
|
};
|
641
641
|
CampaignStatus: {
|
642
|
-
error: string;
|
643
642
|
status: import("@db/api").$Enums.RunStatus;
|
643
|
+
error: string;
|
644
644
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
645
645
|
campaignId: string;
|
646
646
|
computedUntil: bigint;
|
647
647
|
processingStarted: bigint;
|
648
648
|
}[];
|
649
649
|
} & {
|
650
|
-
id: string;
|
651
650
|
type: string;
|
652
651
|
description: string | null;
|
652
|
+
id: string;
|
653
653
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
654
654
|
subType: number | null;
|
655
655
|
computeChainId: number;
|
@@ -667,19 +667,19 @@ export declare abstract class CampaignService {
|
|
667
667
|
}) | null>;
|
668
668
|
static findUniqueOrThrow(campaign: CampaignUnique | string, withOpportunity?: boolean): Promise<{
|
669
669
|
ComputeChain: {
|
670
|
-
id: number;
|
671
670
|
name: string;
|
671
|
+
id: number;
|
672
672
|
icon: string;
|
673
673
|
};
|
674
674
|
DistributionChain: {
|
675
|
-
id: number;
|
676
675
|
name: string;
|
676
|
+
id: number;
|
677
677
|
icon: string;
|
678
678
|
};
|
679
679
|
RewardToken: {
|
680
680
|
symbol: string;
|
681
|
-
id: string;
|
682
681
|
name: string | null;
|
682
|
+
id: string;
|
683
683
|
icon: string;
|
684
684
|
address: string;
|
685
685
|
chainId: number;
|
@@ -693,11 +693,11 @@ export declare abstract class CampaignService {
|
|
693
693
|
price: number | null;
|
694
694
|
};
|
695
695
|
Opportunity: {
|
696
|
-
id: string;
|
697
|
-
name: string;
|
698
|
-
type: string;
|
699
696
|
status: import("@db/api").$Enums.Status;
|
697
|
+
type: string;
|
698
|
+
name: string;
|
700
699
|
description: string;
|
700
|
+
id: string;
|
701
701
|
tags: string[];
|
702
702
|
identifier: string;
|
703
703
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -718,17 +718,17 @@ export declare abstract class CampaignService {
|
|
718
718
|
creatorId: string | null;
|
719
719
|
};
|
720
720
|
CampaignStatus: {
|
721
|
-
error: string;
|
722
721
|
status: import("@db/api").$Enums.RunStatus;
|
722
|
+
error: string;
|
723
723
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
724
724
|
campaignId: string;
|
725
725
|
computedUntil: bigint;
|
726
726
|
processingStarted: bigint;
|
727
727
|
}[];
|
728
728
|
} & {
|
729
|
-
id: string;
|
730
729
|
type: string;
|
731
730
|
description: string | null;
|
731
|
+
id: string;
|
732
732
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
733
733
|
subType: number | null;
|
734
734
|
computeChainId: number;
|
@@ -813,16 +813,16 @@ export declare abstract class CampaignService {
|
|
813
813
|
static format(campaign: NonNullable<Awaited<ReturnType<(typeof CampaignRepository)["findMany"]>>>[number]): {
|
814
814
|
params: any;
|
815
815
|
chain: {
|
816
|
-
id: number;
|
817
816
|
name: string;
|
817
|
+
id: number;
|
818
818
|
icon: string;
|
819
819
|
};
|
820
820
|
endTimestamp: number;
|
821
821
|
startTimestamp: number;
|
822
822
|
rewardToken: {
|
823
823
|
symbol: string;
|
824
|
-
id: string;
|
825
824
|
name: string | null;
|
825
|
+
id: string;
|
826
826
|
icon: string;
|
827
827
|
address: string;
|
828
828
|
chainId: number;
|
@@ -836,15 +836,15 @@ export declare abstract class CampaignService {
|
|
836
836
|
price?: number | null | undefined;
|
837
837
|
};
|
838
838
|
distributionChain: {
|
839
|
-
id: number;
|
840
839
|
name: string;
|
840
|
+
id: number;
|
841
841
|
icon: string;
|
842
842
|
} | undefined;
|
843
843
|
campaignStatus: {
|
844
844
|
computedUntil: number;
|
845
845
|
processingStarted: number;
|
846
|
-
error: string;
|
847
846
|
status: import("@db/api").$Enums.RunStatus;
|
847
|
+
error: string;
|
848
848
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
849
849
|
campaignId: string;
|
850
850
|
} | undefined;
|
@@ -857,11 +857,11 @@ export declare abstract class CampaignService {
|
|
857
857
|
createdAt: string;
|
858
858
|
description: string | undefined;
|
859
859
|
Opportunity: {
|
860
|
-
id: string;
|
861
|
-
name: string;
|
862
|
-
type: string;
|
863
860
|
status: import("@db/api").$Enums.Status;
|
861
|
+
type: string;
|
862
|
+
name: string;
|
864
863
|
description: string;
|
864
|
+
id: string;
|
865
865
|
tags: string[];
|
866
866
|
identifier: string;
|
867
867
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -876,8 +876,8 @@ export declare abstract class CampaignService {
|
|
876
876
|
dailyRewards: number;
|
877
877
|
lastCampaignCreatedAt: Date;
|
878
878
|
};
|
879
|
-
id: string;
|
880
879
|
type: string;
|
880
|
+
id: string;
|
881
881
|
subType: number | null;
|
882
882
|
computeChainId: number;
|
883
883
|
distributionChainId: number;
|