@merkl/api 1.5.21 → 1.5.23
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 +6761 -6042
- package/dist/src/engine/nativeAPR/factory.d.ts +2 -0
- package/dist/src/engine/nativeAPR/factory.js.map +1 -0
- package/dist/src/engine/nativeAPR/implementations/clientEndpoint.d.ts +7 -0
- package/dist/src/engine/nativeAPR/implementations/clientEndpoint.js.map +1 -0
- package/dist/src/engine/nativeAPR/implementations/morphoSupplySingleToken.d.ts +6 -0
- package/dist/src/engine/nativeAPR/implementations/morphoSupplySingleToken.js.map +1 -0
- package/dist/src/index.d.ts +780 -112
- package/dist/src/index.js.map +1 -1
- package/dist/src/jobs/native-aprs.d.ts +1 -0
- package/dist/src/jobs/native-aprs.js.map +1 -0
- package/dist/src/modules/v4/apr/apr.controller.d.ts +115 -0
- package/dist/src/modules/v4/apr/apr.controller.js.map +1 -0
- package/dist/src/modules/v4/apr/apr.model.d.ts +84 -0
- package/dist/src/modules/v4/apr/apr.model.js.map +1 -1
- package/dist/src/modules/v4/apr/apr.repository.d.ts +4 -0
- package/dist/src/modules/v4/apr/apr.repository.js.map +1 -0
- package/dist/src/modules/v4/apr/apr.service.d.ts +15 -3
- package/dist/src/modules/v4/apr/apr.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +79 -0
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +1 -0
- package/dist/src/modules/v4/campaign/campaign.convertor.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +9 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +36 -6
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +88 -0
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +34 -0
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.js.map +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.repository.d.ts +16 -0
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.repository.js.map +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.d.ts +12 -2
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +4 -0
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +6 -0
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +6 -0
- package/dist/src/modules/v4/config/config.controller.d.ts +29 -0
- package/dist/src/modules/v4/config/config.controller.js.map +1 -1
- package/dist/src/modules/v4/config/config.model.d.ts +25 -0
- package/dist/src/modules/v4/config/config.model.js.map +1 -0
- package/dist/src/modules/v4/config/config.service.d.ts +243 -0
- package/dist/src/modules/v4/config/config.service.js.map +1 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +27 -1
- package/dist/src/modules/v4/creator/creator.model.d.ts +29 -0
- package/dist/src/modules/v4/creator/creator.repository.d.ts +1 -0
- package/dist/src/modules/v4/creator/creator.service.d.ts +2 -1
- package/dist/src/modules/v4/creator/creator.service.js.map +1 -1
- package/dist/src/modules/v4/machineConfig/machineConfig.controller.d.ts +12 -6
- package/dist/src/modules/v4/machineConfig/machineConfig.formatter.js.map +1 -1
- package/dist/src/modules/v4/machineConfig/machineConfig.model.d.ts +12 -6
- package/dist/src/modules/v4/machineConfig/machineConfig.model.js.map +1 -1
- package/dist/src/modules/v4/machineConfig/machineConfig.repository.d.ts +16 -8
- package/dist/src/modules/v4/machineConfig/machineConfig.repository.js.map +1 -1
- package/dist/src/modules/v4/machineConfig/machineConfig.service.d.ts +16 -8
- package/dist/src/modules/v4/machineConfig/machineConfig.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +210 -0
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +30 -0
- package/dist/src/modules/v4/opportunity/opportunity.formatter.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +66 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +178 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +171 -0
- package/dist/src/modules/v4/opportunity/transform-id.pipe.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.controller.d.ts +87 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +116 -0
- package/dist/src/modules/v4/program/program.repository.d.ts +4 -0
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +5233 -5233
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +41 -0
- package/dist/src/modules/v4/router.d.ts +780 -112
- package/dist/src/modules/v4/router.js.map +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +58 -0
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +29 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +31 -0
- package/dist/src/scripts/exportOpportunities.js.map +1 -1
- package/dist/src/scripts/importOpportunities.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,26 +5,34 @@ export declare abstract class MachineConfigRepository {
|
|
|
5
5
|
*/
|
|
6
6
|
static findUnique(campaignId: string): Promise<{
|
|
7
7
|
campaignId: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
computeMemory: number | null;
|
|
9
|
+
computeCpu: number | null;
|
|
10
|
+
precomputeMemory: number | null;
|
|
11
|
+
precomputeCpu: number | null;
|
|
10
12
|
} | null>;
|
|
11
13
|
/**
|
|
12
14
|
* Creates or updates machine config for a campaign
|
|
13
15
|
*/
|
|
14
16
|
static upsert(campaignId: string, data: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
computeMemory?: number;
|
|
18
|
+
computeCpu?: number;
|
|
19
|
+
precomputeMemory?: number;
|
|
20
|
+
precomputeCpu?: number;
|
|
17
21
|
}): Promise<{
|
|
18
22
|
campaignId: string;
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
computeMemory: number | null;
|
|
24
|
+
computeCpu: number | null;
|
|
25
|
+
precomputeMemory: number | null;
|
|
26
|
+
precomputeCpu: number | null;
|
|
21
27
|
}>;
|
|
22
28
|
/**
|
|
23
29
|
* Deletes machine config for a campaign
|
|
24
30
|
*/
|
|
25
31
|
static delete(campaignUnique: CampaignUnique): Promise<{
|
|
26
32
|
campaignId: string;
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
computeMemory: number | null;
|
|
34
|
+
computeCpu: number | null;
|
|
35
|
+
precomputeMemory: number | null;
|
|
36
|
+
precomputeCpu: number | null;
|
|
29
37
|
}>;
|
|
30
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machineConfig.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/machineConfig/machineConfig.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,OAAgB,uBAAuB;IAC3C;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,UAAkB,EAAE;QAC1C,OAAO,MAAM,WAAW,CAAC,qBAAqB,CAAC,UAAU,CAAC;YACxD,KAAK,EAAE;gBACL,UAAU;aACX;SACF,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"machineConfig.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/machineConfig/machineConfig.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE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,MAAM,WAAW,CAAC,qBAAqB,CAAC,MAAM,CAAC;YACpD,KAAK,EAAE,EAAE,UAAU,EAAE;SACtB,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -5,26 +5,34 @@ export declare abstract class MachineConfigService {
|
|
|
5
5
|
*/
|
|
6
6
|
static findUnique(campaignUnique: CampaignUnique | string): Promise<{
|
|
7
7
|
campaignId: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
computeMemory?: number | undefined;
|
|
9
|
+
computeCpu?: number | undefined;
|
|
10
|
+
precomputeMemory?: number | undefined;
|
|
11
|
+
precomputeCpu?: number | undefined;
|
|
10
12
|
} | null>;
|
|
11
13
|
/**
|
|
12
14
|
* Gets the machine config for a campaign
|
|
13
15
|
*/
|
|
14
16
|
static findUniqueOrThrow(campaignUnique: CampaignUnique | string): Promise<{
|
|
15
17
|
campaignId: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
computeMemory?: number | undefined;
|
|
19
|
+
computeCpu?: number | undefined;
|
|
20
|
+
precomputeMemory?: number | undefined;
|
|
21
|
+
precomputeCpu?: number | undefined;
|
|
18
22
|
}>;
|
|
19
23
|
/**
|
|
20
24
|
* Updates or creates the machine config for a campaign
|
|
21
25
|
*/
|
|
22
26
|
static upsert(campaignUnique: CampaignUnique | string, data: {
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
computeMemory?: number;
|
|
28
|
+
computeCpu?: number;
|
|
29
|
+
precomputeMemory?: number;
|
|
30
|
+
precomputeCpu?: number;
|
|
25
31
|
}): Promise<{
|
|
26
32
|
campaignId: string;
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
computeMemory?: number | undefined;
|
|
34
|
+
computeCpu?: number | undefined;
|
|
35
|
+
precomputeMemory?: number | undefined;
|
|
36
|
+
precomputeCpu?: number | undefined;
|
|
29
37
|
}>;
|
|
30
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machineConfig.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/machineConfig/machineConfig.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,OAAgB,oBAAoB;IACxC;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,cAAuC,EAAE;QAC/D,MAAM,QAAQ,GAAG,MAAM,eAAe,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,OAAO,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAAA,CAC9C;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAuC,EAAE;QACtE,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,aAAa,CAAC,4CAA4C,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,MAAM,CAAC;IAAA,CACf;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"machineConfig.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/machineConfig/machineConfig.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAA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,EAAE,OAAO,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,UAAU;aAC5F,CAAC,CAAC;QACL,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAEvE,OAAO,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAAA,CAC9C;CACF"}
|
|
@@ -203,6 +203,31 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
203
203
|
liveCampaignsForCreator?: number | undefined;
|
|
204
204
|
maxApr: number | null;
|
|
205
205
|
name: string;
|
|
206
|
+
nativeApr?: number | undefined;
|
|
207
|
+
nativeAprRecord?: {
|
|
208
|
+
title: string;
|
|
209
|
+
description?: string | undefined;
|
|
210
|
+
value: number;
|
|
211
|
+
timestamp: string | bigint;
|
|
212
|
+
amount?: bigint | undefined;
|
|
213
|
+
rewardToken?: {
|
|
214
|
+
id: string;
|
|
215
|
+
name: string | null;
|
|
216
|
+
chainId: number;
|
|
217
|
+
address: string;
|
|
218
|
+
decimals: number;
|
|
219
|
+
icon: string;
|
|
220
|
+
verified: boolean;
|
|
221
|
+
isNative: boolean;
|
|
222
|
+
isTest: boolean;
|
|
223
|
+
price?: number | null | undefined;
|
|
224
|
+
updatedAt?: number | null | undefined;
|
|
225
|
+
priceSource?: string | null | undefined;
|
|
226
|
+
symbol: string;
|
|
227
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
228
|
+
displaySymbol?: string | undefined;
|
|
229
|
+
} | undefined;
|
|
230
|
+
} | undefined;
|
|
206
231
|
protocol?: {
|
|
207
232
|
id: string;
|
|
208
233
|
name: string;
|
|
@@ -326,6 +351,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
326
351
|
action: string;
|
|
327
352
|
tvl: number;
|
|
328
353
|
apr: number;
|
|
354
|
+
nativeApr?: number | undefined;
|
|
329
355
|
maxApr: number | null;
|
|
330
356
|
dailyRewards: number;
|
|
331
357
|
depositUrl?: string | undefined;
|
|
@@ -373,6 +399,30 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
373
399
|
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
|
|
374
400
|
}[];
|
|
375
401
|
} | undefined;
|
|
402
|
+
nativeAprRecord?: {
|
|
403
|
+
title: string;
|
|
404
|
+
description?: string | undefined;
|
|
405
|
+
value: number;
|
|
406
|
+
timestamp: string | bigint;
|
|
407
|
+
amount?: bigint | undefined;
|
|
408
|
+
rewardToken?: {
|
|
409
|
+
id: string;
|
|
410
|
+
name: string | null;
|
|
411
|
+
chainId: number;
|
|
412
|
+
address: string;
|
|
413
|
+
decimals: number;
|
|
414
|
+
icon: string;
|
|
415
|
+
verified: boolean;
|
|
416
|
+
isNative: boolean;
|
|
417
|
+
isTest: boolean;
|
|
418
|
+
price?: number | null | undefined;
|
|
419
|
+
updatedAt?: number | null | undefined;
|
|
420
|
+
priceSource?: string | null | undefined;
|
|
421
|
+
symbol: string;
|
|
422
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
423
|
+
displaySymbol?: string | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
} | undefined;
|
|
376
426
|
tvlRecord?: {
|
|
377
427
|
total: number;
|
|
378
428
|
timestamp: string | bigint;
|
|
@@ -582,6 +632,31 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
582
632
|
liveCampaignsForCreator?: number | undefined;
|
|
583
633
|
maxApr: number | null;
|
|
584
634
|
name: string;
|
|
635
|
+
nativeApr?: number | undefined;
|
|
636
|
+
nativeAprRecord?: {
|
|
637
|
+
title: string;
|
|
638
|
+
description?: string | undefined;
|
|
639
|
+
value: number;
|
|
640
|
+
timestamp: string | bigint;
|
|
641
|
+
amount?: bigint | undefined;
|
|
642
|
+
rewardToken?: {
|
|
643
|
+
id: string;
|
|
644
|
+
name: string | null;
|
|
645
|
+
chainId: number;
|
|
646
|
+
address: string;
|
|
647
|
+
decimals: number;
|
|
648
|
+
icon: string;
|
|
649
|
+
verified: boolean;
|
|
650
|
+
isNative: boolean;
|
|
651
|
+
isTest: boolean;
|
|
652
|
+
price?: number | null | undefined;
|
|
653
|
+
updatedAt?: number | null | undefined;
|
|
654
|
+
priceSource?: string | null | undefined;
|
|
655
|
+
symbol: string;
|
|
656
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
657
|
+
displaySymbol?: string | undefined;
|
|
658
|
+
} | undefined;
|
|
659
|
+
} | undefined;
|
|
585
660
|
protocol?: {
|
|
586
661
|
id: string;
|
|
587
662
|
name: string;
|
|
@@ -843,6 +918,31 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
843
918
|
liveCampaignsForCreator?: number | undefined;
|
|
844
919
|
maxApr: number | null;
|
|
845
920
|
name: string;
|
|
921
|
+
nativeApr?: number | undefined;
|
|
922
|
+
nativeAprRecord?: {
|
|
923
|
+
title: string;
|
|
924
|
+
description?: string | undefined;
|
|
925
|
+
value: number;
|
|
926
|
+
timestamp: string | bigint;
|
|
927
|
+
amount?: bigint | undefined;
|
|
928
|
+
rewardToken?: {
|
|
929
|
+
id: string;
|
|
930
|
+
name: string | null;
|
|
931
|
+
chainId: number;
|
|
932
|
+
address: string;
|
|
933
|
+
decimals: number;
|
|
934
|
+
icon: string;
|
|
935
|
+
verified: boolean;
|
|
936
|
+
isNative: boolean;
|
|
937
|
+
isTest: boolean;
|
|
938
|
+
price?: number | null | undefined;
|
|
939
|
+
updatedAt?: number | null | undefined;
|
|
940
|
+
priceSource?: string | null | undefined;
|
|
941
|
+
symbol: string;
|
|
942
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
943
|
+
displaySymbol?: string | undefined;
|
|
944
|
+
} | undefined;
|
|
945
|
+
} | undefined;
|
|
846
946
|
protocol?: {
|
|
847
947
|
id: string;
|
|
848
948
|
name: string;
|
|
@@ -991,6 +1091,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
991
1091
|
action: string;
|
|
992
1092
|
tvl: number;
|
|
993
1093
|
apr: number;
|
|
1094
|
+
nativeApr?: number | undefined;
|
|
994
1095
|
maxApr: number | null;
|
|
995
1096
|
dailyRewards: number;
|
|
996
1097
|
depositUrl?: string | undefined;
|
|
@@ -1038,6 +1139,30 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1038
1139
|
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
|
|
1039
1140
|
}[];
|
|
1040
1141
|
} | undefined;
|
|
1142
|
+
nativeAprRecord?: {
|
|
1143
|
+
title: string;
|
|
1144
|
+
description?: string | undefined;
|
|
1145
|
+
value: number;
|
|
1146
|
+
timestamp: string | bigint;
|
|
1147
|
+
amount?: bigint | undefined;
|
|
1148
|
+
rewardToken?: {
|
|
1149
|
+
id: string;
|
|
1150
|
+
name: string | null;
|
|
1151
|
+
chainId: number;
|
|
1152
|
+
address: string;
|
|
1153
|
+
decimals: number;
|
|
1154
|
+
icon: string;
|
|
1155
|
+
verified: boolean;
|
|
1156
|
+
isNative: boolean;
|
|
1157
|
+
isTest: boolean;
|
|
1158
|
+
price?: number | null | undefined;
|
|
1159
|
+
updatedAt?: number | null | undefined;
|
|
1160
|
+
priceSource?: string | null | undefined;
|
|
1161
|
+
symbol: string;
|
|
1162
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
1163
|
+
displaySymbol?: string | undefined;
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
} | undefined;
|
|
1041
1166
|
tvlRecord?: {
|
|
1042
1167
|
total: number;
|
|
1043
1168
|
timestamp: string | bigint;
|
|
@@ -1247,6 +1372,31 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1247
1372
|
liveCampaignsForCreator?: number | undefined;
|
|
1248
1373
|
maxApr: number | null;
|
|
1249
1374
|
name: string;
|
|
1375
|
+
nativeApr?: number | undefined;
|
|
1376
|
+
nativeAprRecord?: {
|
|
1377
|
+
title: string;
|
|
1378
|
+
description?: string | undefined;
|
|
1379
|
+
value: number;
|
|
1380
|
+
timestamp: string | bigint;
|
|
1381
|
+
amount?: bigint | undefined;
|
|
1382
|
+
rewardToken?: {
|
|
1383
|
+
id: string;
|
|
1384
|
+
name: string | null;
|
|
1385
|
+
chainId: number;
|
|
1386
|
+
address: string;
|
|
1387
|
+
decimals: number;
|
|
1388
|
+
icon: string;
|
|
1389
|
+
verified: boolean;
|
|
1390
|
+
isNative: boolean;
|
|
1391
|
+
isTest: boolean;
|
|
1392
|
+
price?: number | null | undefined;
|
|
1393
|
+
updatedAt?: number | null | undefined;
|
|
1394
|
+
priceSource?: string | null | undefined;
|
|
1395
|
+
symbol: string;
|
|
1396
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
1397
|
+
displaySymbol?: string | undefined;
|
|
1398
|
+
} | undefined;
|
|
1399
|
+
} | undefined;
|
|
1250
1400
|
protocol?: {
|
|
1251
1401
|
id: string;
|
|
1252
1402
|
name: string;
|
|
@@ -1848,6 +1998,34 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1848
1998
|
opportunityBannerLight: string | null;
|
|
1849
1999
|
opportunityBannerDark: string | null;
|
|
1850
2000
|
} | null;
|
|
2001
|
+
NativeAprRecords: ({
|
|
2002
|
+
RewardToken: {
|
|
2003
|
+
id: string;
|
|
2004
|
+
name: string | null;
|
|
2005
|
+
chainId: number;
|
|
2006
|
+
address: string;
|
|
2007
|
+
decimals: number;
|
|
2008
|
+
symbol: string;
|
|
2009
|
+
displaySymbol: string;
|
|
2010
|
+
icon: string;
|
|
2011
|
+
verified: boolean;
|
|
2012
|
+
isTest: boolean;
|
|
2013
|
+
type: import("@package/databases").TokenType;
|
|
2014
|
+
isNative: boolean;
|
|
2015
|
+
price: number | null;
|
|
2016
|
+
updatedAt: number | null;
|
|
2017
|
+
priceSource: string | null;
|
|
2018
|
+
} | null;
|
|
2019
|
+
} & {
|
|
2020
|
+
id: string;
|
|
2021
|
+
title: string;
|
|
2022
|
+
description: string | null;
|
|
2023
|
+
timestamp: bigint;
|
|
2024
|
+
value: number;
|
|
2025
|
+
amount: bigint | null;
|
|
2026
|
+
rewardTokenId: string | null;
|
|
2027
|
+
opportunityId: string;
|
|
2028
|
+
})[];
|
|
1851
2029
|
Protocols: {
|
|
1852
2030
|
id: string;
|
|
1853
2031
|
tags: string[];
|
|
@@ -1903,6 +2081,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1903
2081
|
mainProtocolId: string | null;
|
|
1904
2082
|
tvl: number;
|
|
1905
2083
|
apr: number;
|
|
2084
|
+
nativeApr: number | null;
|
|
1906
2085
|
maxApr: number | null;
|
|
1907
2086
|
dailyRewards: number;
|
|
1908
2087
|
tags: string[];
|
|
@@ -1951,6 +2130,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1951
2130
|
mainProtocolId: string | null;
|
|
1952
2131
|
tvl: number;
|
|
1953
2132
|
apr: number;
|
|
2133
|
+
nativeApr: number | null;
|
|
1954
2134
|
maxApr: number | null;
|
|
1955
2135
|
dailyRewards: number;
|
|
1956
2136
|
tags: string[];
|
|
@@ -2014,6 +2194,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2014
2194
|
mainProtocolId: string | null;
|
|
2015
2195
|
tvl: number;
|
|
2016
2196
|
apr: number;
|
|
2197
|
+
nativeApr: number | null;
|
|
2017
2198
|
maxApr: number | null;
|
|
2018
2199
|
dailyRewards: number;
|
|
2019
2200
|
tags: string[];
|
|
@@ -2175,6 +2356,34 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2175
2356
|
opportunityBannerLight: string | null;
|
|
2176
2357
|
opportunityBannerDark: string | null;
|
|
2177
2358
|
} | null;
|
|
2359
|
+
NativeAprRecords: ({
|
|
2360
|
+
RewardToken: {
|
|
2361
|
+
id: string;
|
|
2362
|
+
name: string | null;
|
|
2363
|
+
chainId: number;
|
|
2364
|
+
address: string;
|
|
2365
|
+
decimals: number;
|
|
2366
|
+
symbol: string;
|
|
2367
|
+
displaySymbol: string;
|
|
2368
|
+
icon: string;
|
|
2369
|
+
verified: boolean;
|
|
2370
|
+
isTest: boolean;
|
|
2371
|
+
type: import("@package/databases").TokenType;
|
|
2372
|
+
isNative: boolean;
|
|
2373
|
+
price: number | null;
|
|
2374
|
+
updatedAt: number | null;
|
|
2375
|
+
priceSource: string | null;
|
|
2376
|
+
} | null;
|
|
2377
|
+
} & {
|
|
2378
|
+
id: string;
|
|
2379
|
+
title: string;
|
|
2380
|
+
description: string | null;
|
|
2381
|
+
timestamp: bigint;
|
|
2382
|
+
value: number;
|
|
2383
|
+
amount: bigint | null;
|
|
2384
|
+
rewardTokenId: string | null;
|
|
2385
|
+
opportunityId: string;
|
|
2386
|
+
})[];
|
|
2178
2387
|
Protocols: {
|
|
2179
2388
|
id: string;
|
|
2180
2389
|
tags: string[];
|
|
@@ -2230,6 +2439,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
2230
2439
|
mainProtocolId: string | null;
|
|
2231
2440
|
tvl: number;
|
|
2232
2441
|
apr: number;
|
|
2442
|
+
nativeApr: number | null;
|
|
2233
2443
|
maxApr: number | null;
|
|
2234
2444
|
dailyRewards: number;
|
|
2235
2445
|
tags: string[];
|
|
@@ -33,6 +33,32 @@ export declare abstract class OpportunityFormatter {
|
|
|
33
33
|
value: number;
|
|
34
34
|
})[];
|
|
35
35
|
};
|
|
36
|
+
nativeAprRecord: {
|
|
37
|
+
title: string;
|
|
38
|
+
description: string | undefined;
|
|
39
|
+
value: number;
|
|
40
|
+
timestamp: bigint;
|
|
41
|
+
amount: bigint | undefined;
|
|
42
|
+
rewardToken: ({
|
|
43
|
+
address: string;
|
|
44
|
+
chainId: number;
|
|
45
|
+
decimals: number;
|
|
46
|
+
icon: string;
|
|
47
|
+
id: string;
|
|
48
|
+
isNative: boolean;
|
|
49
|
+
isTest: boolean;
|
|
50
|
+
name: string | null;
|
|
51
|
+
symbol: string;
|
|
52
|
+
type: import("@package/databases").TokenType;
|
|
53
|
+
verified: boolean;
|
|
54
|
+
} & {
|
|
55
|
+
price?: number | null | undefined;
|
|
56
|
+
updatedAt?: number | null | undefined;
|
|
57
|
+
priceSource?: string | null | undefined;
|
|
58
|
+
isTokenWrapper?: boolean | undefined;
|
|
59
|
+
tokenWrapperAddress?: string | undefined;
|
|
60
|
+
}) | undefined;
|
|
61
|
+
};
|
|
36
62
|
tvlRecord: {
|
|
37
63
|
id: string;
|
|
38
64
|
total: number;
|
|
@@ -134,6 +160,7 @@ export declare abstract class OpportunityFormatter {
|
|
|
134
160
|
slug: string | null;
|
|
135
161
|
}[];
|
|
136
162
|
id: string;
|
|
163
|
+
nativeApr: number | undefined;
|
|
137
164
|
depositUrl: string | undefined;
|
|
138
165
|
explorerAddress: string | undefined;
|
|
139
166
|
lastCampaignCreatedAt: number;
|
|
@@ -184,6 +211,7 @@ export declare abstract class OpportunityFormatter {
|
|
|
184
211
|
slug: string | null;
|
|
185
212
|
}[];
|
|
186
213
|
id: string;
|
|
214
|
+
nativeApr: number | undefined;
|
|
187
215
|
depositUrl: string | undefined;
|
|
188
216
|
explorerAddress: string | undefined;
|
|
189
217
|
lastCampaignCreatedAt: number;
|
|
@@ -247,6 +275,7 @@ export declare abstract class OpportunityFormatter {
|
|
|
247
275
|
slug: string | null;
|
|
248
276
|
}[];
|
|
249
277
|
id: string;
|
|
278
|
+
nativeApr: number | undefined;
|
|
250
279
|
depositUrl: string | undefined;
|
|
251
280
|
explorerAddress: string | undefined;
|
|
252
281
|
lastCampaignCreatedAt: number;
|
|
@@ -267,6 +296,7 @@ export declare abstract class OpportunityFormatter {
|
|
|
267
296
|
tags: string[];
|
|
268
297
|
liveCampaigns: number;
|
|
269
298
|
id: string;
|
|
299
|
+
nativeApr: number | undefined;
|
|
270
300
|
depositUrl: string | undefined;
|
|
271
301
|
explorerAddress: string | undefined;
|
|
272
302
|
lastCampaignCreatedAt: number;
|
|
@@ -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,wBAAwB,CAAC;AACjD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAStD,MAAM,OAAgB,oBAAoB;IACxC,MAAM,CAAC,MAAM,CAAC,WAAgF,EAAE;QAC9F,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,GAAG,EAAE,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"opportunity.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/opportunity/op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BAAgB,EACjC,GAAG,GAAG,EACP,GAAG,WAAW,CAAC;QAEhB,OAAO;YACL,GAAG,GAAG;YACN,EAAE;YACF,SAAS,EAAE,SAAS,IAAI,SAAS;YACjC,UAAU,EAAE,UAAU,IAAI,SAAS;YACnC,eAAe,EAAE,eAAe,IAAI,SAAS;YAC7C,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,EAAE;SACxB,CAAC;IAAA,CACvC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChainId } from "@package/resources/enums";
|
|
2
|
-
import { type AprRecord } from "../../../modules/v4/apr/apr.model";
|
|
2
|
+
import { type AprRecord, type NativeAprRecord } from "../../../modules/v4/apr/apr.model";
|
|
3
3
|
import { type Campaign } from "../../../modules/v4/campaign/campaign.model";
|
|
4
4
|
import { type Chain } from "../../../modules/v4/chain/chain.model";
|
|
5
5
|
import type { ResourceAPI } from "../../../modules/v4/prisma";
|
|
@@ -21,6 +21,7 @@ export type OpportunityLight = ResourceAPI<"Opportunity", "manualOverrides" | "m
|
|
|
21
21
|
mainProtocolId?: string;
|
|
22
22
|
liveCampaigns: number;
|
|
23
23
|
liveCampaignsForCreator?: number;
|
|
24
|
+
nativeApr?: number;
|
|
24
25
|
}>;
|
|
25
26
|
/**
|
|
26
27
|
* Opportunity
|
|
@@ -35,17 +36,19 @@ export type Opportunity = ResourceAPI<"Opportunity", "manualOverrides" | "mainPr
|
|
|
35
36
|
liveCampaigns: number;
|
|
36
37
|
liveCampaignsForCreator?: number;
|
|
37
38
|
distributedBycreator?: number;
|
|
39
|
+
nativeApr?: number;
|
|
38
40
|
chain: Chain["model"];
|
|
39
41
|
tokens: Token["model"][];
|
|
40
42
|
protocol?: Protocol["model"];
|
|
41
43
|
aprRecord?: AprRecord["model"];
|
|
44
|
+
nativeAprRecord?: NativeAprRecord["model"];
|
|
42
45
|
tvlRecord?: TvlRecord["model"];
|
|
43
46
|
rewardsRecord?: DailyRewardsRecord["model"];
|
|
44
47
|
campaigns?: Omit<Campaign["model"], "manualOverrides">[];
|
|
45
48
|
activePrograms: Omit<Program["model"], "description" | "opportunityId">[];
|
|
46
49
|
}>;
|
|
47
|
-
export type OpportunityWithoutRecords = Omit<Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>, "AprRecords" | "TvlRecords" | "DailyRewardsRecords" | "Campaigns">;
|
|
48
|
-
export type OpportunityWithoutRecordsAndRelation = Omit<Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>, "AprRecords" | "TvlRecords" | "DailyRewardsRecords" | "Campaigns" | "Chain" | "Tokens" | "Protocols" | "MainProtocol" | "ActivePrograms">;
|
|
50
|
+
export type OpportunityWithoutRecords = Omit<Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>, "AprRecords" | "NativeAprRecords" | "TvlRecords" | "DailyRewardsRecords" | "Campaigns">;
|
|
51
|
+
export type OpportunityWithoutRecordsAndRelation = Omit<Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>, "AprRecords" | "NativeAprRecords" | "TvlRecords" | "DailyRewardsRecords" | "Campaigns" | "Chain" | "Tokens" | "Protocols" | "MainProtocol" | "ActivePrograms">;
|
|
49
52
|
export type OpportunityUnique = {
|
|
50
53
|
chainId: ChainId;
|
|
51
54
|
type: string;
|
|
@@ -83,6 +86,7 @@ export declare const OpportunityWithoutRecordsDto: import("@sinclair/typebox").T
|
|
|
83
86
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
84
87
|
chainId: import("@sinclair/typebox").TNumber;
|
|
85
88
|
apr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
89
|
+
nativeApr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
86
90
|
dailyRewards: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
87
91
|
tvl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
88
92
|
}>;
|
|
@@ -119,6 +123,7 @@ export declare const CampaignWithOpportunityResourceDto: import("@sinclair/typeb
|
|
|
119
123
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
120
124
|
chainId: import("@sinclair/typebox").TNumber;
|
|
121
125
|
apr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
126
|
+
nativeApr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
122
127
|
dailyRewards: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
123
128
|
tvl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
124
129
|
}>;
|
|
@@ -267,6 +272,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
|
267
272
|
action: import("@sinclair/typebox").TString;
|
|
268
273
|
tvl: import("@sinclair/typebox").TNumber;
|
|
269
274
|
apr: import("@sinclair/typebox").TNumber;
|
|
275
|
+
nativeApr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
270
276
|
maxApr: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
271
277
|
dailyRewards: import("@sinclair/typebox").TNumber;
|
|
272
278
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -345,6 +351,34 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
|
345
351
|
}>>;
|
|
346
352
|
}>>;
|
|
347
353
|
}>>;
|
|
354
|
+
nativeAprRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
355
|
+
title: import("@sinclair/typebox").TString;
|
|
356
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
357
|
+
value: import("@sinclair/typebox").TNumber;
|
|
358
|
+
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
|
359
|
+
amount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBigInt>;
|
|
360
|
+
rewardToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
361
|
+
id: import("@sinclair/typebox").TString;
|
|
362
|
+
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
363
|
+
chainId: import("@sinclair/typebox").TNumber;
|
|
364
|
+
address: import("@sinclair/typebox").TString;
|
|
365
|
+
decimals: import("@sinclair/typebox").TNumber;
|
|
366
|
+
icon: import("@sinclair/typebox").TString;
|
|
367
|
+
verified: import("@sinclair/typebox").TBoolean;
|
|
368
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
|
369
|
+
isTest: import("@sinclair/typebox").TBoolean;
|
|
370
|
+
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
371
|
+
updatedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
372
|
+
priceSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
373
|
+
symbol: import("@sinclair/typebox").TString;
|
|
374
|
+
type: import("@sinclair/typebox").TEnum<{
|
|
375
|
+
readonly TOKEN: "TOKEN";
|
|
376
|
+
readonly PRETGE: "PRETGE";
|
|
377
|
+
readonly POINT: "POINT";
|
|
378
|
+
}>;
|
|
379
|
+
displaySymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
380
|
+
}>>;
|
|
381
|
+
}>>;
|
|
348
382
|
tvlRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
349
383
|
total: import("@sinclair/typebox").TNumber;
|
|
350
384
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
|
@@ -633,6 +667,35 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
|
633
667
|
liveCampaignsForCreator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
634
668
|
maxApr: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
635
669
|
name: import("@sinclair/typebox").TString;
|
|
670
|
+
nativeApr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
671
|
+
nativeAprRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
672
|
+
title: import("@sinclair/typebox").TString;
|
|
673
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
674
|
+
value: import("@sinclair/typebox").TNumber;
|
|
675
|
+
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
|
676
|
+
amount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBigInt>;
|
|
677
|
+
rewardToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
678
|
+
id: import("@sinclair/typebox").TString;
|
|
679
|
+
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
680
|
+
chainId: import("@sinclair/typebox").TNumber;
|
|
681
|
+
address: import("@sinclair/typebox").TString;
|
|
682
|
+
decimals: import("@sinclair/typebox").TNumber;
|
|
683
|
+
icon: import("@sinclair/typebox").TString;
|
|
684
|
+
verified: import("@sinclair/typebox").TBoolean;
|
|
685
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
|
686
|
+
isTest: import("@sinclair/typebox").TBoolean;
|
|
687
|
+
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
688
|
+
updatedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
689
|
+
priceSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
690
|
+
symbol: import("@sinclair/typebox").TString;
|
|
691
|
+
type: import("@sinclair/typebox").TEnum<{
|
|
692
|
+
readonly TOKEN: "TOKEN";
|
|
693
|
+
readonly PRETGE: "PRETGE";
|
|
694
|
+
readonly POINT: "POINT";
|
|
695
|
+
}>;
|
|
696
|
+
displaySymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
697
|
+
}>>;
|
|
698
|
+
}>>;
|
|
636
699
|
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
637
700
|
id: import("@sinclair/typebox").TString;
|
|
638
701
|
name: import("@sinclair/typebox").TString;
|