@merkl/api 0.20.0 → 0.20.2
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 +28 -28
- package/dist/database/api/.generated/drizzle/schema.js +11 -11
- package/dist/database/api/.generated/drizzle/schema.ts +11 -11
- package/dist/database/api/.generated/edge.js +5 -5
- package/dist/database/api/.generated/index-browser.js +2 -2
- package/dist/database/api/.generated/index.d.ts +151 -154
- package/dist/database/api/.generated/index.js +5 -5
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +11 -11
- package/dist/database/api/.generated/wasm.js +2 -2
- package/dist/src/eden/index.d.ts +2088 -667
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Dolomite.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Dolomite.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Erc20.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Erc20.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Euler.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Euler.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Morpho.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Morpho.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Radiant.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Radiant.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Silo.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Silo.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.js +2 -0
- package/dist/src/index.d.ts +380 -95
- package/dist/src/jobs/reward-breakdowns.js +0 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +5 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +374 -95
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -4
- package/dist/src/modules/v4/reward/reward.repository.js +0 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +10 -4
- package/dist/src/modules/v4/reward/reward.service.js +1 -1
- package/dist/src/modules/v4/router.d.ts +380 -95
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -1
@@ -17,6 +17,7 @@ export declare abstract class OpportunityRepository {
|
|
17
17
|
action: import("@db/api").$Enums.OpportunityAction;
|
18
18
|
chainId: number;
|
19
19
|
depositUrl: string | null;
|
20
|
+
explorerAddress: string | null;
|
20
21
|
mainProtocolId: string | null;
|
21
22
|
tvl: number;
|
22
23
|
apr: number;
|
@@ -175,6 +176,7 @@ export declare abstract class OpportunityRepository {
|
|
175
176
|
action: import("@db/api").$Enums.OpportunityAction;
|
176
177
|
chainId: number;
|
177
178
|
depositUrl: string | null;
|
179
|
+
explorerAddress: string | null;
|
178
180
|
mainProtocolId: string | null;
|
179
181
|
tvl: number;
|
180
182
|
apr: number;
|
@@ -317,6 +319,7 @@ export declare abstract class OpportunityRepository {
|
|
317
319
|
action: import("@db/api").$Enums.OpportunityAction;
|
318
320
|
chainId: number;
|
319
321
|
depositUrl: string | null;
|
322
|
+
explorerAddress: string | null;
|
320
323
|
mainProtocolId: string | null;
|
321
324
|
tvl: number;
|
322
325
|
apr: number;
|
@@ -517,6 +520,7 @@ export declare abstract class OpportunityRepository {
|
|
517
520
|
action: import("@db/api").$Enums.OpportunityAction;
|
518
521
|
chainId: number;
|
519
522
|
depositUrl: string | null;
|
523
|
+
explorerAddress: string | null;
|
520
524
|
mainProtocolId: string | null;
|
521
525
|
tvl: number;
|
522
526
|
apr: number;
|
@@ -666,6 +670,7 @@ export declare abstract class OpportunityRepository {
|
|
666
670
|
action: import("@db/api").$Enums.OpportunityAction;
|
667
671
|
chainId: number;
|
668
672
|
depositUrl: string | null;
|
673
|
+
explorerAddress: string | null;
|
669
674
|
mainProtocolId: string | null;
|
670
675
|
tvl: number;
|
671
676
|
apr: number;
|
@@ -866,6 +871,7 @@ export declare abstract class OpportunityRepository {
|
|
866
871
|
action: import("@db/api").$Enums.OpportunityAction;
|
867
872
|
chainId: number;
|
868
873
|
depositUrl: string | null;
|
874
|
+
explorerAddress: string | null;
|
869
875
|
mainProtocolId: string | null;
|
870
876
|
tvl: number;
|
871
877
|
apr: number;
|
@@ -928,6 +934,7 @@ export declare abstract class OpportunityRepository {
|
|
928
934
|
action: import("@db/api").$Enums.OpportunityAction;
|
929
935
|
chainId: number;
|
930
936
|
depositUrl: string | null;
|
937
|
+
explorerAddress: string | null;
|
931
938
|
mainProtocolId: string | null;
|
932
939
|
tvl: number;
|
933
940
|
apr: number;
|
@@ -944,6 +951,7 @@ export declare abstract class OpportunityRepository {
|
|
944
951
|
action: import("@db/api").$Enums.OpportunityAction;
|
945
952
|
chainId: number;
|
946
953
|
depositUrl: string | null;
|
954
|
+
explorerAddress: string | null;
|
947
955
|
mainProtocolId: string | null;
|
948
956
|
tvl: number;
|
949
957
|
apr: number;
|
@@ -959,6 +967,7 @@ export declare abstract class OpportunityRepository {
|
|
959
967
|
action: import("@db/api").$Enums.OpportunityAction;
|
960
968
|
chainId: number;
|
961
969
|
depositUrl: string | null;
|
970
|
+
explorerAddress: string | null;
|
962
971
|
mainProtocolId: string | null;
|
963
972
|
tvl: number;
|
964
973
|
apr: number;
|
@@ -974,6 +983,7 @@ export declare abstract class OpportunityRepository {
|
|
974
983
|
action: import("@db/api").$Enums.OpportunityAction;
|
975
984
|
chainId: number;
|
976
985
|
depositUrl: string | null;
|
986
|
+
explorerAddress: string | null;
|
977
987
|
mainProtocolId: string | null;
|
978
988
|
tvl: number;
|
979
989
|
apr: number;
|
@@ -998,6 +1008,7 @@ export declare abstract class OpportunityRepository {
|
|
998
1008
|
action: import("@db/api").$Enums.OpportunityAction;
|
999
1009
|
chainId: number;
|
1000
1010
|
depositUrl: string | null;
|
1011
|
+
explorerAddress: string | null;
|
1001
1012
|
mainProtocolId: string | null;
|
1002
1013
|
tvl: number;
|
1003
1014
|
apr: number;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ProtocolService } from "@/modules/v4/protocol/protocol.service";
|
2
|
+
import { log } from "@/utils/logger";
|
2
3
|
import { apiDbClient } from "@db";
|
3
4
|
import { Status } from "@db/api";
|
4
5
|
import moment from "moment";
|
@@ -151,6 +152,11 @@ export class OpportunityRepository {
|
|
151
152
|
if (mainProtocol.tags.includes("LENDING") && !!newOpp.name && newOpp.name.includes("Supply"))
|
152
153
|
newOpp.action = "LEND";
|
153
154
|
}
|
155
|
+
// Safety check on urls:
|
156
|
+
if (!!newOpp.depositUrl && !newOpp.depositUrl.includes("http")) {
|
157
|
+
newOpp.depositUrl = undefined;
|
158
|
+
log.warn(`deposit URL for opportunity ${newOpp.id} is not a valid URL`);
|
159
|
+
}
|
154
160
|
const toDisconnect = {
|
155
161
|
mainProtocol: "",
|
156
162
|
protocols: [],
|
@@ -182,6 +188,7 @@ export class OpportunityRepository {
|
|
182
188
|
status: newOpp.status,
|
183
189
|
type: newOpp.type,
|
184
190
|
depositUrl: newOpp.depositUrl,
|
191
|
+
explorerAddress: newOpp.explorerAddress,
|
185
192
|
Chain: { connect: { id: newOpp.chainId } },
|
186
193
|
MainProtocol: !!newOpp.mainProtocol ? { connect: { id: newOpp.mainProtocol } } : undefined,
|
187
194
|
Protocols: {
|
@@ -208,6 +215,7 @@ export class OpportunityRepository {
|
|
208
215
|
status: newOpp.status,
|
209
216
|
type: newOpp.type,
|
210
217
|
depositUrl: newOpp.depositUrl,
|
218
|
+
explorerAddress: newOpp.explorerAddress,
|
211
219
|
Chain: { connect: { id: newOpp.chainId } },
|
212
220
|
MainProtocol: !!newOpp.mainProtocol
|
213
221
|
? { connect: { id: newOpp.mainProtocol } }
|
@@ -21,6 +21,7 @@ export declare abstract class OpportunityService {
|
|
21
21
|
action: import("@db/api").$Enums.OpportunityAction;
|
22
22
|
chainId: number;
|
23
23
|
depositUrl: string | null;
|
24
|
+
explorerAddress: string | null;
|
24
25
|
mainProtocolId: string | null;
|
25
26
|
tvl: number;
|
26
27
|
apr: number;
|
@@ -56,6 +57,7 @@ export declare abstract class OpportunityService {
|
|
56
57
|
})[];
|
57
58
|
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
58
59
|
depositUrl: any;
|
60
|
+
explorerAddress: string | undefined;
|
59
61
|
tags: string[];
|
60
62
|
}>;
|
61
63
|
static updateStatus(opportunityId: string, status: Status): Promise<{
|
@@ -68,6 +70,7 @@ export declare abstract class OpportunityService {
|
|
68
70
|
action: import("@db/api").$Enums.OpportunityAction;
|
69
71
|
chainId: number;
|
70
72
|
depositUrl: string | null;
|
73
|
+
explorerAddress: string | null;
|
71
74
|
mainProtocolId: string | null;
|
72
75
|
tvl: number;
|
73
76
|
apr: number;
|
@@ -101,6 +104,7 @@ export declare abstract class OpportunityService {
|
|
101
104
|
})[];
|
102
105
|
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
103
106
|
depositUrl: any;
|
107
|
+
explorerAddress: string | undefined;
|
104
108
|
tags: string[];
|
105
109
|
}>;
|
106
110
|
static updateMetadata(chain: ChainId): Promise<void>;
|
@@ -120,6 +124,7 @@ export declare abstract class OpportunityService {
|
|
120
124
|
icon: string;
|
121
125
|
} | null | undefined;
|
122
126
|
depositUrl?: string | undefined;
|
127
|
+
explorerAddress?: string | undefined;
|
123
128
|
aprRecord?: {
|
124
129
|
timestamp: string | bigint;
|
125
130
|
cumulated: number;
|
@@ -256,6 +261,7 @@ export declare abstract class OpportunityService {
|
|
256
261
|
icon: string;
|
257
262
|
} | null | undefined;
|
258
263
|
depositUrl?: string | undefined;
|
264
|
+
explorerAddress?: string | undefined;
|
259
265
|
aprRecord?: {
|
260
266
|
timestamp: string | bigint;
|
261
267
|
cumulated: number;
|
@@ -497,6 +503,7 @@ export declare abstract class OpportunityService {
|
|
497
503
|
action: import("@db/api").$Enums.OpportunityAction;
|
498
504
|
chainId: number;
|
499
505
|
depositUrl: string | null;
|
506
|
+
explorerAddress: string | null;
|
500
507
|
mainProtocolId: string | null;
|
501
508
|
tvl: number;
|
502
509
|
apr: number;
|
@@ -549,6 +556,7 @@ export declare abstract class OpportunityService {
|
|
549
556
|
identifier: string;
|
550
557
|
action: import("@db/api").$Enums.OpportunityAction;
|
551
558
|
chainId: number;
|
559
|
+
explorerAddress: string | null;
|
552
560
|
tvl: number;
|
553
561
|
dailyRewards: number;
|
554
562
|
}[]>;
|
@@ -668,6 +676,7 @@ export declare abstract class OpportunityService {
|
|
668
676
|
action: import("@db/api").$Enums.OpportunityAction;
|
669
677
|
chainId: number;
|
670
678
|
depositUrl: string | null;
|
679
|
+
explorerAddress: string | null;
|
671
680
|
mainProtocolId: string | null;
|
672
681
|
tvl: number;
|
673
682
|
apr: number;
|
@@ -720,6 +729,7 @@ export declare abstract class OpportunityService {
|
|
720
729
|
identifier: string;
|
721
730
|
action: import("@db/api").$Enums.OpportunityAction;
|
722
731
|
chainId: number;
|
732
|
+
explorerAddress: string | null;
|
723
733
|
tvl: number;
|
724
734
|
dailyRewards: number;
|
725
735
|
}[]>;
|
@@ -835,6 +845,7 @@ export declare abstract class OpportunityService {
|
|
835
845
|
action: import("@db/api").$Enums.OpportunityAction;
|
836
846
|
chainId: number;
|
837
847
|
depositUrl: string | null;
|
848
|
+
explorerAddress: string | null;
|
838
849
|
mainProtocolId: string | null;
|
839
850
|
tvl: number;
|
840
851
|
apr: number;
|
@@ -887,6 +898,7 @@ export declare abstract class OpportunityService {
|
|
887
898
|
identifier: string;
|
888
899
|
action: import("@db/api").$Enums.OpportunityAction;
|
889
900
|
chainId: number;
|
901
|
+
explorerAddress: string | null;
|
890
902
|
tvl: number;
|
891
903
|
dailyRewards: number;
|
892
904
|
};
|
@@ -928,6 +940,7 @@ export declare abstract class OpportunityService {
|
|
928
940
|
identifier: string;
|
929
941
|
action: import("@db/api").$Enums.OpportunityAction;
|
930
942
|
chainId: number;
|
943
|
+
explorerAddress: string | null;
|
931
944
|
tvl: number;
|
932
945
|
apr: number;
|
933
946
|
dailyRewards: number;
|
@@ -951,6 +964,7 @@ export declare abstract class OpportunityService {
|
|
951
964
|
action: import("@db/api").$Enums.OpportunityAction;
|
952
965
|
chainId: number;
|
953
966
|
depositUrl: string | null;
|
967
|
+
explorerAddress: string | null;
|
954
968
|
mainProtocolId: string | null;
|
955
969
|
tvl: number;
|
956
970
|
apr: number;
|
@@ -17,7 +17,7 @@ export type Reward = Resource<"Reward", "rewardTokenId" | "id", {
|
|
17
17
|
* @description Describes one reward amount for one token and campaign
|
18
18
|
* @see {@link Resource}
|
19
19
|
*/
|
20
|
-
export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId" | "
|
20
|
+
export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId" | "uuid">;
|
21
21
|
/**
|
22
22
|
* Daily Rewards
|
23
23
|
* @description Describes rewards breakdown from the opportunity view
|
@@ -69,6 +69,7 @@ export declare abstract class RewardRepository {
|
|
69
69
|
action: import("@db/api").$Enums.OpportunityAction;
|
70
70
|
chainId: number;
|
71
71
|
depositUrl: string | null;
|
72
|
+
explorerAddress: string | null;
|
72
73
|
mainProtocolId: string | null;
|
73
74
|
tvl: number;
|
74
75
|
apr: number;
|
@@ -79,10 +80,9 @@ export declare abstract class RewardRepository {
|
|
79
80
|
pending: string;
|
80
81
|
id: number;
|
81
82
|
reason: string;
|
82
|
-
uuid: string
|
83
|
+
uuid: string;
|
83
84
|
campaignId: string;
|
84
85
|
amount: string;
|
85
|
-
stringId: string;
|
86
86
|
claimed: string;
|
87
87
|
protocolId: string | null;
|
88
88
|
rewardId: string;
|
@@ -106,10 +106,9 @@ export declare abstract class RewardRepository {
|
|
106
106
|
pending: string;
|
107
107
|
id: number;
|
108
108
|
reason: string;
|
109
|
-
uuid: string
|
109
|
+
uuid: string;
|
110
110
|
campaignId: string;
|
111
111
|
amount: string;
|
112
|
-
stringId: string;
|
113
112
|
claimed: string;
|
114
113
|
protocolId: string | null;
|
115
114
|
rewardId: string;
|
@@ -42,7 +42,6 @@ export class RewardRepository {
|
|
42
42
|
dataPerCampaign.breakdowns.map(breakdown => {
|
43
43
|
const rewardId = RewardService.hashId(dataPerCampaign.root, breakdown.recipient, TokenService.hashId({ address: dataPerCampaign.rewardToken, chainId: dataPerCampaign.distributionChainId }));
|
44
44
|
breakdownsToCreate.push({
|
45
|
-
stringId: RewardService.hashBreakdownId(rewardId, campaignId, breakdown.reason),
|
46
45
|
rewardId,
|
47
46
|
protocolId: breakdown.protocolId ? breakdown.protocolId : undefined,
|
48
47
|
campaignId,
|
@@ -118,6 +118,7 @@ export declare abstract class RewardService {
|
|
118
118
|
action: import("@db/api").$Enums.OpportunityAction;
|
119
119
|
chainId: number;
|
120
120
|
depositUrl: string | null;
|
121
|
+
explorerAddress: string | null;
|
121
122
|
mainProtocolId: string | null;
|
122
123
|
tvl: number;
|
123
124
|
apr: number;
|
@@ -170,6 +171,7 @@ export declare abstract class RewardService {
|
|
170
171
|
identifier: string;
|
171
172
|
action: import("@db/api").$Enums.OpportunityAction;
|
172
173
|
chainId: number;
|
174
|
+
explorerAddress: string | null;
|
173
175
|
tvl: number;
|
174
176
|
dailyRewards: number;
|
175
177
|
}, number>>;
|
@@ -231,6 +233,7 @@ export declare abstract class RewardService {
|
|
231
233
|
action: import("@db/api").$Enums.OpportunityAction;
|
232
234
|
chainId: number;
|
233
235
|
depositUrl: string | null;
|
236
|
+
explorerAddress: string | null;
|
234
237
|
mainProtocolId: string | null;
|
235
238
|
tvl: number;
|
236
239
|
apr: number;
|
@@ -311,6 +314,7 @@ export declare abstract class RewardService {
|
|
311
314
|
action: import("@db/api").$Enums.OpportunityAction;
|
312
315
|
chainId: number;
|
313
316
|
depositUrl: string | null;
|
317
|
+
explorerAddress: string | null;
|
314
318
|
mainProtocolId: string | null;
|
315
319
|
tvl: number;
|
316
320
|
apr: number;
|
@@ -395,6 +399,7 @@ export declare abstract class RewardService {
|
|
395
399
|
action: import("@db/api").$Enums.OpportunityAction;
|
396
400
|
chainId: number;
|
397
401
|
depositUrl: string | null;
|
402
|
+
explorerAddress: string | null;
|
398
403
|
mainProtocolId: string | null;
|
399
404
|
tvl: number;
|
400
405
|
apr: number;
|
@@ -405,10 +410,9 @@ export declare abstract class RewardService {
|
|
405
410
|
pending: string;
|
406
411
|
id: number;
|
407
412
|
reason: string;
|
408
|
-
uuid: string
|
413
|
+
uuid: string;
|
409
414
|
campaignId: string;
|
410
415
|
amount: string;
|
411
|
-
stringId: string;
|
412
416
|
claimed: string;
|
413
417
|
protocolId: string | null;
|
414
418
|
rewardId: string;
|
@@ -510,6 +514,7 @@ export declare abstract class RewardService {
|
|
510
514
|
action: import("@db/api").$Enums.OpportunityAction;
|
511
515
|
chainId: number;
|
512
516
|
depositUrl: string | null;
|
517
|
+
explorerAddress: string | null;
|
513
518
|
mainProtocolId: string | null;
|
514
519
|
tvl: number;
|
515
520
|
apr: number;
|
@@ -605,6 +610,7 @@ export declare abstract class RewardService {
|
|
605
610
|
action: import("@db/api").$Enums.OpportunityAction;
|
606
611
|
chainId: number;
|
607
612
|
depositUrl: string | null;
|
613
|
+
explorerAddress: string | null;
|
608
614
|
mainProtocolId: string | null;
|
609
615
|
tvl: number;
|
610
616
|
apr: number;
|
@@ -698,6 +704,7 @@ export declare abstract class RewardService {
|
|
698
704
|
action: import("@db/api").$Enums.OpportunityAction;
|
699
705
|
chainId: number;
|
700
706
|
depositUrl: string | null;
|
707
|
+
explorerAddress: string | null;
|
701
708
|
mainProtocolId: string | null;
|
702
709
|
tvl: number;
|
703
710
|
apr: number;
|
@@ -708,10 +715,9 @@ export declare abstract class RewardService {
|
|
708
715
|
pending: string;
|
709
716
|
id: number;
|
710
717
|
reason: string;
|
711
|
-
uuid: string
|
718
|
+
uuid: string;
|
712
719
|
campaignId: string;
|
713
720
|
amount: string;
|
714
|
-
stringId: string;
|
715
721
|
claimed: string;
|
716
722
|
protocolId: string | null;
|
717
723
|
rewardId: string;
|
@@ -79,7 +79,7 @@ export class RewardService {
|
|
79
79
|
* @returns a RewardBreakdown model
|
80
80
|
*/
|
81
81
|
static formatBreakdown(breakdown) {
|
82
|
-
const { Campaign, id,
|
82
|
+
const { Campaign, id, uuid, rewardId, protocolId, ...rest } = breakdown;
|
83
83
|
return {
|
84
84
|
...rest,
|
85
85
|
campaignId: Campaign.campaignId,
|