@merkl/api 0.16.44 → 0.16.46
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/database/api/.generated/drizzle/schema.d.ts +18 -0
- package/dist/database/api/.generated/drizzle/schema.js +2 -0
- package/dist/database/api/.generated/drizzle/schema.ts +3 -0
- package/dist/database/api/.generated/edge.js +12 -3
- package/dist/database/api/.generated/index-browser.js +9 -0
- package/dist/database/api/.generated/index.d.ts +148 -1
- package/dist/database/api/.generated/index.js +12 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +9 -0
- package/dist/database/api/.generated/wasm.js +9 -0
- package/dist/src/eden/index.d.ts +85 -10
- package/dist/src/index.d.ts +17 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +1 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +8 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +8 -0
- package/dist/src/modules/v4/enso/enso.service.d.ts +12 -1
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +12 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +13 -6
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +120 -15
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +7 -7
- package/dist/src/modules/v4/protocol/protocol.service.js +9 -9
- package/dist/src/modules/v4/router.d.ts +17 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getTVL.d.ts +0 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getTVL.js +0 -8
@@ -23,6 +23,7 @@ model Campaign {
|
|
23
23
|
distributionChainId Int
|
24
24
|
campaignId String
|
25
25
|
type String
|
26
|
+
distributionType DistributionType
|
26
27
|
subType Int?
|
27
28
|
RewardToken Token @relation(fields: [rewardTokenId], references: [id])
|
28
29
|
rewardTokenId String
|
@@ -420,3 +421,11 @@ enum PriceSourceMethod {
|
|
420
421
|
INDEXCOOP
|
421
422
|
DEFILLAMA
|
422
423
|
}
|
424
|
+
|
425
|
+
enum DistributionType {
|
426
|
+
DUTCH_AUCTION
|
427
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE // The fix reward value will lie in params.apr
|
428
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE
|
429
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT
|
430
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT
|
431
|
+
}
|
@@ -123,6 +123,7 @@ exports.Prisma.CampaignScalarFieldEnum = {
|
|
123
123
|
distributionChainId: 'distributionChainId',
|
124
124
|
campaignId: 'campaignId',
|
125
125
|
type: 'type',
|
126
|
+
distributionType: 'distributionType',
|
126
127
|
subType: 'subType',
|
127
128
|
rewardTokenId: 'rewardTokenId',
|
128
129
|
amount: 'amount',
|
@@ -523,6 +524,14 @@ exports.Prisma.LoggedOrderByRelevanceFieldEnum = {
|
|
523
524
|
address: 'address',
|
524
525
|
caughtFromAddress: 'caughtFromAddress'
|
525
526
|
};
|
527
|
+
exports.DistributionType = exports.$Enums.DistributionType = {
|
528
|
+
DUTCH_AUCTION: 'DUTCH_AUCTION',
|
529
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: 'FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE',
|
530
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: 'FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE',
|
531
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: 'FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT',
|
532
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: 'FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT'
|
533
|
+
};
|
534
|
+
|
526
535
|
exports.RunStatus = exports.$Enums.RunStatus = {
|
527
536
|
PROCESSING: 'PROCESSING',
|
528
537
|
SUCCESS: 'SUCCESS',
|
package/dist/src/eden/index.d.ts
CHANGED
@@ -570,6 +570,7 @@ declare const eden: {
|
|
570
570
|
computeChainId: number;
|
571
571
|
distributionChainId: number;
|
572
572
|
campaignId: string;
|
573
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
573
574
|
rewardTokenId: string;
|
574
575
|
amount: string;
|
575
576
|
opportunityId: string;
|
@@ -955,6 +956,7 @@ declare const eden: {
|
|
955
956
|
computeChainId: number;
|
956
957
|
distributionChainId: number;
|
957
958
|
campaignId: string;
|
959
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
958
960
|
rewardTokenId: string;
|
959
961
|
amount: string;
|
960
962
|
opportunityId: string;
|
@@ -994,6 +996,7 @@ declare const eden: {
|
|
994
996
|
computeChainId: number;
|
995
997
|
distributionChainId: number;
|
996
998
|
campaignId: string;
|
999
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
997
1000
|
rewardTokenId: string;
|
998
1001
|
amount: string;
|
999
1002
|
opportunityId: string;
|
@@ -1039,6 +1042,7 @@ declare const eden: {
|
|
1039
1042
|
computeChainId: number;
|
1040
1043
|
distributionChainId: number;
|
1041
1044
|
campaignId: string;
|
1045
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
1042
1046
|
rewardTokenId: string;
|
1043
1047
|
amount: string;
|
1044
1048
|
opportunityId: string;
|
@@ -1116,6 +1120,7 @@ declare const eden: {
|
|
1116
1120
|
computeChainId: number;
|
1117
1121
|
distributionChainId: number;
|
1118
1122
|
campaignId: string;
|
1123
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
1119
1124
|
rewardTokenId: string;
|
1120
1125
|
amount: string;
|
1121
1126
|
opportunityId: string;
|
@@ -2445,8 +2450,18 @@ declare const eden: {
|
|
2445
2450
|
};
|
2446
2451
|
fetch?: RequestInit | undefined;
|
2447
2452
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
2448
|
-
|
2449
|
-
|
2453
|
+
200: ({
|
2454
|
+
name: string;
|
2455
|
+
url: string;
|
2456
|
+
description: string;
|
2457
|
+
id: string;
|
2458
|
+
tags: string[];
|
2459
|
+
icon: string;
|
2460
|
+
} & {
|
2461
|
+
dailyRewards?: number | undefined;
|
2462
|
+
numberOfLiveCampaigns?: number | undefined;
|
2463
|
+
opportunityLiveTags?: string[] | undefined;
|
2464
|
+
})[];
|
2450
2465
|
}>>;
|
2451
2466
|
};
|
2452
2467
|
transaction: {
|
@@ -3837,6 +3852,7 @@ declare const eden: {
|
|
3837
3852
|
computeChainId: number;
|
3838
3853
|
distributionChainId: number;
|
3839
3854
|
campaignId: string;
|
3855
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
3840
3856
|
rewardTokenId: string;
|
3841
3857
|
amount: string;
|
3842
3858
|
opportunityId: string;
|
@@ -4222,6 +4238,7 @@ declare const eden: {
|
|
4222
4238
|
computeChainId: number;
|
4223
4239
|
distributionChainId: number;
|
4224
4240
|
campaignId: string;
|
4241
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
4225
4242
|
rewardTokenId: string;
|
4226
4243
|
amount: string;
|
4227
4244
|
opportunityId: string;
|
@@ -4261,6 +4278,7 @@ declare const eden: {
|
|
4261
4278
|
computeChainId: number;
|
4262
4279
|
distributionChainId: number;
|
4263
4280
|
campaignId: string;
|
4281
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
4264
4282
|
rewardTokenId: string;
|
4265
4283
|
amount: string;
|
4266
4284
|
opportunityId: string;
|
@@ -4306,6 +4324,7 @@ declare const eden: {
|
|
4306
4324
|
computeChainId: number;
|
4307
4325
|
distributionChainId: number;
|
4308
4326
|
campaignId: string;
|
4327
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
4309
4328
|
rewardTokenId: string;
|
4310
4329
|
amount: string;
|
4311
4330
|
opportunityId: string;
|
@@ -4383,6 +4402,7 @@ declare const eden: {
|
|
4383
4402
|
computeChainId: number;
|
4384
4403
|
distributionChainId: number;
|
4385
4404
|
campaignId: string;
|
4405
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
4386
4406
|
rewardTokenId: string;
|
4387
4407
|
amount: string;
|
4388
4408
|
opportunityId: string;
|
@@ -5712,8 +5732,18 @@ declare const eden: {
|
|
5712
5732
|
};
|
5713
5733
|
fetch?: RequestInit | undefined;
|
5714
5734
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5715
|
-
|
5716
|
-
|
5735
|
+
200: ({
|
5736
|
+
name: string;
|
5737
|
+
url: string;
|
5738
|
+
description: string;
|
5739
|
+
id: string;
|
5740
|
+
tags: string[];
|
5741
|
+
icon: string;
|
5742
|
+
} & {
|
5743
|
+
dailyRewards?: number | undefined;
|
5744
|
+
numberOfLiveCampaigns?: number | undefined;
|
5745
|
+
opportunityLiveTags?: string[] | undefined;
|
5746
|
+
})[];
|
5717
5747
|
}>>;
|
5718
5748
|
};
|
5719
5749
|
transaction: {
|
@@ -7571,6 +7601,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7571
7601
|
computeChainId: number;
|
7572
7602
|
distributionChainId: number;
|
7573
7603
|
campaignId: string;
|
7604
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
7574
7605
|
rewardTokenId: string;
|
7575
7606
|
amount: string;
|
7576
7607
|
opportunityId: string;
|
@@ -8278,6 +8309,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8278
8309
|
computeChainId: number;
|
8279
8310
|
distributionChainId: number;
|
8280
8311
|
campaignId: string;
|
8312
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
8281
8313
|
rewardTokenId: string;
|
8282
8314
|
amount: string;
|
8283
8315
|
opportunityId: string;
|
@@ -8329,6 +8361,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8329
8361
|
computeChainId: number;
|
8330
8362
|
distributionChainId: number;
|
8331
8363
|
campaignId: string;
|
8364
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
8332
8365
|
rewardTokenId: string;
|
8333
8366
|
amount: string;
|
8334
8367
|
opportunityId: string;
|
@@ -8409,6 +8442,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8409
8442
|
computeChainId: number;
|
8410
8443
|
distributionChainId: number;
|
8411
8444
|
campaignId: string;
|
8445
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
8412
8446
|
rewardTokenId: string;
|
8413
8447
|
amount: string;
|
8414
8448
|
opportunityId: string;
|
@@ -8473,6 +8507,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8473
8507
|
computeChainId: number;
|
8474
8508
|
distributionChainId: number;
|
8475
8509
|
campaignId: string;
|
8510
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
8476
8511
|
rewardTokenId: string;
|
8477
8512
|
amount: string;
|
8478
8513
|
opportunityId: string;
|
@@ -10175,8 +10210,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10175
10210
|
};
|
10176
10211
|
headers: unknown;
|
10177
10212
|
response: {
|
10178
|
-
|
10179
|
-
|
10213
|
+
200: ({
|
10214
|
+
name: string;
|
10215
|
+
url: string;
|
10216
|
+
description: string;
|
10217
|
+
id: string;
|
10218
|
+
tags: string[];
|
10219
|
+
icon: string;
|
10220
|
+
} & {
|
10221
|
+
dailyRewards?: number | undefined;
|
10222
|
+
numberOfLiveCampaigns?: number | undefined;
|
10223
|
+
opportunityLiveTags?: string[] | undefined;
|
10224
|
+
})[];
|
10180
10225
|
};
|
10181
10226
|
};
|
10182
10227
|
};
|
@@ -12653,6 +12698,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12653
12698
|
computeChainId: number;
|
12654
12699
|
distributionChainId: number;
|
12655
12700
|
campaignId: string;
|
12701
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
12656
12702
|
rewardTokenId: string;
|
12657
12703
|
amount: string;
|
12658
12704
|
opportunityId: string;
|
@@ -13038,6 +13084,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13038
13084
|
computeChainId: number;
|
13039
13085
|
distributionChainId: number;
|
13040
13086
|
campaignId: string;
|
13087
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
13041
13088
|
rewardTokenId: string;
|
13042
13089
|
amount: string;
|
13043
13090
|
opportunityId: string;
|
@@ -13077,6 +13124,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13077
13124
|
computeChainId: number;
|
13078
13125
|
distributionChainId: number;
|
13079
13126
|
campaignId: string;
|
13127
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
13080
13128
|
rewardTokenId: string;
|
13081
13129
|
amount: string;
|
13082
13130
|
opportunityId: string;
|
@@ -13122,6 +13170,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13122
13170
|
computeChainId: number;
|
13123
13171
|
distributionChainId: number;
|
13124
13172
|
campaignId: string;
|
13173
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
13125
13174
|
rewardTokenId: string;
|
13126
13175
|
amount: string;
|
13127
13176
|
opportunityId: string;
|
@@ -13199,6 +13248,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13199
13248
|
computeChainId: number;
|
13200
13249
|
distributionChainId: number;
|
13201
13250
|
campaignId: string;
|
13251
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
13202
13252
|
rewardTokenId: string;
|
13203
13253
|
amount: string;
|
13204
13254
|
opportunityId: string;
|
@@ -14528,8 +14578,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14528
14578
|
};
|
14529
14579
|
fetch?: RequestInit | undefined;
|
14530
14580
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14531
|
-
|
14532
|
-
|
14581
|
+
200: ({
|
14582
|
+
name: string;
|
14583
|
+
url: string;
|
14584
|
+
description: string;
|
14585
|
+
id: string;
|
14586
|
+
tags: string[];
|
14587
|
+
icon: string;
|
14588
|
+
} & {
|
14589
|
+
dailyRewards?: number | undefined;
|
14590
|
+
numberOfLiveCampaigns?: number | undefined;
|
14591
|
+
opportunityLiveTags?: string[] | undefined;
|
14592
|
+
})[];
|
14533
14593
|
}>>;
|
14534
14594
|
};
|
14535
14595
|
transaction: {
|
@@ -15920,6 +15980,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15920
15980
|
computeChainId: number;
|
15921
15981
|
distributionChainId: number;
|
15922
15982
|
campaignId: string;
|
15983
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
15923
15984
|
rewardTokenId: string;
|
15924
15985
|
amount: string;
|
15925
15986
|
opportunityId: string;
|
@@ -16305,6 +16366,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16305
16366
|
computeChainId: number;
|
16306
16367
|
distributionChainId: number;
|
16307
16368
|
campaignId: string;
|
16369
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
16308
16370
|
rewardTokenId: string;
|
16309
16371
|
amount: string;
|
16310
16372
|
opportunityId: string;
|
@@ -16344,6 +16406,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16344
16406
|
computeChainId: number;
|
16345
16407
|
distributionChainId: number;
|
16346
16408
|
campaignId: string;
|
16409
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
16347
16410
|
rewardTokenId: string;
|
16348
16411
|
amount: string;
|
16349
16412
|
opportunityId: string;
|
@@ -16389,6 +16452,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16389
16452
|
computeChainId: number;
|
16390
16453
|
distributionChainId: number;
|
16391
16454
|
campaignId: string;
|
16455
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
16392
16456
|
rewardTokenId: string;
|
16393
16457
|
amount: string;
|
16394
16458
|
opportunityId: string;
|
@@ -16466,6 +16530,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16466
16530
|
computeChainId: number;
|
16467
16531
|
distributionChainId: number;
|
16468
16532
|
campaignId: string;
|
16533
|
+
distributionType: import("../../database/api/.generated").$Enums.DistributionType;
|
16469
16534
|
rewardTokenId: string;
|
16470
16535
|
amount: string;
|
16471
16536
|
opportunityId: string;
|
@@ -17795,8 +17860,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17795
17860
|
};
|
17796
17861
|
fetch?: RequestInit | undefined;
|
17797
17862
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17798
|
-
|
17799
|
-
|
17863
|
+
200: ({
|
17864
|
+
name: string;
|
17865
|
+
url: string;
|
17866
|
+
description: string;
|
17867
|
+
id: string;
|
17868
|
+
tags: string[];
|
17869
|
+
icon: string;
|
17870
|
+
} & {
|
17871
|
+
dailyRewards?: number | undefined;
|
17872
|
+
numberOfLiveCampaigns?: number | undefined;
|
17873
|
+
opportunityLiveTags?: string[] | undefined;
|
17874
|
+
})[];
|
17800
17875
|
}>>;
|
17801
17876
|
};
|
17802
17877
|
transaction: {
|
package/dist/src/index.d.ts
CHANGED
@@ -368,6 +368,7 @@ declare const app: Elysia<"", false, {
|
|
368
368
|
computeChainId: number;
|
369
369
|
distributionChainId: number;
|
370
370
|
campaignId: string;
|
371
|
+
distributionType: import("../database/api/.generated").$Enums.DistributionType;
|
371
372
|
rewardTokenId: string;
|
372
373
|
amount: string;
|
373
374
|
opportunityId: string;
|
@@ -1075,6 +1076,7 @@ declare const app: Elysia<"", false, {
|
|
1075
1076
|
computeChainId: number;
|
1076
1077
|
distributionChainId: number;
|
1077
1078
|
campaignId: string;
|
1079
|
+
distributionType: import("../database/api/.generated").$Enums.DistributionType;
|
1078
1080
|
rewardTokenId: string;
|
1079
1081
|
amount: string;
|
1080
1082
|
opportunityId: string;
|
@@ -1126,6 +1128,7 @@ declare const app: Elysia<"", false, {
|
|
1126
1128
|
computeChainId: number;
|
1127
1129
|
distributionChainId: number;
|
1128
1130
|
campaignId: string;
|
1131
|
+
distributionType: import("../database/api/.generated").$Enums.DistributionType;
|
1129
1132
|
rewardTokenId: string;
|
1130
1133
|
amount: string;
|
1131
1134
|
opportunityId: string;
|
@@ -1206,6 +1209,7 @@ declare const app: Elysia<"", false, {
|
|
1206
1209
|
computeChainId: number;
|
1207
1210
|
distributionChainId: number;
|
1208
1211
|
campaignId: string;
|
1212
|
+
distributionType: import("../database/api/.generated").$Enums.DistributionType;
|
1209
1213
|
rewardTokenId: string;
|
1210
1214
|
amount: string;
|
1211
1215
|
opportunityId: string;
|
@@ -1270,6 +1274,7 @@ declare const app: Elysia<"", false, {
|
|
1270
1274
|
computeChainId: number;
|
1271
1275
|
distributionChainId: number;
|
1272
1276
|
campaignId: string;
|
1277
|
+
distributionType: import("../database/api/.generated").$Enums.DistributionType;
|
1273
1278
|
rewardTokenId: string;
|
1274
1279
|
amount: string;
|
1275
1280
|
opportunityId: string;
|
@@ -2972,8 +2977,18 @@ declare const app: Elysia<"", false, {
|
|
2972
2977
|
};
|
2973
2978
|
headers: unknown;
|
2974
2979
|
response: {
|
2975
|
-
|
2976
|
-
|
2980
|
+
200: ({
|
2981
|
+
name: string;
|
2982
|
+
url: string;
|
2983
|
+
description: string;
|
2984
|
+
id: string;
|
2985
|
+
tags: string[];
|
2986
|
+
icon: string;
|
2987
|
+
} & {
|
2988
|
+
dailyRewards?: number | undefined;
|
2989
|
+
numberOfLiveCampaigns?: number | undefined;
|
2990
|
+
opportunityLiveTags?: string[] | undefined;
|
2991
|
+
})[];
|
2977
2992
|
};
|
2978
2993
|
};
|
2979
2994
|
};
|
@@ -4,7 +4,6 @@ import { TokenRepository } from "../../../modules/v4/token/token.repository";
|
|
4
4
|
import { log } from "../../../utils/logger";
|
5
5
|
import { BN2Number, BalancerPoolInterface, BalancerV3StablePoolInterface, ChainInteractionService, ERC20Interface, EnzymeInterface, FactoryInterface, LayerBankERC20Interface, MetamorphoInterface, YEAR, getEnv, } from "@sdk";
|
6
6
|
import { Pricer } from "../../../utils/pricer";
|
7
|
-
import { getTVL } from "./ERC20SubTypes/helpers/getTVL";
|
8
7
|
import { tokenType } from "./ERC20SubTypes/helpers/tokenType";
|
9
8
|
import { getTokenPricesInfo } from "./ERC20SubTypes/subtypesPrices";
|
10
9
|
import { getTokenTypeRound1 } from "./ERC20SubTypes/subtypesRound1";
|
@@ -151,7 +150,7 @@ export async function ERC20DynamicData(chainId, campaigns) {
|
|
151
150
|
campaign.campaignParameters.duration /
|
152
151
|
(whitelistedSupplyTargetToken * priceTargetToken),
|
153
152
|
totalSupplyTargetToken,
|
154
|
-
tvl:
|
153
|
+
tvl: whitelistedSupplyTargetToken * priceTargetToken,
|
155
154
|
type: tokenTypesByCampaign[campaign.campaignId].type,
|
156
155
|
typeInfo: tokenTypesByCampaign[campaign.campaignId].typeInfo,
|
157
156
|
priceRewardToken: priceRewardToken,
|
@@ -47,6 +47,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
47
47
|
computeChainId: number;
|
48
48
|
distributionChainId: number;
|
49
49
|
campaignId: string;
|
50
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
50
51
|
rewardTokenId: string;
|
51
52
|
amount: string;
|
52
53
|
opportunityId: string;
|
@@ -98,6 +99,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
98
99
|
computeChainId: number;
|
99
100
|
distributionChainId: number;
|
100
101
|
campaignId: string;
|
102
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
101
103
|
rewardTokenId: string;
|
102
104
|
amount: string;
|
103
105
|
opportunityId: string;
|
@@ -178,6 +180,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
178
180
|
computeChainId: number;
|
179
181
|
distributionChainId: number;
|
180
182
|
campaignId: string;
|
183
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
181
184
|
rewardTokenId: string;
|
182
185
|
amount: string;
|
183
186
|
opportunityId: string;
|
@@ -242,6 +245,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
242
245
|
computeChainId: number;
|
243
246
|
distributionChainId: number;
|
244
247
|
campaignId: string;
|
248
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
245
249
|
rewardTokenId: string;
|
246
250
|
amount: string;
|
247
251
|
opportunityId: string;
|
@@ -82,6 +82,7 @@ export declare abstract class CampaignRepository {
|
|
82
82
|
computeChainId: number;
|
83
83
|
distributionChainId: number;
|
84
84
|
campaignId: string;
|
85
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
85
86
|
rewardTokenId: string;
|
86
87
|
amount: string;
|
87
88
|
opportunityId: string;
|
@@ -122,6 +123,7 @@ export declare abstract class CampaignRepository {
|
|
122
123
|
computeChainId: number;
|
123
124
|
distributionChainId: number;
|
124
125
|
campaignId: string;
|
126
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
125
127
|
rewardTokenId: string;
|
126
128
|
amount: string;
|
127
129
|
opportunityId: string;
|
@@ -156,6 +158,7 @@ export declare abstract class CampaignRepository {
|
|
156
158
|
computeChainId: number;
|
157
159
|
distributionChainId: number;
|
158
160
|
campaignId: string;
|
161
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
159
162
|
rewardTokenId: string;
|
160
163
|
amount: string;
|
161
164
|
opportunityId: string;
|
@@ -198,6 +201,7 @@ export declare abstract class CampaignRepository {
|
|
198
201
|
computeChainId: number;
|
199
202
|
distributionChainId: number;
|
200
203
|
campaignId: string;
|
204
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
201
205
|
rewardTokenId: string;
|
202
206
|
amount: string;
|
203
207
|
opportunityId: string;
|
@@ -250,6 +254,7 @@ export declare abstract class CampaignRepository {
|
|
250
254
|
computeChainId: number;
|
251
255
|
distributionChainId: number;
|
252
256
|
campaignId: string;
|
257
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
253
258
|
rewardTokenId: string;
|
254
259
|
amount: string;
|
255
260
|
opportunityId: string;
|
@@ -311,6 +316,7 @@ export declare abstract class CampaignRepository {
|
|
311
316
|
computeChainId: number;
|
312
317
|
distributionChainId: number;
|
313
318
|
campaignId: string;
|
319
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
314
320
|
rewardTokenId: string;
|
315
321
|
amount: string;
|
316
322
|
opportunityId: string;
|
@@ -332,6 +338,7 @@ export declare abstract class CampaignRepository {
|
|
332
338
|
computeChainId: number;
|
333
339
|
distributionChainId: number;
|
334
340
|
campaignId: string;
|
341
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
335
342
|
rewardTokenId: string;
|
336
343
|
amount: string;
|
337
344
|
opportunityId: string;
|
@@ -347,6 +354,7 @@ export declare abstract class CampaignRepository {
|
|
347
354
|
computeChainId: number;
|
348
355
|
distributionChainId: number;
|
349
356
|
campaignId: string;
|
357
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
350
358
|
rewardTokenId: string;
|
351
359
|
amount: string;
|
352
360
|
opportunityId: string;
|
@@ -14,6 +14,7 @@ export declare abstract class CampaignService {
|
|
14
14
|
computeChainId: number;
|
15
15
|
distributionChainId: number;
|
16
16
|
campaignId: string;
|
17
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
17
18
|
rewardTokenId: string;
|
18
19
|
amount: string;
|
19
20
|
opportunityId: string;
|
@@ -48,6 +49,7 @@ export declare abstract class CampaignService {
|
|
48
49
|
computeChainId: number;
|
49
50
|
distributionChainId: number;
|
50
51
|
campaignId: string;
|
52
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
51
53
|
rewardTokenId: string;
|
52
54
|
amount: string;
|
53
55
|
opportunityId: string;
|
@@ -63,6 +65,7 @@ export declare abstract class CampaignService {
|
|
63
65
|
computeChainId: number;
|
64
66
|
distributionChainId: number;
|
65
67
|
campaignId: string;
|
68
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
66
69
|
rewardTokenId: string;
|
67
70
|
amount: string;
|
68
71
|
opportunityId: string;
|
@@ -86,6 +89,7 @@ export declare abstract class CampaignService {
|
|
86
89
|
computeChainId: number;
|
87
90
|
distributionChainId: number;
|
88
91
|
campaignId: string;
|
92
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
89
93
|
rewardTokenId: string;
|
90
94
|
amount: string;
|
91
95
|
opportunityId: string;
|
@@ -147,6 +151,7 @@ export declare abstract class CampaignService {
|
|
147
151
|
computeChainId: number;
|
148
152
|
distributionChainId: number;
|
149
153
|
campaignId: string;
|
154
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
150
155
|
rewardTokenId: string;
|
151
156
|
amount: string;
|
152
157
|
opportunityId: string;
|
@@ -170,6 +175,7 @@ export declare abstract class CampaignService {
|
|
170
175
|
computeChainId: number;
|
171
176
|
distributionChainId: number;
|
172
177
|
campaignId: string;
|
178
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
173
179
|
rewardTokenId: string;
|
174
180
|
amount: string;
|
175
181
|
opportunityId: string;
|
@@ -222,6 +228,7 @@ export declare abstract class CampaignService {
|
|
222
228
|
computeChainId: number;
|
223
229
|
distributionChainId: number;
|
224
230
|
campaignId: string;
|
231
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
225
232
|
rewardTokenId: string;
|
226
233
|
amount: string;
|
227
234
|
opportunityId: string;
|
@@ -331,6 +338,7 @@ export declare abstract class CampaignService {
|
|
331
338
|
computeChainId: number;
|
332
339
|
distributionChainId: number;
|
333
340
|
campaignId: string;
|
341
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
334
342
|
rewardTokenId: string;
|
335
343
|
amount: string;
|
336
344
|
opportunityId: string;
|
@@ -5,7 +5,18 @@ export declare abstract class EnsoService {
|
|
5
5
|
#private;
|
6
6
|
static getSlug(protocolId: ProtocolId | string): EnsoSlug | undefined;
|
7
7
|
static getProtocolId(slug: EnsoSlug | string): ProtocolId | undefined;
|
8
|
-
static getCompatibleProtocols(query: GetInteractionProtocolsQuery): Promise<
|
8
|
+
static getCompatibleProtocols(query: GetInteractionProtocolsQuery): Promise<({
|
9
|
+
name: string;
|
10
|
+
url: string;
|
11
|
+
description: string;
|
12
|
+
id: string;
|
13
|
+
tags: string[];
|
14
|
+
icon: string;
|
15
|
+
} & {
|
16
|
+
dailyRewards?: number | undefined;
|
17
|
+
numberOfLiveCampaigns?: number | undefined;
|
18
|
+
opportunityLiveTags?: string[] | undefined;
|
19
|
+
})[]>;
|
9
20
|
static getTokens(chainId: number, slug: EnsoSlug, identifier?: string): Promise<{
|
10
21
|
type: "base" | "defi";
|
11
22
|
chainId: number;
|
@@ -40,8 +40,18 @@ export declare const InteractionController: Elysia<"/interaction", false, {
|
|
40
40
|
};
|
41
41
|
headers: unknown;
|
42
42
|
response: {
|
43
|
-
|
44
|
-
|
43
|
+
200: ({
|
44
|
+
name: string;
|
45
|
+
url: string;
|
46
|
+
description: string;
|
47
|
+
id: string;
|
48
|
+
tags: string[];
|
49
|
+
icon: string;
|
50
|
+
} & {
|
51
|
+
dailyRewards?: number | undefined;
|
52
|
+
numberOfLiveCampaigns?: number | undefined;
|
53
|
+
opportunityLiveTags?: string[] | undefined;
|
54
|
+
})[];
|
45
55
|
};
|
46
56
|
};
|
47
57
|
};
|
@@ -223,6 +223,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
223
223
|
computeChainId: number;
|
224
224
|
distributionChainId: number;
|
225
225
|
campaignId: string;
|
226
|
+
distributionType: import("../../../../database/api/.generated").$Enums.DistributionType;
|
226
227
|
rewardTokenId: string;
|
227
228
|
amount: string;
|
228
229
|
opportunityId: string;
|