@merkl/api 1.4.84 → 1.4.86
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/cache/index.d.ts +0 -9
- package/dist/src/eden/index.d.ts +460 -228
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +0 -15
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.d.ts +0 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +0 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +0 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +4 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +0 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -2
- package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.js.map +1 -1
- package/dist/src/engine/implementations/clamm/utils.d.ts +0 -1
- package/dist/src/engine/implementations/deprecated_clamm/metadata.d.ts +0 -1
- package/dist/src/engine/implementations/uniswapv4/tvl.d.ts +0 -1
- package/dist/src/engine/tvl/logStates.d.ts +0 -2
- package/dist/src/index.d.ts +471 -260
- package/dist/src/jobs/pendings.d.ts +0 -1
- package/dist/src/jobs/reward-breakdowns.d.ts +0 -1
- package/dist/src/jobs/reward-breakdowns.js.map +1 -1
- package/dist/src/jobs/rewards.d.ts +0 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +0 -1
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +0 -10
- package/dist/src/libs/positions/index.d.ts +1 -2
- package/dist/src/libs/positions/prepareFetch.d.ts +1 -3
- package/dist/src/libs/positions/types.d.ts +0 -7
- package/dist/src/modules/v4/apr/apr.model.d.ts +0 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +0 -7
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +130 -3
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +6 -3
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +7 -3
- package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -3
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +274 -9
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +74 -2
- package/dist/src/modules/v4/campaignBatch/campaignBatch.model.d.ts +0 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -2
- package/dist/src/modules/v4/campaignStatus/campaignStatus.model.d.ts +0 -3
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +2 -2
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +0 -1
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +18 -0
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +27 -0
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +27 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +0 -1
- package/dist/src/modules/v4/chain/chain.model.d.ts +0 -3
- package/dist/src/modules/v4/claims/claims.controller.d.ts +0 -1
- package/dist/src/modules/v4/claims/claims.service.d.ts +0 -1
- package/dist/src/modules/v4/clamm/clamm.controller.d.ts +0 -2
- package/dist/src/modules/v4/clamm/clamm.service.d.ts +0 -1
- package/dist/src/modules/v4/computedValue/computedValue.formatter.d.ts +0 -1
- package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +0 -3
- package/dist/src/modules/v4/config/config.controller.d.ts +3 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +131 -86
- package/dist/src/modules/v4/creator/creator.controller.js.map +1 -1
- package/dist/src/modules/v4/creator/creator.model.d.ts +205 -3
- package/dist/src/modules/v4/creator/creator.model.js.map +1 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +0 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +3 -124
- package/dist/src/modules/v4/creator/creator.service.js.map +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +3 -0
- package/dist/src/modules/v4/euler/euler.controller.d.ts +0 -1
- package/dist/src/modules/v4/euler/euler.model.d.ts +0 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +0 -1
- package/dist/src/modules/v4/github/github.model.d.ts +0 -2
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +3 -1
- package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +0 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +0 -1
- package/dist/src/modules/v4/node/node.model.d.ts +0 -1
- package/dist/src/modules/v4/node/node.service.d.ts +1 -3
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +6 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +71 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -7
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +33 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +161 -12
- package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.controller.d.ts +9 -0
- package/dist/src/modules/v4/payload/payload.model.d.ts +2 -5
- package/dist/src/modules/v4/payload/payload.service.d.ts +12 -0
- package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +0 -1
- package/dist/src/modules/v4/priceSource/priceSource.model.d.ts +0 -2
- package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +0 -1
- package/dist/src/modules/v4/prisma/index.d.ts +2 -6
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +5789 -5790
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +2 -5
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -94
- package/dist/src/modules/v4/programPayload/subPayloads/aave.d.ts +0 -5
- package/dist/src/modules/v4/programPayload/subPayloads/bancor.d.ts +0 -26
- package/dist/src/modules/v4/programPayload/subPayloads/credix.d.ts +0 -8
- package/dist/src/modules/v4/programPayload/subPayloads/drip.d.ts +0 -5
- package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +0 -3
- package/dist/src/modules/v4/programPayload/subPayloads/nibiru.d.ts +0 -18
- package/dist/src/modules/v4/programPayload/subPayloads/tac.d.ts +0 -59
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +12 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +0 -3
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +15 -1
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
- package/dist/src/modules/v4/referral/referral.controller.d.ts +0 -1
- package/dist/src/modules/v4/referral/referral.model.d.ts +0 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +0 -108
- package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.model.d.ts +0 -4
- package/dist/src/modules/v4/reward/reward.model.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -1
- package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +69 -0
- package/dist/src/modules/v4/router.d.ts +5501 -5290
- package/dist/src/modules/v4/token/token.controller.d.ts +0 -1
- package/dist/src/modules/v4/token/token.model.d.ts +0 -4
- package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
- package/dist/src/modules/v4/token/token.service.d.ts +2 -2
- package/dist/src/modules/v4/transaction/transaction.model.d.ts +0 -1
- package/dist/src/modules/v4/turtle/turtle.controller.d.ts +0 -1
- package/dist/src/modules/v4/turtle/turtle.service.d.ts +0 -2
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +0 -1
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +6 -2
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +0 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +15 -0
- package/dist/src/modules/v4/user/user.model.d.ts +0 -3
- package/dist/src/modules/v4/user/user.repository.d.ts +0 -1
- package/dist/src/modules/v4/user/user.service.d.ts +0 -1
- package/dist/src/plugins/errorHandler.d.ts +0 -1
- package/dist/src/routes/v3/blacklist.d.ts +0 -1
- package/dist/src/utils/bigintToString.d.ts +0 -3
- package/dist/src/utils/execute.d.ts +0 -1
- package/dist/src/utils/pagination.d.ts +0 -1
- package/dist/src/utils/parseDistributionType.d.ts +20 -20
- package/package.json +1 -1
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { CampaignType, ChainId, CompFork, CompoundSubCampaignType, ComputeCurveMethod, ComputeScoreMethod, DistributionMethod, EulerSubCampaignType, Forwarder, HookType, MorphoSubCampaignType } from "@package/resources/enums";
|
2
2
|
import type { ComputeCurveParameters, ComputeScoreParameters, DistributionParameters, ForwarderConfig, Hook } from "@package/resources/schemas";
|
3
3
|
import type { LockerEventSchema } from "@package/sdk";
|
4
|
-
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
5
4
|
export declare const CampaignPayloadInputDto: import("@sinclair/typebox").TObject<{
|
6
5
|
campaign: import("@sinclair/typebox").TString;
|
7
6
|
program: import("@sinclair/typebox").TString;
|
@@ -69,7 +68,6 @@ export declare const ProgramPayloadAirdropInputDto: import("@sinclair/typebox").
|
|
69
68
|
distributionChainId: import("@sinclair/typebox").TNumber;
|
70
69
|
rewards: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>>>;
|
71
70
|
}>;
|
72
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
73
71
|
export type CampaignPayloadInputModel = typeof CampaignPayloadInputDto.static;
|
74
72
|
export type ProgramPayloadInputModel = typeof ProgramPayloadInputDto.static;
|
75
73
|
export type CampaignAmountsInputModel = typeof CampaignAmountsInputDto.static;
|
@@ -328,8 +326,8 @@ export type partialConfigLocker = {
|
|
328
326
|
computeScoreParameters: ComputeScoreParameters<ComputeScoreMethod> | string;
|
329
327
|
curveParameters: ComputeCurveParameters<ComputeCurveMethod>;
|
330
328
|
hasSlots: boolean;
|
331
|
-
lockEvent: LockerEventSchema;
|
332
|
-
unlockEvent: LockerEventSchema;
|
329
|
+
lockEvent: LockerEventSchema;
|
330
|
+
unlockEvent: LockerEventSchema;
|
333
331
|
};
|
334
332
|
export type partialConfigStakingVault = {
|
335
333
|
computeChainId?: ChainId;
|
@@ -343,7 +341,6 @@ export type partialConfigStakingVault = {
|
|
343
341
|
url?: string;
|
344
342
|
};
|
345
343
|
export type partialConfig = partialConfigERC20 | partialConfigMorpho | partialConfigCLAMM | partialConfigIonic | partialConfigCompoundV3 | partialConfigMultiLog | partialConfigLocker | partialConfigAirdrop | partialConfigERC20FixedAPR | partialConfigMORPHOBORROW | partialConfigMORPHOSUPPLY | partialConfigMORPHOVAULT | partialConfigEULER | partialCongigERC20LOGPROCESSOR | partialConfigTermFinance | partialConfigStakingVault;
|
346
|
-
// ---- Template below ----
|
347
344
|
export declare const safeTemplate: {
|
348
345
|
version: string;
|
349
346
|
chainId: string;
|
@@ -762,7 +762,6 @@ declare const TestCampaigns: {
|
|
762
762
|
computeScoreParameters: {
|
763
763
|
computeMethod: ComputeScoreMethod;
|
764
764
|
};
|
765
|
-
// composedMultiplier: "" SET IT TO THE MULTIPLIER USED TO CONVERT SHARE TO ASSETS WITH THE RIGHT DECIMALS
|
766
765
|
whitelist: never[];
|
767
766
|
blacklist: never[];
|
768
767
|
hooks: never[];
|
@@ -2484,7 +2483,6 @@ declare const MorphoCampaignsInterface: {
|
|
2484
2483
|
computeMethod: ComputeScoreMethod;
|
2485
2484
|
};
|
2486
2485
|
whitelist: never[];
|
2487
|
-
// composedMultiplier: "" SET IT TO THE MULTIPLIER USED TO CONVERT SHARE TO ASSETS WITH THE RIGHT DECIMALS
|
2488
2486
|
blacklist: never[];
|
2489
2487
|
hooks: {
|
2490
2488
|
hookType: HookType;
|
@@ -2569,7 +2567,6 @@ declare const MorphoCampaignsInterface: {
|
|
2569
2567
|
computeMethod: ComputeScoreMethod;
|
2570
2568
|
};
|
2571
2569
|
whitelist: never[];
|
2572
|
-
// composedMultiplier: "" SET IT TO THE MULTIPLIER USED TO CONVERT SHARE TO ASSETS WITH THE RIGHT DECIMALS
|
2573
2570
|
blacklist: never[];
|
2574
2571
|
forwarders: never[];
|
2575
2572
|
hooks: {
|
@@ -2715,7 +2712,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2715
2712
|
computeScoreParameters: {
|
2716
2713
|
computeMethod: ComputeScoreMethod;
|
2717
2714
|
};
|
2718
|
-
// composedMultiplier: "1",
|
2719
2715
|
whitelist: never[];
|
2720
2716
|
blacklist: never[];
|
2721
2717
|
hooks: never[];
|
@@ -2739,7 +2735,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2739
2735
|
computeScoreParameters: {
|
2740
2736
|
computeMethod: ComputeScoreMethod;
|
2741
2737
|
};
|
2742
|
-
// composedMultiplier: "1",
|
2743
2738
|
whitelist: never[];
|
2744
2739
|
blacklist: never[];
|
2745
2740
|
hooks: never[];
|
@@ -2763,7 +2758,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2763
2758
|
computeScoreParameters: {
|
2764
2759
|
computeMethod: ComputeScoreMethod;
|
2765
2760
|
};
|
2766
|
-
// composedMultiplier: "1",
|
2767
2761
|
whitelist: never[];
|
2768
2762
|
blacklist: never[];
|
2769
2763
|
hooks: never[];
|
@@ -2787,7 +2781,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2787
2781
|
computeScoreParameters: {
|
2788
2782
|
computeMethod: ComputeScoreMethod;
|
2789
2783
|
};
|
2790
|
-
// composedMultiplier: "1",
|
2791
2784
|
whitelist: never[];
|
2792
2785
|
blacklist: never[];
|
2793
2786
|
hooks: never[];
|
@@ -2811,7 +2804,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2811
2804
|
computeScoreParameters: {
|
2812
2805
|
computeMethod: ComputeScoreMethod;
|
2813
2806
|
};
|
2814
|
-
// composedMultiplier: "1",
|
2815
2807
|
whitelist: never[];
|
2816
2808
|
blacklist: never[];
|
2817
2809
|
hooks: never[];
|
@@ -2835,7 +2827,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2835
2827
|
computeScoreParameters: {
|
2836
2828
|
computeMethod: ComputeScoreMethod;
|
2837
2829
|
};
|
2838
|
-
// composedMultiplier: "1",
|
2839
2830
|
whitelist: never[];
|
2840
2831
|
blacklist: never[];
|
2841
2832
|
hooks: never[];
|
@@ -2859,7 +2850,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2859
2850
|
computeScoreParameters: {
|
2860
2851
|
computeMethod: ComputeScoreMethod;
|
2861
2852
|
};
|
2862
|
-
// composedMultiplier: "1",
|
2863
2853
|
whitelist: never[];
|
2864
2854
|
blacklist: never[];
|
2865
2855
|
hooks: never[];
|
@@ -2883,7 +2873,6 @@ declare const ExtrafiCampaignsInterface: {
|
|
2883
2873
|
computeScoreParameters: {
|
2884
2874
|
computeMethod: ComputeScoreMethod;
|
2885
2875
|
};
|
2886
|
-
// composedMultiplier: "1",
|
2887
2876
|
whitelist: never[];
|
2888
2877
|
blacklist: never[];
|
2889
2878
|
hooks: never[];
|
@@ -4050,7 +4039,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4050
4039
|
computeScoreParameters: {
|
4051
4040
|
computeMethod: ComputeScoreMethod;
|
4052
4041
|
};
|
4053
|
-
// composedMultiplier: "1000000000",
|
4054
4042
|
whitelist: never[];
|
4055
4043
|
blacklist: string[];
|
4056
4044
|
hooks: never[];
|
@@ -4088,7 +4076,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4088
4076
|
computeScoreParameters: {
|
4089
4077
|
computeMethod: ComputeScoreMethod;
|
4090
4078
|
};
|
4091
|
-
// composedMultiplier: "1000000000",
|
4092
4079
|
whitelist: never[];
|
4093
4080
|
blacklist: string[];
|
4094
4081
|
hooks: never[];
|
@@ -4126,7 +4113,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4126
4113
|
computeScoreParameters: {
|
4127
4114
|
computeMethod: ComputeScoreMethod;
|
4128
4115
|
};
|
4129
|
-
// composedMultiplier: "1000000000",
|
4130
4116
|
whitelist: never[];
|
4131
4117
|
blacklist: string[];
|
4132
4118
|
hooks: never[];
|
@@ -4164,7 +4150,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4164
4150
|
computeScoreParameters: {
|
4165
4151
|
computeMethod: ComputeScoreMethod;
|
4166
4152
|
};
|
4167
|
-
// composedMultiplier: "1000000000",
|
4168
4153
|
whitelist: never[];
|
4169
4154
|
blacklist: string[];
|
4170
4155
|
hooks: never[];
|
@@ -4202,7 +4187,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4202
4187
|
computeScoreParameters: {
|
4203
4188
|
computeMethod: ComputeScoreMethod;
|
4204
4189
|
};
|
4205
|
-
// composedMultiplier: "1000000000",
|
4206
4190
|
whitelist: never[];
|
4207
4191
|
blacklist: string[];
|
4208
4192
|
hooks: never[];
|
@@ -4240,7 +4224,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4240
4224
|
computeScoreParameters: {
|
4241
4225
|
computeMethod: ComputeScoreMethod;
|
4242
4226
|
};
|
4243
|
-
// composedMultiplier: "1000000000",
|
4244
4227
|
whitelist: never[];
|
4245
4228
|
blacklist: string[];
|
4246
4229
|
hooks: never[];
|
@@ -4605,7 +4588,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4605
4588
|
topicIndex: number;
|
4606
4589
|
decodeKeyTopic: string;
|
4607
4590
|
dataIndexes: number[];
|
4608
|
-
// Request is 0.001566 so 1566n / 1000000n
|
4609
4591
|
multipliers: string[];
|
4610
4592
|
computeFormula: string;
|
4611
4593
|
}[];
|
@@ -4644,7 +4626,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4644
4626
|
topicIndex: number;
|
4645
4627
|
decodeKeyTopic: string;
|
4646
4628
|
dataIndexes: number[];
|
4647
|
-
// Request is 0.001566 so 1566n / 1000000n
|
4648
4629
|
multipliers: string[];
|
4649
4630
|
computeFormula: string;
|
4650
4631
|
}[];
|
@@ -4683,7 +4664,6 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
4683
4664
|
topicIndex: number;
|
4684
4665
|
decodeKeyTopic: string;
|
4685
4666
|
dataIndexes: number[];
|
4686
|
-
// Request is 0.001566 so 1566n / 1000000n
|
4687
4667
|
multipliers: string[];
|
4688
4668
|
computeFormula: string;
|
4689
4669
|
}[];
|
@@ -5112,80 +5092,6 @@ declare const SagaCampaignsInterface: {
|
|
5112
5092
|
declare const CeloInterfaceCampaigns: {
|
5113
5093
|
[key in celoCampaigns]: partialConfig;
|
5114
5094
|
};
|
5115
|
-
/*
|
5116
|
-
function generateComposedCampaignForTradingCompetitionForReserve(
|
5117
|
-
pool: string,
|
5118
|
-
wethIndex: number,
|
5119
|
-
chainId: ChainId,
|
5120
|
-
): GenericCampaignConfigComposed[] {
|
5121
|
-
return [
|
5122
|
-
{
|
5123
|
-
composedIndex: 1,
|
5124
|
-
computeChainId: chainId,
|
5125
|
-
composedType: ComposedType.MAIN,
|
5126
|
-
campaignType: CampaignType.EVENT_BASED,
|
5127
|
-
contract: pool,
|
5128
|
-
eventID: id("Swap(address,address,int256,int256,uint160,uint128,int24)"),
|
5129
|
-
topicToData: [
|
5130
|
-
{
|
5131
|
-
topicIndex: 0,
|
5132
|
-
decodeKeyTopic: "address",
|
5133
|
-
dataIndexes: [wethIndex],
|
5134
|
-
multipliers: ["ETH"],
|
5135
|
-
computeFormula: wethIndex.toString(),
|
5136
|
-
},
|
5137
|
-
],
|
5138
|
-
computeScoreParameters: {
|
5139
|
-
computeMethod: ComputeScoreMethod.cappedScorePercentageHistorical,
|
5140
|
-
computeSettings: {
|
5141
|
-
// This is only to get the historicalValue so I'm capping it at 100%
|
5142
|
-
maxRewards: BASE_9.toString(),
|
5143
|
-
},
|
5144
|
-
},
|
5145
|
-
decodeDataValue: ["int256", "int256", "uint160", "uint128", "int24"],
|
5146
|
-
expectedChecks: [
|
5147
|
-
{
|
5148
|
-
index: wethIndex,
|
5149
|
-
key: "greaterThan",
|
5150
|
-
expectedValue: "0",
|
5151
|
-
},
|
5152
|
-
],
|
5153
|
-
},
|
5154
|
-
{
|
5155
|
-
composedIndex: 2,
|
5156
|
-
computeChainId: chainId,
|
5157
|
-
composedType: ComposedType.MAIN,
|
5158
|
-
campaignType: CampaignType.EVENT_BASED,
|
5159
|
-
contract: pool,
|
5160
|
-
eventID: id("Swap(address,address,int256,int256,uint160,uint128,int24)"),
|
5161
|
-
topicToData: [
|
5162
|
-
{
|
5163
|
-
topicIndex: 0,
|
5164
|
-
decodeKeyTopic: "address",
|
5165
|
-
dataIndexes: [wethIndex],
|
5166
|
-
multipliers: ["ETH"],
|
5167
|
-
computeFormula: wethIndex.toString(),
|
5168
|
-
},
|
5169
|
-
],
|
5170
|
-
computeScoreParameters: {
|
5171
|
-
computeMethod: ComputeScoreMethod.cappedScorePercentageHistorical,
|
5172
|
-
computeSettings: {
|
5173
|
-
// This is only to get the historicalValue so I'm capping it at 100%
|
5174
|
-
maxRewards: BASE_9.toString(),
|
5175
|
-
},
|
5176
|
-
},
|
5177
|
-
decodeDataValue: ["int256", "int256", "uint160", "uint128", "int24"],
|
5178
|
-
expectedChecks: [
|
5179
|
-
{
|
5180
|
-
index: wethIndex,
|
5181
|
-
key: "lessThan",
|
5182
|
-
expectedValue: "0",
|
5183
|
-
},
|
5184
|
-
],
|
5185
|
-
},
|
5186
|
-
];
|
5187
|
-
}
|
5188
|
-
*/
|
5189
5095
|
declare const ModeInterfaceCampaigns: {
|
5190
5096
|
[key in modeCampaigns]: partialConfig;
|
5191
5097
|
};
|
@@ -1,9 +1,4 @@
|
|
1
|
-
// - USDC lent - USDC borrowed - scUSD borrowed
|
2
|
-
// - WS lent - WS borrowed
|
3
|
-
// - scUSD lent - USDC borrowed - scUSD borrowed
|
4
1
|
import { CampaignType, ChainId, ComposedType, ComputeScoreMethod, DistributionMethod, HealthFactorProtocols, HookType } from "@package/resources/enums";
|
5
|
-
// Start: 1752256800
|
6
|
-
// End: 1760205600
|
7
2
|
export declare enum AaveCampaigns {
|
8
3
|
ZkSync_NetBorrowUSDC = "Aave zkSync net borrow USDC 3% MAX APR",
|
9
4
|
ZkSync_NetLendWETH = "Aave zkSync net lend WETH 1.5% MAX APR with HF < 1.75",
|
@@ -26,29 +26,3 @@ export declare const BancorSubPayloads: {
|
|
26
26
|
"TON USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": Record<string, any>;
|
27
27
|
"TON WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": Record<string, any>;
|
28
28
|
};
|
29
|
-
// "LBTC cbBTC July16_2025_10AM_UTC August13_2025_10AM_UTC": "701652890000000000000000",
|
30
|
-
// "LBTC USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "912148760000000000000000",
|
31
|
-
// "cbBTC USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "912148760000000000000000",
|
32
|
-
// "LBTC WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": "701652890000000000000000",
|
33
|
-
// "cbBTC WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": "701652890000000000000000",
|
34
|
-
// "LBTC TAC July16_2025_10AM_UTC August13_2025_10AM_UTC": "561322310000000000000000",
|
35
|
-
// "cbBTC TAC July16_2025_10AM_UTC August13_2025_10AM_UTC": "561322310000000000000000",
|
36
|
-
// "WETH USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "912148760000000000000000",
|
37
|
-
// "WETH TAC July16_2025_10AM_UTC August13_2025_10AM_UTC": "561322310000000000000000",
|
38
|
-
// "TAC USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "771818180000000000000000",
|
39
|
-
// "TON USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "701652890000000000000000",
|
40
|
-
// "TON WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": "491157020000000000000000",
|
41
|
-
// {
|
42
|
-
// "LBTC cbBTC July16_2025_10AM_UTC August13_2025_10AM_UTC": "721057850000000000000000",
|
43
|
-
// "LBTC USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "937375210000000000000000",
|
44
|
-
// "cbBTC USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "937375210000000000000000",
|
45
|
-
// "LBTC WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": "721057850000000000000000",
|
46
|
-
// "cbBTC WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": "721057850000000000000000",
|
47
|
-
// "LBTC TAC July16_2025_10AM_UTC August13_2025_10AM_UTC": "576846280000000000000000",
|
48
|
-
// "cbBTC TAC July16_2025_10AM_UTC August13_2025_10AM_UTC": "576846280000000000000000",
|
49
|
-
// "WETH USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "937375210000000000000000",
|
50
|
-
// "WETH TAC July16_2025_10AM_UTC August13_2025_10AM_UTC": "576846280000000000000000",
|
51
|
-
// "TAC USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "793163640000000000000000",
|
52
|
-
// "TON USDT July16_2025_10AM_UTC August13_2025_10AM_UTC": "721057850000000000000000",
|
53
|
-
// "TON WETH July16_2025_10AM_UTC August13_2025_10AM_UTC": "504740500000000000000000",
|
54
|
-
// }
|
@@ -1,9 +1,4 @@
|
|
1
|
-
// - USDC lent - USDC borrowed - scUSD borrowed
|
2
|
-
// - WS lent - WS borrowed
|
3
|
-
// - scUSD lent - USDC borrowed - scUSD borrowed
|
4
1
|
import { CampaignType, ChainId, ComposedType, ComputeScoreMethod } from "@package/resources/enums";
|
5
|
-
// Start: 1752256800
|
6
|
-
// End: 1760205600
|
7
2
|
export declare enum CredixCampaigns {
|
8
3
|
CredixUSDC = "Credix USDC",
|
9
4
|
CredixwS = "Credix WS",
|
@@ -22,7 +17,6 @@ export declare const CredixPayloads: {
|
|
22
17
|
composedIndex: number;
|
23
18
|
composedType: ComposedType;
|
24
19
|
campaignType: CampaignType;
|
25
|
-
// aUSDC
|
26
20
|
targetToken: string;
|
27
21
|
computeChainId: ChainId;
|
28
22
|
computeScoreParameters: {
|
@@ -46,7 +40,6 @@ export declare const CredixPayloads: {
|
|
46
40
|
composedIndex: number;
|
47
41
|
composedType: ComposedType;
|
48
42
|
campaignType: CampaignType;
|
49
|
-
// ascUSD
|
50
43
|
targetToken: string;
|
51
44
|
computeChainId: ChainId;
|
52
45
|
computeScoreParameters: {
|
@@ -70,7 +63,6 @@ export declare const CredixPayloads: {
|
|
70
63
|
composedIndex: number;
|
71
64
|
composedType: ComposedType;
|
72
65
|
campaignType: CampaignType;
|
73
|
-
// awS
|
74
66
|
targetToken: string;
|
75
67
|
computeChainId: ChainId;
|
76
68
|
computeScoreParameters: {
|
@@ -1,9 +1,4 @@
|
|
1
|
-
// - USDC lent - USDC borrowed - scUSD borrowed
|
2
|
-
// - WS lent - WS borrowed
|
3
|
-
// - scUSD lent - USDC borrowed - scUSD borrowed
|
4
1
|
import { CampaignType, ChainId, ComposedType, ComputeScoreMethod, DistributionMethod, DolomiteSubCampaignType, HookType } from "@package/resources/enums";
|
5
|
-
// Start: 1752256800
|
6
|
-
// End: 1760205600
|
7
2
|
export declare enum DripCampaigns {
|
8
3
|
Aave_BorrowWeth = "Aave borrow WETH with collaterals",
|
9
4
|
Aave_NetLendWETH = "Aave net lend WETH",
|
@@ -68,8 +68,6 @@ export declare enum HypuurCampaigns {
|
|
68
68
|
PooledBorrowUSDHL = "Pooled Borrow USDHL",
|
69
69
|
hwHLP_USDT0_Balancer = "hwHLP / USDT0 Balancer",
|
70
70
|
USDXLHYPEHybra = "USDXL / HYPE Hybra",
|
71
|
-
// New
|
72
|
-
// Old
|
73
71
|
USDXLHYPEHYPERV2 = "USDXL-HYPE-HYPER-V2",
|
74
72
|
USDXLHYPEV2 = "USDXL-HYPE-V2",
|
75
73
|
HYPEUETHV2 = "HYPE-UETH-V2",
|
@@ -97,7 +95,6 @@ export declare enum HypuurCampaigns {
|
|
97
95
|
IsolatedhbUSDT0DepositHYPE = "Isolated hbUSDT0 Deposit HYPE",
|
98
96
|
IsolatedhbUSDT0BorrowHYPE = "Isolated hbUSDT0 Borrow HYPE"
|
99
97
|
}
|
100
|
-
// Live
|
101
98
|
export declare const HypurrFiSubPayloads: {
|
102
99
|
stkUSDXL: Record<string, any>;
|
103
100
|
"Pooled Borrow USDXL": Record<string, any>;
|
@@ -34,21 +34,3 @@ export declare const NibiruSubPayloads: {
|
|
34
34
|
"Nebula Supply USDC": Record<string, any>;
|
35
35
|
"Nebula Borrow USDC": Record<string, any>;
|
36
36
|
};
|
37
|
-
// {
|
38
|
-
// "Oku stNIBI / WETH": "879394000000000000000000",
|
39
|
-
// "Oku WNIBI / stNIBI": "1497453000000000000000000",
|
40
|
-
// "Oku USDC/stNIBI": "1495526000000000000000000",
|
41
|
-
// "Oku USDC/WNIBI": "102486000000000000000000",
|
42
|
-
// "MIMSwap USDC/MIM": "30000000000000000000000000",
|
43
|
-
// "Ichi WNIBI-stNIBI": "30000000000000000000000000",
|
44
|
-
// "Ichi stNIBI-WNIBI": "30000000000000000000000000",
|
45
|
-
// "Ichi USDC-wNIBI": "30000000000000000000000000",
|
46
|
-
// "Ichi wNIBI-uSDC": "30000000000000000000000000",
|
47
|
-
// "Ichi stNIBI-USDC": "30000000000000000000000000",
|
48
|
-
// "Ichi USDC-stNIBI": "30000000000000000000000000",
|
49
|
-
// "Ichi WETH-stNIBI": "30000000000000000000000000",
|
50
|
-
// "Ichi stNIBI-WETH": "30000000000000000000000000",
|
51
|
-
// "Layerbank Supply USDC": "30000000000000000000000000",
|
52
|
-
// "Nebula Supply USDC": "30000000000000000000000000",
|
53
|
-
// "Nebula Borrow USDC": "0xxxx",
|
54
|
-
// }
|
@@ -871,62 +871,3 @@ export declare const TACMainnetInterfaceCampaigns: {
|
|
871
871
|
blacklist: never[];
|
872
872
|
};
|
873
873
|
};
|
874
|
-
// "TAC Curve WTAC_USDT 0xAaD47973427b39bE737C1154F50DD6595083FA88": "155555000000000000000000",
|
875
|
-
// "TAC Curve USDT_TON 0x52297F3E1F099dA7f4fc0A66Bc8732016aB3F9b1": "41481000000000000000000",
|
876
|
-
// "TAC Curve USDT_WETH 0xE9973C24945CB4B4e87DbEe6908DB5E07484113D": "41481000000000000000000",
|
877
|
-
// "TAC Curve USDT_CBBTC 0xE5948A817d7A061a0eF40128E91379046Da1009e": "41481000000000000000000",
|
878
|
-
// "TAC Curve cbBTC_LBTC 0x9c15DC1c8991E852CEaf623b30162A98A1c83f3D": "259259000000000000000000",
|
879
|
-
// "TAC Curve USN_USDT 0x24894F0c4f80837d61CA21730A75Fa216FED7200": "311111000000000000000000",
|
880
|
-
// "TAC Curve USR_USDT 0x93DD63B4D8FD8F086ab70c71e0a160aaeddad26B": "311111000000000000000000",
|
881
|
-
// "TAC Curve USBD_USDT 0x3e3D5E3c098D1576112AF93598D7C55F895f83fF": "155555000000000000000000",
|
882
|
-
// "TAC Curve tsTON_TON 0x51d701D23E1e6a58202694352E486b3614b75946": "103703000000000000000000",
|
883
|
-
// "TAC Curve uniBTC_MBTC 0x2F5FEbcA5530676a609cd125954C44aaB4Cd1c48": "207407000000000000000000",
|
884
|
-
// "TAC Curve uniBTC_cbBTC 0x330F1b8877Ed07950448DDECe9803cf9295F39F8": "259259000000000000000000",
|
885
|
-
// "TAC Curve WETH_wstETH 0x1635D9ae7B8eF28b0aA9630a9F0A75160Bd677ef": "518518000000000000000000",
|
886
|
-
// "TAC Curve rsETH_WETH 0x76E28170713659bf213Bd985E39C3729f9618D4c": "207407000000000000000000",
|
887
|
-
// "TAC Curve uniBTC_satuniBTC 0x51178ce64e2518A9a9347a15157d0a5a54b9B7a1": "103703000000000000000000"
|
888
|
-
// "TAC Curve pufETH_WETH 0xc25708EA0E8ABe67A08eC39AEF0dAdA3a25dD708":
|
889
|
-
// "TAC Curve USD0PlusPlus_USD0 0x80FF7cA41A709bbd28252e2fB21Ce47772bb1779":
|
890
|
-
// "TAC Curve USD0_USDT 0xA8Be149F69c23469B51891530107e282eA0Dd49d":
|
891
|
-
// "TAC Curve uniBTC_satuniBTC 0x51178ce64e2518A9a9347a15157d0a5a54b9B7a1":
|
892
|
-
// "TAC Curve WTAC_USDT 0xAaD47973427b39bE737C1154F50DD6595083FA88": "100000000000000000000000",
|
893
|
-
// "TAC Curve USDT_TON 0x52297F3E1F099dA7f4fc0A66Bc8732016aB3F9b1": "26666000000000000000000",
|
894
|
-
// "TAC Curve USDT_WETH 0xE9973C24945CB4B4e87DbEe6908DB5E07484113D": "26666000000000000000000",
|
895
|
-
// "TAC Curve USDT_CBBTC 0xE5948A817d7A061a0eF40128E91379046Da1009e": "26666000000000000000000",
|
896
|
-
// "TAC Curve cbBTC_LBTC 0x9c15DC1c8991E852CEaf623b30162A98A1c83f3D": "136666000000000000000000",
|
897
|
-
// "TAC Curve USN_USDT 0x24894F0c4f80837d61CA21730A75Fa216FED7200": "183333000000000000000000",
|
898
|
-
// "TAC Curve USR_USDT 0x93DD63B4D8FD8F086ab70c71e0a160aaeddad26B": "183333000000000000000000",
|
899
|
-
// "TAC Curve USBD_USDT 0x3e3D5E3c098D1576112AF93598D7C55F895f83fF": "33333000000000000000000",
|
900
|
-
// "TAC Curve tsTON_TON 0x51d701D23E1e6a58202694352E486b3614b75946": "66666000000000000000000",
|
901
|
-
// "TAC Curve uniBTC_MBTC 0x2F5FEbcA5530676a609cd125954C44aaB4Cd1c48": "116666000000000000000000",
|
902
|
-
// "TAC Curve uniBTC_cbBTC 0x330F1b8877Ed07950448DDECe9803cf9295F39F8": "150000000000000000000000",
|
903
|
-
// "TAC Curve WETH_wstETH 0x1635D9ae7B8eF28b0aA9630a9F0A75160Bd677ef": "333333000000000000000000",
|
904
|
-
// "TAC Curve rsETH_WETH 0x76E28170713659bf213Bd985E39C3729f9618D4c": "126666000000000000000000",
|
905
|
-
// "TAC Curve TON_WIF 0xC8228FcF835E020FD33262FD3ea720bC799C8783": "26666000000000000000000",
|
906
|
-
// "TAC Curve WTAC_TON 0xed0CDC6363222eF823eF44d30B57f76CF980c368": "50000000000000000000000",
|
907
|
-
// "TAC Curve sUSN_USN 0x1436e4Ca2c687335b7c5E1b446AE532b9e287160": "150000000000000000000000",
|
908
|
-
// "TAC Curve pufETH_WETH 0xc25708EA0E8ABe67A08eC39AEF0dAdA3a25dD708": "173333000000000000000000",
|
909
|
-
// "TAC Curve USD0PlusPlus_USD0 0x80FF7cA41A709bbd28252e2fB21Ce47772bb1779": "66666000000000000000000",
|
910
|
-
// "TAC Curve USD0_USDT 0xA8Be149F69c23469B51891530107e282eA0Dd49d": "150000000000000000000000",
|
911
|
-
// "TAC Curve uniBTC_satuniBTC 0x51178ce64e2518A9a9347a15157d0a5a54b9B7a1": "100000000000000000000000",
|
912
|
-
// "TAC Curve WTAC_USDT 0xAaD47973427b39bE737C1154F50DD6595083FA88": "155555000000000000000000",
|
913
|
-
// "TAC Curve USDT_TON 0x52297F3E1F099dA7f4fc0A66Bc8732016aB3F9b1": "36296000000000000000000",
|
914
|
-
// "TAC Curve USDT_WETH 0xE9973C24945CB4B4e87DbEe6908DB5E07484113D": "36296000000000000000000",
|
915
|
-
// "TAC Curve USDT_CBBTC 0xE5948A817d7A061a0eF40128E91379046Da1009e": "41481000000000000000000",
|
916
|
-
// "TAC Curve cbBTC_LBTC 0x9c15DC1c8991E852CEaf623b30162A98A1c83f3D": "222962000000000000000000",
|
917
|
-
// "TAC Curve USN_USDT 0x24894F0c4f80837d61CA21730A75Fa216FED7200": "285185000000000000000000",
|
918
|
-
// "TAC Curve USR_USDT 0x93DD63B4D8FD8F086ab70c71e0a160aaeddad26B": "285185000000000000000000",
|
919
|
-
// "TAC Curve USBD_USDT 0x3e3D5E3c098D1576112AF93598D7C55F895f83fF": "46666000000000000000000",
|
920
|
-
// "TAC Curve tsTON_TON 0x51d701D23E1e6a58202694352E486b3614b75946": "103703000000000000000000",
|
921
|
-
// "TAC Curve uniBTC_MBTC 0x2F5FEbcA5530676a609cd125954C44aaB4Cd1c48": "248888000000000000000000",
|
922
|
-
// "TAC Curve uniBTC_cbBTC 0x330F1b8877Ed07950448DDECe9803cf9295F39F8": "197037000000000000000000",
|
923
|
-
// "TAC Curve WETH_wstETH 0x1635D9ae7B8eF28b0aA9630a9F0A75160Bd677ef": "518518000000000000000000",
|
924
|
-
// "TAC Curve wrsETH_WETH 0x76E28170713659bf213Bd985E39C3729f9618D4c": "197037000000000000000000",
|
925
|
-
// "TAC Curve TON_WIF 0xC8228FcF835E020FD33262FD3ea720bC799C8783": "41481000000000000000000",
|
926
|
-
// "TAC Curve WTAC_TON 0xed0CDC6363222eF823eF44d30B57f76CF980c368": "77777000000000000000000",
|
927
|
-
// "TAC Curve sUSN_USN 0x1436e4Ca2c687335b7c5E1b446AE532b9e287160": "215185000000000000000000",
|
928
|
-
// "TAC Curve pufETH_WETH 0xc25708EA0E8ABe67A08eC39AEF0dAdA3a25dD708": "269629000000000000000000",
|
929
|
-
// "TAC Curve USD0PlusPlus_USD0 0x80FF7cA41A709bbd28252e2fB21Ce47772bb1779": "93333000000000000000000",
|
930
|
-
// "TAC Curve USD0_USDT 0xA8Be149F69c23469B51891530107e282eA0Dd49d": "233333000000000000000000",
|
931
|
-
// "TAC Curve uniBTC_satuniBTC 0x51178ce64e2518A9a9347a15157d0a5a54b9B7a1": "222962000000000000000000",
|
932
|
-
// "TAC Curve SolvBTC_xSolvBTC 0xA554ffaF67627d00f25397896F23e816eE89b115": "233333000000000000000000"
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
// ─── Protocols Controller ────────────────────────────────────────────────────
|
3
2
|
export declare const ProtocolController: Elysia<"/protocols", {
|
4
3
|
decorator: {};
|
5
4
|
store: {};
|
@@ -97,10 +96,13 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
97
96
|
headers: unknown;
|
98
97
|
response: {
|
99
98
|
200: {
|
99
|
+
banner: string | null;
|
100
100
|
description: string;
|
101
101
|
icon: string;
|
102
102
|
id: string;
|
103
103
|
name: string;
|
104
|
+
opportunityBannerDark: string | null;
|
105
|
+
opportunityBannerLight: string | null;
|
104
106
|
tags: string[];
|
105
107
|
url: string;
|
106
108
|
} & {
|
@@ -144,6 +146,9 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
144
146
|
description: string;
|
145
147
|
url: string;
|
146
148
|
icon: string;
|
149
|
+
banner: string | null;
|
150
|
+
opportunityBannerLight: string | null;
|
151
|
+
opportunityBannerDark: string | null;
|
147
152
|
};
|
148
153
|
422: {
|
149
154
|
type: "validation";
|
@@ -180,6 +185,9 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
180
185
|
description: string;
|
181
186
|
url: string;
|
182
187
|
icon: string;
|
188
|
+
banner: string | null;
|
189
|
+
opportunityBannerLight: string | null;
|
190
|
+
opportunityBannerDark: string | null;
|
183
191
|
};
|
184
192
|
422: {
|
185
193
|
type: "validation";
|
@@ -307,6 +315,9 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
307
315
|
description: string;
|
308
316
|
url: string;
|
309
317
|
icon: string;
|
318
|
+
banner: string | null;
|
319
|
+
opportunityBannerLight: string | null;
|
320
|
+
opportunityBannerDark: string | null;
|
310
321
|
};
|
311
322
|
422: {
|
312
323
|
type: "validation";
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { ResourceAPI } from "../../../modules/v4/prisma";
|
2
|
-
// ─── Schemas ─────────────────────────────────────────────────────────────────
|
3
2
|
/**
|
4
3
|
* Protocol
|
5
4
|
* @description Target description of rewards campaigns
|
@@ -12,7 +11,6 @@ export type Protocol = ResourceAPI<"Protocol", undefined, {
|
|
12
11
|
}>;
|
13
12
|
export declare const protocolIdList: readonly ["uniswap", "stabull", "ambient", "arthswap", "base-swap", "camelot", "crust", "fenix", "horiza", "izumi", "kim", "pancake-swap", "quickswap", "ramses", "retro", "stryke", "sushi-swap", "swapr", "thruster", "voltage", "zero", "koi", "supswap", "zk-swap", "thirdtrade", "swap-x", "velodrome", "aerodrome", "balancer", "curve", "cross_curve", "curveNPool", "aura", "akron", "beefy", "dragonswap", "poolside", "koi", "syncswap", "neptune", "zkSwapThreePool", "syncswap", "rfx", "ra", "maverick", "trader-joe", "velodrome", "hanji", "reserve", "pinto", "mimswap", "ichi", "ekubo", "hybra-pair", "arrakis", "snap", "levva", "radiant", "aave", "fraxlend", "ironclad", "euler", "gearbox", "compound", "sturdy", "frax", "ionic", "moonwell", "fluid", "silo", "morpho", "dolomite", "badger", "ajna", "layerbank", "ion", "venus", "woofi", "reactor_fusion", "eigenlayer", "vest", "zerolend", "lnd", "dlend", "hyperdrive", "gamma", "steer", "oku", "hourglass", "veda", "kyo", "sonex", "lendle", "tako-tako", "equalizer", "spectra", "beraborrow", "superlend", "avalon", "iguana", "xlend", "sake", "sonicmarket", "stability", "hypurrfi", "fraxlend", "teller", "lagoon", "angles", "satoshi", "equilibria", "penpie", "summerfinance", "enzyme", "toros", "vicuna", "bunni", "beratrax", "concrete", "cian", "elyx", "pendle", "splice", "sturdy", "yei", "termmax", "filament", "gammaswap", "maha", "tempest", "uranium", "hanji", "holdstation", "katana", "punchswap", "satlayer", "puffer", "mangrove", "oxium"];
|
14
13
|
export type ProtocolId = (typeof protocolIdList)[number];
|
15
|
-
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
16
14
|
export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
|
17
15
|
id: import("@sinclair/typebox").TString;
|
18
16
|
name: import("@sinclair/typebox").TString;
|
@@ -108,7 +106,6 @@ export declare const NotionWebhookAddProtocolDto: import("@sinclair/typebox").TO
|
|
108
106
|
}>;
|
109
107
|
}>;
|
110
108
|
}>;
|
111
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
112
109
|
export type GetProtocolsQueryModel = typeof GetProtocolsQueryDto.static;
|
113
110
|
export type GetProtocolModel = typeof GetProtocolParamsDto.static;
|
114
111
|
export type UpdateProtocolModel = typeof UpdateProtocolDto.static;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { CreateProtocolModel, GetProtocolsQueryModel, UpdateProtocolModel } from "./protocol.model";
|
2
|
-
// ─── Protocols Repository ────────────────────────────────────────────────────
|
3
2
|
export declare abstract class ProtocolRepository {
|
4
3
|
#private;
|
5
4
|
static create(data: CreateProtocolModel): Promise<{
|
@@ -9,6 +8,9 @@ export declare abstract class ProtocolRepository {
|
|
9
8
|
description: string;
|
10
9
|
url: string;
|
11
10
|
icon: string;
|
11
|
+
banner: string | null;
|
12
|
+
opportunityBannerLight: string | null;
|
13
|
+
opportunityBannerDark: string | null;
|
12
14
|
}>;
|
13
15
|
static upsert(data: CreateProtocolModel): Promise<{
|
14
16
|
id: string;
|
@@ -17,6 +19,9 @@ export declare abstract class ProtocolRepository {
|
|
17
19
|
description: string;
|
18
20
|
url: string;
|
19
21
|
icon: string;
|
22
|
+
banner: string | null;
|
23
|
+
opportunityBannerLight: string | null;
|
24
|
+
opportunityBannerDark: string | null;
|
20
25
|
}>;
|
21
26
|
static changeId(oldId: string, newId: string): Promise<void>;
|
22
27
|
static delete(id: string): Promise<void>;
|
@@ -27,6 +32,9 @@ export declare abstract class ProtocolRepository {
|
|
27
32
|
description: string;
|
28
33
|
url: string;
|
29
34
|
icon: string;
|
35
|
+
banner: string | null;
|
36
|
+
opportunityBannerLight: string | null;
|
37
|
+
opportunityBannerDark: string | null;
|
30
38
|
} | null>;
|
31
39
|
static findMany(query: GetProtocolsQueryModel): Promise<({
|
32
40
|
MainOpportunities: ({
|
@@ -82,6 +90,9 @@ export declare abstract class ProtocolRepository {
|
|
82
90
|
description: string;
|
83
91
|
url: string;
|
84
92
|
icon: string;
|
93
|
+
banner: string | null;
|
94
|
+
opportunityBannerLight: string | null;
|
95
|
+
opportunityBannerDark: string | null;
|
85
96
|
})[]>;
|
86
97
|
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
87
98
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
@@ -91,5 +102,8 @@ export declare abstract class ProtocolRepository {
|
|
91
102
|
description: string;
|
92
103
|
url: string;
|
93
104
|
icon: string;
|
105
|
+
banner: string | null;
|
106
|
+
opportunityBannerLight: string | null;
|
107
|
+
opportunityBannerDark: string | null;
|
94
108
|
}>;
|
95
109
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { CreateProtocolModel, GetProtocolsQueryModel, Protocol, ProtocolId, UpdateProtocolModel } from "./protocol.model";
|
2
|
-
// ─── Protocols Services ──────────────────────────────────────────────────────
|
3
2
|
export declare abstract class ProtocolService {
|
4
3
|
#private;
|
5
4
|
/**
|
@@ -15,6 +14,9 @@ export declare abstract class ProtocolService {
|
|
15
14
|
description: string;
|
16
15
|
url: string;
|
17
16
|
icon: string;
|
17
|
+
banner: string | null;
|
18
|
+
opportunityBannerLight: string | null;
|
19
|
+
opportunityBannerDark: string | null;
|
18
20
|
}>;
|
19
21
|
static upsert(data: CreateProtocolModel): Promise<{
|
20
22
|
id: string;
|
@@ -23,6 +25,9 @@ export declare abstract class ProtocolService {
|
|
23
25
|
description: string;
|
24
26
|
url: string;
|
25
27
|
icon: string;
|
28
|
+
banner: string | null;
|
29
|
+
opportunityBannerLight: string | null;
|
30
|
+
opportunityBannerDark: string | null;
|
26
31
|
}>;
|
27
32
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
28
33
|
id: string;
|
@@ -31,6 +36,9 @@ export declare abstract class ProtocolService {
|
|
31
36
|
description: string;
|
32
37
|
url: string;
|
33
38
|
icon: string;
|
39
|
+
banner: string | null;
|
40
|
+
opportunityBannerLight: string | null;
|
41
|
+
opportunityBannerDark: string | null;
|
34
42
|
}>;
|
35
43
|
static changeId(oldId: string, newId: string): Promise<void>;
|
36
44
|
static delete(id: string): Promise<void>;
|