@merkl/api 1.11.7 → 1.11.9
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 +12 -4
- package/dist/src/index.d.ts +12 -4
- package/dist/src/jobs/rewards-etl/load-rewards.js.map +1 -1
- package/dist/src/jobs/rewards-etl/transform.js.map +1 -1
- package/dist/src/jobs/utils/prisma-bulk.d.ts +1 -3
- package/dist/src/jobs/utils/prisma-bulk.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +1 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -0
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js.map +1 -1
- package/dist/src/modules/v4/programPayload/subPayloads/drip.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -6
- package/dist/src/modules/v4/reward/reward.service.d.ts +9 -18
- package/dist/src/modules/v4/router.d.ts +12 -4
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -57,6 +57,7 @@ export declare const DripPayloads: {
|
|
|
57
57
|
};
|
|
58
58
|
computeChainId: ChainId;
|
|
59
59
|
composedCampaigns: ({
|
|
60
|
+
composedMultiplier?: undefined;
|
|
60
61
|
composedIndex: number;
|
|
61
62
|
composedType: ComposedType;
|
|
62
63
|
campaignType: CampaignType;
|
|
@@ -66,7 +67,6 @@ export declare const DripPayloads: {
|
|
|
66
67
|
computeMethod: ComputeScoreMethod;
|
|
67
68
|
};
|
|
68
69
|
forwarders: never[];
|
|
69
|
-
composedMultiplier?: undefined;
|
|
70
70
|
} | {
|
|
71
71
|
composedIndex: number;
|
|
72
72
|
composedType: ComposedType;
|
|
@@ -290,13 +290,12 @@ export declare abstract class RewardRepository {
|
|
|
290
290
|
id: string;
|
|
291
291
|
root: string;
|
|
292
292
|
distributionChainId: number;
|
|
293
|
-
recipient: string;
|
|
294
293
|
rewardTokenId: string;
|
|
295
294
|
amount: string;
|
|
296
295
|
claimed: string;
|
|
297
296
|
pending: string;
|
|
298
297
|
proofs: string[];
|
|
299
|
-
|
|
298
|
+
recipient: string;
|
|
300
299
|
})[]>;
|
|
301
300
|
/**
|
|
302
301
|
* @notice Returns rewards and campaignIds from breakdowns matching (recipient, root, tokenId)
|
|
@@ -326,13 +325,12 @@ export declare abstract class RewardRepository {
|
|
|
326
325
|
id: string;
|
|
327
326
|
root: string;
|
|
328
327
|
distributionChainId: number;
|
|
329
|
-
recipient: string;
|
|
330
328
|
rewardTokenId: string;
|
|
331
329
|
amount: string;
|
|
332
330
|
claimed: string;
|
|
333
331
|
pending: string;
|
|
334
332
|
proofs: string[];
|
|
335
|
-
|
|
333
|
+
recipient: string;
|
|
336
334
|
}) | null>;
|
|
337
335
|
static findRewardsForCampaign(params: {
|
|
338
336
|
campaignId: string;
|
|
@@ -479,12 +477,11 @@ export declare abstract class RewardRepository {
|
|
|
479
477
|
id: string;
|
|
480
478
|
root: string;
|
|
481
479
|
distributionChainId: number;
|
|
482
|
-
recipient: string;
|
|
483
480
|
rewardTokenId: string;
|
|
484
481
|
amount: string;
|
|
485
482
|
claimed: string;
|
|
486
483
|
pending: string;
|
|
487
484
|
proofs: string[];
|
|
488
|
-
|
|
485
|
+
recipient: string;
|
|
489
486
|
})[]>;
|
|
490
487
|
}
|
|
@@ -177,9 +177,8 @@ export declare abstract class RewardService {
|
|
|
177
177
|
static format(rewards: Awaited<ReturnType<(typeof RewardRepository)["getByRecipient"]>>, authOptions?: AuthenticationOptions): Promise<{
|
|
178
178
|
root: string;
|
|
179
179
|
distributionChainId: number;
|
|
180
|
-
recipient: string;
|
|
181
180
|
proofs: string[];
|
|
182
|
-
|
|
181
|
+
recipient: string;
|
|
183
182
|
token: {
|
|
184
183
|
id: string;
|
|
185
184
|
name: string | null;
|
|
@@ -596,13 +595,12 @@ export declare abstract class RewardService {
|
|
|
596
595
|
id: string;
|
|
597
596
|
root: string;
|
|
598
597
|
distributionChainId: number;
|
|
599
|
-
recipient: string;
|
|
600
598
|
rewardTokenId: string;
|
|
601
599
|
amount: string;
|
|
602
600
|
claimed: string;
|
|
603
601
|
pending: string;
|
|
604
602
|
proofs: string[];
|
|
605
|
-
|
|
603
|
+
recipient: string;
|
|
606
604
|
})[]>;
|
|
607
605
|
/**
|
|
608
606
|
* Groups a breakdown array by their corresponding opportunities
|
|
@@ -640,9 +638,8 @@ export declare abstract class RewardService {
|
|
|
640
638
|
rewards: {
|
|
641
639
|
root: string;
|
|
642
640
|
distributionChainId: number;
|
|
643
|
-
recipient: string;
|
|
644
641
|
proofs: string[];
|
|
645
|
-
|
|
642
|
+
recipient: string;
|
|
646
643
|
token: {
|
|
647
644
|
id: string;
|
|
648
645
|
name: string | null;
|
|
@@ -775,9 +772,8 @@ export declare abstract class RewardService {
|
|
|
775
772
|
rewards: (Omit<{
|
|
776
773
|
root: string;
|
|
777
774
|
distributionChainId: number;
|
|
778
|
-
recipient: string;
|
|
779
775
|
proofs: string[];
|
|
780
|
-
|
|
776
|
+
recipient: string;
|
|
781
777
|
token: {
|
|
782
778
|
id: string;
|
|
783
779
|
name: string | null;
|
|
@@ -1103,9 +1099,8 @@ export declare abstract class RewardService {
|
|
|
1103
1099
|
rewards: {
|
|
1104
1100
|
root: string;
|
|
1105
1101
|
distributionChainId: number;
|
|
1106
|
-
recipient: string;
|
|
1107
1102
|
proofs: string[];
|
|
1108
|
-
|
|
1103
|
+
recipient: string;
|
|
1109
1104
|
token: {
|
|
1110
1105
|
id: string;
|
|
1111
1106
|
name: string | null;
|
|
@@ -1238,9 +1233,8 @@ export declare abstract class RewardService {
|
|
|
1238
1233
|
rewards: (Omit<{
|
|
1239
1234
|
root: string;
|
|
1240
1235
|
distributionChainId: number;
|
|
1241
|
-
recipient: string;
|
|
1242
1236
|
proofs: string[];
|
|
1243
|
-
|
|
1237
|
+
recipient: string;
|
|
1244
1238
|
token: {
|
|
1245
1239
|
id: string;
|
|
1246
1240
|
name: string | null;
|
|
@@ -1673,13 +1667,12 @@ export declare abstract class RewardService {
|
|
|
1673
1667
|
id: string;
|
|
1674
1668
|
root: string;
|
|
1675
1669
|
distributionChainId: number;
|
|
1676
|
-
recipient: string;
|
|
1677
1670
|
rewardTokenId: string;
|
|
1678
1671
|
amount: string;
|
|
1679
1672
|
claimed: string;
|
|
1680
1673
|
pending: string;
|
|
1681
1674
|
proofs: string[];
|
|
1682
|
-
|
|
1675
|
+
recipient: string;
|
|
1683
1676
|
})[]>;
|
|
1684
1677
|
static getUserRewardsByChain(user: string, withToken: boolean, breakdownPage?: number, chainFilter?: ChainId[], reloadChainId?: ChainId | null, withTestTokens?: boolean, claimableOnly?: boolean, tags?: string[], type?: TokenType, authOptions?: AuthenticationOptions): Promise<{
|
|
1685
1678
|
chain: {
|
|
@@ -1698,9 +1691,8 @@ export declare abstract class RewardService {
|
|
|
1698
1691
|
rewards: {
|
|
1699
1692
|
root: string;
|
|
1700
1693
|
distributionChainId: number;
|
|
1701
|
-
recipient: string;
|
|
1702
1694
|
proofs: string[];
|
|
1703
|
-
|
|
1695
|
+
recipient: string;
|
|
1704
1696
|
token: {
|
|
1705
1697
|
id: string;
|
|
1706
1698
|
name: string | null;
|
|
@@ -1953,12 +1945,11 @@ export declare abstract class RewardService {
|
|
|
1953
1945
|
id: string;
|
|
1954
1946
|
root: string;
|
|
1955
1947
|
distributionChainId: number;
|
|
1956
|
-
recipient: string;
|
|
1957
1948
|
rewardTokenId: string;
|
|
1958
1949
|
amount: string;
|
|
1959
1950
|
claimed: string;
|
|
1960
1951
|
pending: string;
|
|
1961
1952
|
proofs: string[];
|
|
1962
|
-
|
|
1953
|
+
recipient: string;
|
|
1963
1954
|
})[]>;
|
|
1964
1955
|
}
|
|
@@ -9567,6 +9567,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
9567
9567
|
programSlugs?: string | undefined;
|
|
9568
9568
|
chainName?: string | undefined;
|
|
9569
9569
|
explorerAddress?: string | undefined;
|
|
9570
|
+
campaignTypes?: string | undefined;
|
|
9570
9571
|
};
|
|
9571
9572
|
headers: unknown;
|
|
9572
9573
|
response: {
|
|
@@ -9624,6 +9625,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
9624
9625
|
programSlugs?: string | undefined;
|
|
9625
9626
|
chainName?: string | undefined;
|
|
9626
9627
|
explorerAddress?: string | undefined;
|
|
9628
|
+
campaignTypes?: string | undefined;
|
|
9627
9629
|
};
|
|
9628
9630
|
headers: unknown;
|
|
9629
9631
|
response: {
|
|
@@ -12501,6 +12503,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
12501
12503
|
excludeSubCampaigns?: boolean | undefined;
|
|
12502
12504
|
explorerAddress?: string | undefined;
|
|
12503
12505
|
withInvalids?: boolean | undefined;
|
|
12506
|
+
campaignTypes?: string | undefined;
|
|
12504
12507
|
};
|
|
12505
12508
|
headers: unknown;
|
|
12506
12509
|
response: {
|
|
@@ -13103,6 +13106,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13103
13106
|
excludeSubCampaigns?: boolean | undefined;
|
|
13104
13107
|
explorerAddress?: string | undefined;
|
|
13105
13108
|
withInvalids?: boolean | undefined;
|
|
13109
|
+
campaignTypes?: string | undefined;
|
|
13106
13110
|
};
|
|
13107
13111
|
headers: unknown;
|
|
13108
13112
|
response: {
|
|
@@ -13163,6 +13167,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13163
13167
|
excludeSubCampaigns?: boolean | undefined;
|
|
13164
13168
|
explorerAddress?: string | undefined;
|
|
13165
13169
|
withInvalids?: boolean | undefined;
|
|
13170
|
+
campaignTypes?: string | undefined;
|
|
13166
13171
|
};
|
|
13167
13172
|
headers: unknown;
|
|
13168
13173
|
response: {
|
|
@@ -13230,6 +13235,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13230
13235
|
excludeSubCampaigns?: boolean | undefined;
|
|
13231
13236
|
explorerAddress?: string | undefined;
|
|
13232
13237
|
withInvalids?: boolean | undefined;
|
|
13238
|
+
campaignTypes?: string | undefined;
|
|
13233
13239
|
};
|
|
13234
13240
|
headers: unknown;
|
|
13235
13241
|
response: {
|
|
@@ -13297,6 +13303,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13297
13303
|
excludeSubCampaigns?: boolean | undefined;
|
|
13298
13304
|
explorerAddress?: string | undefined;
|
|
13299
13305
|
withInvalids?: boolean | undefined;
|
|
13306
|
+
campaignTypes?: string | undefined;
|
|
13300
13307
|
};
|
|
13301
13308
|
headers: unknown;
|
|
13302
13309
|
response: {
|
|
@@ -13366,6 +13373,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13366
13373
|
excludeSubCampaigns?: boolean | undefined;
|
|
13367
13374
|
explorerAddress?: string | undefined;
|
|
13368
13375
|
withInvalids?: boolean | undefined;
|
|
13376
|
+
campaignTypes?: string | undefined;
|
|
13369
13377
|
};
|
|
13370
13378
|
headers: unknown;
|
|
13371
13379
|
response: {
|
|
@@ -13432,6 +13440,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13432
13440
|
excludeSubCampaigns?: boolean | undefined;
|
|
13433
13441
|
explorerAddress?: string | undefined;
|
|
13434
13442
|
withInvalids?: boolean | undefined;
|
|
13443
|
+
campaignTypes?: string | undefined;
|
|
13435
13444
|
};
|
|
13436
13445
|
headers: unknown;
|
|
13437
13446
|
response: {
|
|
@@ -13499,6 +13508,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
13499
13508
|
excludeSubCampaigns?: boolean | undefined;
|
|
13500
13509
|
explorerAddress?: string | undefined;
|
|
13501
13510
|
withInvalids?: boolean | undefined;
|
|
13511
|
+
campaignTypes?: string | undefined;
|
|
13502
13512
|
};
|
|
13503
13513
|
headers: unknown;
|
|
13504
13514
|
response: {
|
|
@@ -20684,9 +20694,8 @@ export declare const v4: Elysia<"/v4", {
|
|
|
20684
20694
|
rewards: {
|
|
20685
20695
|
root: string;
|
|
20686
20696
|
distributionChainId: number;
|
|
20687
|
-
recipient: string;
|
|
20688
20697
|
proofs: string[];
|
|
20689
|
-
|
|
20698
|
+
recipient: string;
|
|
20690
20699
|
token: {
|
|
20691
20700
|
id: string;
|
|
20692
20701
|
name: string | null;
|
|
@@ -20819,9 +20828,8 @@ export declare const v4: Elysia<"/v4", {
|
|
|
20819
20828
|
rewards: (Omit<{
|
|
20820
20829
|
root: string;
|
|
20821
20830
|
distributionChainId: number;
|
|
20822
|
-
recipient: string;
|
|
20823
20831
|
proofs: string[];
|
|
20824
|
-
|
|
20832
|
+
recipient: string;
|
|
20825
20833
|
token: {
|
|
20826
20834
|
id: string;
|
|
20827
20835
|
name: string | null;
|
|
@@ -329,9 +329,8 @@ export declare const UserController: Elysia<"/users", {
|
|
|
329
329
|
rewards: {
|
|
330
330
|
root: string;
|
|
331
331
|
distributionChainId: number;
|
|
332
|
-
recipient: string;
|
|
333
332
|
proofs: string[];
|
|
334
|
-
|
|
333
|
+
recipient: string;
|
|
335
334
|
token: {
|
|
336
335
|
id: string;
|
|
337
336
|
name: string | null;
|
|
@@ -464,9 +463,8 @@ export declare const UserController: Elysia<"/users", {
|
|
|
464
463
|
rewards: (Omit<{
|
|
465
464
|
root: string;
|
|
466
465
|
distributionChainId: number;
|
|
467
|
-
recipient: string;
|
|
468
466
|
proofs: string[];
|
|
469
|
-
|
|
467
|
+
recipient: string;
|
|
470
468
|
token: {
|
|
471
469
|
id: string;
|
|
472
470
|
name: string | null;
|