@merkl/api 1.0.48 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/eden/index.d.ts +18 -443
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Badger/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Compound/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Default/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +2 -2
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +1 -1
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Ion/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Locker/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Silo/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Vest/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +1 -1
- package/dist/src/index.d.ts +9 -224
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -55
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +3 -81
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +3 -4
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +23 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +11 -587
- package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -162
- package/dist/src/modules/v4/creator/creator.service.d.ts +2 -162
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -6
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +29 -91
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +15 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +10 -407
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +125 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +7 -87
- package/dist/src/modules/v4/router.d.ts +6 -224
- package/dist/src/modules/v4/status/status.model.d.ts +0 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +3 -0
- package/dist/src/routes/v3/router.d.ts +3 -0
- package/dist/src/routes/v3/uniswapv4.d.ts +3 -0
- package/dist/src/utils/providers.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -3,10 +3,8 @@ import { type OpportunityAction, type OpportunityManualOverride, type Prisma } f
|
|
3
3
|
import type { CampaignWithParams, FindCampaignModel } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { Protocol } from "../protocol/protocol.model";
|
5
5
|
import type { Token } from "../token/token.model";
|
6
|
-
import {
|
7
|
-
|
8
|
-
import { OpportunityRepository } from "./opportunity.repository";
|
9
|
-
export declare abstract class OpportunityService extends OpportunityFormatter {
|
6
|
+
import type { FindOpportunityModel, GetOpportunitiesQueryModel, Opportunity, OpportunityOverrideModel, OpportunityResourceModel, OpportunityUnique } from "./opportunity.model";
|
7
|
+
export declare abstract class OpportunityService {
|
10
8
|
static hashId(opportunity: OpportunityUnique): string;
|
11
9
|
static getAprBins(query: GetOpportunitiesQueryModel): Promise<{
|
12
10
|
min: number;
|
@@ -123,7 +121,7 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
123
121
|
* @param dryRun whether to skip the opportunity table interaction and just return the computed opportunity
|
124
122
|
* @returns the opportunity entity computed
|
125
123
|
*/
|
126
|
-
static createFromCampaign(campaign: Omit<CampaignWithParams, "manualOverrides">, opportunityIdentifier: string, upsert?: boolean, dryRun?: boolean): Promise<{
|
124
|
+
static createFromCampaign(campaign: Omit<CampaignWithParams, "manualOverrides" | "opportunityId">, opportunityIdentifier: string, upsert?: boolean, dryRun?: boolean): Promise<{
|
127
125
|
id: string;
|
128
126
|
chainId: number;
|
129
127
|
type: string;
|
@@ -381,7 +379,6 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
381
379
|
campaignStatus?: {
|
382
380
|
error?: string | undefined;
|
383
381
|
details?: any;
|
384
|
-
campaignId: string;
|
385
382
|
status: string;
|
386
383
|
computedUntil: string | number;
|
387
384
|
processingStarted: string | number;
|
@@ -420,10 +417,8 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
420
417
|
computeChainId: number;
|
421
418
|
distributionChainId: number;
|
422
419
|
endTimestamp: string | number;
|
423
|
-
opportunityId: string;
|
424
420
|
creatorAddress: string;
|
425
421
|
subType: number | null;
|
426
|
-
rewardTokenId: string;
|
427
422
|
createdAt: string;
|
428
423
|
chain: {
|
429
424
|
explorers?: {
|
@@ -514,91 +509,7 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
514
509
|
distributionType: import("@package/databases").DistributionType;
|
515
510
|
}[];
|
516
511
|
};
|
517
|
-
campaigns:
|
518
|
-
params: any;
|
519
|
-
chain: {
|
520
|
-
name: string;
|
521
|
-
id: number;
|
522
|
-
icon: string;
|
523
|
-
};
|
524
|
-
endTimestamp: number;
|
525
|
-
startTimestamp: number;
|
526
|
-
rewardToken: {
|
527
|
-
symbol: string;
|
528
|
-
name: string | null;
|
529
|
-
decimals: number;
|
530
|
-
address: string;
|
531
|
-
id: string;
|
532
|
-
chainId: number;
|
533
|
-
icon: string;
|
534
|
-
isNative: boolean;
|
535
|
-
isPoint: boolean;
|
536
|
-
isPreTGE: boolean;
|
537
|
-
isTest: boolean;
|
538
|
-
verified: boolean;
|
539
|
-
} & {
|
540
|
-
price?: number | null | undefined;
|
541
|
-
isTokenWrapper?: boolean | undefined;
|
542
|
-
tokenWrapperAddress?: string | undefined;
|
543
|
-
};
|
544
|
-
distributionChain: {
|
545
|
-
name: string;
|
546
|
-
id: number;
|
547
|
-
icon: string;
|
548
|
-
} | undefined;
|
549
|
-
campaignStatus: {
|
550
|
-
computedUntil: number;
|
551
|
-
processingStarted: number;
|
552
|
-
campaignId: string;
|
553
|
-
error: string;
|
554
|
-
status: import("@package/databases").RunStatus;
|
555
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
556
|
-
} | undefined;
|
557
|
-
creatorAddress: string;
|
558
|
-
creator: {
|
559
|
-
address: string;
|
560
|
-
tags: string[];
|
561
|
-
creatorId: string | null;
|
562
|
-
};
|
563
|
-
createdAt: string;
|
564
|
-
description: string | undefined;
|
565
|
-
parentCampaignId: string | undefined;
|
566
|
-
rootCampaignId: string | undefined;
|
567
|
-
Opportunity: {
|
568
|
-
name: string;
|
569
|
-
apr: number;
|
570
|
-
tvl: number;
|
571
|
-
description: string;
|
572
|
-
id: string;
|
573
|
-
status: import("@package/databases").Status;
|
574
|
-
chainId: number;
|
575
|
-
action: import("@package/databases").OpportunityAction;
|
576
|
-
type: string;
|
577
|
-
depositUrl: string | null;
|
578
|
-
explorerAddress: string | null;
|
579
|
-
howToSteps: string[];
|
580
|
-
mainProtocolId: string | null;
|
581
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
582
|
-
identifier: string;
|
583
|
-
dailyRewards: number;
|
584
|
-
tags: string[];
|
585
|
-
lastCampaignCreatedAt: Date;
|
586
|
-
};
|
587
|
-
campaignId: string;
|
588
|
-
id: string;
|
589
|
-
amount: string;
|
590
|
-
type: string;
|
591
|
-
computeChainId: number;
|
592
|
-
distributionChainId: number;
|
593
|
-
opportunityId: string;
|
594
|
-
distributionType: import("@package/databases").DistributionType;
|
595
|
-
subType: number | null;
|
596
|
-
rewardTokenId: string;
|
597
|
-
}[] | undefined;
|
598
|
-
id: string;
|
599
|
-
depositUrl: string | undefined;
|
600
|
-
explorerAddress: string | undefined;
|
601
|
-
lastCampaignCreatedAt: string;
|
512
|
+
campaigns: Omit<CampaignWithParams, "manualOverrides">[] | undefined;
|
602
513
|
tokens: ({
|
603
514
|
symbol: string;
|
604
515
|
name: string | null;
|
@@ -630,6 +541,10 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
630
541
|
icon: string;
|
631
542
|
tags: string[];
|
632
543
|
} | undefined;
|
544
|
+
id: string;
|
545
|
+
depositUrl: string | undefined;
|
546
|
+
explorerAddress: string | undefined;
|
547
|
+
lastCampaignCreatedAt: string;
|
633
548
|
name: string;
|
634
549
|
apr: number;
|
635
550
|
tvl: number;
|
@@ -704,274 +619,7 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
704
619
|
distributionType: import("@package/databases").DistributionType;
|
705
620
|
}[];
|
706
621
|
};
|
707
|
-
campaigns:
|
708
|
-
params: any;
|
709
|
-
chain: {
|
710
|
-
name: string;
|
711
|
-
id: number;
|
712
|
-
icon: string;
|
713
|
-
};
|
714
|
-
endTimestamp: number;
|
715
|
-
startTimestamp: number;
|
716
|
-
rewardToken: {
|
717
|
-
symbol: string;
|
718
|
-
name: string | null;
|
719
|
-
decimals: number;
|
720
|
-
address: string;
|
721
|
-
id: string;
|
722
|
-
chainId: number;
|
723
|
-
icon: string;
|
724
|
-
isNative: boolean;
|
725
|
-
isPoint: boolean;
|
726
|
-
isPreTGE: boolean;
|
727
|
-
isTest: boolean;
|
728
|
-
verified: boolean;
|
729
|
-
} & {
|
730
|
-
price?: number | null | undefined;
|
731
|
-
isTokenWrapper?: boolean | undefined;
|
732
|
-
tokenWrapperAddress?: string | undefined;
|
733
|
-
};
|
734
|
-
distributionChain: {
|
735
|
-
name: string;
|
736
|
-
id: number;
|
737
|
-
icon: string;
|
738
|
-
} | undefined;
|
739
|
-
campaignStatus: {
|
740
|
-
computedUntil: number;
|
741
|
-
processingStarted: number;
|
742
|
-
campaignId: string;
|
743
|
-
error: string;
|
744
|
-
status: import("@package/databases").RunStatus;
|
745
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
746
|
-
} | undefined;
|
747
|
-
creatorAddress: string;
|
748
|
-
creator: {
|
749
|
-
address: string;
|
750
|
-
tags: string[];
|
751
|
-
creatorId: string | null;
|
752
|
-
};
|
753
|
-
createdAt: string;
|
754
|
-
description: string | undefined;
|
755
|
-
parentCampaignId: string | undefined;
|
756
|
-
rootCampaignId: string | undefined;
|
757
|
-
Opportunity: {
|
758
|
-
name: string;
|
759
|
-
apr: number;
|
760
|
-
tvl: number;
|
761
|
-
description: string;
|
762
|
-
id: string;
|
763
|
-
status: import("@package/databases").Status;
|
764
|
-
chainId: number;
|
765
|
-
action: import("@package/databases").OpportunityAction;
|
766
|
-
type: string;
|
767
|
-
depositUrl: string | null;
|
768
|
-
explorerAddress: string | null;
|
769
|
-
howToSteps: string[];
|
770
|
-
mainProtocolId: string | null;
|
771
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
772
|
-
identifier: string;
|
773
|
-
dailyRewards: number;
|
774
|
-
tags: string[];
|
775
|
-
lastCampaignCreatedAt: Date;
|
776
|
-
};
|
777
|
-
campaignId: string;
|
778
|
-
id: string;
|
779
|
-
amount: string;
|
780
|
-
type: string;
|
781
|
-
computeChainId: number;
|
782
|
-
distributionChainId: number;
|
783
|
-
opportunityId: string;
|
784
|
-
distributionType: import("@package/databases").DistributionType;
|
785
|
-
subType: number | null;
|
786
|
-
rewardTokenId: string;
|
787
|
-
}[] | undefined;
|
788
|
-
id: string;
|
789
|
-
depositUrl: string | undefined;
|
790
|
-
explorerAddress: string | undefined;
|
791
|
-
lastCampaignCreatedAt: string;
|
792
|
-
tokens: ({
|
793
|
-
symbol: string;
|
794
|
-
name: string | null;
|
795
|
-
decimals: number;
|
796
|
-
address: string;
|
797
|
-
id: string;
|
798
|
-
chainId: number;
|
799
|
-
icon: string;
|
800
|
-
isNative: boolean;
|
801
|
-
isPoint: boolean;
|
802
|
-
isPreTGE: boolean;
|
803
|
-
isTest: boolean;
|
804
|
-
verified: boolean;
|
805
|
-
} & {
|
806
|
-
price?: number | null | undefined;
|
807
|
-
isTokenWrapper?: boolean | undefined;
|
808
|
-
tokenWrapperAddress?: string | undefined;
|
809
|
-
})[];
|
810
|
-
chain: {
|
811
|
-
name: string;
|
812
|
-
id: number;
|
813
|
-
icon: string;
|
814
|
-
};
|
815
|
-
protocol: {
|
816
|
-
name: string;
|
817
|
-
description: string;
|
818
|
-
id: string;
|
819
|
-
url: string;
|
820
|
-
icon: string;
|
821
|
-
tags: string[];
|
822
|
-
} | undefined;
|
823
|
-
name: string;
|
824
|
-
apr: number;
|
825
|
-
tvl: number;
|
826
|
-
description: string;
|
827
|
-
status: import("@package/databases").Status;
|
828
|
-
chainId: number;
|
829
|
-
action: import("@package/databases").OpportunityAction;
|
830
|
-
type: string;
|
831
|
-
howToSteps: string[];
|
832
|
-
identifier: string;
|
833
|
-
dailyRewards: number;
|
834
|
-
tags: string[];
|
835
|
-
}[]>;
|
836
|
-
static format(opportunity: Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>): {
|
837
|
-
aprRecord: {
|
838
|
-
cumulated: number;
|
839
|
-
timestamp: bigint;
|
840
|
-
breakdowns: ({
|
841
|
-
value: number;
|
842
|
-
distributionType: import("@package/databases").DistributionType;
|
843
|
-
identifier: string;
|
844
|
-
type: "CAMPAIGN";
|
845
|
-
} | {
|
846
|
-
value: number;
|
847
|
-
identifier: string;
|
848
|
-
type: import("@package/databases").AprType;
|
849
|
-
})[];
|
850
|
-
};
|
851
|
-
tvlRecord: {
|
852
|
-
id: string;
|
853
|
-
total: number;
|
854
|
-
timestamp: bigint;
|
855
|
-
breakdowns: {
|
856
|
-
value: number;
|
857
|
-
type: import("@package/databases").TvlType;
|
858
|
-
identifier: string;
|
859
|
-
}[];
|
860
|
-
};
|
861
|
-
rewardsRecord: {
|
862
|
-
id: string;
|
863
|
-
total: number;
|
864
|
-
timestamp: bigint;
|
865
|
-
breakdowns: {
|
866
|
-
campaignId: string;
|
867
|
-
id: string;
|
868
|
-
dailyRewardsRecordId: string;
|
869
|
-
token: {
|
870
|
-
symbol: string;
|
871
|
-
name: string | null;
|
872
|
-
decimals: number;
|
873
|
-
price: number | null;
|
874
|
-
address: string;
|
875
|
-
id: string;
|
876
|
-
chainId: number;
|
877
|
-
icon: string;
|
878
|
-
isNative: boolean;
|
879
|
-
isPoint: boolean;
|
880
|
-
isPreTGE: boolean;
|
881
|
-
isTest: boolean;
|
882
|
-
verified: boolean;
|
883
|
-
displaySymbol: string;
|
884
|
-
};
|
885
|
-
amount: bigint;
|
886
|
-
value: number;
|
887
|
-
distributionType: import("@package/databases").DistributionType;
|
888
|
-
}[];
|
889
|
-
};
|
890
|
-
campaigns: {
|
891
|
-
params: any;
|
892
|
-
chain: {
|
893
|
-
name: string;
|
894
|
-
id: number;
|
895
|
-
icon: string;
|
896
|
-
};
|
897
|
-
endTimestamp: number;
|
898
|
-
startTimestamp: number;
|
899
|
-
rewardToken: {
|
900
|
-
symbol: string;
|
901
|
-
name: string | null;
|
902
|
-
decimals: number;
|
903
|
-
address: string;
|
904
|
-
id: string;
|
905
|
-
chainId: number;
|
906
|
-
icon: string;
|
907
|
-
isNative: boolean;
|
908
|
-
isPoint: boolean;
|
909
|
-
isPreTGE: boolean;
|
910
|
-
isTest: boolean;
|
911
|
-
verified: boolean;
|
912
|
-
} & {
|
913
|
-
price?: number | null | undefined;
|
914
|
-
isTokenWrapper?: boolean | undefined;
|
915
|
-
tokenWrapperAddress?: string | undefined;
|
916
|
-
};
|
917
|
-
distributionChain: {
|
918
|
-
name: string;
|
919
|
-
id: number;
|
920
|
-
icon: string;
|
921
|
-
} | undefined;
|
922
|
-
campaignStatus: {
|
923
|
-
computedUntil: number;
|
924
|
-
processingStarted: number;
|
925
|
-
campaignId: string;
|
926
|
-
error: string;
|
927
|
-
status: import("@package/databases").RunStatus;
|
928
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
929
|
-
} | undefined;
|
930
|
-
creatorAddress: string;
|
931
|
-
creator: {
|
932
|
-
address: string;
|
933
|
-
tags: string[];
|
934
|
-
creatorId: string | null;
|
935
|
-
};
|
936
|
-
createdAt: string;
|
937
|
-
description: string | undefined;
|
938
|
-
parentCampaignId: string | undefined;
|
939
|
-
rootCampaignId: string | undefined;
|
940
|
-
Opportunity: {
|
941
|
-
name: string;
|
942
|
-
apr: number;
|
943
|
-
tvl: number;
|
944
|
-
description: string;
|
945
|
-
id: string;
|
946
|
-
status: import("@package/databases").Status;
|
947
|
-
chainId: number;
|
948
|
-
action: import("@package/databases").OpportunityAction;
|
949
|
-
type: string;
|
950
|
-
depositUrl: string | null;
|
951
|
-
explorerAddress: string | null;
|
952
|
-
howToSteps: string[];
|
953
|
-
mainProtocolId: string | null;
|
954
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
955
|
-
identifier: string;
|
956
|
-
dailyRewards: number;
|
957
|
-
tags: string[];
|
958
|
-
lastCampaignCreatedAt: Date;
|
959
|
-
};
|
960
|
-
campaignId: string;
|
961
|
-
id: string;
|
962
|
-
amount: string;
|
963
|
-
type: string;
|
964
|
-
computeChainId: number;
|
965
|
-
distributionChainId: number;
|
966
|
-
opportunityId: string;
|
967
|
-
distributionType: import("@package/databases").DistributionType;
|
968
|
-
subType: number | null;
|
969
|
-
rewardTokenId: string;
|
970
|
-
}[] | undefined;
|
971
|
-
id: string;
|
972
|
-
depositUrl: string | undefined;
|
973
|
-
explorerAddress: string | undefined;
|
974
|
-
lastCampaignCreatedAt: string;
|
622
|
+
campaigns: Omit<CampaignWithParams, "manualOverrides">[] | undefined;
|
975
623
|
tokens: ({
|
976
624
|
symbol: string;
|
977
625
|
name: string | null;
|
@@ -1003,55 +651,10 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
1003
651
|
icon: string;
|
1004
652
|
tags: string[];
|
1005
653
|
} | undefined;
|
1006
|
-
name: string;
|
1007
|
-
apr: number;
|
1008
|
-
tvl: number;
|
1009
|
-
description: string;
|
1010
|
-
status: import("@package/databases").Status;
|
1011
|
-
chainId: number;
|
1012
|
-
action: import("@package/databases").OpportunityAction;
|
1013
|
-
type: string;
|
1014
|
-
howToSteps: string[];
|
1015
|
-
identifier: string;
|
1016
|
-
dailyRewards: number;
|
1017
|
-
tags: string[];
|
1018
|
-
};
|
1019
|
-
static formatWithoutRecords(opportunity: LightOpportunityFromDB): {
|
1020
654
|
id: string;
|
1021
655
|
depositUrl: string | undefined;
|
1022
656
|
explorerAddress: string | undefined;
|
1023
657
|
lastCampaignCreatedAt: string;
|
1024
|
-
tokens: ({
|
1025
|
-
symbol: string;
|
1026
|
-
name: string | null;
|
1027
|
-
decimals: number;
|
1028
|
-
address: string;
|
1029
|
-
id: string;
|
1030
|
-
chainId: number;
|
1031
|
-
icon: string;
|
1032
|
-
isNative: boolean;
|
1033
|
-
isPoint: boolean;
|
1034
|
-
isPreTGE: boolean;
|
1035
|
-
isTest: boolean;
|
1036
|
-
verified: boolean;
|
1037
|
-
} & {
|
1038
|
-
price?: number | null | undefined;
|
1039
|
-
isTokenWrapper?: boolean | undefined;
|
1040
|
-
tokenWrapperAddress?: string | undefined;
|
1041
|
-
})[];
|
1042
|
-
chain: {
|
1043
|
-
name: string;
|
1044
|
-
id: number;
|
1045
|
-
icon: string;
|
1046
|
-
};
|
1047
|
-
protocol: {
|
1048
|
-
name: string;
|
1049
|
-
description: string;
|
1050
|
-
id: string;
|
1051
|
-
url: string;
|
1052
|
-
icon: string;
|
1053
|
-
tags: string[];
|
1054
|
-
} | undefined;
|
1055
658
|
name: string;
|
1056
659
|
apr: number;
|
1057
660
|
tvl: number;
|
@@ -1064,7 +667,7 @@ export declare abstract class OpportunityService extends OpportunityFormatter {
|
|
1064
667
|
identifier: string;
|
1065
668
|
dailyRewards: number;
|
1066
669
|
tags: string[];
|
1067
|
-
}
|
670
|
+
}[]>;
|
1068
671
|
static aggregate(query: GetOpportunitiesQueryModel, field: keyof Prisma.OpportunitySumAggregateInputType): Promise<{
|
1069
672
|
sum: string;
|
1070
673
|
}>;
|
@@ -885,7 +885,7 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", {
|
|
885
885
|
whitelist: string[];
|
886
886
|
blacklist: string[];
|
887
887
|
url?: string | undefined;
|
888
|
-
distributionMethodParameters: import("@angleprotocol/sdk/
|
888
|
+
distributionMethodParameters: import("@angleprotocol/sdk/ts").DistributionParameters<import("@angleprotocol/sdk/ts").DistributionMethod>;
|
889
889
|
} | {
|
890
890
|
rewardToken: string;
|
891
891
|
amount: string;
|
@@ -37,7 +37,16 @@ export declare enum yieldNestCampaigns {
|
|
37
37
|
Ethereum_YND_WL = "Ethereum YND TEMP Locker and veYND"
|
38
38
|
}
|
39
39
|
export declare enum liskCampaigns {
|
40
|
-
|
40
|
+
Velodrome_WBTC_WETH_Lisk = "Velodrome WBTC/WETH Lisk 0xDC1479FD1Db51cA0079ceCfaA879232e168c8246",
|
41
|
+
Velodrome_IDRX_USDT0_Lisk = "Velodrome IDRX/USD\u20AE0 Lisk 0x337F15c404d252e788D088bAA0dbb1F185465F55",
|
42
|
+
Velodrome_WETH_USDT0_Lisk = "Velodrome WETH/USD\u20AE0 Lisk 0x915e897DafFBf232991a9ac1a35240318bF7e65D",
|
43
|
+
Velodrome_WETH_wstETH_Lisk = "Velodrome WETH/wstETH Lisk 0x9C69E0B64A63aA7daA0B5dc61Df3Cc77ea05BcB3",
|
44
|
+
Velodrome_USDT0_USDCe_Lisk = "Velodrome USD\u20AE0/USDC.e Lisk 0xC859c755E8C0568fD86F7860Bcf9A59D6F57BEB5",
|
45
|
+
Velodrome_USDT0_EURCe_Lisk = "Velodrome USD\u20AE0/EURC.e Lisk 0xEa1BB3Bd0590ce0B04f701F7C3f2911440d56c70",
|
46
|
+
Velodrome_Basic_Stable_WBTC_MBTC_Lisk = "Velodrome Basic Stable WBTC/MBTC 0xd5AD706FeD32C436C68cC1E7C5429cA1A5Db42dA",
|
47
|
+
Mellow_LSK_Vault_Lisk = "Mellow LSK Vault 0x8cf94b5A37b1835D634b7a3e6b1EE02Ce7F0CD30",
|
48
|
+
Mellow_wstETH_Vault_Lisk = "Mellow wstETH Vault 0x1b10E2270780858923cdBbC9B5423e29fffD1A44",
|
49
|
+
Mellow_mBTC_Vault_Lisk = "Mellow mBTC Vault 0xa67E8B2E43B70D98E1896D3f9d563f3ABdB8Adcd"
|
41
50
|
}
|
42
51
|
export declare enum KatanaCampaigns {
|
43
52
|
Ethereum_kpdUSDC = "Ethereum kpdUSDC 0x7B5A0182E400b241b317e781a4e9dEdFc1429822 9.589041096",
|
@@ -560,6 +569,48 @@ export declare enum modeCampaigns {
|
|
560
569
|
Bedrock_Ironclad_Supply_uniBTC_Mode = "Bedrock Ironclad Supply uniBTC 0x0F041cf2ae959f39215EFfB50d681Df55D4d90B1"
|
561
570
|
}
|
562
571
|
declare const LiskInterfaceCampaigns: {
|
572
|
+
"Velodrome WBTC/WETH Lisk 0xDC1479FD1Db51cA0079ceCfaA879232e168c8246": {
|
573
|
+
campaignType: Campaign;
|
574
|
+
computeChainId: ChainId;
|
575
|
+
hooks: never[];
|
576
|
+
poolAddress: string;
|
577
|
+
whitelist: never[];
|
578
|
+
blacklist: never[];
|
579
|
+
url: string;
|
580
|
+
forwarders: never[];
|
581
|
+
isOutOfRangeIncentivized: boolean;
|
582
|
+
weightFees: number;
|
583
|
+
weightToken0: number;
|
584
|
+
weightToken1: number;
|
585
|
+
};
|
586
|
+
"Velodrome IDRX/USD\u20AE0 Lisk 0x337F15c404d252e788D088bAA0dbb1F185465F55": {
|
587
|
+
campaignType: Campaign;
|
588
|
+
computeChainId: ChainId;
|
589
|
+
hooks: never[];
|
590
|
+
poolAddress: string;
|
591
|
+
whitelist: never[];
|
592
|
+
blacklist: never[];
|
593
|
+
url: string;
|
594
|
+
forwarders: never[];
|
595
|
+
isOutOfRangeIncentivized: boolean;
|
596
|
+
weightFees: number;
|
597
|
+
weightToken0: number;
|
598
|
+
weightToken1: number;
|
599
|
+
};
|
600
|
+
"Velodrome WETH/USD\u20AE0 Lisk 0x915e897DafFBf232991a9ac1a35240318bF7e65D": {
|
601
|
+
campaignType: Campaign;
|
602
|
+
computeChainId: ChainId;
|
603
|
+
hooks: never[];
|
604
|
+
poolAddress: string;
|
605
|
+
whitelist: never[];
|
606
|
+
blacklist: never[];
|
607
|
+
url: string;
|
608
|
+
forwarders: never[];
|
609
|
+
isOutOfRangeIncentivized: boolean;
|
610
|
+
weightFees: number;
|
611
|
+
weightToken0: number;
|
612
|
+
weightToken1: number;
|
613
|
+
};
|
563
614
|
"Velodrome WETH/wstETH Lisk 0x9C69E0B64A63aA7daA0B5dc61Df3Cc77ea05BcB3": {
|
564
615
|
campaignType: Campaign;
|
565
616
|
computeChainId: ChainId;
|
@@ -574,6 +625,79 @@ declare const LiskInterfaceCampaigns: {
|
|
574
625
|
weightToken0: number;
|
575
626
|
weightToken1: number;
|
576
627
|
};
|
628
|
+
"Velodrome USD\u20AE0/USDC.e Lisk 0xC859c755E8C0568fD86F7860Bcf9A59D6F57BEB5": {
|
629
|
+
campaignType: Campaign;
|
630
|
+
computeChainId: ChainId;
|
631
|
+
hooks: never[];
|
632
|
+
poolAddress: string;
|
633
|
+
whitelist: never[];
|
634
|
+
blacklist: never[];
|
635
|
+
url: string;
|
636
|
+
forwarders: never[];
|
637
|
+
isOutOfRangeIncentivized: boolean;
|
638
|
+
weightFees: number;
|
639
|
+
weightToken0: number;
|
640
|
+
weightToken1: number;
|
641
|
+
};
|
642
|
+
"Velodrome USD\u20AE0/EURC.e Lisk 0xEa1BB3Bd0590ce0B04f701F7C3f2911440d56c70": {
|
643
|
+
campaignType: Campaign;
|
644
|
+
computeChainId: ChainId;
|
645
|
+
hooks: never[];
|
646
|
+
poolAddress: string;
|
647
|
+
whitelist: never[];
|
648
|
+
blacklist: never[];
|
649
|
+
url: string;
|
650
|
+
forwarders: never[];
|
651
|
+
isOutOfRangeIncentivized: boolean;
|
652
|
+
weightFees: number;
|
653
|
+
weightToken0: number;
|
654
|
+
weightToken1: number;
|
655
|
+
};
|
656
|
+
"Velodrome Basic Stable WBTC/MBTC 0xd5AD706FeD32C436C68cC1E7C5429cA1A5Db42dA": {
|
657
|
+
campaignType: Campaign;
|
658
|
+
computeChainId: ChainId;
|
659
|
+
hooks: never[];
|
660
|
+
targetToken: string;
|
661
|
+
whitelist: never[];
|
662
|
+
blacklist: never[];
|
663
|
+
url: string;
|
664
|
+
forwarders: {
|
665
|
+
sender: string;
|
666
|
+
priority: number;
|
667
|
+
forwarderType: number;
|
668
|
+
balanceCallType: number;
|
669
|
+
}[];
|
670
|
+
};
|
671
|
+
"Mellow LSK Vault 0x8cf94b5A37b1835D634b7a3e6b1EE02Ce7F0CD30": {
|
672
|
+
campaignType: Campaign;
|
673
|
+
computeChainId: ChainId;
|
674
|
+
hooks: never[];
|
675
|
+
targetToken: string;
|
676
|
+
whitelist: never[];
|
677
|
+
blacklist: string[];
|
678
|
+
url: string;
|
679
|
+
forwarders: never[];
|
680
|
+
};
|
681
|
+
"Mellow wstETH Vault 0x1b10E2270780858923cdBbC9B5423e29fffD1A44": {
|
682
|
+
campaignType: Campaign;
|
683
|
+
computeChainId: ChainId;
|
684
|
+
hooks: never[];
|
685
|
+
targetToken: string;
|
686
|
+
whitelist: never[];
|
687
|
+
blacklist: string[];
|
688
|
+
url: string;
|
689
|
+
forwarders: never[];
|
690
|
+
};
|
691
|
+
"Mellow mBTC Vault 0xa67E8B2E43B70D98E1896D3f9d563f3ABdB8Adcd": {
|
692
|
+
campaignType: Campaign;
|
693
|
+
computeChainId: ChainId;
|
694
|
+
hooks: never[];
|
695
|
+
targetToken: string;
|
696
|
+
whitelist: never[];
|
697
|
+
blacklist: string[];
|
698
|
+
url: string;
|
699
|
+
forwarders: never[];
|
700
|
+
};
|
577
701
|
};
|
578
702
|
declare const MorphoUnichainInterfaceCampaigns: {
|
579
703
|
"Morpho Supply WETH market wstETH collateral 0x665c97ec413f4371e1c30c71153757e9b9144dfbe4284a3e910f85dedba6527d": {
|