@merkl/api 1.13.0 → 1.13.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/src/eden/index.d.ts +390 -212
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +25 -25
- package/dist/src/engine/implementations/Blend/metadata.d.ts +32 -0
- package/dist/src/engine/implementations/Blend/metadata.js.map +1 -0
- package/dist/src/engine/implementations/SacHolder/metadata.d.ts +16 -0
- package/dist/src/engine/implementations/SacHolder/metadata.js.map +1 -0
- package/dist/src/engine/metadata/factory.js.map +1 -1
- package/dist/src/engine/nativeAPR/factory.js.map +1 -1
- package/dist/src/engine/tvl/factory.js.map +1 -1
- package/dist/src/index.d.ts +390 -212
- package/dist/src/index.js.map +1 -1
- package/dist/src/jobs/auto-claim/index.js.map +1 -0
- package/dist/src/jobs/leaf-breakdown-etl/config.d.ts +8 -0
- package/dist/src/jobs/leaf-breakdown-etl/config.js.map +1 -0
- package/dist/src/jobs/leaf-breakdown-etl/index.js.map +1 -0
- package/dist/src/jobs/leaf-breakdown-etl/load.d.ts +13 -0
- package/dist/src/jobs/leaf-breakdown-etl/load.js.map +1 -0
- package/dist/src/jobs/leaf-breakdown-etl/subcampaigns.d.ts +27 -0
- package/dist/src/jobs/leaf-breakdown-etl/subcampaigns.js.map +1 -0
- package/dist/src/jobs/leaf-breakdown-etl/types.d.ts +15 -0
- package/dist/src/jobs/leaf-breakdown-etl/types.js.map +1 -0
- package/dist/src/jobs/leaf-etl/config.d.ts +7 -0
- package/dist/src/jobs/leaf-etl/config.js.map +1 -0
- package/dist/src/jobs/leaf-etl/index.d.ts +1 -0
- package/dist/src/jobs/leaf-etl/index.js.map +1 -0
- package/dist/src/jobs/leaf-etl/load.d.ts +13 -0
- package/dist/src/jobs/leaf-etl/load.js.map +1 -0
- package/dist/src/jobs/leaf-etl/types.d.ts +11 -0
- package/dist/src/jobs/leaf-etl/types.js.map +1 -0
- package/dist/src/jobs/pendings-etl/load.js.map +1 -1
- package/dist/src/jobs/refresh-materialized-views.d.ts +1 -0
- package/dist/src/jobs/refresh-materialized-views.js.map +1 -0
- package/dist/src/jobs/reward-breakdowns-etl/index.js.map +1 -1
- package/dist/src/jobs/reward-breakdowns-etl/load.js.map +1 -1
- package/dist/src/jobs/rewards-etl/index.js.map +1 -1
- package/dist/src/jobs/rewards-etl/load-rewards.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +64 -5
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +10 -2
- package/dist/src/modules/v4/campaign/campaign.query-transformer.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +49 -12
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +36 -48
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +84 -50
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +64 -68
- package/dist/src/modules/v4/carousel/carousel.repository.js.map +1 -1
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +86 -70
- package/dist/src/modules/v4/config/config.controller.d.ts +9 -12
- package/dist/src/modules/v4/config/config.service.d.ts +9 -12
- package/dist/src/modules/v4/creator/creator.controller.d.ts +8 -1
- package/dist/src/modules/v4/leaf/leaf.repository.d.ts +18 -22
- package/dist/src/modules/v4/leaf/leaf.repository.js.map +1 -1
- package/dist/src/modules/v4/leaf/leaf.service.d.ts +18 -22
- package/dist/src/modules/v4/opportunity/depositUrl.formatter.d.ts +20 -0
- package/dist/src/modules/v4/opportunity/depositUrl.formatter.js.map +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +88 -31
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +25 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +69 -5
- package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +57 -57
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +54 -67
- package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +93 -60
- package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.controller.d.ts +27 -36
- package/dist/src/modules/v4/payload/payload.service.d.ts +36 -48
- package/dist/src/modules/v4/program/program.controller.d.ts +32 -4
- package/dist/src/modules/v4/program/program.repository.d.ts +41 -45
- package/dist/src/modules/v4/program/program.repository.js.map +1 -1
- package/dist/src/modules/v4/program/program.service.d.ts +32 -4
- package/dist/src/modules/v4/protocol/protocol.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +39 -22
- package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +128 -122
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +390 -212
- package/dist/src/modules/v4/transaction/transaction.service.d.ts +226 -156
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +16 -2
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +8 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +26 -23
- package/dist/src/scripts/exportOpportunities.js.map +1 -1
- package/dist/src/scripts/importOpportunities.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +38 -3
- package/dist/src/utils/parseDistributionType.d.ts +1087 -1052
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/jobs/basculate-past-pendings/index.js.map +0 -1
- package/dist/src/jobs/pendings-etl/load-leaf.d.ts +0 -6
- package/dist/src/jobs/pendings-etl/load-leaf.js.map +0 -1
- package/dist/src/jobs/pendings-watcher/index.d.ts +0 -47
- package/dist/src/jobs/pendings-watcher/index.js.map +0 -1
- package/dist/src/jobs/pendings-watcher/types.d.ts +0 -52
- package/dist/src/jobs/pendings-watcher/types.js.map +0 -1
- package/dist/src/jobs/refresh-count-views.js.map +0 -1
- package/dist/src/jobs/reward-breakdowns-etl/load-leaf.d.ts +0 -8
- package/dist/src/jobs/reward-breakdowns-etl/load-leaf.js.map +0 -1
- package/dist/src/jobs/rewards-etl/load-leaf.d.ts +0 -5
- package/dist/src/jobs/rewards-etl/load-leaf.js.map +0 -1
- package/dist/src/jobs/test-partitions.d.ts +0 -11
- package/dist/src/jobs/test-partitions.js.map +0 -1
- /package/dist/src/jobs/{refresh-count-views.d.ts → auto-claim/index.d.ts} +0 -0
- /package/dist/src/jobs/{basculate-past-pendings → leaf-breakdown-etl}/index.d.ts +0 -0
|
@@ -36,18 +36,16 @@ export declare abstract class LeafRepository {
|
|
|
36
36
|
endOfDisputePeriod: number;
|
|
37
37
|
lastClaimsOnchainFetchTimestamp: string | null;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
DepositUrls: {
|
|
40
40
|
id: string;
|
|
41
|
-
|
|
42
|
-
name: string;
|
|
43
|
-
description: string;
|
|
41
|
+
title: string;
|
|
44
42
|
url: string;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
43
|
+
subtitle: string | null;
|
|
44
|
+
icon: string | null;
|
|
45
|
+
priority: number;
|
|
46
|
+
opportunityId: string;
|
|
47
|
+
}[];
|
|
48
|
+
MainProtocol: {
|
|
51
49
|
id: string;
|
|
52
50
|
tags: string[];
|
|
53
51
|
name: string;
|
|
@@ -57,7 +55,7 @@ export declare abstract class LeafRepository {
|
|
|
57
55
|
banner: string | null;
|
|
58
56
|
opportunityBannerLight: string | null;
|
|
59
57
|
opportunityBannerDark: string | null;
|
|
60
|
-
}
|
|
58
|
+
} | null;
|
|
61
59
|
Tokens: {
|
|
62
60
|
id: string;
|
|
63
61
|
name: string | null;
|
|
@@ -170,18 +168,16 @@ export declare abstract class LeafRepository {
|
|
|
170
168
|
endOfDisputePeriod: number;
|
|
171
169
|
lastClaimsOnchainFetchTimestamp: string | null;
|
|
172
170
|
};
|
|
173
|
-
|
|
171
|
+
DepositUrls: {
|
|
174
172
|
id: string;
|
|
175
|
-
|
|
176
|
-
name: string;
|
|
177
|
-
description: string;
|
|
173
|
+
title: string;
|
|
178
174
|
url: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
175
|
+
subtitle: string | null;
|
|
176
|
+
icon: string | null;
|
|
177
|
+
priority: number;
|
|
178
|
+
opportunityId: string;
|
|
179
|
+
}[];
|
|
180
|
+
MainProtocol: {
|
|
185
181
|
id: string;
|
|
186
182
|
tags: string[];
|
|
187
183
|
name: string;
|
|
@@ -191,7 +187,7 @@ export declare abstract class LeafRepository {
|
|
|
191
187
|
banner: string | null;
|
|
192
188
|
opportunityBannerLight: string | null;
|
|
193
189
|
opportunityBannerDark: string | null;
|
|
194
|
-
}
|
|
190
|
+
} | null;
|
|
195
191
|
Tokens: {
|
|
196
192
|
id: string;
|
|
197
193
|
name: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaf.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/leaf/leaf.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,OAAgB,cAAc;IAClC,8EAA8E;IAC9E,MAAM,CAAC,KAAK,CAAC,cAAc,CACzB,SAAiB,EACjB,oBAA8B,EAC9B,IAAc,EACd,OAOC,EACD;QACA,MAAM,aAAa,GAAG,KAAK,CAAC;QAE5B,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;YACrC,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAC3B,KAAK,EAAE;gBACL,SAAS;gBACT,mBAAmB,EAAE,CAAC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AE,CAAC,CAAC,CAAC,SAAS;oBAC7G,OAAO,EAAE;wBACP,uBAAuB,EAAE,IAAI;wBAC7B,QAAQ,EAAE;4BACR,OAAO,EAAE;gCACP,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,gDAAgD;gCAC5I,WAAW,EAAE;oCACX,OAAO,EAAE;wCACP,YAAY,EAAE,IAAI;wCAClB,KAAK,EAAE,IAAI;wCACX,
|
|
1
|
+
{"version":3,"file":"leaf.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/leaf/leaf.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,OAAgB,cAAc;IAClC,8EAA8E;IAC9E,MAAM,CAAC,KAAK,CAAC,cAAc,CACzB,SAAiB,EACjB,oBAA8B,EAC9B,IAAc,EACd,OAOC,EACD;QACA,MAAM,aAAa,GAAG,KAAK,CAAC;QAE5B,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;YACrC,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAC3B,KAAK,EAAE;gBACL,SAAS;gBACT,mBAAmB,EAAE,CAAC,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,SAAS;gBAC9F,KAAK,EAAE,CAAC,OAAO,CAAC,cAAc;oBAC5B,CAAC,CAAC;wBACE,IAAI,EAAE,OAAO,CAAC,IAAI;wBAClB,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK;qBACnD;oBACH,CAAC,CAAC,SAAS;gBACb,UAAU,EACR,OAAO,CAAC,YAAY,IAAI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,EAAE,IAAI;wCACpB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;qCAC9C;iCACF;6BACF;yBACF;wBACD,WAAW,EAAE;4BACX,OAAO,EAAE;gCACP,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,gDAAgD;gCAC5I,WAAW,EAAE;oCACX,OAAO,EAAE;wCACP,YAAY,EAAE,IAAI;wCAClB,KAAK,EAAE,IAAI;wCACX,MAAM,EAAE,IAAI;wCACZ,cAAc,EAAE,IAAI;wCACpB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;qCAC9C;iCACF;6BACF;yBACF;qBACF;iBACF;gBACD,KAAK,EAAE,OAAO,CAAC,SAAS;oBACtB,CAAC,CAAC,IAAI;oBACN,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;aAC5F;SACF,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAA4E,EAAE;QAClH,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;YACvC,KAAK,EAAE;gBACL,0CAA0C,EAAE,EAAE;aAC/C;YACD,OAAO,EAAE;gBACP,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -74,18 +74,16 @@ export declare abstract class LeafService {
|
|
|
74
74
|
endOfDisputePeriod: number;
|
|
75
75
|
lastClaimsOnchainFetchTimestamp: string | null;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
DepositUrls: {
|
|
78
78
|
id: string;
|
|
79
|
-
|
|
80
|
-
name: string;
|
|
81
|
-
description: string;
|
|
79
|
+
title: string;
|
|
82
80
|
url: string;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
81
|
+
subtitle: string | null;
|
|
82
|
+
icon: string | null;
|
|
83
|
+
priority: number;
|
|
84
|
+
opportunityId: string;
|
|
85
|
+
}[];
|
|
86
|
+
MainProtocol: {
|
|
89
87
|
id: string;
|
|
90
88
|
tags: string[];
|
|
91
89
|
name: string;
|
|
@@ -95,7 +93,7 @@ export declare abstract class LeafService {
|
|
|
95
93
|
banner: string | null;
|
|
96
94
|
opportunityBannerLight: string | null;
|
|
97
95
|
opportunityBannerDark: string | null;
|
|
98
|
-
}
|
|
96
|
+
} | null;
|
|
99
97
|
Tokens: {
|
|
100
98
|
id: string;
|
|
101
99
|
name: string | null;
|
|
@@ -196,18 +194,16 @@ export declare abstract class LeafService {
|
|
|
196
194
|
endOfDisputePeriod: number;
|
|
197
195
|
lastClaimsOnchainFetchTimestamp: string | null;
|
|
198
196
|
};
|
|
199
|
-
|
|
197
|
+
DepositUrls: {
|
|
200
198
|
id: string;
|
|
201
|
-
|
|
202
|
-
name: string;
|
|
203
|
-
description: string;
|
|
199
|
+
title: string;
|
|
204
200
|
url: string;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
201
|
+
subtitle: string | null;
|
|
202
|
+
icon: string | null;
|
|
203
|
+
priority: number;
|
|
204
|
+
opportunityId: string;
|
|
205
|
+
}[];
|
|
206
|
+
MainProtocol: {
|
|
211
207
|
id: string;
|
|
212
208
|
tags: string[];
|
|
213
209
|
name: string;
|
|
@@ -217,7 +213,7 @@ export declare abstract class LeafService {
|
|
|
217
213
|
banner: string | null;
|
|
218
214
|
opportunityBannerLight: string | null;
|
|
219
215
|
opportunityBannerDark: string | null;
|
|
220
|
-
}
|
|
216
|
+
} | null;
|
|
221
217
|
Tokens: {
|
|
222
218
|
id: string;
|
|
223
219
|
name: string | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DepositUrl as PrismaDepositUrl } from "@package/databases/api";
|
|
2
|
+
import type { DepositUrl } from "@package/resources/schemas";
|
|
3
|
+
/**
|
|
4
|
+
* DepositUrlFormatter
|
|
5
|
+
* @description Transforms Prisma DepositUrl types to Resource DepositUrl types
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class DepositUrlFormatter {
|
|
8
|
+
/**
|
|
9
|
+
* Format a Prisma DepositUrl to a Resource DepositUrl
|
|
10
|
+
* @param prismaDepositUrl Raw Prisma DepositUrl from repository
|
|
11
|
+
* @returns Formatted DepositUrl Resource
|
|
12
|
+
*/
|
|
13
|
+
static format(prismaDepositUrl: PrismaDepositUrl): DepositUrl;
|
|
14
|
+
/**
|
|
15
|
+
* Format multiple Prisma DepositUrls to Resource DepositUrls
|
|
16
|
+
* @param prismaDepositUrls Array of raw Prisma DepositUrls
|
|
17
|
+
* @returns Array of formatted DepositUrl Resources
|
|
18
|
+
*/
|
|
19
|
+
static formatMany(prismaDepositUrls: PrismaDepositUrl[]): DepositUrl[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositUrl.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/opportunity/depositUrl.formatter.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,OAAgB,mBAAmB;IACvC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,gBAAkC,EAAc;QAC5D,OAAO;YACL,EAAE,EAAE,gBAAgB,CAAC,EAAE;YACvB,KAAK,EAAE,gBAAgB,CAAC,KAAK;YAC7B,GAAG,EAAE,gBAAgB,CAAC,GAAG;YACzB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,IAAI,SAAS;YAChD,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAI,SAAS;YACxC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;SACpC,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,iBAAqC,EAAgB;QACrE,OAAO,iBAAiB,CAAC,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAAA,CAC1D;CACF"}
|
|
@@ -69,9 +69,16 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
69
69
|
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
70
70
|
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
71
71
|
tags: string[];
|
|
72
|
-
protocols?: string[] | undefined;
|
|
73
72
|
mainProtocol?: string | undefined;
|
|
74
73
|
depositUrl?: string | undefined;
|
|
74
|
+
depositUrls?: {
|
|
75
|
+
id: string;
|
|
76
|
+
title: string;
|
|
77
|
+
url: string;
|
|
78
|
+
subtitle?: string | undefined;
|
|
79
|
+
icon?: string | undefined;
|
|
80
|
+
priority: number;
|
|
81
|
+
}[] | undefined;
|
|
75
82
|
explorerAddress?: string | undefined;
|
|
76
83
|
hidden?: boolean | undefined;
|
|
77
84
|
tvl: number;
|
|
@@ -381,9 +388,16 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
381
388
|
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
382
389
|
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
383
390
|
tags: string[];
|
|
384
|
-
protocols?: string[] | undefined;
|
|
385
391
|
mainProtocol?: string | undefined;
|
|
386
392
|
depositUrl?: string | undefined;
|
|
393
|
+
depositUrls?: {
|
|
394
|
+
id: string;
|
|
395
|
+
title: string;
|
|
396
|
+
url: string;
|
|
397
|
+
subtitle?: string | undefined;
|
|
398
|
+
icon?: string | undefined;
|
|
399
|
+
priority: number;
|
|
400
|
+
}[] | undefined;
|
|
387
401
|
explorerAddress?: string | undefined;
|
|
388
402
|
hidden?: boolean | undefined;
|
|
389
403
|
tvl: number;
|
|
@@ -653,9 +667,16 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
653
667
|
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
654
668
|
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
655
669
|
tags: string[];
|
|
656
|
-
protocols?: string[] | undefined;
|
|
657
670
|
mainProtocol?: string | undefined;
|
|
658
671
|
depositUrl?: string | undefined;
|
|
672
|
+
depositUrls?: {
|
|
673
|
+
id: string;
|
|
674
|
+
title: string;
|
|
675
|
+
url: string;
|
|
676
|
+
subtitle?: string | undefined;
|
|
677
|
+
icon?: string | undefined;
|
|
678
|
+
priority: number;
|
|
679
|
+
}[] | undefined;
|
|
659
680
|
explorerAddress?: string | undefined;
|
|
660
681
|
hidden?: boolean | undefined;
|
|
661
682
|
tvl: number;
|
|
@@ -966,9 +987,16 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
966
987
|
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
967
988
|
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
968
989
|
tags: string[];
|
|
969
|
-
protocols?: string[] | undefined;
|
|
970
990
|
mainProtocol?: string | undefined;
|
|
971
991
|
depositUrl?: string | undefined;
|
|
992
|
+
depositUrls?: {
|
|
993
|
+
id: string;
|
|
994
|
+
title: string;
|
|
995
|
+
url: string;
|
|
996
|
+
subtitle?: string | undefined;
|
|
997
|
+
icon?: string | undefined;
|
|
998
|
+
priority: number;
|
|
999
|
+
}[] | undefined;
|
|
972
1000
|
explorerAddress?: string | undefined;
|
|
973
1001
|
hidden?: boolean | undefined;
|
|
974
1002
|
tvl: number;
|
|
@@ -1375,9 +1403,16 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1375
1403
|
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
1376
1404
|
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
1377
1405
|
tags: string[];
|
|
1378
|
-
protocols?: string[] | undefined;
|
|
1379
1406
|
mainProtocol?: string | undefined;
|
|
1380
1407
|
depositUrl?: string | undefined;
|
|
1408
|
+
depositUrls?: {
|
|
1409
|
+
id: string;
|
|
1410
|
+
title: string;
|
|
1411
|
+
url: string;
|
|
1412
|
+
subtitle?: string | undefined;
|
|
1413
|
+
icon?: string | undefined;
|
|
1414
|
+
priority: number;
|
|
1415
|
+
}[] | undefined;
|
|
1381
1416
|
explorerAddress?: string | undefined;
|
|
1382
1417
|
hidden?: boolean | undefined;
|
|
1383
1418
|
tvl: number;
|
|
@@ -1647,9 +1682,16 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1647
1682
|
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
1648
1683
|
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
1649
1684
|
tags: string[];
|
|
1650
|
-
protocols?: string[] | undefined;
|
|
1651
1685
|
mainProtocol?: string | undefined;
|
|
1652
1686
|
depositUrl?: string | undefined;
|
|
1687
|
+
depositUrls?: {
|
|
1688
|
+
id: string;
|
|
1689
|
+
title: string;
|
|
1690
|
+
url: string;
|
|
1691
|
+
subtitle?: string | undefined;
|
|
1692
|
+
icon?: string | undefined;
|
|
1693
|
+
priority: number;
|
|
1694
|
+
}[] | undefined;
|
|
1653
1695
|
explorerAddress?: string | undefined;
|
|
1654
1696
|
hidden?: boolean | undefined;
|
|
1655
1697
|
tvl: number;
|
|
@@ -2414,7 +2456,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2414
2456
|
address: string;
|
|
2415
2457
|
chainId: number;
|
|
2416
2458
|
}[];
|
|
2417
|
-
protocols?: string[] | undefined;
|
|
2418
2459
|
mainProtocol?: string | undefined;
|
|
2419
2460
|
depositUrl?: string | undefined;
|
|
2420
2461
|
explorerAddress?: string | undefined;
|
|
@@ -2525,6 +2566,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2525
2566
|
total: number;
|
|
2526
2567
|
opportunityId: string;
|
|
2527
2568
|
})[];
|
|
2569
|
+
DepositUrls: {
|
|
2570
|
+
id: string;
|
|
2571
|
+
title: string;
|
|
2572
|
+
url: string;
|
|
2573
|
+
subtitle: string | null;
|
|
2574
|
+
icon: string | null;
|
|
2575
|
+
priority: number;
|
|
2576
|
+
opportunityId: string;
|
|
2577
|
+
}[];
|
|
2528
2578
|
MainProtocol: {
|
|
2529
2579
|
id: string;
|
|
2530
2580
|
tags: string[];
|
|
@@ -2565,17 +2615,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2565
2615
|
rewardTokenId: string | null;
|
|
2566
2616
|
opportunityId: string;
|
|
2567
2617
|
})[];
|
|
2568
|
-
Protocols: {
|
|
2569
|
-
id: string;
|
|
2570
|
-
tags: string[];
|
|
2571
|
-
name: string;
|
|
2572
|
-
description: string;
|
|
2573
|
-
url: string;
|
|
2574
|
-
icon: string;
|
|
2575
|
-
banner: string | null;
|
|
2576
|
-
opportunityBannerLight: string | null;
|
|
2577
|
-
opportunityBannerDark: string | null;
|
|
2578
|
-
}[];
|
|
2579
2618
|
Tokens: {
|
|
2580
2619
|
id: string;
|
|
2581
2620
|
name: string | null;
|
|
@@ -2822,6 +2861,27 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2822
2861
|
id: string;
|
|
2823
2862
|
}[] | undefined;
|
|
2824
2863
|
} | undefined;
|
|
2864
|
+
DepositUrls?: {
|
|
2865
|
+
create?: {
|
|
2866
|
+
title: string;
|
|
2867
|
+
url: string;
|
|
2868
|
+
subtitle?: string | undefined;
|
|
2869
|
+
icon?: string | undefined;
|
|
2870
|
+
priority?: number | undefined;
|
|
2871
|
+
}[] | undefined;
|
|
2872
|
+
update?: ({
|
|
2873
|
+
id: string;
|
|
2874
|
+
} & {
|
|
2875
|
+
title: string;
|
|
2876
|
+
url: string;
|
|
2877
|
+
subtitle?: string | undefined;
|
|
2878
|
+
icon?: string | undefined;
|
|
2879
|
+
priority?: number | undefined;
|
|
2880
|
+
})[] | undefined;
|
|
2881
|
+
delete?: {
|
|
2882
|
+
id: string;
|
|
2883
|
+
}[] | undefined;
|
|
2884
|
+
} | undefined;
|
|
2825
2885
|
};
|
|
2826
2886
|
params: {
|
|
2827
2887
|
id: string;
|
|
@@ -2876,7 +2936,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2876
2936
|
":id": {
|
|
2877
2937
|
override: {
|
|
2878
2938
|
delete: {
|
|
2879
|
-
body: ("Tokens" | "action" | "depositUrl" | "description" | "explorerAddress" | "howToSteps" | "mainProtocolId" | "name")[];
|
|
2939
|
+
body: ("DepositUrls" | "Tokens" | "action" | "depositUrl" | "description" | "explorerAddress" | "howToSteps" | "mainProtocolId" | "name")[];
|
|
2880
2940
|
params: {
|
|
2881
2941
|
id: string;
|
|
2882
2942
|
};
|
|
@@ -2896,7 +2956,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2896
2956
|
address: string;
|
|
2897
2957
|
chainId: number;
|
|
2898
2958
|
}[];
|
|
2899
|
-
protocols?: string[] | undefined;
|
|
2900
2959
|
mainProtocol?: string | undefined;
|
|
2901
2960
|
depositUrl?: string | undefined;
|
|
2902
2961
|
explorerAddress?: string | undefined;
|
|
@@ -3007,6 +3066,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
3007
3066
|
total: number;
|
|
3008
3067
|
opportunityId: string;
|
|
3009
3068
|
})[];
|
|
3069
|
+
DepositUrls: {
|
|
3070
|
+
id: string;
|
|
3071
|
+
title: string;
|
|
3072
|
+
url: string;
|
|
3073
|
+
subtitle: string | null;
|
|
3074
|
+
icon: string | null;
|
|
3075
|
+
priority: number;
|
|
3076
|
+
opportunityId: string;
|
|
3077
|
+
}[];
|
|
3010
3078
|
MainProtocol: {
|
|
3011
3079
|
id: string;
|
|
3012
3080
|
tags: string[];
|
|
@@ -3047,17 +3115,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
3047
3115
|
rewardTokenId: string | null;
|
|
3048
3116
|
opportunityId: string;
|
|
3049
3117
|
})[];
|
|
3050
|
-
Protocols: {
|
|
3051
|
-
id: string;
|
|
3052
|
-
tags: string[];
|
|
3053
|
-
name: string;
|
|
3054
|
-
description: string;
|
|
3055
|
-
url: string;
|
|
3056
|
-
icon: string;
|
|
3057
|
-
banner: string | null;
|
|
3058
|
-
opportunityBannerLight: string | null;
|
|
3059
|
-
opportunityBannerDark: string | null;
|
|
3060
|
-
}[];
|
|
3061
3118
|
Tokens: {
|
|
3062
3119
|
id: string;
|
|
3063
3120
|
name: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OpportunityRepository } from "./opportunity.repository";
|
|
2
2
|
type OpportunityFromRepo = Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>;
|
|
3
3
|
type OpportunityWithoutRecords = Omit<OpportunityFromRepo, "DailyRewardsRecords" | "AprRecords" | "NativeAprRecords" | "TvlRecords" | "Campaigns">;
|
|
4
|
-
type OpportunityWithoutRecordsAndRelation = Omit<OpportunityWithoutRecords, "Tokens" | "Chain" | "MainProtocol" | "ActivePrograms" | "
|
|
4
|
+
type OpportunityWithoutRecordsAndRelation = Omit<OpportunityWithoutRecords, "Tokens" | "Chain" | "MainProtocol" | "ActivePrograms" | "DepositUrls">;
|
|
5
5
|
export type { OpportunityWithoutRecords };
|
|
6
6
|
export declare abstract class OpportunityFormatter {
|
|
7
7
|
static format(opportunity: Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>): {
|
|
@@ -175,6 +175,14 @@ export declare abstract class OpportunityFormatter {
|
|
|
175
175
|
name: string;
|
|
176
176
|
slug: string | null;
|
|
177
177
|
}[];
|
|
178
|
+
depositUrls: {
|
|
179
|
+
id: string;
|
|
180
|
+
title: string;
|
|
181
|
+
url: string;
|
|
182
|
+
subtitle?: string | undefined;
|
|
183
|
+
icon?: string | undefined;
|
|
184
|
+
priority: number;
|
|
185
|
+
}[] | undefined;
|
|
178
186
|
id: string;
|
|
179
187
|
hidden: true | undefined;
|
|
180
188
|
nativeApr: number | undefined;
|
|
@@ -238,6 +246,14 @@ export declare abstract class OpportunityFormatter {
|
|
|
238
246
|
name: string;
|
|
239
247
|
slug: string | null;
|
|
240
248
|
}[];
|
|
249
|
+
depositUrls: {
|
|
250
|
+
id: string;
|
|
251
|
+
title: string;
|
|
252
|
+
url: string;
|
|
253
|
+
subtitle?: string | undefined;
|
|
254
|
+
icon?: string | undefined;
|
|
255
|
+
priority: number;
|
|
256
|
+
}[] | undefined;
|
|
241
257
|
id: string;
|
|
242
258
|
hidden: true | undefined;
|
|
243
259
|
nativeApr: number | undefined;
|
|
@@ -312,6 +328,14 @@ export declare abstract class OpportunityFormatter {
|
|
|
312
328
|
name: string;
|
|
313
329
|
slug: string | null;
|
|
314
330
|
}[];
|
|
331
|
+
depositUrls: {
|
|
332
|
+
id: string;
|
|
333
|
+
title: string;
|
|
334
|
+
url: string;
|
|
335
|
+
subtitle?: string | undefined;
|
|
336
|
+
icon?: string | undefined;
|
|
337
|
+
priority: number;
|
|
338
|
+
}[] | undefined;
|
|
315
339
|
id: string;
|
|
316
340
|
hidden: true | undefined;
|
|
317
341
|
nativeApr: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opportunity.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/opportunity/opportunity.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"opportunity.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/opportunity/opportunity.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAiB7D,MAAM,OAAgB,oBAAoB;IACxC,MAAM,CAAC,MAAM,CAAC,WAAgF,EAAE;QAC9F,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,GAAG,EAAE,GAAG,WAAW,CAAC;QAEzG,MAAM,aAAa,GACjB,mBAAmB,EAAE,MAAM,KAAK,CAAC;YAC/B,CAAC,CAAC;gBACE,EAAE,EAAE,EAAE;gBACN,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,EAAE;gBACb,UAAU,EAAE,EAAE;aACf;YACH,CAAC,CAAC,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC1F,EAAE;gBACF,KAAK;gBACL,SAAS;gBACT,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC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S;YAC7C,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,EAAE;YAC3D,qBAAqB,EAAE,qBAAqB,IAAI,SAAS;YACzD,mBAAmB,EAAE,mBAAmB,IAAI,SAAS;YACrD,mBAAmB,EAAE,mBAAmB,IAAI,SAAS;YACrD,iBAAiB,EAAE,iBAAiB,IAAI,SAAS;SACvB,CAAC;IAAA,CAC9B;CACF"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { ChainId } from "@package/resources/enums";
|
|
2
2
|
import type { OpportunityLight as OpportunityLightResource, Opportunity as OpportunityResource } from "@package/resources/schemas";
|
|
3
|
+
export declare const DepositUrlDto: import("@sinclair/typebox").TObject<{
|
|
4
|
+
id: import("@sinclair/typebox").TString;
|
|
5
|
+
title: import("@sinclair/typebox").TString;
|
|
6
|
+
url: import("@sinclair/typebox").TString;
|
|
7
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
priority: import("@sinclair/typebox").TNumber;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const DepositUrlCreateDto: import("@sinclair/typebox").TObject<{
|
|
12
|
+
title: import("@sinclair/typebox").TString;
|
|
13
|
+
url: import("@sinclair/typebox").TString;
|
|
14
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
+
priority: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
17
|
+
}>;
|
|
3
18
|
/**
|
|
4
19
|
* Light Opportunity
|
|
5
20
|
* @description Canonical opportunity type from @package/resources
|
|
@@ -42,9 +57,16 @@ export declare const OpportunityWithoutRecordsDto: import("@sinclair/typebox").T
|
|
|
42
57
|
}>;
|
|
43
58
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
44
59
|
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
45
|
-
protocols: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
46
60
|
mainProtocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
61
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
62
|
+
depositUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
63
|
+
id: import("@sinclair/typebox").TString;
|
|
64
|
+
title: import("@sinclair/typebox").TString;
|
|
65
|
+
url: import("@sinclair/typebox").TString;
|
|
66
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
67
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
68
|
+
priority: import("@sinclair/typebox").TNumber;
|
|
69
|
+
}>>>;
|
|
48
70
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
71
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
50
72
|
chainId: import("@sinclair/typebox").TNumber;
|
|
@@ -86,9 +108,16 @@ export declare const CampaignWithOpportunityResourceDto: import("@sinclair/typeb
|
|
|
86
108
|
}>;
|
|
87
109
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
88
110
|
howToSteps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
89
|
-
protocols: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
90
111
|
mainProtocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
91
112
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
113
|
+
depositUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
114
|
+
id: import("@sinclair/typebox").TString;
|
|
115
|
+
title: import("@sinclair/typebox").TString;
|
|
116
|
+
url: import("@sinclair/typebox").TString;
|
|
117
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
118
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
119
|
+
priority: import("@sinclair/typebox").TNumber;
|
|
120
|
+
}>>>;
|
|
92
121
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
93
122
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
94
123
|
chainId: import("@sinclair/typebox").TNumber;
|
|
@@ -283,9 +312,16 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TInters
|
|
|
283
312
|
readonly STAKE: "STAKE";
|
|
284
313
|
}>;
|
|
285
314
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
286
|
-
protocols: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
287
315
|
mainProtocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
288
316
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
317
|
+
depositUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
318
|
+
id: import("@sinclair/typebox").TString;
|
|
319
|
+
title: import("@sinclair/typebox").TString;
|
|
320
|
+
url: import("@sinclair/typebox").TString;
|
|
321
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
322
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
323
|
+
priority: import("@sinclair/typebox").TNumber;
|
|
324
|
+
}>>>;
|
|
289
325
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
290
326
|
hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
291
327
|
tvl: import("@sinclair/typebox").TNumber;
|
|
@@ -656,9 +692,16 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
|
656
692
|
readonly STAKE: "STAKE";
|
|
657
693
|
}>;
|
|
658
694
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
659
|
-
protocols: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
660
695
|
mainProtocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
661
696
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
697
|
+
depositUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
698
|
+
id: import("@sinclair/typebox").TString;
|
|
699
|
+
title: import("@sinclair/typebox").TString;
|
|
700
|
+
url: import("@sinclair/typebox").TString;
|
|
701
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
702
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
703
|
+
priority: import("@sinclair/typebox").TNumber;
|
|
704
|
+
}>>>;
|
|
662
705
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
663
706
|
hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
664
707
|
tvl: import("@sinclair/typebox").TNumber;
|
|
@@ -1091,7 +1134,6 @@ export declare const CreateOpportunityDto: import("@sinclair/typebox").TObject<{
|
|
|
1091
1134
|
address: import("@sinclair/typebox").TString;
|
|
1092
1135
|
chainId: import("@sinclair/typebox").TNumber;
|
|
1093
1136
|
}>>;
|
|
1094
|
-
protocols: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
1095
1137
|
mainProtocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1096
1138
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1097
1139
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1127,6 +1169,27 @@ export declare const OpportunityOverrideDto: import("@sinclair/typebox").TObject
|
|
|
1127
1169
|
id: import("@sinclair/typebox").TString;
|
|
1128
1170
|
}>>>;
|
|
1129
1171
|
}>>;
|
|
1172
|
+
DepositUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
1173
|
+
create: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1174
|
+
title: import("@sinclair/typebox").TString;
|
|
1175
|
+
url: import("@sinclair/typebox").TString;
|
|
1176
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1177
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1178
|
+
priority: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
1179
|
+
}>>>;
|
|
1180
|
+
update: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
1181
|
+
id: import("@sinclair/typebox").TString;
|
|
1182
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1183
|
+
title: import("@sinclair/typebox").TString;
|
|
1184
|
+
url: import("@sinclair/typebox").TString;
|
|
1185
|
+
subtitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1186
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1187
|
+
priority: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
1188
|
+
}>]>>>;
|
|
1189
|
+
delete: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1190
|
+
id: import("@sinclair/typebox").TString;
|
|
1191
|
+
}>>>;
|
|
1192
|
+
}>>;
|
|
1130
1193
|
}>;
|
|
1131
1194
|
export declare const OpportunityDeleteOverrideDto: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
|
|
1132
1195
|
readonly name: "name";
|
|
@@ -1137,6 +1200,7 @@ export declare const OpportunityDeleteOverrideDto: import("@sinclair/typebox").T
|
|
|
1137
1200
|
readonly howToSteps: "howToSteps";
|
|
1138
1201
|
readonly mainProtocolId: "mainProtocolId";
|
|
1139
1202
|
readonly Tokens: "Tokens";
|
|
1203
|
+
readonly DepositUrls: "DepositUrls";
|
|
1140
1204
|
}>>;
|
|
1141
1205
|
export declare const UpdateOpportunityDto: import("@sinclair/typebox").TObject<{
|
|
1142
1206
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|