@merkl/api 1.0.47 → 1.0.49
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 +4 -604
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Badger/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Compound/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Default/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +2 -2
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +1 -1
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Ion/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Locker/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Silo/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Vest/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +1 -1
- package/dist/src/index.d.ts +2 -307
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -55
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +6 -0
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +6 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +11 -9
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +32 -31
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -702
- package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -162
- package/dist/src/modules/v4/creator/creator.service.d.ts +2 -162
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -90
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -6
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +174 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +15 -5
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +2 -4
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -460
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +125 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +8 -88
- package/dist/src/modules/v4/router.d.ts +2 -307
- package/dist/src/modules/v4/status/status.model.d.ts +0 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
- package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -37,7 +37,16 @@ export declare enum yieldNestCampaigns {
|
|
37
37
|
Ethereum_YND_WL = "Ethereum YND TEMP Locker and veYND"
|
38
38
|
}
|
39
39
|
export declare enum liskCampaigns {
|
40
|
-
|
40
|
+
Velodrome_WBTC_WETH_Lisk = "Velodrome WBTC/WETH Lisk 0xDC1479FD1Db51cA0079ceCfaA879232e168c8246",
|
41
|
+
Velodrome_IDRX_USDT0_Lisk = "Velodrome IDRX/USD\u20AE0 Lisk 0x337F15c404d252e788D088bAA0dbb1F185465F55",
|
42
|
+
Velodrome_WETH_USDT0_Lisk = "Velodrome WETH/USD\u20AE0 Lisk 0x915e897DafFBf232991a9ac1a35240318bF7e65D",
|
43
|
+
Velodrome_WETH_wstETH_Lisk = "Velodrome WETH/wstETH Lisk 0x9C69E0B64A63aA7daA0B5dc61Df3Cc77ea05BcB3",
|
44
|
+
Velodrome_USDT0_USDCe_Lisk = "Velodrome USD\u20AE0/USDC.e Lisk 0xC859c755E8C0568fD86F7860Bcf9A59D6F57BEB5",
|
45
|
+
Velodrome_USDT0_EURCe_Lisk = "Velodrome USD\u20AE0/EURC.e Lisk 0xEa1BB3Bd0590ce0B04f701F7C3f2911440d56c70",
|
46
|
+
Velodrome_Basic_Stable_WBTC_MBTC_Lisk = "Velodrome Basic Stable WBTC/MBTC 0xd5AD706FeD32C436C68cC1E7C5429cA1A5Db42dA",
|
47
|
+
Mellow_LSK_Vault_Lisk = "Mellow LSK Vault 0x8cf94b5A37b1835D634b7a3e6b1EE02Ce7F0CD30",
|
48
|
+
Mellow_wstETH_Vault_Lisk = "Mellow wstETH Vault 0x1b10E2270780858923cdBbC9B5423e29fffD1A44",
|
49
|
+
Mellow_mBTC_Vault_Lisk = "Mellow mBTC Vault 0xa67E8B2E43B70D98E1896D3f9d563f3ABdB8Adcd"
|
41
50
|
}
|
42
51
|
export declare enum KatanaCampaigns {
|
43
52
|
Ethereum_kpdUSDC = "Ethereum kpdUSDC 0x7B5A0182E400b241b317e781a4e9dEdFc1429822 9.589041096",
|
@@ -560,6 +569,48 @@ export declare enum modeCampaigns {
|
|
560
569
|
Bedrock_Ironclad_Supply_uniBTC_Mode = "Bedrock Ironclad Supply uniBTC 0x0F041cf2ae959f39215EFfB50d681Df55D4d90B1"
|
561
570
|
}
|
562
571
|
declare const LiskInterfaceCampaigns: {
|
572
|
+
"Velodrome WBTC/WETH Lisk 0xDC1479FD1Db51cA0079ceCfaA879232e168c8246": {
|
573
|
+
campaignType: Campaign;
|
574
|
+
computeChainId: ChainId;
|
575
|
+
hooks: never[];
|
576
|
+
poolAddress: string;
|
577
|
+
whitelist: never[];
|
578
|
+
blacklist: never[];
|
579
|
+
url: string;
|
580
|
+
forwarders: never[];
|
581
|
+
isOutOfRangeIncentivized: boolean;
|
582
|
+
weightFees: number;
|
583
|
+
weightToken0: number;
|
584
|
+
weightToken1: number;
|
585
|
+
};
|
586
|
+
"Velodrome IDRX/USD\u20AE0 Lisk 0x337F15c404d252e788D088bAA0dbb1F185465F55": {
|
587
|
+
campaignType: Campaign;
|
588
|
+
computeChainId: ChainId;
|
589
|
+
hooks: never[];
|
590
|
+
poolAddress: string;
|
591
|
+
whitelist: never[];
|
592
|
+
blacklist: never[];
|
593
|
+
url: string;
|
594
|
+
forwarders: never[];
|
595
|
+
isOutOfRangeIncentivized: boolean;
|
596
|
+
weightFees: number;
|
597
|
+
weightToken0: number;
|
598
|
+
weightToken1: number;
|
599
|
+
};
|
600
|
+
"Velodrome WETH/USD\u20AE0 Lisk 0x915e897DafFBf232991a9ac1a35240318bF7e65D": {
|
601
|
+
campaignType: Campaign;
|
602
|
+
computeChainId: ChainId;
|
603
|
+
hooks: never[];
|
604
|
+
poolAddress: string;
|
605
|
+
whitelist: never[];
|
606
|
+
blacklist: never[];
|
607
|
+
url: string;
|
608
|
+
forwarders: never[];
|
609
|
+
isOutOfRangeIncentivized: boolean;
|
610
|
+
weightFees: number;
|
611
|
+
weightToken0: number;
|
612
|
+
weightToken1: number;
|
613
|
+
};
|
563
614
|
"Velodrome WETH/wstETH Lisk 0x9C69E0B64A63aA7daA0B5dc61Df3Cc77ea05BcB3": {
|
564
615
|
campaignType: Campaign;
|
565
616
|
computeChainId: ChainId;
|
@@ -574,6 +625,79 @@ declare const LiskInterfaceCampaigns: {
|
|
574
625
|
weightToken0: number;
|
575
626
|
weightToken1: number;
|
576
627
|
};
|
628
|
+
"Velodrome USD\u20AE0/USDC.e Lisk 0xC859c755E8C0568fD86F7860Bcf9A59D6F57BEB5": {
|
629
|
+
campaignType: Campaign;
|
630
|
+
computeChainId: ChainId;
|
631
|
+
hooks: never[];
|
632
|
+
poolAddress: string;
|
633
|
+
whitelist: never[];
|
634
|
+
blacklist: never[];
|
635
|
+
url: string;
|
636
|
+
forwarders: never[];
|
637
|
+
isOutOfRangeIncentivized: boolean;
|
638
|
+
weightFees: number;
|
639
|
+
weightToken0: number;
|
640
|
+
weightToken1: number;
|
641
|
+
};
|
642
|
+
"Velodrome USD\u20AE0/EURC.e Lisk 0xEa1BB3Bd0590ce0B04f701F7C3f2911440d56c70": {
|
643
|
+
campaignType: Campaign;
|
644
|
+
computeChainId: ChainId;
|
645
|
+
hooks: never[];
|
646
|
+
poolAddress: string;
|
647
|
+
whitelist: never[];
|
648
|
+
blacklist: never[];
|
649
|
+
url: string;
|
650
|
+
forwarders: never[];
|
651
|
+
isOutOfRangeIncentivized: boolean;
|
652
|
+
weightFees: number;
|
653
|
+
weightToken0: number;
|
654
|
+
weightToken1: number;
|
655
|
+
};
|
656
|
+
"Velodrome Basic Stable WBTC/MBTC 0xd5AD706FeD32C436C68cC1E7C5429cA1A5Db42dA": {
|
657
|
+
campaignType: Campaign;
|
658
|
+
computeChainId: ChainId;
|
659
|
+
hooks: never[];
|
660
|
+
targetToken: string;
|
661
|
+
whitelist: never[];
|
662
|
+
blacklist: never[];
|
663
|
+
url: string;
|
664
|
+
forwarders: {
|
665
|
+
sender: string;
|
666
|
+
priority: number;
|
667
|
+
forwarderType: number;
|
668
|
+
balanceCallType: number;
|
669
|
+
}[];
|
670
|
+
};
|
671
|
+
"Mellow LSK Vault 0x8cf94b5A37b1835D634b7a3e6b1EE02Ce7F0CD30": {
|
672
|
+
campaignType: Campaign;
|
673
|
+
computeChainId: ChainId;
|
674
|
+
hooks: never[];
|
675
|
+
targetToken: string;
|
676
|
+
whitelist: never[];
|
677
|
+
blacklist: string[];
|
678
|
+
url: string;
|
679
|
+
forwarders: never[];
|
680
|
+
};
|
681
|
+
"Mellow wstETH Vault 0x1b10E2270780858923cdBbC9B5423e29fffD1A44": {
|
682
|
+
campaignType: Campaign;
|
683
|
+
computeChainId: ChainId;
|
684
|
+
hooks: never[];
|
685
|
+
targetToken: string;
|
686
|
+
whitelist: never[];
|
687
|
+
blacklist: string[];
|
688
|
+
url: string;
|
689
|
+
forwarders: never[];
|
690
|
+
};
|
691
|
+
"Mellow mBTC Vault 0xa67E8B2E43B70D98E1896D3f9d563f3ABdB8Adcd": {
|
692
|
+
campaignType: Campaign;
|
693
|
+
computeChainId: ChainId;
|
694
|
+
hooks: never[];
|
695
|
+
targetToken: string;
|
696
|
+
whitelist: never[];
|
697
|
+
blacklist: string[];
|
698
|
+
url: string;
|
699
|
+
forwarders: never[];
|
700
|
+
};
|
577
701
|
};
|
578
702
|
declare const MorphoUnichainInterfaceCampaigns: {
|
579
703
|
"Morpho Supply WETH market wstETH collateral 0x665c97ec413f4371e1c30c71153757e9b9144dfbe4284a3e910f85dedba6527d": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignDynamicData, Campaign as CampaignType, ChainId, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { Chain } from "@package/databases/api";
|
3
|
-
import type {
|
3
|
+
import type { Opportunity, OpportunityWithoutRecords } from "../../../modules/v4/opportunity/opportunity.model";
|
4
4
|
import type { CampaignIdModel, CampaignIdWithoutPageModel, CreateManyBreakdownModel, CreateManyRewardModel, DailyRewardsRecord, RegisterClaimsModel, RewardBreakdown, TokenIdModel } from "./reward.model";
|
5
5
|
import { RewardRepository } from "./reward.repository";
|
6
6
|
export declare abstract class RewardService {
|
@@ -9,7 +9,6 @@ export declare abstract class RewardService {
|
|
9
9
|
static hashDailyRewardsRecordId(opportunityId: string, timestamp: bigint): string;
|
10
10
|
static createManyReward(rewards: CreateManyRewardModel): Promise<import("@package/databases").BatchPayload>;
|
11
11
|
static getTotalDistributedByOpportunities(since: number): Promise<Map<{
|
12
|
-
apr: number;
|
13
12
|
aprRecord: {
|
14
13
|
cumulated: number;
|
15
14
|
timestamp: bigint;
|
@@ -63,91 +62,7 @@ export declare abstract class RewardService {
|
|
63
62
|
distributionType: import("@package/databases").DistributionType;
|
64
63
|
}[];
|
65
64
|
};
|
66
|
-
campaigns:
|
67
|
-
params: any;
|
68
|
-
chain: {
|
69
|
-
name: string;
|
70
|
-
id: number;
|
71
|
-
icon: string;
|
72
|
-
};
|
73
|
-
endTimestamp: number;
|
74
|
-
startTimestamp: number;
|
75
|
-
rewardToken: {
|
76
|
-
symbol: string;
|
77
|
-
name: string | null;
|
78
|
-
decimals: number;
|
79
|
-
address: string;
|
80
|
-
id: string;
|
81
|
-
chainId: number;
|
82
|
-
icon: string;
|
83
|
-
isNative: boolean;
|
84
|
-
isPoint: boolean;
|
85
|
-
isPreTGE: boolean;
|
86
|
-
isTest: boolean;
|
87
|
-
verified: boolean;
|
88
|
-
} & {
|
89
|
-
price?: number | null | undefined;
|
90
|
-
isTokenWrapper?: boolean | undefined;
|
91
|
-
tokenWrapperAddress?: string | undefined;
|
92
|
-
};
|
93
|
-
distributionChain: {
|
94
|
-
name: string;
|
95
|
-
id: number;
|
96
|
-
icon: string;
|
97
|
-
} | undefined;
|
98
|
-
campaignStatus: {
|
99
|
-
computedUntil: number;
|
100
|
-
processingStarted: number;
|
101
|
-
campaignId: string;
|
102
|
-
error: string;
|
103
|
-
status: import("@package/databases").RunStatus;
|
104
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
105
|
-
} | undefined;
|
106
|
-
creatorAddress: string;
|
107
|
-
creator: {
|
108
|
-
address: string;
|
109
|
-
tags: string[];
|
110
|
-
creatorId: string | null;
|
111
|
-
};
|
112
|
-
createdAt: string;
|
113
|
-
description: string | undefined;
|
114
|
-
parentCampaignId: string | undefined;
|
115
|
-
rootCampaignId: string | undefined;
|
116
|
-
Opportunity: {
|
117
|
-
name: string;
|
118
|
-
apr: number;
|
119
|
-
tvl: number;
|
120
|
-
description: string;
|
121
|
-
id: string;
|
122
|
-
status: import("@package/databases").Status;
|
123
|
-
chainId: number;
|
124
|
-
action: import("@package/databases").OpportunityAction;
|
125
|
-
type: string;
|
126
|
-
depositUrl: string | null;
|
127
|
-
explorerAddress: string | null;
|
128
|
-
howToSteps: string[];
|
129
|
-
mainProtocolId: string | null;
|
130
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
131
|
-
identifier: string;
|
132
|
-
dailyRewards: number;
|
133
|
-
tags: string[];
|
134
|
-
lastCampaignCreatedAt: Date;
|
135
|
-
};
|
136
|
-
campaignId: string;
|
137
|
-
id: string;
|
138
|
-
amount: string;
|
139
|
-
type: string;
|
140
|
-
computeChainId: number;
|
141
|
-
distributionChainId: number;
|
142
|
-
opportunityId: string;
|
143
|
-
distributionType: import("@package/databases").DistributionType;
|
144
|
-
subType: number | null;
|
145
|
-
rewardTokenId: string;
|
146
|
-
}[] | undefined;
|
147
|
-
id: string;
|
148
|
-
depositUrl: string | undefined;
|
149
|
-
explorerAddress: string | undefined;
|
150
|
-
lastCampaignCreatedAt: string;
|
65
|
+
campaigns: Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">[] | undefined;
|
151
66
|
tokens: ({
|
152
67
|
symbol: string;
|
153
68
|
name: string | null;
|
@@ -179,7 +94,12 @@ export declare abstract class RewardService {
|
|
179
94
|
icon: string;
|
180
95
|
tags: string[];
|
181
96
|
} | undefined;
|
97
|
+
id: string;
|
98
|
+
depositUrl: string | undefined;
|
99
|
+
explorerAddress: string | undefined;
|
100
|
+
lastCampaignCreatedAt: string;
|
182
101
|
name: string;
|
102
|
+
apr: number;
|
183
103
|
tvl: number;
|
184
104
|
description: string;
|
185
105
|
status: import("@package/databases").Status;
|
@@ -468,7 +388,7 @@ export declare abstract class RewardService {
|
|
468
388
|
* @returns array of breakdown group, including the opportunity they belong to
|
469
389
|
*/
|
470
390
|
static splitBreakdownByOpportunity(breakdowns: (RewardBreakdown["model"] & {
|
471
|
-
opportunity:
|
391
|
+
opportunity: OpportunityWithoutRecords;
|
472
392
|
})[]): {
|
473
393
|
opportunity: Opportunity["model"];
|
474
394
|
claimed: bigint;
|
@@ -153,7 +153,6 @@ export declare const v4: Elysia<"/v4", {
|
|
153
153
|
campaignStatus?: {
|
154
154
|
error?: string | undefined;
|
155
155
|
details?: any;
|
156
|
-
campaignId: string;
|
157
156
|
status: string;
|
158
157
|
computedUntil: string | number;
|
159
158
|
processingStarted: string | number;
|
@@ -192,10 +191,8 @@ export declare const v4: Elysia<"/v4", {
|
|
192
191
|
computeChainId: number;
|
193
192
|
distributionChainId: number;
|
194
193
|
endTimestamp: string | number;
|
195
|
-
opportunityId: string;
|
196
194
|
creatorAddress: string;
|
197
195
|
subType: number | null;
|
198
|
-
rewardTokenId: string;
|
199
196
|
createdAt: string;
|
200
197
|
chain: {
|
201
198
|
explorers?: {
|
@@ -496,7 +493,6 @@ export declare const v4: Elysia<"/v4", {
|
|
496
493
|
campaignStatus?: {
|
497
494
|
error?: string | undefined;
|
498
495
|
details?: any;
|
499
|
-
campaignId: string;
|
500
496
|
status: string;
|
501
497
|
computedUntil: string | number;
|
502
498
|
processingStarted: string | number;
|
@@ -535,10 +531,8 @@ export declare const v4: Elysia<"/v4", {
|
|
535
531
|
computeChainId: number;
|
536
532
|
distributionChainId: number;
|
537
533
|
endTimestamp: string | number;
|
538
|
-
opportunityId: string;
|
539
534
|
creatorAddress: string;
|
540
535
|
subType: number | null;
|
541
|
-
rewardTokenId: string;
|
542
536
|
createdAt: string;
|
543
537
|
chain: {
|
544
538
|
explorers?: {
|
@@ -1068,90 +1062,6 @@ export declare const v4: Elysia<"/v4", {
|
|
1068
1062
|
};
|
1069
1063
|
};
|
1070
1064
|
};
|
1071
|
-
} & {
|
1072
|
-
opportunities: {
|
1073
|
-
post: {
|
1074
|
-
body: {
|
1075
|
-
name?: string | undefined;
|
1076
|
-
description?: string | undefined;
|
1077
|
-
depositUrl?: string | undefined;
|
1078
|
-
explorerAddress?: string | undefined;
|
1079
|
-
howToSteps?: string[] | undefined;
|
1080
|
-
tags?: string[] | undefined;
|
1081
|
-
protocols?: string[] | undefined;
|
1082
|
-
mainProtocol?: string | undefined;
|
1083
|
-
tokens: {
|
1084
|
-
address: string;
|
1085
|
-
chainId: number;
|
1086
|
-
}[];
|
1087
|
-
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
1088
|
-
chainId: number;
|
1089
|
-
action: "POOL" | "INVALID" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP";
|
1090
|
-
type: string;
|
1091
|
-
identifier: string;
|
1092
|
-
};
|
1093
|
-
params: {};
|
1094
|
-
query: unknown;
|
1095
|
-
headers: {
|
1096
|
-
authorization: string;
|
1097
|
-
};
|
1098
|
-
response: {
|
1099
|
-
200: {
|
1100
|
-
Tokens: {
|
1101
|
-
symbol: string;
|
1102
|
-
name: string | null;
|
1103
|
-
decimals: number;
|
1104
|
-
price: number | null;
|
1105
|
-
address: string;
|
1106
|
-
id: string;
|
1107
|
-
chainId: number;
|
1108
|
-
icon: string;
|
1109
|
-
isNative: boolean;
|
1110
|
-
isPoint: boolean;
|
1111
|
-
isPreTGE: boolean;
|
1112
|
-
isTest: boolean;
|
1113
|
-
verified: boolean;
|
1114
|
-
displaySymbol: string;
|
1115
|
-
}[];
|
1116
|
-
Protocols: {
|
1117
|
-
name: string;
|
1118
|
-
description: string;
|
1119
|
-
id: string;
|
1120
|
-
url: string;
|
1121
|
-
icon: string;
|
1122
|
-
tags: string[];
|
1123
|
-
}[];
|
1124
|
-
name: string;
|
1125
|
-
apr: number;
|
1126
|
-
tvl: number;
|
1127
|
-
description: string;
|
1128
|
-
id: string;
|
1129
|
-
status: import("@package/databases").Status;
|
1130
|
-
chainId: number;
|
1131
|
-
action: import("@package/databases").OpportunityAction;
|
1132
|
-
type: string;
|
1133
|
-
depositUrl: string | null;
|
1134
|
-
explorerAddress: string | null;
|
1135
|
-
howToSteps: string[];
|
1136
|
-
mainProtocolId: string | null;
|
1137
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1138
|
-
identifier: string;
|
1139
|
-
dailyRewards: number;
|
1140
|
-
tags: string[];
|
1141
|
-
lastCampaignCreatedAt: Date;
|
1142
|
-
};
|
1143
|
-
422: {
|
1144
|
-
type: "validation";
|
1145
|
-
on: string;
|
1146
|
-
summary?: string;
|
1147
|
-
message?: string;
|
1148
|
-
found?: unknown;
|
1149
|
-
property?: string;
|
1150
|
-
expected?: string;
|
1151
|
-
};
|
1152
|
-
};
|
1153
|
-
};
|
1154
|
-
};
|
1155
1065
|
} & {
|
1156
1066
|
opportunities: {
|
1157
1067
|
":id": {
|
@@ -1620,7 +1530,6 @@ export declare const v4: Elysia<"/v4", {
|
|
1620
1530
|
campaignStatus?: {
|
1621
1531
|
error?: string | undefined;
|
1622
1532
|
details?: any;
|
1623
|
-
campaignId: string;
|
1624
1533
|
status: string;
|
1625
1534
|
computedUntil: string | number;
|
1626
1535
|
processingStarted: string | number;
|
@@ -1659,10 +1568,8 @@ export declare const v4: Elysia<"/v4", {
|
|
1659
1568
|
computeChainId: number;
|
1660
1569
|
distributionChainId: number;
|
1661
1570
|
endTimestamp: string | number;
|
1662
|
-
opportunityId: string;
|
1663
1571
|
creatorAddress: string;
|
1664
1572
|
subType: number | null;
|
1665
|
-
rewardTokenId: string;
|
1666
1573
|
createdAt: string;
|
1667
1574
|
chain: {
|
1668
1575
|
explorers?: {
|
@@ -1928,7 +1835,6 @@ export declare const v4: Elysia<"/v4", {
|
|
1928
1835
|
campaignStatus?: {
|
1929
1836
|
error?: string | undefined;
|
1930
1837
|
details?: any;
|
1931
|
-
campaignId: string;
|
1932
1838
|
status: string;
|
1933
1839
|
computedUntil: string | number;
|
1934
1840
|
processingStarted: string | number;
|
@@ -1967,10 +1873,8 @@ export declare const v4: Elysia<"/v4", {
|
|
1967
1873
|
computeChainId: number;
|
1968
1874
|
distributionChainId: number;
|
1969
1875
|
endTimestamp: string | number;
|
1970
|
-
opportunityId: string;
|
1971
1876
|
creatorAddress: string;
|
1972
1877
|
subType: number | null;
|
1973
|
-
rewardTokenId: string;
|
1974
1878
|
createdAt: string;
|
1975
1879
|
chain: {
|
1976
1880
|
explorers?: {
|
@@ -2302,55 +2206,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2302
2206
|
};
|
2303
2207
|
};
|
2304
2208
|
};
|
2305
|
-
} & {
|
2306
|
-
campaigns: {
|
2307
|
-
metadata: {
|
2308
|
-
patch: {
|
2309
|
-
body: {
|
2310
|
-
campaignId: string;
|
2311
|
-
url: string;
|
2312
|
-
distributionChain: number;
|
2313
|
-
};
|
2314
|
-
params: {};
|
2315
|
-
query: unknown;
|
2316
|
-
headers: {
|
2317
|
-
authorization: string;
|
2318
|
-
};
|
2319
|
-
response: {
|
2320
|
-
200: {
|
2321
|
-
campaignId: string;
|
2322
|
-
description: string | null;
|
2323
|
-
id: string;
|
2324
|
-
params: import("@prisma/client/runtime/library").JsonValue;
|
2325
|
-
amount: string;
|
2326
|
-
startTimestamp: bigint;
|
2327
|
-
type: string;
|
2328
|
-
computeChainId: number;
|
2329
|
-
distributionChainId: number;
|
2330
|
-
endTimestamp: bigint;
|
2331
|
-
opportunityId: string;
|
2332
|
-
creatorAddress: string;
|
2333
|
-
distributionType: import("@package/databases").DistributionType;
|
2334
|
-
subType: number | null;
|
2335
|
-
rewardTokenId: string;
|
2336
|
-
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
2337
|
-
createdAt: Date;
|
2338
|
-
rootCampaignId: string | null;
|
2339
|
-
parentCampaignId: string | null;
|
2340
|
-
};
|
2341
|
-
422: {
|
2342
|
-
type: "validation";
|
2343
|
-
on: string;
|
2344
|
-
summary?: string;
|
2345
|
-
message?: string;
|
2346
|
-
found?: unknown;
|
2347
|
-
property?: string;
|
2348
|
-
expected?: string;
|
2349
|
-
};
|
2350
|
-
};
|
2351
|
-
};
|
2352
|
-
};
|
2353
|
-
};
|
2354
2209
|
} & {
|
2355
2210
|
campaigns: {
|
2356
2211
|
tvls: {
|
@@ -7562,87 +7417,7 @@ export declare const v4: Elysia<"/v4", {
|
|
7562
7417
|
createdAt: Date;
|
7563
7418
|
rootCampaignId: string | null;
|
7564
7419
|
parentCampaignId: string | null;
|
7565
|
-
}) |
|
7566
|
-
params: any;
|
7567
|
-
chain: {
|
7568
|
-
name: string;
|
7569
|
-
id: number;
|
7570
|
-
icon: string;
|
7571
|
-
};
|
7572
|
-
endTimestamp: number;
|
7573
|
-
startTimestamp: number;
|
7574
|
-
rewardToken: {
|
7575
|
-
symbol: string;
|
7576
|
-
name: string | null;
|
7577
|
-
decimals: number;
|
7578
|
-
address: string;
|
7579
|
-
id: string;
|
7580
|
-
chainId: number;
|
7581
|
-
icon: string;
|
7582
|
-
isNative: boolean;
|
7583
|
-
isPoint: boolean;
|
7584
|
-
isPreTGE: boolean;
|
7585
|
-
isTest: boolean;
|
7586
|
-
verified: boolean;
|
7587
|
-
} & {
|
7588
|
-
price?: number | null | undefined;
|
7589
|
-
isTokenWrapper?: boolean | undefined;
|
7590
|
-
tokenWrapperAddress?: string | undefined;
|
7591
|
-
};
|
7592
|
-
distributionChain: {
|
7593
|
-
name: string;
|
7594
|
-
id: number;
|
7595
|
-
icon: string;
|
7596
|
-
} | undefined;
|
7597
|
-
campaignStatus: {
|
7598
|
-
computedUntil: number;
|
7599
|
-
processingStarted: number;
|
7600
|
-
campaignId: string;
|
7601
|
-
error: string;
|
7602
|
-
status: import("@package/databases").RunStatus;
|
7603
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
7604
|
-
} | undefined;
|
7605
|
-
creatorAddress: string;
|
7606
|
-
creator: {
|
7607
|
-
address: string;
|
7608
|
-
tags: string[];
|
7609
|
-
creatorId: string | null;
|
7610
|
-
};
|
7611
|
-
createdAt: string;
|
7612
|
-
description: string | undefined;
|
7613
|
-
parentCampaignId: string | undefined;
|
7614
|
-
rootCampaignId: string | undefined;
|
7615
|
-
Opportunity: {
|
7616
|
-
name: string;
|
7617
|
-
apr: number;
|
7618
|
-
tvl: number;
|
7619
|
-
description: string;
|
7620
|
-
id: string;
|
7621
|
-
status: import("@package/databases").Status;
|
7622
|
-
chainId: number;
|
7623
|
-
action: import("@package/databases").OpportunityAction;
|
7624
|
-
type: string;
|
7625
|
-
depositUrl: string | null;
|
7626
|
-
explorerAddress: string | null;
|
7627
|
-
howToSteps: string[];
|
7628
|
-
mainProtocolId: string | null;
|
7629
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
7630
|
-
identifier: string;
|
7631
|
-
dailyRewards: number;
|
7632
|
-
tags: string[];
|
7633
|
-
lastCampaignCreatedAt: Date;
|
7634
|
-
};
|
7635
|
-
campaignId: string;
|
7636
|
-
id: string;
|
7637
|
-
amount: string;
|
7638
|
-
type: string;
|
7639
|
-
computeChainId: number;
|
7640
|
-
distributionChainId: number;
|
7641
|
-
opportunityId: string;
|
7642
|
-
distributionType: import("@package/databases").DistributionType;
|
7643
|
-
subType: number | null;
|
7644
|
-
rewardTokenId: string;
|
7645
|
-
})[];
|
7420
|
+
}) | Omit<import("./campaign/campaign.model").CampaignWithParams, "manualOverrides">)[];
|
7646
7421
|
422: {
|
7647
7422
|
type: "validation";
|
7648
7423
|
on: string;
|
@@ -7713,87 +7488,7 @@ export declare const v4: Elysia<"/v4", {
|
|
7713
7488
|
createdAt: Date;
|
7714
7489
|
rootCampaignId: string | null;
|
7715
7490
|
parentCampaignId: string | null;
|
7716
|
-
})[] |
|
7717
|
-
params: any;
|
7718
|
-
chain: {
|
7719
|
-
name: string;
|
7720
|
-
id: number;
|
7721
|
-
icon: string;
|
7722
|
-
};
|
7723
|
-
endTimestamp: number;
|
7724
|
-
startTimestamp: number;
|
7725
|
-
rewardToken: {
|
7726
|
-
symbol: string;
|
7727
|
-
name: string | null;
|
7728
|
-
decimals: number;
|
7729
|
-
address: string;
|
7730
|
-
id: string;
|
7731
|
-
chainId: number;
|
7732
|
-
icon: string;
|
7733
|
-
isNative: boolean;
|
7734
|
-
isPoint: boolean;
|
7735
|
-
isPreTGE: boolean;
|
7736
|
-
isTest: boolean;
|
7737
|
-
verified: boolean;
|
7738
|
-
} & {
|
7739
|
-
price?: number | null | undefined;
|
7740
|
-
isTokenWrapper?: boolean | undefined;
|
7741
|
-
tokenWrapperAddress?: string | undefined;
|
7742
|
-
};
|
7743
|
-
distributionChain: {
|
7744
|
-
name: string;
|
7745
|
-
id: number;
|
7746
|
-
icon: string;
|
7747
|
-
} | undefined;
|
7748
|
-
campaignStatus: {
|
7749
|
-
computedUntil: number;
|
7750
|
-
processingStarted: number;
|
7751
|
-
campaignId: string;
|
7752
|
-
error: string;
|
7753
|
-
status: import("@package/databases").RunStatus;
|
7754
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
7755
|
-
} | undefined;
|
7756
|
-
creatorAddress: string;
|
7757
|
-
creator: {
|
7758
|
-
address: string;
|
7759
|
-
tags: string[];
|
7760
|
-
creatorId: string | null;
|
7761
|
-
};
|
7762
|
-
createdAt: string;
|
7763
|
-
description: string | undefined;
|
7764
|
-
parentCampaignId: string | undefined;
|
7765
|
-
rootCampaignId: string | undefined;
|
7766
|
-
Opportunity: {
|
7767
|
-
name: string;
|
7768
|
-
apr: number;
|
7769
|
-
tvl: number;
|
7770
|
-
description: string;
|
7771
|
-
id: string;
|
7772
|
-
status: import("@package/databases").Status;
|
7773
|
-
chainId: number;
|
7774
|
-
action: import("@package/databases").OpportunityAction;
|
7775
|
-
type: string;
|
7776
|
-
depositUrl: string | null;
|
7777
|
-
explorerAddress: string | null;
|
7778
|
-
howToSteps: string[];
|
7779
|
-
mainProtocolId: string | null;
|
7780
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
7781
|
-
identifier: string;
|
7782
|
-
dailyRewards: number;
|
7783
|
-
tags: string[];
|
7784
|
-
lastCampaignCreatedAt: Date;
|
7785
|
-
};
|
7786
|
-
campaignId: string;
|
7787
|
-
id: string;
|
7788
|
-
amount: string;
|
7789
|
-
type: string;
|
7790
|
-
computeChainId: number;
|
7791
|
-
distributionChainId: number;
|
7792
|
-
opportunityId: string;
|
7793
|
-
distributionType: import("@package/databases").DistributionType;
|
7794
|
-
subType: number | null;
|
7795
|
-
rewardTokenId: string;
|
7796
|
-
}[];
|
7491
|
+
})[] | Omit<import("./campaign/campaign.model").CampaignWithParams, "manualOverrides">[];
|
7797
7492
|
422: {
|
7798
7493
|
type: "validation";
|
7799
7494
|
on: string;
|
@@ -18,7 +18,6 @@ export declare const DelayDto: import("@sinclair/typebox").TObject<{
|
|
18
18
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
19
19
|
}>;
|
20
20
|
export declare const CampaignStatusResourceDto: import("@sinclair/typebox").TObject<{
|
21
|
-
campaignId: import("@sinclair/typebox").TString;
|
22
21
|
computedUntil: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
23
22
|
processingStarted: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
24
23
|
status: import("@sinclair/typebox").TString;
|