@merkl/api 1.11.6 → 1.11.8
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 +7 -7
- package/dist/src/index.d.ts +5 -5
- 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/programPayload/programPayload.controller.d.ts +3 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.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 +5 -5
- 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
|
}
|
|
@@ -16816,7 +16816,9 @@ export declare const v4: Elysia<"/v4", {
|
|
|
16816
16816
|
};
|
|
16817
16817
|
params: {};
|
|
16818
16818
|
query: unknown;
|
|
16819
|
-
headers:
|
|
16819
|
+
headers: {
|
|
16820
|
+
authorization: string;
|
|
16821
|
+
};
|
|
16820
16822
|
response: {
|
|
16821
16823
|
200: {
|
|
16822
16824
|
reasons: string[];
|
|
@@ -20682,9 +20684,8 @@ export declare const v4: Elysia<"/v4", {
|
|
|
20682
20684
|
rewards: {
|
|
20683
20685
|
root: string;
|
|
20684
20686
|
distributionChainId: number;
|
|
20685
|
-
recipient: string;
|
|
20686
20687
|
proofs: string[];
|
|
20687
|
-
|
|
20688
|
+
recipient: string;
|
|
20688
20689
|
token: {
|
|
20689
20690
|
id: string;
|
|
20690
20691
|
name: string | null;
|
|
@@ -20817,9 +20818,8 @@ export declare const v4: Elysia<"/v4", {
|
|
|
20817
20818
|
rewards: (Omit<{
|
|
20818
20819
|
root: string;
|
|
20819
20820
|
distributionChainId: number;
|
|
20820
|
-
recipient: string;
|
|
20821
20821
|
proofs: string[];
|
|
20822
|
-
|
|
20822
|
+
recipient: string;
|
|
20823
20823
|
token: {
|
|
20824
20824
|
id: string;
|
|
20825
20825
|
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;
|