@merkl/api 1.0.48 → 1.0.50
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 +18 -443
- 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 +9 -224
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -55
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +3 -81
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +3 -4
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +23 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +11 -587
- 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 -6
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +29 -91
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +15 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +10 -407
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +125 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +7 -87
- package/dist/src/modules/v4/router.d.ts +6 -224
- 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/modules/v4/uniswap/uniswap.controller.d.ts +3 -0
- package/dist/src/routes/v3/router.d.ts +3 -0
- package/dist/src/routes/v3/uniswapv4.d.ts +3 -0
- package/dist/src/utils/providers.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -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 {
|
@@ -62,91 +62,7 @@ export declare abstract class RewardService {
|
|
62
62
|
distributionType: import("@package/databases").DistributionType;
|
63
63
|
}[];
|
64
64
|
};
|
65
|
-
campaigns:
|
66
|
-
params: any;
|
67
|
-
chain: {
|
68
|
-
name: string;
|
69
|
-
id: number;
|
70
|
-
icon: string;
|
71
|
-
};
|
72
|
-
endTimestamp: number;
|
73
|
-
startTimestamp: number;
|
74
|
-
rewardToken: {
|
75
|
-
symbol: string;
|
76
|
-
name: string | null;
|
77
|
-
decimals: number;
|
78
|
-
address: string;
|
79
|
-
id: string;
|
80
|
-
chainId: number;
|
81
|
-
icon: string;
|
82
|
-
isNative: boolean;
|
83
|
-
isPoint: boolean;
|
84
|
-
isPreTGE: boolean;
|
85
|
-
isTest: boolean;
|
86
|
-
verified: boolean;
|
87
|
-
} & {
|
88
|
-
price?: number | null | undefined;
|
89
|
-
isTokenWrapper?: boolean | undefined;
|
90
|
-
tokenWrapperAddress?: string | undefined;
|
91
|
-
};
|
92
|
-
distributionChain: {
|
93
|
-
name: string;
|
94
|
-
id: number;
|
95
|
-
icon: string;
|
96
|
-
} | undefined;
|
97
|
-
campaignStatus: {
|
98
|
-
computedUntil: number;
|
99
|
-
processingStarted: number;
|
100
|
-
campaignId: string;
|
101
|
-
error: string;
|
102
|
-
status: import("@package/databases").RunStatus;
|
103
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
104
|
-
} | undefined;
|
105
|
-
creatorAddress: string;
|
106
|
-
creator: {
|
107
|
-
address: string;
|
108
|
-
tags: string[];
|
109
|
-
creatorId: string | null;
|
110
|
-
};
|
111
|
-
createdAt: string;
|
112
|
-
description: string | undefined;
|
113
|
-
parentCampaignId: string | undefined;
|
114
|
-
rootCampaignId: string | undefined;
|
115
|
-
Opportunity: {
|
116
|
-
name: string;
|
117
|
-
apr: number;
|
118
|
-
tvl: number;
|
119
|
-
description: string;
|
120
|
-
id: string;
|
121
|
-
status: import("@package/databases").Status;
|
122
|
-
chainId: number;
|
123
|
-
action: import("@package/databases").OpportunityAction;
|
124
|
-
type: string;
|
125
|
-
depositUrl: string | null;
|
126
|
-
explorerAddress: string | null;
|
127
|
-
howToSteps: string[];
|
128
|
-
mainProtocolId: string | null;
|
129
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
130
|
-
identifier: string;
|
131
|
-
dailyRewards: number;
|
132
|
-
tags: string[];
|
133
|
-
lastCampaignCreatedAt: Date;
|
134
|
-
};
|
135
|
-
campaignId: string;
|
136
|
-
id: string;
|
137
|
-
amount: string;
|
138
|
-
type: string;
|
139
|
-
computeChainId: number;
|
140
|
-
distributionChainId: number;
|
141
|
-
opportunityId: string;
|
142
|
-
distributionType: import("@package/databases").DistributionType;
|
143
|
-
subType: number | null;
|
144
|
-
rewardTokenId: string;
|
145
|
-
}[] | undefined;
|
146
|
-
id: string;
|
147
|
-
depositUrl: string | undefined;
|
148
|
-
explorerAddress: string | undefined;
|
149
|
-
lastCampaignCreatedAt: string;
|
65
|
+
campaigns: Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">[] | undefined;
|
150
66
|
tokens: ({
|
151
67
|
symbol: string;
|
152
68
|
name: string | null;
|
@@ -178,6 +94,10 @@ export declare abstract class RewardService {
|
|
178
94
|
icon: string;
|
179
95
|
tags: string[];
|
180
96
|
} | undefined;
|
97
|
+
id: string;
|
98
|
+
depositUrl: string | undefined;
|
99
|
+
explorerAddress: string | undefined;
|
100
|
+
lastCampaignCreatedAt: string;
|
181
101
|
name: string;
|
182
102
|
apr: number;
|
183
103
|
tvl: number;
|
@@ -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?: {
|
@@ -1536,7 +1530,6 @@ export declare const v4: Elysia<"/v4", {
|
|
1536
1530
|
campaignStatus?: {
|
1537
1531
|
error?: string | undefined;
|
1538
1532
|
details?: any;
|
1539
|
-
campaignId: string;
|
1540
1533
|
status: string;
|
1541
1534
|
computedUntil: string | number;
|
1542
1535
|
processingStarted: string | number;
|
@@ -1575,10 +1568,8 @@ export declare const v4: Elysia<"/v4", {
|
|
1575
1568
|
computeChainId: number;
|
1576
1569
|
distributionChainId: number;
|
1577
1570
|
endTimestamp: string | number;
|
1578
|
-
opportunityId: string;
|
1579
1571
|
creatorAddress: string;
|
1580
1572
|
subType: number | null;
|
1581
|
-
rewardTokenId: string;
|
1582
1573
|
createdAt: string;
|
1583
1574
|
chain: {
|
1584
1575
|
explorers?: {
|
@@ -1844,7 +1835,6 @@ export declare const v4: Elysia<"/v4", {
|
|
1844
1835
|
campaignStatus?: {
|
1845
1836
|
error?: string | undefined;
|
1846
1837
|
details?: any;
|
1847
|
-
campaignId: string;
|
1848
1838
|
status: string;
|
1849
1839
|
computedUntil: string | number;
|
1850
1840
|
processingStarted: string | number;
|
@@ -1883,10 +1873,8 @@ export declare const v4: Elysia<"/v4", {
|
|
1883
1873
|
computeChainId: number;
|
1884
1874
|
distributionChainId: number;
|
1885
1875
|
endTimestamp: string | number;
|
1886
|
-
opportunityId: string;
|
1887
1876
|
creatorAddress: string;
|
1888
1877
|
subType: number | null;
|
1889
|
-
rewardTokenId: string;
|
1890
1878
|
createdAt: string;
|
1891
1879
|
chain: {
|
1892
1880
|
explorers?: {
|
@@ -2218,55 +2206,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2218
2206
|
};
|
2219
2207
|
};
|
2220
2208
|
};
|
2221
|
-
} & {
|
2222
|
-
campaigns: {
|
2223
|
-
metadata: {
|
2224
|
-
patch: {
|
2225
|
-
body: {
|
2226
|
-
campaignId: string;
|
2227
|
-
url: string;
|
2228
|
-
distributionChain: number;
|
2229
|
-
};
|
2230
|
-
params: {};
|
2231
|
-
query: unknown;
|
2232
|
-
headers: {
|
2233
|
-
authorization: string;
|
2234
|
-
};
|
2235
|
-
response: {
|
2236
|
-
200: {
|
2237
|
-
campaignId: string;
|
2238
|
-
description: string | null;
|
2239
|
-
id: string;
|
2240
|
-
params: import("@prisma/client/runtime/library").JsonValue;
|
2241
|
-
amount: string;
|
2242
|
-
startTimestamp: bigint;
|
2243
|
-
type: string;
|
2244
|
-
computeChainId: number;
|
2245
|
-
distributionChainId: number;
|
2246
|
-
endTimestamp: bigint;
|
2247
|
-
opportunityId: string;
|
2248
|
-
creatorAddress: string;
|
2249
|
-
distributionType: import("@package/databases").DistributionType;
|
2250
|
-
subType: number | null;
|
2251
|
-
rewardTokenId: string;
|
2252
|
-
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
2253
|
-
createdAt: Date;
|
2254
|
-
rootCampaignId: string | null;
|
2255
|
-
parentCampaignId: string | null;
|
2256
|
-
};
|
2257
|
-
422: {
|
2258
|
-
type: "validation";
|
2259
|
-
on: string;
|
2260
|
-
summary?: string;
|
2261
|
-
message?: string;
|
2262
|
-
found?: unknown;
|
2263
|
-
property?: string;
|
2264
|
-
expected?: string;
|
2265
|
-
};
|
2266
|
-
};
|
2267
|
-
};
|
2268
|
-
};
|
2269
|
-
};
|
2270
2209
|
} & {
|
2271
2210
|
campaigns: {
|
2272
2211
|
tvls: {
|
@@ -6740,7 +6679,7 @@ export declare const v4: Elysia<"/v4", {
|
|
6740
6679
|
whitelist: string[];
|
6741
6680
|
blacklist: string[];
|
6742
6681
|
url?: string | undefined;
|
6743
|
-
distributionMethodParameters: import("@angleprotocol/sdk/
|
6682
|
+
distributionMethodParameters: import("@angleprotocol/sdk/ts").DistributionParameters<import("@angleprotocol/sdk/ts").DistributionMethod>;
|
6744
6683
|
} | {
|
6745
6684
|
rewardToken: string;
|
6746
6685
|
amount: string;
|
@@ -7478,87 +7417,7 @@ export declare const v4: Elysia<"/v4", {
|
|
7478
7417
|
createdAt: Date;
|
7479
7418
|
rootCampaignId: string | null;
|
7480
7419
|
parentCampaignId: string | null;
|
7481
|
-
}) |
|
7482
|
-
params: any;
|
7483
|
-
chain: {
|
7484
|
-
name: string;
|
7485
|
-
id: number;
|
7486
|
-
icon: string;
|
7487
|
-
};
|
7488
|
-
endTimestamp: number;
|
7489
|
-
startTimestamp: number;
|
7490
|
-
rewardToken: {
|
7491
|
-
symbol: string;
|
7492
|
-
name: string | null;
|
7493
|
-
decimals: number;
|
7494
|
-
address: string;
|
7495
|
-
id: string;
|
7496
|
-
chainId: number;
|
7497
|
-
icon: string;
|
7498
|
-
isNative: boolean;
|
7499
|
-
isPoint: boolean;
|
7500
|
-
isPreTGE: boolean;
|
7501
|
-
isTest: boolean;
|
7502
|
-
verified: boolean;
|
7503
|
-
} & {
|
7504
|
-
price?: number | null | undefined;
|
7505
|
-
isTokenWrapper?: boolean | undefined;
|
7506
|
-
tokenWrapperAddress?: string | undefined;
|
7507
|
-
};
|
7508
|
-
distributionChain: {
|
7509
|
-
name: string;
|
7510
|
-
id: number;
|
7511
|
-
icon: string;
|
7512
|
-
} | undefined;
|
7513
|
-
campaignStatus: {
|
7514
|
-
computedUntil: number;
|
7515
|
-
processingStarted: number;
|
7516
|
-
campaignId: string;
|
7517
|
-
error: string;
|
7518
|
-
status: import("@package/databases").RunStatus;
|
7519
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
7520
|
-
} | undefined;
|
7521
|
-
creatorAddress: string;
|
7522
|
-
creator: {
|
7523
|
-
address: string;
|
7524
|
-
tags: string[];
|
7525
|
-
creatorId: string | null;
|
7526
|
-
};
|
7527
|
-
createdAt: string;
|
7528
|
-
description: string | undefined;
|
7529
|
-
parentCampaignId: string | undefined;
|
7530
|
-
rootCampaignId: string | undefined;
|
7531
|
-
Opportunity: {
|
7532
|
-
name: string;
|
7533
|
-
apr: number;
|
7534
|
-
tvl: number;
|
7535
|
-
description: string;
|
7536
|
-
id: string;
|
7537
|
-
status: import("@package/databases").Status;
|
7538
|
-
chainId: number;
|
7539
|
-
action: import("@package/databases").OpportunityAction;
|
7540
|
-
type: string;
|
7541
|
-
depositUrl: string | null;
|
7542
|
-
explorerAddress: string | null;
|
7543
|
-
howToSteps: string[];
|
7544
|
-
mainProtocolId: string | null;
|
7545
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
7546
|
-
identifier: string;
|
7547
|
-
dailyRewards: number;
|
7548
|
-
tags: string[];
|
7549
|
-
lastCampaignCreatedAt: Date;
|
7550
|
-
};
|
7551
|
-
campaignId: string;
|
7552
|
-
id: string;
|
7553
|
-
amount: string;
|
7554
|
-
type: string;
|
7555
|
-
computeChainId: number;
|
7556
|
-
distributionChainId: number;
|
7557
|
-
opportunityId: string;
|
7558
|
-
distributionType: import("@package/databases").DistributionType;
|
7559
|
-
subType: number | null;
|
7560
|
-
rewardTokenId: string;
|
7561
|
-
})[];
|
7420
|
+
}) | Omit<import("./campaign/campaign.model").CampaignWithParams, "manualOverrides">)[];
|
7562
7421
|
422: {
|
7563
7422
|
type: "validation";
|
7564
7423
|
on: string;
|
@@ -7629,87 +7488,7 @@ export declare const v4: Elysia<"/v4", {
|
|
7629
7488
|
createdAt: Date;
|
7630
7489
|
rootCampaignId: string | null;
|
7631
7490
|
parentCampaignId: string | null;
|
7632
|
-
})[] |
|
7633
|
-
params: any;
|
7634
|
-
chain: {
|
7635
|
-
name: string;
|
7636
|
-
id: number;
|
7637
|
-
icon: string;
|
7638
|
-
};
|
7639
|
-
endTimestamp: number;
|
7640
|
-
startTimestamp: number;
|
7641
|
-
rewardToken: {
|
7642
|
-
symbol: string;
|
7643
|
-
name: string | null;
|
7644
|
-
decimals: number;
|
7645
|
-
address: string;
|
7646
|
-
id: string;
|
7647
|
-
chainId: number;
|
7648
|
-
icon: string;
|
7649
|
-
isNative: boolean;
|
7650
|
-
isPoint: boolean;
|
7651
|
-
isPreTGE: boolean;
|
7652
|
-
isTest: boolean;
|
7653
|
-
verified: boolean;
|
7654
|
-
} & {
|
7655
|
-
price?: number | null | undefined;
|
7656
|
-
isTokenWrapper?: boolean | undefined;
|
7657
|
-
tokenWrapperAddress?: string | undefined;
|
7658
|
-
};
|
7659
|
-
distributionChain: {
|
7660
|
-
name: string;
|
7661
|
-
id: number;
|
7662
|
-
icon: string;
|
7663
|
-
} | undefined;
|
7664
|
-
campaignStatus: {
|
7665
|
-
computedUntil: number;
|
7666
|
-
processingStarted: number;
|
7667
|
-
campaignId: string;
|
7668
|
-
error: string;
|
7669
|
-
status: import("@package/databases").RunStatus;
|
7670
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
7671
|
-
} | undefined;
|
7672
|
-
creatorAddress: string;
|
7673
|
-
creator: {
|
7674
|
-
address: string;
|
7675
|
-
tags: string[];
|
7676
|
-
creatorId: string | null;
|
7677
|
-
};
|
7678
|
-
createdAt: string;
|
7679
|
-
description: string | undefined;
|
7680
|
-
parentCampaignId: string | undefined;
|
7681
|
-
rootCampaignId: string | undefined;
|
7682
|
-
Opportunity: {
|
7683
|
-
name: string;
|
7684
|
-
apr: number;
|
7685
|
-
tvl: number;
|
7686
|
-
description: string;
|
7687
|
-
id: string;
|
7688
|
-
status: import("@package/databases").Status;
|
7689
|
-
chainId: number;
|
7690
|
-
action: import("@package/databases").OpportunityAction;
|
7691
|
-
type: string;
|
7692
|
-
depositUrl: string | null;
|
7693
|
-
explorerAddress: string | null;
|
7694
|
-
howToSteps: string[];
|
7695
|
-
mainProtocolId: string | null;
|
7696
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
7697
|
-
identifier: string;
|
7698
|
-
dailyRewards: number;
|
7699
|
-
tags: string[];
|
7700
|
-
lastCampaignCreatedAt: Date;
|
7701
|
-
};
|
7702
|
-
campaignId: string;
|
7703
|
-
id: string;
|
7704
|
-
amount: string;
|
7705
|
-
type: string;
|
7706
|
-
computeChainId: number;
|
7707
|
-
distributionChainId: number;
|
7708
|
-
opportunityId: string;
|
7709
|
-
distributionType: import("@package/databases").DistributionType;
|
7710
|
-
subType: number | null;
|
7711
|
-
rewardTokenId: string;
|
7712
|
-
}[];
|
7491
|
+
})[] | Omit<import("./campaign/campaign.model").CampaignWithParams, "manualOverrides">[];
|
7713
7492
|
422: {
|
7714
7493
|
type: "validation";
|
7715
7494
|
on: string;
|
@@ -8095,6 +7874,9 @@ export declare const v4: Elysia<"/v4", {
|
|
8095
7874
|
50?: {
|
8096
7875
|
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
8097
7876
|
} | undefined;
|
7877
|
+
747474?: {
|
7878
|
+
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
7879
|
+
} | undefined;
|
8098
7880
|
};
|
8099
7881
|
};
|
8100
7882
|
};
|
@@ -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;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { CampaignUnique } from "../../../modules/v4/campaign/campaign.model";
|
2
|
-
import {
|
2
|
+
import type { CampaignRepository } from "../campaign/campaign.repository";
|
3
3
|
import type { DelayModel, QueryCampaignStatus, UpdateStatusModel } from "./status.model";
|
4
4
|
export declare abstract class StatusService {
|
5
|
-
static format(status: Awaited<ReturnType<(typeof
|
5
|
+
static format(status: Awaited<ReturnType<(typeof CampaignRepository)["findUniqueOrThrow"]>>["CampaignStatus"][number]): {
|
6
6
|
computedUntil: number;
|
7
7
|
processingStarted: number;
|
8
8
|
campaignId: string;
|
@@ -256,6 +256,9 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
256
256
|
50?: {
|
257
257
|
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
258
258
|
} | undefined;
|
259
|
+
747474?: {
|
260
|
+
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
261
|
+
} | undefined;
|
259
262
|
};
|
260
263
|
};
|
261
264
|
};
|
@@ -1321,6 +1321,9 @@ export declare const v3: Elysia<"/v3", {
|
|
1321
1321
|
50?: {
|
1322
1322
|
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
1323
1323
|
} | undefined;
|
1324
|
+
747474?: {
|
1325
|
+
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
1326
|
+
} | undefined;
|
1324
1327
|
} | null;
|
1325
1328
|
};
|
1326
1329
|
};
|
@@ -178,6 +178,9 @@ declare const _default: (app: Elysia) => Elysia<"", {
|
|
178
178
|
50?: {
|
179
179
|
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
180
180
|
} | undefined;
|
181
|
+
747474?: {
|
182
|
+
[poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
|
183
|
+
} | undefined;
|
181
184
|
} | null;
|
182
185
|
};
|
183
186
|
};
|
@@ -57,6 +57,7 @@ export declare const providers: {
|
|
57
57
|
5464: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
58
58
|
98866: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
59
59
|
50: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
60
|
+
747474: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
60
61
|
};
|
61
62
|
export declare const archiveProviders: {
|
62
63
|
42161: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
@@ -115,6 +116,7 @@ export declare const archiveProviders: {
|
|
115
116
|
5464: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
116
117
|
98866: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
117
118
|
50: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
119
|
+
747474: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
|
118
120
|
};
|
119
121
|
export declare const multicalls: {
|
120
122
|
[chainId: number]: Multicall;
|