@merkl/api 1.5.16 → 1.5.18
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.js.map +1 -1
- package/dist/src/cache/redis.js.map +1 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eden/index.d.ts +7893 -6946
- package/dist/src/engine/deprecated/dynamicData/implementations/Badger.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Compound.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Silo.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Vest.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.js.map +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.js.map +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.js.map +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.js.map +1 -1
- package/dist/src/engine/implementations/Ambient/tvl.js.map +1 -1
- package/dist/src/engine/implementations/EigenLayer/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Ekubo/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Encompassing/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/detect.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/ipor/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/tvl.js.map +1 -1
- package/dist/src/engine/implementations/JsonAirdrop/metadata.js.map +1 -1
- package/dist/src/engine/implementations/MultiLog/metadata.js.map +1 -1
- package/dist/src/engine/implementations/MultiLog/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Radiant/metadata.js.map +1 -1
- package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.js.map +1 -1
- package/dist/src/engine/implementations/StakingVaults/Equilibria/tvl.js.map +1 -1
- package/dist/src/engine/implementations/StakingVaults/SummerFinance/tvl.js.map +1 -1
- package/dist/src/engine/implementations/SymbioticVault/metadata.js.map +1 -1
- package/dist/src/engine/implementations/TermFinance/metadata.js.map +1 -1
- package/dist/src/engine/implementations/clamm/tvl.abstract.js.map +1 -1
- package/dist/src/engine/implementations/clamm/utils.js.map +1 -1
- package/dist/src/engine/implementations/deprecated_clamm/metadata.js.map +1 -1
- package/dist/src/engine/implementations/morphoCollateral/tvl.js.map +1 -1
- package/dist/src/engine/implementations/morphoSingleToken/tvl.js.map +1 -1
- package/dist/src/engine/implementations/uniswapv4/tvl.js.map +1 -1
- package/dist/src/index.d.ts +1188 -241
- package/dist/src/index.js.map +1 -1
- package/dist/src/jobs/delete-rewards.js.map +1 -1
- package/dist/src/jobs/pendings.js.map +1 -1
- package/dist/src/jobs/prices.js.map +1 -1
- package/dist/src/jobs/reward-breakdowns.js.map +1 -1
- package/dist/src/jobs/rewards.js.map +1 -1
- package/dist/src/jobs/update-analytics.js.map +1 -1
- package/dist/src/jobs/update-dynamic-data.js.map +1 -1
- package/dist/src/jobs/update-rpc-calls-cache.js.map +1 -1
- package/dist/src/jobs/update-v3-caches.js.map +1 -1
- package/dist/src/libs/computeFee.d.ts +759 -759
- package/dist/src/libs/deprecated-merklv3/index.js.map +1 -1
- package/dist/src/libs/getTokensList.js.map +1 -1
- package/dist/src/libs/positions/clamm/index.js.map +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js.map +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js.map +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js.map +1 -1
- package/dist/src/libs/tokens/balances.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +132 -25
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +393 -75
- package/dist/src/modules/v4/campaign/campaign.test.controller.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +3 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.js.map +1 -1
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.js.map +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.d.ts +8 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
- package/dist/src/modules/v4/carousel/carousel.service.js.map +1 -1
- package/dist/src/modules/v4/clamm/clamm.service.js.map +1 -1
- package/dist/src/modules/v4/coingecko/coingecko.service.js.map +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.formatter.js.map +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.js.map +1 -1
- package/dist/src/modules/v4/config/config.controller.d.ts +140 -42
- package/dist/src/modules/v4/config/config.controller.js.map +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
- package/dist/src/modules/v4/github/github.repository.js.map +1 -1
- package/dist/src/modules/v4/github/github.service.js.map +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js.map +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +262 -50
- package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.converter.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +143 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +393 -75
- package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.controller.d.ts +393 -75
- package/dist/src/modules/v4/payload/payload.model.d.ts +0 -62
- package/dist/src/modules/v4/payload/payload.model.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.service.d.ts +524 -100
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/OnChainCallService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/coinGeckoService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/defillamaService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/dexScreenerService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/erc4626Service.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/indexCoopService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceSource.service.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +0 -62
- package/dist/src/modules/v4/programPayload/programPayload.model.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +2 -3
- package/dist/src/modules/v4/programPayload/programPayload.service.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.service.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +1188 -241
- package/dist/src/modules/v4/token/token.service.js.map +1 -1
- package/dist/src/modules/v4/tvl/tvl.service.js.map +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.js.map +1 -1
- package/dist/src/modules/v4/user/user.service.js.map +1 -1
- package/dist/src/plugins/errorHandler.js.map +1 -1
- package/dist/src/routes/v3/lostyield.js.map +1 -1
- package/dist/src/routes/v3/overview.js.map +1 -1
- package/dist/src/routes/v3/poolInfo.js.map +1 -1
- package/dist/src/routes/v3/twt/participants.js.map +1 -1
- package/dist/src/scripts/fill-unknown-tokens.js.map +1 -1
- package/dist/src/scripts/reparse-opportunities.js.map +1 -1
- package/dist/src/types/logging.d.ts +111 -0
- package/dist/src/types/logging.js.map +1 -0
- package/dist/src/utils/execute.js.map +1 -1
- package/dist/src/utils/lastBlockBefore.js.map +1 -1
- package/dist/src/utils/parseDistributionType.d.ts +255 -255
- package/dist/src/utils/pricer.js.map +1 -1
- package/dist/src/utils/prices/priceService.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/modules/v4/airflow/airflow.service.d.ts +0 -3
- package/dist/src/modules/v4/airflow/airflow.service.js.map +0 -1
- package/dist/src/utils/logger.d.ts +0 -309
- package/dist/src/utils/logger.js.map +0 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -3732,40 +3732,134 @@ declare const app: Elysia<"", {
|
|
|
3732
3732
|
authorization: string;
|
|
3733
3733
|
};
|
|
3734
3734
|
response: {
|
|
3735
|
-
200: {
|
|
3736
|
-
id: string;
|
|
3735
|
+
200: ({
|
|
3737
3736
|
chainId: number;
|
|
3738
3737
|
type: string;
|
|
3739
3738
|
identifier: string;
|
|
3740
|
-
name
|
|
3741
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
3742
|
-
action:
|
|
3743
|
-
|
|
3739
|
+
name?: string | undefined;
|
|
3740
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
3741
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
3742
|
+
description?: string | undefined;
|
|
3743
|
+
howToSteps?: string[] | undefined;
|
|
3744
|
+
tokens: {
|
|
3744
3745
|
address: string;
|
|
3745
3746
|
chainId: number;
|
|
3746
|
-
|
|
3747
|
+
}[];
|
|
3748
|
+
protocols?: string[] | undefined;
|
|
3749
|
+
mainProtocol?: string | undefined;
|
|
3750
|
+
depositUrl?: string | undefined;
|
|
3751
|
+
explorerAddress?: string | undefined;
|
|
3752
|
+
tags?: string[] | undefined;
|
|
3753
|
+
} & {
|
|
3754
|
+
id: string;
|
|
3755
|
+
}) | ({
|
|
3756
|
+
ActivePrograms: {
|
|
3747
3757
|
icon: string;
|
|
3748
3758
|
id: string;
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3759
|
+
name: string;
|
|
3760
|
+
slug: string | null;
|
|
3761
|
+
}[];
|
|
3762
|
+
AprRecords: ({
|
|
3763
|
+
AprBreakdown: {
|
|
3764
|
+
identifier: string;
|
|
3765
|
+
timestamp: bigint;
|
|
3766
|
+
type: import("@package/databases").AprType;
|
|
3767
|
+
value: number;
|
|
3768
|
+
}[];
|
|
3755
3769
|
} & {
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
tokenWrapperAddress?: string | undefined;
|
|
3770
|
+
id: string;
|
|
3771
|
+
timestamp: bigint;
|
|
3772
|
+
cumulated: number;
|
|
3773
|
+
opportunityId: string;
|
|
3761
3774
|
})[];
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3775
|
+
Campaigns: {
|
|
3776
|
+
id: string;
|
|
3777
|
+
computeChainId: number;
|
|
3778
|
+
distributionChainId: number;
|
|
3779
|
+
campaignId: string;
|
|
3780
|
+
type: string;
|
|
3781
|
+
distributionType: import("@package/databases").DistributionType;
|
|
3782
|
+
subType: number | null;
|
|
3783
|
+
rewardTokenId: string;
|
|
3784
|
+
amount: string;
|
|
3785
|
+
opportunityId: string;
|
|
3786
|
+
startTimestamp: bigint;
|
|
3787
|
+
endTimestamp: bigint;
|
|
3788
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
3789
|
+
description: string | null;
|
|
3790
|
+
dailyRewards: number;
|
|
3791
|
+
apr: number;
|
|
3792
|
+
creatorAddress: string;
|
|
3793
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
3794
|
+
createdAt: Date;
|
|
3795
|
+
rootCampaignId: string | null;
|
|
3796
|
+
parentCampaignId: string | null;
|
|
3797
|
+
}[];
|
|
3798
|
+
Chain: {
|
|
3799
|
+
id: number;
|
|
3800
|
+
name: string;
|
|
3801
|
+
icon: string;
|
|
3802
|
+
liveCampaigns: number;
|
|
3803
|
+
endOfDisputePeriod: number;
|
|
3804
|
+
};
|
|
3805
|
+
DailyRewardsRecords: ({
|
|
3806
|
+
DailyRewardsBreakdown: ({
|
|
3807
|
+
Campaign: {
|
|
3808
|
+
CampaignStatus: {
|
|
3809
|
+
campaignId: string;
|
|
3810
|
+
computedUntil: bigint;
|
|
3811
|
+
processingStarted: bigint;
|
|
3812
|
+
status: import("@package/databases").RunStatus;
|
|
3813
|
+
error: string;
|
|
3814
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
3815
|
+
}[];
|
|
3816
|
+
RewardToken: {
|
|
3817
|
+
id: string;
|
|
3818
|
+
name: string | null;
|
|
3819
|
+
chainId: number;
|
|
3820
|
+
address: string;
|
|
3821
|
+
decimals: number;
|
|
3822
|
+
symbol: string;
|
|
3823
|
+
displaySymbol: string;
|
|
3824
|
+
icon: string;
|
|
3825
|
+
verified: boolean;
|
|
3826
|
+
isTest: boolean;
|
|
3827
|
+
type: import("@package/databases").TokenType;
|
|
3828
|
+
isNative: boolean;
|
|
3829
|
+
price: number | null;
|
|
3830
|
+
updatedAt: number | null;
|
|
3831
|
+
priceSource: string | null;
|
|
3832
|
+
};
|
|
3833
|
+
amount: string;
|
|
3834
|
+
campaignId: string;
|
|
3835
|
+
distributionType: import("@package/databases").DistributionType;
|
|
3836
|
+
endTimestamp: bigint;
|
|
3837
|
+
startTimestamp: bigint;
|
|
3838
|
+
};
|
|
3839
|
+
} & {
|
|
3840
|
+
id: string;
|
|
3841
|
+
value: number;
|
|
3842
|
+
timestamp: bigint;
|
|
3843
|
+
campaignId: string;
|
|
3844
|
+
dailyRewardsRecordId: string;
|
|
3845
|
+
})[];
|
|
3846
|
+
} & {
|
|
3847
|
+
id: string;
|
|
3848
|
+
timestamp: bigint;
|
|
3849
|
+
total: number;
|
|
3850
|
+
opportunityId: string;
|
|
3851
|
+
})[];
|
|
3852
|
+
MainProtocol: {
|
|
3853
|
+
id: string;
|
|
3854
|
+
tags: string[];
|
|
3855
|
+
name: string;
|
|
3856
|
+
description: string;
|
|
3857
|
+
url: string;
|
|
3858
|
+
icon: string;
|
|
3859
|
+
banner: string | null;
|
|
3860
|
+
opportunityBannerLight: string | null;
|
|
3861
|
+
opportunityBannerDark: string | null;
|
|
3862
|
+
} | null;
|
|
3769
3863
|
Protocols: {
|
|
3770
3864
|
id: string;
|
|
3771
3865
|
tags: string[];
|
|
@@ -3794,6 +3888,18 @@ declare const app: Elysia<"", {
|
|
|
3794
3888
|
updatedAt: number | null;
|
|
3795
3889
|
priceSource: string | null;
|
|
3796
3890
|
}[];
|
|
3891
|
+
TvlRecords: ({
|
|
3892
|
+
TvlBreakdown: {
|
|
3893
|
+
identifier: string;
|
|
3894
|
+
type: import("@package/databases").TvlType;
|
|
3895
|
+
value: number;
|
|
3896
|
+
}[];
|
|
3897
|
+
} & {
|
|
3898
|
+
id: string;
|
|
3899
|
+
timestamp: bigint;
|
|
3900
|
+
total: number;
|
|
3901
|
+
opportunityId: string;
|
|
3902
|
+
})[];
|
|
3797
3903
|
} & {
|
|
3798
3904
|
id: string;
|
|
3799
3905
|
chainId: number;
|
|
@@ -3845,40 +3951,134 @@ declare const app: Elysia<"", {
|
|
|
3845
3951
|
authorization: string;
|
|
3846
3952
|
};
|
|
3847
3953
|
response: {
|
|
3848
|
-
200: {
|
|
3849
|
-
id: string;
|
|
3954
|
+
200: ({
|
|
3850
3955
|
chainId: number;
|
|
3851
3956
|
type: string;
|
|
3852
3957
|
identifier: string;
|
|
3853
|
-
name
|
|
3854
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
3855
|
-
action:
|
|
3856
|
-
|
|
3958
|
+
name?: string | undefined;
|
|
3959
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
3960
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
3961
|
+
description?: string | undefined;
|
|
3962
|
+
howToSteps?: string[] | undefined;
|
|
3963
|
+
tokens: {
|
|
3857
3964
|
address: string;
|
|
3858
3965
|
chainId: number;
|
|
3859
|
-
|
|
3966
|
+
}[];
|
|
3967
|
+
protocols?: string[] | undefined;
|
|
3968
|
+
mainProtocol?: string | undefined;
|
|
3969
|
+
depositUrl?: string | undefined;
|
|
3970
|
+
explorerAddress?: string | undefined;
|
|
3971
|
+
tags?: string[] | undefined;
|
|
3972
|
+
} & {
|
|
3973
|
+
id: string;
|
|
3974
|
+
}) | ({
|
|
3975
|
+
ActivePrograms: {
|
|
3860
3976
|
icon: string;
|
|
3861
3977
|
id: string;
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3978
|
+
name: string;
|
|
3979
|
+
slug: string | null;
|
|
3980
|
+
}[];
|
|
3981
|
+
AprRecords: ({
|
|
3982
|
+
AprBreakdown: {
|
|
3983
|
+
identifier: string;
|
|
3984
|
+
timestamp: bigint;
|
|
3985
|
+
type: import("@package/databases").AprType;
|
|
3986
|
+
value: number;
|
|
3987
|
+
}[];
|
|
3868
3988
|
} & {
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
tokenWrapperAddress?: string | undefined;
|
|
3989
|
+
id: string;
|
|
3990
|
+
timestamp: bigint;
|
|
3991
|
+
cumulated: number;
|
|
3992
|
+
opportunityId: string;
|
|
3874
3993
|
})[];
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3994
|
+
Campaigns: {
|
|
3995
|
+
id: string;
|
|
3996
|
+
computeChainId: number;
|
|
3997
|
+
distributionChainId: number;
|
|
3998
|
+
campaignId: string;
|
|
3999
|
+
type: string;
|
|
4000
|
+
distributionType: import("@package/databases").DistributionType;
|
|
4001
|
+
subType: number | null;
|
|
4002
|
+
rewardTokenId: string;
|
|
4003
|
+
amount: string;
|
|
4004
|
+
opportunityId: string;
|
|
4005
|
+
startTimestamp: bigint;
|
|
4006
|
+
endTimestamp: bigint;
|
|
4007
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
4008
|
+
description: string | null;
|
|
4009
|
+
dailyRewards: number;
|
|
4010
|
+
apr: number;
|
|
4011
|
+
creatorAddress: string;
|
|
4012
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
4013
|
+
createdAt: Date;
|
|
4014
|
+
rootCampaignId: string | null;
|
|
4015
|
+
parentCampaignId: string | null;
|
|
4016
|
+
}[];
|
|
4017
|
+
Chain: {
|
|
4018
|
+
id: number;
|
|
4019
|
+
name: string;
|
|
4020
|
+
icon: string;
|
|
4021
|
+
liveCampaigns: number;
|
|
4022
|
+
endOfDisputePeriod: number;
|
|
4023
|
+
};
|
|
4024
|
+
DailyRewardsRecords: ({
|
|
4025
|
+
DailyRewardsBreakdown: ({
|
|
4026
|
+
Campaign: {
|
|
4027
|
+
CampaignStatus: {
|
|
4028
|
+
campaignId: string;
|
|
4029
|
+
computedUntil: bigint;
|
|
4030
|
+
processingStarted: bigint;
|
|
4031
|
+
status: import("@package/databases").RunStatus;
|
|
4032
|
+
error: string;
|
|
4033
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
4034
|
+
}[];
|
|
4035
|
+
RewardToken: {
|
|
4036
|
+
id: string;
|
|
4037
|
+
name: string | null;
|
|
4038
|
+
chainId: number;
|
|
4039
|
+
address: string;
|
|
4040
|
+
decimals: number;
|
|
4041
|
+
symbol: string;
|
|
4042
|
+
displaySymbol: string;
|
|
4043
|
+
icon: string;
|
|
4044
|
+
verified: boolean;
|
|
4045
|
+
isTest: boolean;
|
|
4046
|
+
type: import("@package/databases").TokenType;
|
|
4047
|
+
isNative: boolean;
|
|
4048
|
+
price: number | null;
|
|
4049
|
+
updatedAt: number | null;
|
|
4050
|
+
priceSource: string | null;
|
|
4051
|
+
};
|
|
4052
|
+
amount: string;
|
|
4053
|
+
campaignId: string;
|
|
4054
|
+
distributionType: import("@package/databases").DistributionType;
|
|
4055
|
+
endTimestamp: bigint;
|
|
4056
|
+
startTimestamp: bigint;
|
|
4057
|
+
};
|
|
4058
|
+
} & {
|
|
4059
|
+
id: string;
|
|
4060
|
+
value: number;
|
|
4061
|
+
timestamp: bigint;
|
|
4062
|
+
campaignId: string;
|
|
4063
|
+
dailyRewardsRecordId: string;
|
|
4064
|
+
})[];
|
|
4065
|
+
} & {
|
|
4066
|
+
id: string;
|
|
4067
|
+
timestamp: bigint;
|
|
4068
|
+
total: number;
|
|
4069
|
+
opportunityId: string;
|
|
4070
|
+
})[];
|
|
4071
|
+
MainProtocol: {
|
|
4072
|
+
id: string;
|
|
4073
|
+
tags: string[];
|
|
4074
|
+
name: string;
|
|
4075
|
+
description: string;
|
|
4076
|
+
url: string;
|
|
4077
|
+
icon: string;
|
|
4078
|
+
banner: string | null;
|
|
4079
|
+
opportunityBannerLight: string | null;
|
|
4080
|
+
opportunityBannerDark: string | null;
|
|
4081
|
+
} | null;
|
|
3882
4082
|
Protocols: {
|
|
3883
4083
|
id: string;
|
|
3884
4084
|
tags: string[];
|
|
@@ -3907,6 +4107,18 @@ declare const app: Elysia<"", {
|
|
|
3907
4107
|
updatedAt: number | null;
|
|
3908
4108
|
priceSource: string | null;
|
|
3909
4109
|
}[];
|
|
4110
|
+
TvlRecords: ({
|
|
4111
|
+
TvlBreakdown: {
|
|
4112
|
+
identifier: string;
|
|
4113
|
+
type: import("@package/databases").TvlType;
|
|
4114
|
+
value: number;
|
|
4115
|
+
}[];
|
|
4116
|
+
} & {
|
|
4117
|
+
id: string;
|
|
4118
|
+
timestamp: bigint;
|
|
4119
|
+
total: number;
|
|
4120
|
+
opportunityId: string;
|
|
4121
|
+
})[];
|
|
3910
4122
|
} & {
|
|
3911
4123
|
id: string;
|
|
3912
4124
|
chainId: number;
|
|
@@ -3957,40 +4169,134 @@ declare const app: Elysia<"", {
|
|
|
3957
4169
|
authorization: string;
|
|
3958
4170
|
};
|
|
3959
4171
|
response: {
|
|
3960
|
-
200: {
|
|
3961
|
-
id: string;
|
|
4172
|
+
200: ({
|
|
3962
4173
|
chainId: number;
|
|
3963
4174
|
type: string;
|
|
3964
4175
|
identifier: string;
|
|
3965
|
-
name
|
|
3966
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
3967
|
-
action:
|
|
3968
|
-
|
|
4176
|
+
name?: string | undefined;
|
|
4177
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
4178
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
4179
|
+
description?: string | undefined;
|
|
4180
|
+
howToSteps?: string[] | undefined;
|
|
4181
|
+
tokens: {
|
|
3969
4182
|
address: string;
|
|
3970
4183
|
chainId: number;
|
|
3971
|
-
|
|
4184
|
+
}[];
|
|
4185
|
+
protocols?: string[] | undefined;
|
|
4186
|
+
mainProtocol?: string | undefined;
|
|
4187
|
+
depositUrl?: string | undefined;
|
|
4188
|
+
explorerAddress?: string | undefined;
|
|
4189
|
+
tags?: string[] | undefined;
|
|
4190
|
+
} & {
|
|
4191
|
+
id: string;
|
|
4192
|
+
}) | ({
|
|
4193
|
+
ActivePrograms: {
|
|
3972
4194
|
icon: string;
|
|
3973
4195
|
id: string;
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
4196
|
+
name: string;
|
|
4197
|
+
slug: string | null;
|
|
4198
|
+
}[];
|
|
4199
|
+
AprRecords: ({
|
|
4200
|
+
AprBreakdown: {
|
|
4201
|
+
identifier: string;
|
|
4202
|
+
timestamp: bigint;
|
|
4203
|
+
type: import("@package/databases").AprType;
|
|
4204
|
+
value: number;
|
|
4205
|
+
}[];
|
|
3980
4206
|
} & {
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
tokenWrapperAddress?: string | undefined;
|
|
4207
|
+
id: string;
|
|
4208
|
+
timestamp: bigint;
|
|
4209
|
+
cumulated: number;
|
|
4210
|
+
opportunityId: string;
|
|
3986
4211
|
})[];
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
4212
|
+
Campaigns: {
|
|
4213
|
+
id: string;
|
|
4214
|
+
computeChainId: number;
|
|
4215
|
+
distributionChainId: number;
|
|
4216
|
+
campaignId: string;
|
|
4217
|
+
type: string;
|
|
4218
|
+
distributionType: import("@package/databases").DistributionType;
|
|
4219
|
+
subType: number | null;
|
|
4220
|
+
rewardTokenId: string;
|
|
4221
|
+
amount: string;
|
|
4222
|
+
opportunityId: string;
|
|
4223
|
+
startTimestamp: bigint;
|
|
4224
|
+
endTimestamp: bigint;
|
|
4225
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
4226
|
+
description: string | null;
|
|
4227
|
+
dailyRewards: number;
|
|
4228
|
+
apr: number;
|
|
4229
|
+
creatorAddress: string;
|
|
4230
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
4231
|
+
createdAt: Date;
|
|
4232
|
+
rootCampaignId: string | null;
|
|
4233
|
+
parentCampaignId: string | null;
|
|
4234
|
+
}[];
|
|
4235
|
+
Chain: {
|
|
4236
|
+
id: number;
|
|
4237
|
+
name: string;
|
|
4238
|
+
icon: string;
|
|
4239
|
+
liveCampaigns: number;
|
|
4240
|
+
endOfDisputePeriod: number;
|
|
4241
|
+
};
|
|
4242
|
+
DailyRewardsRecords: ({
|
|
4243
|
+
DailyRewardsBreakdown: ({
|
|
4244
|
+
Campaign: {
|
|
4245
|
+
CampaignStatus: {
|
|
4246
|
+
campaignId: string;
|
|
4247
|
+
computedUntil: bigint;
|
|
4248
|
+
processingStarted: bigint;
|
|
4249
|
+
status: import("@package/databases").RunStatus;
|
|
4250
|
+
error: string;
|
|
4251
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
4252
|
+
}[];
|
|
4253
|
+
RewardToken: {
|
|
4254
|
+
id: string;
|
|
4255
|
+
name: string | null;
|
|
4256
|
+
chainId: number;
|
|
4257
|
+
address: string;
|
|
4258
|
+
decimals: number;
|
|
4259
|
+
symbol: string;
|
|
4260
|
+
displaySymbol: string;
|
|
4261
|
+
icon: string;
|
|
4262
|
+
verified: boolean;
|
|
4263
|
+
isTest: boolean;
|
|
4264
|
+
type: import("@package/databases").TokenType;
|
|
4265
|
+
isNative: boolean;
|
|
4266
|
+
price: number | null;
|
|
4267
|
+
updatedAt: number | null;
|
|
4268
|
+
priceSource: string | null;
|
|
4269
|
+
};
|
|
4270
|
+
amount: string;
|
|
4271
|
+
campaignId: string;
|
|
4272
|
+
distributionType: import("@package/databases").DistributionType;
|
|
4273
|
+
endTimestamp: bigint;
|
|
4274
|
+
startTimestamp: bigint;
|
|
4275
|
+
};
|
|
4276
|
+
} & {
|
|
4277
|
+
id: string;
|
|
4278
|
+
value: number;
|
|
4279
|
+
timestamp: bigint;
|
|
4280
|
+
campaignId: string;
|
|
4281
|
+
dailyRewardsRecordId: string;
|
|
4282
|
+
})[];
|
|
4283
|
+
} & {
|
|
4284
|
+
id: string;
|
|
4285
|
+
timestamp: bigint;
|
|
4286
|
+
total: number;
|
|
4287
|
+
opportunityId: string;
|
|
4288
|
+
})[];
|
|
4289
|
+
MainProtocol: {
|
|
4290
|
+
id: string;
|
|
4291
|
+
tags: string[];
|
|
4292
|
+
name: string;
|
|
4293
|
+
description: string;
|
|
4294
|
+
url: string;
|
|
4295
|
+
icon: string;
|
|
4296
|
+
banner: string | null;
|
|
4297
|
+
opportunityBannerLight: string | null;
|
|
4298
|
+
opportunityBannerDark: string | null;
|
|
4299
|
+
} | null;
|
|
3994
4300
|
Protocols: {
|
|
3995
4301
|
id: string;
|
|
3996
4302
|
tags: string[];
|
|
@@ -4019,6 +4325,18 @@ declare const app: Elysia<"", {
|
|
|
4019
4325
|
updatedAt: number | null;
|
|
4020
4326
|
priceSource: string | null;
|
|
4021
4327
|
}[];
|
|
4328
|
+
TvlRecords: ({
|
|
4329
|
+
TvlBreakdown: {
|
|
4330
|
+
identifier: string;
|
|
4331
|
+
type: import("@package/databases").TvlType;
|
|
4332
|
+
value: number;
|
|
4333
|
+
}[];
|
|
4334
|
+
} & {
|
|
4335
|
+
id: string;
|
|
4336
|
+
timestamp: bigint;
|
|
4337
|
+
total: number;
|
|
4338
|
+
opportunityId: string;
|
|
4339
|
+
})[];
|
|
4022
4340
|
} & {
|
|
4023
4341
|
id: string;
|
|
4024
4342
|
chainId: number;
|
|
@@ -5931,40 +6249,134 @@ declare const app: Elysia<"", {
|
|
|
5931
6249
|
query: unknown;
|
|
5932
6250
|
headers: unknown;
|
|
5933
6251
|
response: {
|
|
5934
|
-
200: {
|
|
5935
|
-
id: string;
|
|
6252
|
+
200: ({
|
|
5936
6253
|
chainId: number;
|
|
5937
6254
|
type: string;
|
|
5938
6255
|
identifier: string;
|
|
5939
|
-
name
|
|
5940
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
5941
|
-
action:
|
|
5942
|
-
|
|
6256
|
+
name?: string | undefined;
|
|
6257
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
6258
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
6259
|
+
description?: string | undefined;
|
|
6260
|
+
howToSteps?: string[] | undefined;
|
|
6261
|
+
tokens: {
|
|
5943
6262
|
address: string;
|
|
5944
6263
|
chainId: number;
|
|
5945
|
-
|
|
6264
|
+
}[];
|
|
6265
|
+
protocols?: string[] | undefined;
|
|
6266
|
+
mainProtocol?: string | undefined;
|
|
6267
|
+
depositUrl?: string | undefined;
|
|
6268
|
+
explorerAddress?: string | undefined;
|
|
6269
|
+
tags?: string[] | undefined;
|
|
6270
|
+
} & {
|
|
6271
|
+
id: string;
|
|
6272
|
+
}) | ({
|
|
6273
|
+
ActivePrograms: {
|
|
5946
6274
|
icon: string;
|
|
5947
6275
|
id: string;
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
6276
|
+
name: string;
|
|
6277
|
+
slug: string | null;
|
|
6278
|
+
}[];
|
|
6279
|
+
AprRecords: ({
|
|
6280
|
+
AprBreakdown: {
|
|
6281
|
+
identifier: string;
|
|
6282
|
+
timestamp: bigint;
|
|
6283
|
+
type: import("@package/databases").AprType;
|
|
6284
|
+
value: number;
|
|
6285
|
+
}[];
|
|
6286
|
+
} & {
|
|
6287
|
+
id: string;
|
|
6288
|
+
timestamp: bigint;
|
|
6289
|
+
cumulated: number;
|
|
6290
|
+
opportunityId: string;
|
|
6291
|
+
})[];
|
|
6292
|
+
Campaigns: {
|
|
6293
|
+
id: string;
|
|
6294
|
+
computeChainId: number;
|
|
6295
|
+
distributionChainId: number;
|
|
6296
|
+
campaignId: string;
|
|
6297
|
+
type: string;
|
|
6298
|
+
distributionType: import("@package/databases").DistributionType;
|
|
6299
|
+
subType: number | null;
|
|
6300
|
+
rewardTokenId: string;
|
|
6301
|
+
amount: string;
|
|
6302
|
+
opportunityId: string;
|
|
6303
|
+
startTimestamp: bigint;
|
|
6304
|
+
endTimestamp: bigint;
|
|
6305
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
6306
|
+
description: string | null;
|
|
6307
|
+
dailyRewards: number;
|
|
6308
|
+
apr: number;
|
|
6309
|
+
creatorAddress: string;
|
|
6310
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
6311
|
+
createdAt: Date;
|
|
6312
|
+
rootCampaignId: string | null;
|
|
6313
|
+
parentCampaignId: string | null;
|
|
6314
|
+
}[];
|
|
6315
|
+
Chain: {
|
|
6316
|
+
id: number;
|
|
6317
|
+
name: string;
|
|
6318
|
+
icon: string;
|
|
6319
|
+
liveCampaigns: number;
|
|
6320
|
+
endOfDisputePeriod: number;
|
|
6321
|
+
};
|
|
6322
|
+
DailyRewardsRecords: ({
|
|
6323
|
+
DailyRewardsBreakdown: ({
|
|
6324
|
+
Campaign: {
|
|
6325
|
+
CampaignStatus: {
|
|
6326
|
+
campaignId: string;
|
|
6327
|
+
computedUntil: bigint;
|
|
6328
|
+
processingStarted: bigint;
|
|
6329
|
+
status: import("@package/databases").RunStatus;
|
|
6330
|
+
error: string;
|
|
6331
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
6332
|
+
}[];
|
|
6333
|
+
RewardToken: {
|
|
6334
|
+
id: string;
|
|
6335
|
+
name: string | null;
|
|
6336
|
+
chainId: number;
|
|
6337
|
+
address: string;
|
|
6338
|
+
decimals: number;
|
|
6339
|
+
symbol: string;
|
|
6340
|
+
displaySymbol: string;
|
|
6341
|
+
icon: string;
|
|
6342
|
+
verified: boolean;
|
|
6343
|
+
isTest: boolean;
|
|
6344
|
+
type: import("@package/databases").TokenType;
|
|
6345
|
+
isNative: boolean;
|
|
6346
|
+
price: number | null;
|
|
6347
|
+
updatedAt: number | null;
|
|
6348
|
+
priceSource: string | null;
|
|
6349
|
+
};
|
|
6350
|
+
amount: string;
|
|
6351
|
+
campaignId: string;
|
|
6352
|
+
distributionType: import("@package/databases").DistributionType;
|
|
6353
|
+
endTimestamp: bigint;
|
|
6354
|
+
startTimestamp: bigint;
|
|
6355
|
+
};
|
|
6356
|
+
} & {
|
|
6357
|
+
id: string;
|
|
6358
|
+
value: number;
|
|
6359
|
+
timestamp: bigint;
|
|
6360
|
+
campaignId: string;
|
|
6361
|
+
dailyRewardsRecordId: string;
|
|
6362
|
+
})[];
|
|
5954
6363
|
} & {
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
tokenWrapperAddress?: string | undefined;
|
|
6364
|
+
id: string;
|
|
6365
|
+
timestamp: bigint;
|
|
6366
|
+
total: number;
|
|
6367
|
+
opportunityId: string;
|
|
5960
6368
|
})[];
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
6369
|
+
MainProtocol: {
|
|
6370
|
+
id: string;
|
|
6371
|
+
tags: string[];
|
|
6372
|
+
name: string;
|
|
6373
|
+
description: string;
|
|
6374
|
+
url: string;
|
|
6375
|
+
icon: string;
|
|
6376
|
+
banner: string | null;
|
|
6377
|
+
opportunityBannerLight: string | null;
|
|
6378
|
+
opportunityBannerDark: string | null;
|
|
6379
|
+
} | null;
|
|
5968
6380
|
Protocols: {
|
|
5969
6381
|
id: string;
|
|
5970
6382
|
tags: string[];
|
|
@@ -5993,6 +6405,18 @@ declare const app: Elysia<"", {
|
|
|
5993
6405
|
updatedAt: number | null;
|
|
5994
6406
|
priceSource: string | null;
|
|
5995
6407
|
}[];
|
|
6408
|
+
TvlRecords: ({
|
|
6409
|
+
TvlBreakdown: {
|
|
6410
|
+
identifier: string;
|
|
6411
|
+
type: import("@package/databases").TvlType;
|
|
6412
|
+
value: number;
|
|
6413
|
+
}[];
|
|
6414
|
+
} & {
|
|
6415
|
+
id: string;
|
|
6416
|
+
timestamp: bigint;
|
|
6417
|
+
total: number;
|
|
6418
|
+
opportunityId: string;
|
|
6419
|
+
})[];
|
|
5996
6420
|
} & {
|
|
5997
6421
|
id: string;
|
|
5998
6422
|
chainId: number;
|
|
@@ -6055,22 +6479,15 @@ declare const app: Elysia<"", {
|
|
|
6055
6479
|
query: unknown;
|
|
6056
6480
|
headers: unknown;
|
|
6057
6481
|
response: {
|
|
6058
|
-
200:
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
startTimestamp: number;
|
|
6068
|
-
duration: number;
|
|
6069
|
-
campaignData: string;
|
|
6070
|
-
};
|
|
6071
|
-
}[];
|
|
6072
|
-
batchPayload: string;
|
|
6073
|
-
safePayload: import("./modules/v4/campaignBatch/campaignBatch.model").SafePayload;
|
|
6482
|
+
200: any;
|
|
6483
|
+
422: {
|
|
6484
|
+
type: "validation";
|
|
6485
|
+
on: string;
|
|
6486
|
+
summary?: string | undefined;
|
|
6487
|
+
message?: string | undefined;
|
|
6488
|
+
found?: unknown;
|
|
6489
|
+
property?: string | undefined;
|
|
6490
|
+
expected?: string | undefined;
|
|
6074
6491
|
};
|
|
6075
6492
|
};
|
|
6076
6493
|
};
|
|
@@ -9022,40 +9439,134 @@ declare const app: Elysia<"", {
|
|
|
9022
9439
|
authorization: string;
|
|
9023
9440
|
};
|
|
9024
9441
|
response: {
|
|
9025
|
-
200: {
|
|
9026
|
-
id: string;
|
|
9442
|
+
200: ({
|
|
9027
9443
|
chainId: number;
|
|
9028
9444
|
type: string;
|
|
9029
9445
|
identifier: string;
|
|
9030
|
-
name
|
|
9031
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
9032
|
-
action:
|
|
9033
|
-
|
|
9446
|
+
name?: string | undefined;
|
|
9447
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
9448
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
9449
|
+
description?: string | undefined;
|
|
9450
|
+
howToSteps?: string[] | undefined;
|
|
9451
|
+
tokens: {
|
|
9034
9452
|
address: string;
|
|
9035
9453
|
chainId: number;
|
|
9036
|
-
|
|
9454
|
+
}[];
|
|
9455
|
+
protocols?: string[] | undefined;
|
|
9456
|
+
mainProtocol?: string | undefined;
|
|
9457
|
+
depositUrl?: string | undefined;
|
|
9458
|
+
explorerAddress?: string | undefined;
|
|
9459
|
+
tags?: string[] | undefined;
|
|
9460
|
+
} & {
|
|
9461
|
+
id: string;
|
|
9462
|
+
}) | ({
|
|
9463
|
+
ActivePrograms: {
|
|
9037
9464
|
icon: string;
|
|
9038
9465
|
id: string;
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9466
|
+
name: string;
|
|
9467
|
+
slug: string | null;
|
|
9468
|
+
}[];
|
|
9469
|
+
AprRecords: ({
|
|
9470
|
+
AprBreakdown: {
|
|
9471
|
+
identifier: string;
|
|
9472
|
+
timestamp: bigint;
|
|
9473
|
+
type: import("@package/databases").AprType;
|
|
9474
|
+
value: number;
|
|
9475
|
+
}[];
|
|
9045
9476
|
} & {
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
tokenWrapperAddress?: string | undefined;
|
|
9477
|
+
id: string;
|
|
9478
|
+
timestamp: bigint;
|
|
9479
|
+
cumulated: number;
|
|
9480
|
+
opportunityId: string;
|
|
9051
9481
|
})[];
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9482
|
+
Campaigns: {
|
|
9483
|
+
id: string;
|
|
9484
|
+
computeChainId: number;
|
|
9485
|
+
distributionChainId: number;
|
|
9486
|
+
campaignId: string;
|
|
9487
|
+
type: string;
|
|
9488
|
+
distributionType: import("@package/databases").DistributionType;
|
|
9489
|
+
subType: number | null;
|
|
9490
|
+
rewardTokenId: string;
|
|
9491
|
+
amount: string;
|
|
9492
|
+
opportunityId: string;
|
|
9493
|
+
startTimestamp: bigint;
|
|
9494
|
+
endTimestamp: bigint;
|
|
9495
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
9496
|
+
description: string | null;
|
|
9497
|
+
dailyRewards: number;
|
|
9498
|
+
apr: number;
|
|
9499
|
+
creatorAddress: string;
|
|
9500
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
9501
|
+
createdAt: Date;
|
|
9502
|
+
rootCampaignId: string | null;
|
|
9503
|
+
parentCampaignId: string | null;
|
|
9504
|
+
}[];
|
|
9505
|
+
Chain: {
|
|
9506
|
+
id: number;
|
|
9507
|
+
name: string;
|
|
9508
|
+
icon: string;
|
|
9509
|
+
liveCampaigns: number;
|
|
9510
|
+
endOfDisputePeriod: number;
|
|
9511
|
+
};
|
|
9512
|
+
DailyRewardsRecords: ({
|
|
9513
|
+
DailyRewardsBreakdown: ({
|
|
9514
|
+
Campaign: {
|
|
9515
|
+
CampaignStatus: {
|
|
9516
|
+
campaignId: string;
|
|
9517
|
+
computedUntil: bigint;
|
|
9518
|
+
processingStarted: bigint;
|
|
9519
|
+
status: import("@package/databases").RunStatus;
|
|
9520
|
+
error: string;
|
|
9521
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
9522
|
+
}[];
|
|
9523
|
+
RewardToken: {
|
|
9524
|
+
id: string;
|
|
9525
|
+
name: string | null;
|
|
9526
|
+
chainId: number;
|
|
9527
|
+
address: string;
|
|
9528
|
+
decimals: number;
|
|
9529
|
+
symbol: string;
|
|
9530
|
+
displaySymbol: string;
|
|
9531
|
+
icon: string;
|
|
9532
|
+
verified: boolean;
|
|
9533
|
+
isTest: boolean;
|
|
9534
|
+
type: import("@package/databases").TokenType;
|
|
9535
|
+
isNative: boolean;
|
|
9536
|
+
price: number | null;
|
|
9537
|
+
updatedAt: number | null;
|
|
9538
|
+
priceSource: string | null;
|
|
9539
|
+
};
|
|
9540
|
+
amount: string;
|
|
9541
|
+
campaignId: string;
|
|
9542
|
+
distributionType: import("@package/databases").DistributionType;
|
|
9543
|
+
endTimestamp: bigint;
|
|
9544
|
+
startTimestamp: bigint;
|
|
9545
|
+
};
|
|
9546
|
+
} & {
|
|
9547
|
+
id: string;
|
|
9548
|
+
value: number;
|
|
9549
|
+
timestamp: bigint;
|
|
9550
|
+
campaignId: string;
|
|
9551
|
+
dailyRewardsRecordId: string;
|
|
9552
|
+
})[];
|
|
9553
|
+
} & {
|
|
9554
|
+
id: string;
|
|
9555
|
+
timestamp: bigint;
|
|
9556
|
+
total: number;
|
|
9557
|
+
opportunityId: string;
|
|
9558
|
+
})[];
|
|
9559
|
+
MainProtocol: {
|
|
9560
|
+
id: string;
|
|
9561
|
+
tags: string[];
|
|
9562
|
+
name: string;
|
|
9563
|
+
description: string;
|
|
9564
|
+
url: string;
|
|
9565
|
+
icon: string;
|
|
9566
|
+
banner: string | null;
|
|
9567
|
+
opportunityBannerLight: string | null;
|
|
9568
|
+
opportunityBannerDark: string | null;
|
|
9569
|
+
} | null;
|
|
9059
9570
|
Protocols: {
|
|
9060
9571
|
id: string;
|
|
9061
9572
|
tags: string[];
|
|
@@ -9084,6 +9595,18 @@ declare const app: Elysia<"", {
|
|
|
9084
9595
|
updatedAt: number | null;
|
|
9085
9596
|
priceSource: string | null;
|
|
9086
9597
|
}[];
|
|
9598
|
+
TvlRecords: ({
|
|
9599
|
+
TvlBreakdown: {
|
|
9600
|
+
identifier: string;
|
|
9601
|
+
type: import("@package/databases").TvlType;
|
|
9602
|
+
value: number;
|
|
9603
|
+
}[];
|
|
9604
|
+
} & {
|
|
9605
|
+
id: string;
|
|
9606
|
+
timestamp: bigint;
|
|
9607
|
+
total: number;
|
|
9608
|
+
opportunityId: string;
|
|
9609
|
+
})[];
|
|
9087
9610
|
} & {
|
|
9088
9611
|
id: string;
|
|
9089
9612
|
chainId: number;
|
|
@@ -9243,40 +9766,134 @@ declare const app: Elysia<"", {
|
|
|
9243
9766
|
query: unknown;
|
|
9244
9767
|
headers: unknown;
|
|
9245
9768
|
response: {
|
|
9246
|
-
200: {
|
|
9247
|
-
id: string;
|
|
9769
|
+
200: ({
|
|
9248
9770
|
chainId: number;
|
|
9249
9771
|
type: string;
|
|
9250
9772
|
identifier: string;
|
|
9251
|
-
name
|
|
9252
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
9253
|
-
action:
|
|
9254
|
-
|
|
9773
|
+
name?: string | undefined;
|
|
9774
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
9775
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
9776
|
+
description?: string | undefined;
|
|
9777
|
+
howToSteps?: string[] | undefined;
|
|
9778
|
+
tokens: {
|
|
9255
9779
|
address: string;
|
|
9256
9780
|
chainId: number;
|
|
9257
|
-
|
|
9781
|
+
}[];
|
|
9782
|
+
protocols?: string[] | undefined;
|
|
9783
|
+
mainProtocol?: string | undefined;
|
|
9784
|
+
depositUrl?: string | undefined;
|
|
9785
|
+
explorerAddress?: string | undefined;
|
|
9786
|
+
tags?: string[] | undefined;
|
|
9787
|
+
} & {
|
|
9788
|
+
id: string;
|
|
9789
|
+
}) | ({
|
|
9790
|
+
ActivePrograms: {
|
|
9258
9791
|
icon: string;
|
|
9259
9792
|
id: string;
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9793
|
+
name: string;
|
|
9794
|
+
slug: string | null;
|
|
9795
|
+
}[];
|
|
9796
|
+
AprRecords: ({
|
|
9797
|
+
AprBreakdown: {
|
|
9798
|
+
identifier: string;
|
|
9799
|
+
timestamp: bigint;
|
|
9800
|
+
type: import("@package/databases").AprType;
|
|
9801
|
+
value: number;
|
|
9802
|
+
}[];
|
|
9266
9803
|
} & {
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
tokenWrapperAddress?: string | undefined;
|
|
9804
|
+
id: string;
|
|
9805
|
+
timestamp: bigint;
|
|
9806
|
+
cumulated: number;
|
|
9807
|
+
opportunityId: string;
|
|
9272
9808
|
})[];
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9809
|
+
Campaigns: {
|
|
9810
|
+
id: string;
|
|
9811
|
+
computeChainId: number;
|
|
9812
|
+
distributionChainId: number;
|
|
9813
|
+
campaignId: string;
|
|
9814
|
+
type: string;
|
|
9815
|
+
distributionType: import("@package/databases").DistributionType;
|
|
9816
|
+
subType: number | null;
|
|
9817
|
+
rewardTokenId: string;
|
|
9818
|
+
amount: string;
|
|
9819
|
+
opportunityId: string;
|
|
9820
|
+
startTimestamp: bigint;
|
|
9821
|
+
endTimestamp: bigint;
|
|
9822
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
9823
|
+
description: string | null;
|
|
9824
|
+
dailyRewards: number;
|
|
9825
|
+
apr: number;
|
|
9826
|
+
creatorAddress: string;
|
|
9827
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
9828
|
+
createdAt: Date;
|
|
9829
|
+
rootCampaignId: string | null;
|
|
9830
|
+
parentCampaignId: string | null;
|
|
9831
|
+
}[];
|
|
9832
|
+
Chain: {
|
|
9833
|
+
id: number;
|
|
9834
|
+
name: string;
|
|
9835
|
+
icon: string;
|
|
9836
|
+
liveCampaigns: number;
|
|
9837
|
+
endOfDisputePeriod: number;
|
|
9838
|
+
};
|
|
9839
|
+
DailyRewardsRecords: ({
|
|
9840
|
+
DailyRewardsBreakdown: ({
|
|
9841
|
+
Campaign: {
|
|
9842
|
+
CampaignStatus: {
|
|
9843
|
+
campaignId: string;
|
|
9844
|
+
computedUntil: bigint;
|
|
9845
|
+
processingStarted: bigint;
|
|
9846
|
+
status: import("@package/databases").RunStatus;
|
|
9847
|
+
error: string;
|
|
9848
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
9849
|
+
}[];
|
|
9850
|
+
RewardToken: {
|
|
9851
|
+
id: string;
|
|
9852
|
+
name: string | null;
|
|
9853
|
+
chainId: number;
|
|
9854
|
+
address: string;
|
|
9855
|
+
decimals: number;
|
|
9856
|
+
symbol: string;
|
|
9857
|
+
displaySymbol: string;
|
|
9858
|
+
icon: string;
|
|
9859
|
+
verified: boolean;
|
|
9860
|
+
isTest: boolean;
|
|
9861
|
+
type: import("@package/databases").TokenType;
|
|
9862
|
+
isNative: boolean;
|
|
9863
|
+
price: number | null;
|
|
9864
|
+
updatedAt: number | null;
|
|
9865
|
+
priceSource: string | null;
|
|
9866
|
+
};
|
|
9867
|
+
amount: string;
|
|
9868
|
+
campaignId: string;
|
|
9869
|
+
distributionType: import("@package/databases").DistributionType;
|
|
9870
|
+
endTimestamp: bigint;
|
|
9871
|
+
startTimestamp: bigint;
|
|
9872
|
+
};
|
|
9873
|
+
} & {
|
|
9874
|
+
id: string;
|
|
9875
|
+
value: number;
|
|
9876
|
+
timestamp: bigint;
|
|
9877
|
+
campaignId: string;
|
|
9878
|
+
dailyRewardsRecordId: string;
|
|
9879
|
+
})[];
|
|
9880
|
+
} & {
|
|
9881
|
+
id: string;
|
|
9882
|
+
timestamp: bigint;
|
|
9883
|
+
total: number;
|
|
9884
|
+
opportunityId: string;
|
|
9885
|
+
})[];
|
|
9886
|
+
MainProtocol: {
|
|
9887
|
+
id: string;
|
|
9888
|
+
tags: string[];
|
|
9889
|
+
name: string;
|
|
9890
|
+
description: string;
|
|
9891
|
+
url: string;
|
|
9892
|
+
icon: string;
|
|
9893
|
+
banner: string | null;
|
|
9894
|
+
opportunityBannerLight: string | null;
|
|
9895
|
+
opportunityBannerDark: string | null;
|
|
9896
|
+
} | null;
|
|
9280
9897
|
Protocols: {
|
|
9281
9898
|
id: string;
|
|
9282
9899
|
tags: string[];
|
|
@@ -9305,6 +9922,18 @@ declare const app: Elysia<"", {
|
|
|
9305
9922
|
updatedAt: number | null;
|
|
9306
9923
|
priceSource: string | null;
|
|
9307
9924
|
}[];
|
|
9925
|
+
TvlRecords: ({
|
|
9926
|
+
TvlBreakdown: {
|
|
9927
|
+
identifier: string;
|
|
9928
|
+
type: import("@package/databases").TvlType;
|
|
9929
|
+
value: number;
|
|
9930
|
+
}[];
|
|
9931
|
+
} & {
|
|
9932
|
+
id: string;
|
|
9933
|
+
timestamp: bigint;
|
|
9934
|
+
total: number;
|
|
9935
|
+
opportunityId: string;
|
|
9936
|
+
})[];
|
|
9308
9937
|
} & {
|
|
9309
9938
|
id: string;
|
|
9310
9939
|
chainId: number;
|
|
@@ -9432,40 +10061,134 @@ declare const app: Elysia<"", {
|
|
|
9432
10061
|
} | {
|
|
9433
10062
|
message?: undefined;
|
|
9434
10063
|
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
9435
|
-
opportunity: {
|
|
9436
|
-
id: string;
|
|
10064
|
+
opportunity: ({
|
|
9437
10065
|
chainId: number;
|
|
9438
10066
|
type: string;
|
|
9439
10067
|
identifier: string;
|
|
9440
|
-
name
|
|
9441
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
9442
|
-
action:
|
|
9443
|
-
|
|
10068
|
+
name?: string | undefined;
|
|
10069
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10070
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10071
|
+
description?: string | undefined;
|
|
10072
|
+
howToSteps?: string[] | undefined;
|
|
10073
|
+
tokens: {
|
|
9444
10074
|
address: string;
|
|
9445
10075
|
chainId: number;
|
|
9446
|
-
|
|
10076
|
+
}[];
|
|
10077
|
+
protocols?: string[] | undefined;
|
|
10078
|
+
mainProtocol?: string | undefined;
|
|
10079
|
+
depositUrl?: string | undefined;
|
|
10080
|
+
explorerAddress?: string | undefined;
|
|
10081
|
+
tags?: string[] | undefined;
|
|
10082
|
+
} & {
|
|
10083
|
+
id: string;
|
|
10084
|
+
}) | ({
|
|
10085
|
+
ActivePrograms: {
|
|
9447
10086
|
icon: string;
|
|
9448
10087
|
id: string;
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
10088
|
+
name: string;
|
|
10089
|
+
slug: string | null;
|
|
10090
|
+
}[];
|
|
10091
|
+
AprRecords: ({
|
|
10092
|
+
AprBreakdown: {
|
|
10093
|
+
identifier: string;
|
|
10094
|
+
timestamp: bigint;
|
|
10095
|
+
type: import("@package/databases").AprType;
|
|
10096
|
+
value: number;
|
|
10097
|
+
}[];
|
|
9455
10098
|
} & {
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
tokenWrapperAddress?: string | undefined;
|
|
10099
|
+
id: string;
|
|
10100
|
+
timestamp: bigint;
|
|
10101
|
+
cumulated: number;
|
|
10102
|
+
opportunityId: string;
|
|
9461
10103
|
})[];
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
10104
|
+
Campaigns: {
|
|
10105
|
+
id: string;
|
|
10106
|
+
computeChainId: number;
|
|
10107
|
+
distributionChainId: number;
|
|
10108
|
+
campaignId: string;
|
|
10109
|
+
type: string;
|
|
10110
|
+
distributionType: import("@package/databases").DistributionType;
|
|
10111
|
+
subType: number | null;
|
|
10112
|
+
rewardTokenId: string;
|
|
10113
|
+
amount: string;
|
|
10114
|
+
opportunityId: string;
|
|
10115
|
+
startTimestamp: bigint;
|
|
10116
|
+
endTimestamp: bigint;
|
|
10117
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
10118
|
+
description: string | null;
|
|
10119
|
+
dailyRewards: number;
|
|
10120
|
+
apr: number;
|
|
10121
|
+
creatorAddress: string;
|
|
10122
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
10123
|
+
createdAt: Date;
|
|
10124
|
+
rootCampaignId: string | null;
|
|
10125
|
+
parentCampaignId: string | null;
|
|
10126
|
+
}[];
|
|
10127
|
+
Chain: {
|
|
10128
|
+
id: number;
|
|
10129
|
+
name: string;
|
|
10130
|
+
icon: string;
|
|
10131
|
+
liveCampaigns: number;
|
|
10132
|
+
endOfDisputePeriod: number;
|
|
10133
|
+
};
|
|
10134
|
+
DailyRewardsRecords: ({
|
|
10135
|
+
DailyRewardsBreakdown: ({
|
|
10136
|
+
Campaign: {
|
|
10137
|
+
CampaignStatus: {
|
|
10138
|
+
campaignId: string;
|
|
10139
|
+
computedUntil: bigint;
|
|
10140
|
+
processingStarted: bigint;
|
|
10141
|
+
status: import("@package/databases").RunStatus;
|
|
10142
|
+
error: string;
|
|
10143
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
10144
|
+
}[];
|
|
10145
|
+
RewardToken: {
|
|
10146
|
+
id: string;
|
|
10147
|
+
name: string | null;
|
|
10148
|
+
chainId: number;
|
|
10149
|
+
address: string;
|
|
10150
|
+
decimals: number;
|
|
10151
|
+
symbol: string;
|
|
10152
|
+
displaySymbol: string;
|
|
10153
|
+
icon: string;
|
|
10154
|
+
verified: boolean;
|
|
10155
|
+
isTest: boolean;
|
|
10156
|
+
type: import("@package/databases").TokenType;
|
|
10157
|
+
isNative: boolean;
|
|
10158
|
+
price: number | null;
|
|
10159
|
+
updatedAt: number | null;
|
|
10160
|
+
priceSource: string | null;
|
|
10161
|
+
};
|
|
10162
|
+
amount: string;
|
|
10163
|
+
campaignId: string;
|
|
10164
|
+
distributionType: import("@package/databases").DistributionType;
|
|
10165
|
+
endTimestamp: bigint;
|
|
10166
|
+
startTimestamp: bigint;
|
|
10167
|
+
};
|
|
10168
|
+
} & {
|
|
10169
|
+
id: string;
|
|
10170
|
+
value: number;
|
|
10171
|
+
timestamp: bigint;
|
|
10172
|
+
campaignId: string;
|
|
10173
|
+
dailyRewardsRecordId: string;
|
|
10174
|
+
})[];
|
|
10175
|
+
} & {
|
|
10176
|
+
id: string;
|
|
10177
|
+
timestamp: bigint;
|
|
10178
|
+
total: number;
|
|
10179
|
+
opportunityId: string;
|
|
10180
|
+
})[];
|
|
10181
|
+
MainProtocol: {
|
|
10182
|
+
id: string;
|
|
10183
|
+
tags: string[];
|
|
10184
|
+
name: string;
|
|
10185
|
+
description: string;
|
|
10186
|
+
url: string;
|
|
10187
|
+
icon: string;
|
|
10188
|
+
banner: string | null;
|
|
10189
|
+
opportunityBannerLight: string | null;
|
|
10190
|
+
opportunityBannerDark: string | null;
|
|
10191
|
+
} | null;
|
|
9469
10192
|
Protocols: {
|
|
9470
10193
|
id: string;
|
|
9471
10194
|
tags: string[];
|
|
@@ -9494,6 +10217,18 @@ declare const app: Elysia<"", {
|
|
|
9494
10217
|
updatedAt: number | null;
|
|
9495
10218
|
priceSource: string | null;
|
|
9496
10219
|
}[];
|
|
10220
|
+
TvlRecords: ({
|
|
10221
|
+
TvlBreakdown: {
|
|
10222
|
+
identifier: string;
|
|
10223
|
+
type: import("@package/databases").TvlType;
|
|
10224
|
+
value: number;
|
|
10225
|
+
}[];
|
|
10226
|
+
} & {
|
|
10227
|
+
id: string;
|
|
10228
|
+
timestamp: bigint;
|
|
10229
|
+
total: number;
|
|
10230
|
+
opportunityId: string;
|
|
10231
|
+
})[];
|
|
9497
10232
|
} & {
|
|
9498
10233
|
id: string;
|
|
9499
10234
|
chainId: number;
|
|
@@ -9569,40 +10304,134 @@ declare const app: Elysia<"", {
|
|
|
9569
10304
|
} | {
|
|
9570
10305
|
message?: undefined;
|
|
9571
10306
|
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
9572
|
-
opportunity: {
|
|
9573
|
-
id: string;
|
|
10307
|
+
opportunity: ({
|
|
9574
10308
|
chainId: number;
|
|
9575
10309
|
type: string;
|
|
9576
10310
|
identifier: string;
|
|
9577
|
-
name
|
|
9578
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
9579
|
-
action:
|
|
9580
|
-
|
|
10311
|
+
name?: string | undefined;
|
|
10312
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10313
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10314
|
+
description?: string | undefined;
|
|
10315
|
+
howToSteps?: string[] | undefined;
|
|
10316
|
+
tokens: {
|
|
9581
10317
|
address: string;
|
|
9582
10318
|
chainId: number;
|
|
9583
|
-
|
|
10319
|
+
}[];
|
|
10320
|
+
protocols?: string[] | undefined;
|
|
10321
|
+
mainProtocol?: string | undefined;
|
|
10322
|
+
depositUrl?: string | undefined;
|
|
10323
|
+
explorerAddress?: string | undefined;
|
|
10324
|
+
tags?: string[] | undefined;
|
|
10325
|
+
} & {
|
|
10326
|
+
id: string;
|
|
10327
|
+
}) | ({
|
|
10328
|
+
ActivePrograms: {
|
|
9584
10329
|
icon: string;
|
|
9585
10330
|
id: string;
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
10331
|
+
name: string;
|
|
10332
|
+
slug: string | null;
|
|
10333
|
+
}[];
|
|
10334
|
+
AprRecords: ({
|
|
10335
|
+
AprBreakdown: {
|
|
10336
|
+
identifier: string;
|
|
10337
|
+
timestamp: bigint;
|
|
10338
|
+
type: import("@package/databases").AprType;
|
|
10339
|
+
value: number;
|
|
10340
|
+
}[];
|
|
9592
10341
|
} & {
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
tokenWrapperAddress?: string | undefined;
|
|
10342
|
+
id: string;
|
|
10343
|
+
timestamp: bigint;
|
|
10344
|
+
cumulated: number;
|
|
10345
|
+
opportunityId: string;
|
|
9598
10346
|
})[];
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
10347
|
+
Campaigns: {
|
|
10348
|
+
id: string;
|
|
10349
|
+
computeChainId: number;
|
|
10350
|
+
distributionChainId: number;
|
|
10351
|
+
campaignId: string;
|
|
10352
|
+
type: string;
|
|
10353
|
+
distributionType: import("@package/databases").DistributionType;
|
|
10354
|
+
subType: number | null;
|
|
10355
|
+
rewardTokenId: string;
|
|
10356
|
+
amount: string;
|
|
10357
|
+
opportunityId: string;
|
|
10358
|
+
startTimestamp: bigint;
|
|
10359
|
+
endTimestamp: bigint;
|
|
10360
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
10361
|
+
description: string | null;
|
|
10362
|
+
dailyRewards: number;
|
|
10363
|
+
apr: number;
|
|
10364
|
+
creatorAddress: string;
|
|
10365
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
10366
|
+
createdAt: Date;
|
|
10367
|
+
rootCampaignId: string | null;
|
|
10368
|
+
parentCampaignId: string | null;
|
|
10369
|
+
}[];
|
|
10370
|
+
Chain: {
|
|
10371
|
+
id: number;
|
|
10372
|
+
name: string;
|
|
10373
|
+
icon: string;
|
|
10374
|
+
liveCampaigns: number;
|
|
10375
|
+
endOfDisputePeriod: number;
|
|
10376
|
+
};
|
|
10377
|
+
DailyRewardsRecords: ({
|
|
10378
|
+
DailyRewardsBreakdown: ({
|
|
10379
|
+
Campaign: {
|
|
10380
|
+
CampaignStatus: {
|
|
10381
|
+
campaignId: string;
|
|
10382
|
+
computedUntil: bigint;
|
|
10383
|
+
processingStarted: bigint;
|
|
10384
|
+
status: import("@package/databases").RunStatus;
|
|
10385
|
+
error: string;
|
|
10386
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
10387
|
+
}[];
|
|
10388
|
+
RewardToken: {
|
|
10389
|
+
id: string;
|
|
10390
|
+
name: string | null;
|
|
10391
|
+
chainId: number;
|
|
10392
|
+
address: string;
|
|
10393
|
+
decimals: number;
|
|
10394
|
+
symbol: string;
|
|
10395
|
+
displaySymbol: string;
|
|
10396
|
+
icon: string;
|
|
10397
|
+
verified: boolean;
|
|
10398
|
+
isTest: boolean;
|
|
10399
|
+
type: import("@package/databases").TokenType;
|
|
10400
|
+
isNative: boolean;
|
|
10401
|
+
price: number | null;
|
|
10402
|
+
updatedAt: number | null;
|
|
10403
|
+
priceSource: string | null;
|
|
10404
|
+
};
|
|
10405
|
+
amount: string;
|
|
10406
|
+
campaignId: string;
|
|
10407
|
+
distributionType: import("@package/databases").DistributionType;
|
|
10408
|
+
endTimestamp: bigint;
|
|
10409
|
+
startTimestamp: bigint;
|
|
10410
|
+
};
|
|
10411
|
+
} & {
|
|
10412
|
+
id: string;
|
|
10413
|
+
value: number;
|
|
10414
|
+
timestamp: bigint;
|
|
10415
|
+
campaignId: string;
|
|
10416
|
+
dailyRewardsRecordId: string;
|
|
10417
|
+
})[];
|
|
10418
|
+
} & {
|
|
10419
|
+
id: string;
|
|
10420
|
+
timestamp: bigint;
|
|
10421
|
+
total: number;
|
|
10422
|
+
opportunityId: string;
|
|
10423
|
+
})[];
|
|
10424
|
+
MainProtocol: {
|
|
10425
|
+
id: string;
|
|
10426
|
+
tags: string[];
|
|
10427
|
+
name: string;
|
|
10428
|
+
description: string;
|
|
10429
|
+
url: string;
|
|
10430
|
+
icon: string;
|
|
10431
|
+
banner: string | null;
|
|
10432
|
+
opportunityBannerLight: string | null;
|
|
10433
|
+
opportunityBannerDark: string | null;
|
|
10434
|
+
} | null;
|
|
9606
10435
|
Protocols: {
|
|
9607
10436
|
id: string;
|
|
9608
10437
|
tags: string[];
|
|
@@ -9631,6 +10460,18 @@ declare const app: Elysia<"", {
|
|
|
9631
10460
|
updatedAt: number | null;
|
|
9632
10461
|
priceSource: string | null;
|
|
9633
10462
|
}[];
|
|
10463
|
+
TvlRecords: ({
|
|
10464
|
+
TvlBreakdown: {
|
|
10465
|
+
identifier: string;
|
|
10466
|
+
type: import("@package/databases").TvlType;
|
|
10467
|
+
value: number;
|
|
10468
|
+
}[];
|
|
10469
|
+
} & {
|
|
10470
|
+
id: string;
|
|
10471
|
+
timestamp: bigint;
|
|
10472
|
+
total: number;
|
|
10473
|
+
opportunityId: string;
|
|
10474
|
+
})[];
|
|
9634
10475
|
} & {
|
|
9635
10476
|
id: string;
|
|
9636
10477
|
chainId: number;
|
|
@@ -9702,40 +10543,134 @@ declare const app: Elysia<"", {
|
|
|
9702
10543
|
} | {
|
|
9703
10544
|
message?: undefined;
|
|
9704
10545
|
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
9705
|
-
opportunity: {
|
|
9706
|
-
id: string;
|
|
10546
|
+
opportunity: ({
|
|
9707
10547
|
chainId: number;
|
|
9708
10548
|
type: string;
|
|
9709
10549
|
identifier: string;
|
|
9710
|
-
name
|
|
9711
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
9712
|
-
action:
|
|
9713
|
-
|
|
10550
|
+
name?: string | undefined;
|
|
10551
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10552
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10553
|
+
description?: string | undefined;
|
|
10554
|
+
howToSteps?: string[] | undefined;
|
|
10555
|
+
tokens: {
|
|
9714
10556
|
address: string;
|
|
9715
10557
|
chainId: number;
|
|
9716
|
-
|
|
10558
|
+
}[];
|
|
10559
|
+
protocols?: string[] | undefined;
|
|
10560
|
+
mainProtocol?: string | undefined;
|
|
10561
|
+
depositUrl?: string | undefined;
|
|
10562
|
+
explorerAddress?: string | undefined;
|
|
10563
|
+
tags?: string[] | undefined;
|
|
10564
|
+
} & {
|
|
10565
|
+
id: string;
|
|
10566
|
+
}) | ({
|
|
10567
|
+
ActivePrograms: {
|
|
9717
10568
|
icon: string;
|
|
9718
10569
|
id: string;
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
10570
|
+
name: string;
|
|
10571
|
+
slug: string | null;
|
|
10572
|
+
}[];
|
|
10573
|
+
AprRecords: ({
|
|
10574
|
+
AprBreakdown: {
|
|
10575
|
+
identifier: string;
|
|
10576
|
+
timestamp: bigint;
|
|
10577
|
+
type: import("@package/databases").AprType;
|
|
10578
|
+
value: number;
|
|
10579
|
+
}[];
|
|
9725
10580
|
} & {
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
tokenWrapperAddress?: string | undefined;
|
|
10581
|
+
id: string;
|
|
10582
|
+
timestamp: bigint;
|
|
10583
|
+
cumulated: number;
|
|
10584
|
+
opportunityId: string;
|
|
9731
10585
|
})[];
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
10586
|
+
Campaigns: {
|
|
10587
|
+
id: string;
|
|
10588
|
+
computeChainId: number;
|
|
10589
|
+
distributionChainId: number;
|
|
10590
|
+
campaignId: string;
|
|
10591
|
+
type: string;
|
|
10592
|
+
distributionType: import("@package/databases").DistributionType;
|
|
10593
|
+
subType: number | null;
|
|
10594
|
+
rewardTokenId: string;
|
|
10595
|
+
amount: string;
|
|
10596
|
+
opportunityId: string;
|
|
10597
|
+
startTimestamp: bigint;
|
|
10598
|
+
endTimestamp: bigint;
|
|
10599
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
10600
|
+
description: string | null;
|
|
10601
|
+
dailyRewards: number;
|
|
10602
|
+
apr: number;
|
|
10603
|
+
creatorAddress: string;
|
|
10604
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
10605
|
+
createdAt: Date;
|
|
10606
|
+
rootCampaignId: string | null;
|
|
10607
|
+
parentCampaignId: string | null;
|
|
10608
|
+
}[];
|
|
10609
|
+
Chain: {
|
|
10610
|
+
id: number;
|
|
10611
|
+
name: string;
|
|
10612
|
+
icon: string;
|
|
10613
|
+
liveCampaigns: number;
|
|
10614
|
+
endOfDisputePeriod: number;
|
|
10615
|
+
};
|
|
10616
|
+
DailyRewardsRecords: ({
|
|
10617
|
+
DailyRewardsBreakdown: ({
|
|
10618
|
+
Campaign: {
|
|
10619
|
+
CampaignStatus: {
|
|
10620
|
+
campaignId: string;
|
|
10621
|
+
computedUntil: bigint;
|
|
10622
|
+
processingStarted: bigint;
|
|
10623
|
+
status: import("@package/databases").RunStatus;
|
|
10624
|
+
error: string;
|
|
10625
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
10626
|
+
}[];
|
|
10627
|
+
RewardToken: {
|
|
10628
|
+
id: string;
|
|
10629
|
+
name: string | null;
|
|
10630
|
+
chainId: number;
|
|
10631
|
+
address: string;
|
|
10632
|
+
decimals: number;
|
|
10633
|
+
symbol: string;
|
|
10634
|
+
displaySymbol: string;
|
|
10635
|
+
icon: string;
|
|
10636
|
+
verified: boolean;
|
|
10637
|
+
isTest: boolean;
|
|
10638
|
+
type: import("@package/databases").TokenType;
|
|
10639
|
+
isNative: boolean;
|
|
10640
|
+
price: number | null;
|
|
10641
|
+
updatedAt: number | null;
|
|
10642
|
+
priceSource: string | null;
|
|
10643
|
+
};
|
|
10644
|
+
amount: string;
|
|
10645
|
+
campaignId: string;
|
|
10646
|
+
distributionType: import("@package/databases").DistributionType;
|
|
10647
|
+
endTimestamp: bigint;
|
|
10648
|
+
startTimestamp: bigint;
|
|
10649
|
+
};
|
|
10650
|
+
} & {
|
|
10651
|
+
id: string;
|
|
10652
|
+
value: number;
|
|
10653
|
+
timestamp: bigint;
|
|
10654
|
+
campaignId: string;
|
|
10655
|
+
dailyRewardsRecordId: string;
|
|
10656
|
+
})[];
|
|
10657
|
+
} & {
|
|
10658
|
+
id: string;
|
|
10659
|
+
timestamp: bigint;
|
|
10660
|
+
total: number;
|
|
10661
|
+
opportunityId: string;
|
|
10662
|
+
})[];
|
|
10663
|
+
MainProtocol: {
|
|
10664
|
+
id: string;
|
|
10665
|
+
tags: string[];
|
|
10666
|
+
name: string;
|
|
10667
|
+
description: string;
|
|
10668
|
+
url: string;
|
|
10669
|
+
icon: string;
|
|
10670
|
+
banner: string | null;
|
|
10671
|
+
opportunityBannerLight: string | null;
|
|
10672
|
+
opportunityBannerDark: string | null;
|
|
10673
|
+
} | null;
|
|
9739
10674
|
Protocols: {
|
|
9740
10675
|
id: string;
|
|
9741
10676
|
tags: string[];
|
|
@@ -9764,6 +10699,18 @@ declare const app: Elysia<"", {
|
|
|
9764
10699
|
updatedAt: number | null;
|
|
9765
10700
|
priceSource: string | null;
|
|
9766
10701
|
}[];
|
|
10702
|
+
TvlRecords: ({
|
|
10703
|
+
TvlBreakdown: {
|
|
10704
|
+
identifier: string;
|
|
10705
|
+
type: import("@package/databases").TvlType;
|
|
10706
|
+
value: number;
|
|
10707
|
+
}[];
|
|
10708
|
+
} & {
|
|
10709
|
+
id: string;
|
|
10710
|
+
timestamp: bigint;
|
|
10711
|
+
total: number;
|
|
10712
|
+
opportunityId: string;
|
|
10713
|
+
})[];
|
|
9767
10714
|
} & {
|
|
9768
10715
|
id: string;
|
|
9769
10716
|
chainId: number;
|