@merkl/api 1.4.2 → 1.4.4
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 +53 -47
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +2 -1
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +2 -1
- package/dist/src/index.d.ts +625 -619
- package/dist/src/libs/computeFee.d.ts +228 -228
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +6 -3
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -24
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +11 -8
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +243 -243
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +3 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +3 -3
- package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +4 -4
- package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +4 -4
- package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +7 -7
- package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +21 -21
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +19 -18
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.repository.d.ts +2 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -2
- package/dist/src/modules/v4/creator/creator.repository.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +5 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +9 -8
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +3 -3
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/node/node.repository.d.ts +3 -3
- package/dist/src/modules/v4/node/node.service.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +23 -23
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +38 -38
- package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +5 -5
- package/dist/src/modules/v4/priceSource/priceSource.repository.d.ts +12 -12
- package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +12 -12
- package/dist/src/modules/v4/program/program.controller.d.ts +2 -2
- package/dist/src/modules/v4/program/program.repository.d.ts +2 -2
- package/dist/src/modules/v4/program/program.service.d.ts +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +248 -248
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +5 -5
- package/dist/src/modules/v4/reward/reward.service.d.ts +14 -14
- package/dist/src/modules/v4/router.d.ts +44 -38
- package/dist/src/modules/v4/token/token.controller.d.ts +10 -9
- package/dist/src/modules/v4/token/token.repository.d.ts +5 -5
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +4 -4
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +2 -2
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +2 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
- package/dist/src/utils/parseDistributionType.d.ts +2 -1
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -1
- package/package.json +1 -1
|
@@ -747,85 +747,6 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
747
747
|
};
|
|
748
748
|
response: {
|
|
749
749
|
200: {
|
|
750
|
-
id: string;
|
|
751
|
-
chainId: number;
|
|
752
|
-
type: string;
|
|
753
|
-
identifier: string;
|
|
754
|
-
name: string;
|
|
755
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
756
|
-
action: any;
|
|
757
|
-
tokens: ({
|
|
758
|
-
address: string;
|
|
759
|
-
chainId: number;
|
|
760
|
-
decimals: number;
|
|
761
|
-
icon: string;
|
|
762
|
-
id: string;
|
|
763
|
-
isNative: boolean;
|
|
764
|
-
isTest: boolean;
|
|
765
|
-
name: string | null;
|
|
766
|
-
symbol: string;
|
|
767
|
-
type: import("@package/databases").TokenType;
|
|
768
|
-
verified: boolean;
|
|
769
|
-
} & {
|
|
770
|
-
price?: number | null | undefined;
|
|
771
|
-
updatedAt?: number | null | undefined;
|
|
772
|
-
priceSource?: string | null | undefined;
|
|
773
|
-
isTokenWrapper?: boolean | undefined;
|
|
774
|
-
tokenWrapperAddress?: string | undefined;
|
|
775
|
-
})[];
|
|
776
|
-
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
|
777
|
-
description: string;
|
|
778
|
-
howToSteps: string[];
|
|
779
|
-
depositUrl: string | undefined;
|
|
780
|
-
explorerAddress: string | undefined;
|
|
781
|
-
tags: string[];
|
|
782
|
-
} | {
|
|
783
|
-
id: string;
|
|
784
|
-
chainId: number;
|
|
785
|
-
type: string;
|
|
786
|
-
identifier: string;
|
|
787
|
-
name: string;
|
|
788
|
-
description: string;
|
|
789
|
-
howToSteps: string[];
|
|
790
|
-
depositUrl: string | null;
|
|
791
|
-
explorerAddress: string | null;
|
|
792
|
-
status: import("@package/databases").Status;
|
|
793
|
-
action: import("@package/databases").OpportunityAction;
|
|
794
|
-
mainProtocolId: string | null;
|
|
795
|
-
tvl: number;
|
|
796
|
-
apr: number;
|
|
797
|
-
maxApr: number | null;
|
|
798
|
-
dailyRewards: number;
|
|
799
|
-
tags: string[];
|
|
800
|
-
lastCampaignCreatedAt: Date;
|
|
801
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
802
|
-
liveCampaigns: number;
|
|
803
|
-
Protocols: {
|
|
804
|
-
id: string;
|
|
805
|
-
tags: string[];
|
|
806
|
-
name: string;
|
|
807
|
-
description: string;
|
|
808
|
-
url: string;
|
|
809
|
-
icon: string;
|
|
810
|
-
}[];
|
|
811
|
-
Tokens: {
|
|
812
|
-
id: string;
|
|
813
|
-
name: string | null;
|
|
814
|
-
chainId: number;
|
|
815
|
-
address: string;
|
|
816
|
-
decimals: number;
|
|
817
|
-
symbol: string;
|
|
818
|
-
displaySymbol: string;
|
|
819
|
-
icon: string;
|
|
820
|
-
verified: boolean;
|
|
821
|
-
isTest: boolean;
|
|
822
|
-
type: import("@package/databases").TokenType;
|
|
823
|
-
isNative: boolean;
|
|
824
|
-
price: number | null;
|
|
825
|
-
updatedAt: number | null;
|
|
826
|
-
priceSource: string | null;
|
|
827
|
-
}[];
|
|
828
|
-
} | {
|
|
829
750
|
distributionChain?: ({
|
|
830
751
|
endOfDisputePeriod: number;
|
|
831
752
|
icon: string;
|
|
@@ -867,7 +788,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
867
788
|
childCampaignIds?: string[] | undefined;
|
|
868
789
|
rootCampaignId?: string | undefined;
|
|
869
790
|
parentCampaignId?: string | undefined;
|
|
870
|
-
params: import("@prisma/client/runtime/
|
|
791
|
+
params: import("@prisma/client/runtime/library").JsonValue & (import("@package/sdk").BaseCampaignParameters | import("@package/sdk").CLAMMCampaignParameters | import("@package/sdk").ERC20_SNAPSHOTCampaignParameters | import("@package/sdk").MorphoCampaignParameters<import("@package/sdk").MorphoSubCampaignType> | ((import("@package/sdk").BaseCampaignParameters & ({
|
|
871
792
|
poolId: string;
|
|
872
793
|
poolManager: string;
|
|
873
794
|
lpFee: number;
|
|
@@ -909,7 +830,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
909
830
|
campaignId: string;
|
|
910
831
|
campaignStatus: {
|
|
911
832
|
computedUntil: number;
|
|
912
|
-
details: import("@prisma/client/runtime/
|
|
833
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
913
834
|
error: string;
|
|
914
835
|
processingStarted: number;
|
|
915
836
|
status: import("@package/databases").RunStatus;
|
|
@@ -961,6 +882,85 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
961
882
|
startTimestamp: number;
|
|
962
883
|
subType: number | null;
|
|
963
884
|
type: string;
|
|
885
|
+
} | {
|
|
886
|
+
id: string;
|
|
887
|
+
chainId: number;
|
|
888
|
+
type: string;
|
|
889
|
+
identifier: string;
|
|
890
|
+
name: string;
|
|
891
|
+
status: "LIVE" | "PAST" | "SOON";
|
|
892
|
+
action: any;
|
|
893
|
+
tokens: ({
|
|
894
|
+
address: string;
|
|
895
|
+
chainId: number;
|
|
896
|
+
decimals: number;
|
|
897
|
+
icon: string;
|
|
898
|
+
id: string;
|
|
899
|
+
isNative: boolean;
|
|
900
|
+
isTest: boolean;
|
|
901
|
+
name: string | null;
|
|
902
|
+
symbol: string;
|
|
903
|
+
type: import("@package/databases").TokenType;
|
|
904
|
+
verified: boolean;
|
|
905
|
+
} & {
|
|
906
|
+
price?: number | null | undefined;
|
|
907
|
+
updatedAt?: number | null | undefined;
|
|
908
|
+
priceSource?: string | null | undefined;
|
|
909
|
+
isTokenWrapper?: boolean | undefined;
|
|
910
|
+
tokenWrapperAddress?: string | undefined;
|
|
911
|
+
})[];
|
|
912
|
+
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
|
913
|
+
description: string;
|
|
914
|
+
howToSteps: string[];
|
|
915
|
+
depositUrl: string | undefined;
|
|
916
|
+
explorerAddress: string | undefined;
|
|
917
|
+
tags: string[];
|
|
918
|
+
} | {
|
|
919
|
+
id: string;
|
|
920
|
+
chainId: number;
|
|
921
|
+
type: string;
|
|
922
|
+
identifier: string;
|
|
923
|
+
name: string;
|
|
924
|
+
description: string;
|
|
925
|
+
howToSteps: string[];
|
|
926
|
+
depositUrl: string | null;
|
|
927
|
+
explorerAddress: string | null;
|
|
928
|
+
status: import("@package/databases").Status;
|
|
929
|
+
action: import("@package/databases").OpportunityAction;
|
|
930
|
+
mainProtocolId: string | null;
|
|
931
|
+
tvl: number;
|
|
932
|
+
apr: number;
|
|
933
|
+
maxApr: number | null;
|
|
934
|
+
dailyRewards: number;
|
|
935
|
+
tags: string[];
|
|
936
|
+
lastCampaignCreatedAt: Date;
|
|
937
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
938
|
+
liveCampaigns: number;
|
|
939
|
+
Protocols: {
|
|
940
|
+
id: string;
|
|
941
|
+
tags: string[];
|
|
942
|
+
name: string;
|
|
943
|
+
description: string;
|
|
944
|
+
url: string;
|
|
945
|
+
icon: string;
|
|
946
|
+
}[];
|
|
947
|
+
Tokens: {
|
|
948
|
+
id: string;
|
|
949
|
+
name: string | null;
|
|
950
|
+
chainId: number;
|
|
951
|
+
address: string;
|
|
952
|
+
decimals: number;
|
|
953
|
+
symbol: string;
|
|
954
|
+
displaySymbol: string;
|
|
955
|
+
icon: string;
|
|
956
|
+
verified: boolean;
|
|
957
|
+
isTest: boolean;
|
|
958
|
+
type: import("@package/databases").TokenType;
|
|
959
|
+
isNative: boolean;
|
|
960
|
+
price: number | null;
|
|
961
|
+
updatedAt: number | null;
|
|
962
|
+
priceSource: string | null;
|
|
963
|
+
}[];
|
|
964
964
|
};
|
|
965
965
|
422: {
|
|
966
966
|
type: "validation";
|
|
@@ -1100,85 +1100,6 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
response: {
|
|
1102
1102
|
200: {
|
|
1103
|
-
id: string;
|
|
1104
|
-
chainId: number;
|
|
1105
|
-
type: string;
|
|
1106
|
-
identifier: string;
|
|
1107
|
-
name: string;
|
|
1108
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
1109
|
-
action: any;
|
|
1110
|
-
tokens: ({
|
|
1111
|
-
address: string;
|
|
1112
|
-
chainId: number;
|
|
1113
|
-
decimals: number;
|
|
1114
|
-
icon: string;
|
|
1115
|
-
id: string;
|
|
1116
|
-
isNative: boolean;
|
|
1117
|
-
isTest: boolean;
|
|
1118
|
-
name: string | null;
|
|
1119
|
-
symbol: string;
|
|
1120
|
-
type: import("@package/databases").TokenType;
|
|
1121
|
-
verified: boolean;
|
|
1122
|
-
} & {
|
|
1123
|
-
price?: number | null | undefined;
|
|
1124
|
-
updatedAt?: number | null | undefined;
|
|
1125
|
-
priceSource?: string | null | undefined;
|
|
1126
|
-
isTokenWrapper?: boolean | undefined;
|
|
1127
|
-
tokenWrapperAddress?: string | undefined;
|
|
1128
|
-
})[];
|
|
1129
|
-
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
|
1130
|
-
description: string;
|
|
1131
|
-
howToSteps: string[];
|
|
1132
|
-
depositUrl: string | undefined;
|
|
1133
|
-
explorerAddress: string | undefined;
|
|
1134
|
-
tags: string[];
|
|
1135
|
-
} | {
|
|
1136
|
-
id: string;
|
|
1137
|
-
chainId: number;
|
|
1138
|
-
type: string;
|
|
1139
|
-
identifier: string;
|
|
1140
|
-
name: string;
|
|
1141
|
-
description: string;
|
|
1142
|
-
howToSteps: string[];
|
|
1143
|
-
depositUrl: string | null;
|
|
1144
|
-
explorerAddress: string | null;
|
|
1145
|
-
status: import("@package/databases").Status;
|
|
1146
|
-
action: import("@package/databases").OpportunityAction;
|
|
1147
|
-
mainProtocolId: string | null;
|
|
1148
|
-
tvl: number;
|
|
1149
|
-
apr: number;
|
|
1150
|
-
maxApr: number | null;
|
|
1151
|
-
dailyRewards: number;
|
|
1152
|
-
tags: string[];
|
|
1153
|
-
lastCampaignCreatedAt: Date;
|
|
1154
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1155
|
-
liveCampaigns: number;
|
|
1156
|
-
Protocols: {
|
|
1157
|
-
id: string;
|
|
1158
|
-
tags: string[];
|
|
1159
|
-
name: string;
|
|
1160
|
-
description: string;
|
|
1161
|
-
url: string;
|
|
1162
|
-
icon: string;
|
|
1163
|
-
}[];
|
|
1164
|
-
Tokens: {
|
|
1165
|
-
id: string;
|
|
1166
|
-
name: string | null;
|
|
1167
|
-
chainId: number;
|
|
1168
|
-
address: string;
|
|
1169
|
-
decimals: number;
|
|
1170
|
-
symbol: string;
|
|
1171
|
-
displaySymbol: string;
|
|
1172
|
-
icon: string;
|
|
1173
|
-
verified: boolean;
|
|
1174
|
-
isTest: boolean;
|
|
1175
|
-
type: import("@package/databases").TokenType;
|
|
1176
|
-
isNative: boolean;
|
|
1177
|
-
price: number | null;
|
|
1178
|
-
updatedAt: number | null;
|
|
1179
|
-
priceSource: string | null;
|
|
1180
|
-
}[];
|
|
1181
|
-
} | {
|
|
1182
1103
|
distributionChain?: ({
|
|
1183
1104
|
endOfDisputePeriod: number;
|
|
1184
1105
|
icon: string;
|
|
@@ -1220,7 +1141,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1220
1141
|
childCampaignIds?: string[] | undefined;
|
|
1221
1142
|
rootCampaignId?: string | undefined;
|
|
1222
1143
|
parentCampaignId?: string | undefined;
|
|
1223
|
-
params: import("@prisma/client/runtime/
|
|
1144
|
+
params: import("@prisma/client/runtime/library").JsonValue & (import("@package/sdk").BaseCampaignParameters | import("@package/sdk").CLAMMCampaignParameters | import("@package/sdk").ERC20_SNAPSHOTCampaignParameters | import("@package/sdk").MorphoCampaignParameters<import("@package/sdk").MorphoSubCampaignType> | ((import("@package/sdk").BaseCampaignParameters & ({
|
|
1224
1145
|
poolId: string;
|
|
1225
1146
|
poolManager: string;
|
|
1226
1147
|
lpFee: number;
|
|
@@ -1262,7 +1183,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1262
1183
|
campaignId: string;
|
|
1263
1184
|
campaignStatus: {
|
|
1264
1185
|
computedUntil: number;
|
|
1265
|
-
details: import("@prisma/client/runtime/
|
|
1186
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
1266
1187
|
error: string;
|
|
1267
1188
|
processingStarted: number;
|
|
1268
1189
|
status: import("@package/databases").RunStatus;
|
|
@@ -1314,6 +1235,85 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1314
1235
|
startTimestamp: number;
|
|
1315
1236
|
subType: number | null;
|
|
1316
1237
|
type: string;
|
|
1238
|
+
} | {
|
|
1239
|
+
id: string;
|
|
1240
|
+
chainId: number;
|
|
1241
|
+
type: string;
|
|
1242
|
+
identifier: string;
|
|
1243
|
+
name: string;
|
|
1244
|
+
status: "LIVE" | "PAST" | "SOON";
|
|
1245
|
+
action: any;
|
|
1246
|
+
tokens: ({
|
|
1247
|
+
address: string;
|
|
1248
|
+
chainId: number;
|
|
1249
|
+
decimals: number;
|
|
1250
|
+
icon: string;
|
|
1251
|
+
id: string;
|
|
1252
|
+
isNative: boolean;
|
|
1253
|
+
isTest: boolean;
|
|
1254
|
+
name: string | null;
|
|
1255
|
+
symbol: string;
|
|
1256
|
+
type: import("@package/databases").TokenType;
|
|
1257
|
+
verified: boolean;
|
|
1258
|
+
} & {
|
|
1259
|
+
price?: number | null | undefined;
|
|
1260
|
+
updatedAt?: number | null | undefined;
|
|
1261
|
+
priceSource?: string | null | undefined;
|
|
1262
|
+
isTokenWrapper?: boolean | undefined;
|
|
1263
|
+
tokenWrapperAddress?: string | undefined;
|
|
1264
|
+
})[];
|
|
1265
|
+
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
|
1266
|
+
description: string;
|
|
1267
|
+
howToSteps: string[];
|
|
1268
|
+
depositUrl: string | undefined;
|
|
1269
|
+
explorerAddress: string | undefined;
|
|
1270
|
+
tags: string[];
|
|
1271
|
+
} | {
|
|
1272
|
+
id: string;
|
|
1273
|
+
chainId: number;
|
|
1274
|
+
type: string;
|
|
1275
|
+
identifier: string;
|
|
1276
|
+
name: string;
|
|
1277
|
+
description: string;
|
|
1278
|
+
howToSteps: string[];
|
|
1279
|
+
depositUrl: string | null;
|
|
1280
|
+
explorerAddress: string | null;
|
|
1281
|
+
status: import("@package/databases").Status;
|
|
1282
|
+
action: import("@package/databases").OpportunityAction;
|
|
1283
|
+
mainProtocolId: string | null;
|
|
1284
|
+
tvl: number;
|
|
1285
|
+
apr: number;
|
|
1286
|
+
maxApr: number | null;
|
|
1287
|
+
dailyRewards: number;
|
|
1288
|
+
tags: string[];
|
|
1289
|
+
lastCampaignCreatedAt: Date;
|
|
1290
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1291
|
+
liveCampaigns: number;
|
|
1292
|
+
Protocols: {
|
|
1293
|
+
id: string;
|
|
1294
|
+
tags: string[];
|
|
1295
|
+
name: string;
|
|
1296
|
+
description: string;
|
|
1297
|
+
url: string;
|
|
1298
|
+
icon: string;
|
|
1299
|
+
}[];
|
|
1300
|
+
Tokens: {
|
|
1301
|
+
id: string;
|
|
1302
|
+
name: string | null;
|
|
1303
|
+
chainId: number;
|
|
1304
|
+
address: string;
|
|
1305
|
+
decimals: number;
|
|
1306
|
+
symbol: string;
|
|
1307
|
+
displaySymbol: string;
|
|
1308
|
+
icon: string;
|
|
1309
|
+
verified: boolean;
|
|
1310
|
+
isTest: boolean;
|
|
1311
|
+
type: import("@package/databases").TokenType;
|
|
1312
|
+
isNative: boolean;
|
|
1313
|
+
price: number | null;
|
|
1314
|
+
updatedAt: number | null;
|
|
1315
|
+
priceSource: string | null;
|
|
1316
|
+
}[];
|
|
1317
1317
|
};
|
|
1318
1318
|
422: {
|
|
1319
1319
|
type: "validation";
|
|
@@ -1344,85 +1344,6 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1344
1344
|
};
|
|
1345
1345
|
response: {
|
|
1346
1346
|
200: {
|
|
1347
|
-
id: string;
|
|
1348
|
-
chainId: number;
|
|
1349
|
-
type: string;
|
|
1350
|
-
identifier: string;
|
|
1351
|
-
name: string;
|
|
1352
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
1353
|
-
action: any;
|
|
1354
|
-
tokens: ({
|
|
1355
|
-
address: string;
|
|
1356
|
-
chainId: number;
|
|
1357
|
-
decimals: number;
|
|
1358
|
-
icon: string;
|
|
1359
|
-
id: string;
|
|
1360
|
-
isNative: boolean;
|
|
1361
|
-
isTest: boolean;
|
|
1362
|
-
name: string | null;
|
|
1363
|
-
symbol: string;
|
|
1364
|
-
type: import("@package/databases").TokenType;
|
|
1365
|
-
verified: boolean;
|
|
1366
|
-
} & {
|
|
1367
|
-
price?: number | null | undefined;
|
|
1368
|
-
updatedAt?: number | null | undefined;
|
|
1369
|
-
priceSource?: string | null | undefined;
|
|
1370
|
-
isTokenWrapper?: boolean | undefined;
|
|
1371
|
-
tokenWrapperAddress?: string | undefined;
|
|
1372
|
-
})[];
|
|
1373
|
-
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
|
1374
|
-
description: string;
|
|
1375
|
-
howToSteps: string[];
|
|
1376
|
-
depositUrl: string | undefined;
|
|
1377
|
-
explorerAddress: string | undefined;
|
|
1378
|
-
tags: string[];
|
|
1379
|
-
} | {
|
|
1380
|
-
id: string;
|
|
1381
|
-
chainId: number;
|
|
1382
|
-
type: string;
|
|
1383
|
-
identifier: string;
|
|
1384
|
-
name: string;
|
|
1385
|
-
description: string;
|
|
1386
|
-
howToSteps: string[];
|
|
1387
|
-
depositUrl: string | null;
|
|
1388
|
-
explorerAddress: string | null;
|
|
1389
|
-
status: import("@package/databases").Status;
|
|
1390
|
-
action: import("@package/databases").OpportunityAction;
|
|
1391
|
-
mainProtocolId: string | null;
|
|
1392
|
-
tvl: number;
|
|
1393
|
-
apr: number;
|
|
1394
|
-
maxApr: number | null;
|
|
1395
|
-
dailyRewards: number;
|
|
1396
|
-
tags: string[];
|
|
1397
|
-
lastCampaignCreatedAt: Date;
|
|
1398
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1399
|
-
liveCampaigns: number;
|
|
1400
|
-
Protocols: {
|
|
1401
|
-
id: string;
|
|
1402
|
-
tags: string[];
|
|
1403
|
-
name: string;
|
|
1404
|
-
description: string;
|
|
1405
|
-
url: string;
|
|
1406
|
-
icon: string;
|
|
1407
|
-
}[];
|
|
1408
|
-
Tokens: {
|
|
1409
|
-
id: string;
|
|
1410
|
-
name: string | null;
|
|
1411
|
-
chainId: number;
|
|
1412
|
-
address: string;
|
|
1413
|
-
decimals: number;
|
|
1414
|
-
symbol: string;
|
|
1415
|
-
displaySymbol: string;
|
|
1416
|
-
icon: string;
|
|
1417
|
-
verified: boolean;
|
|
1418
|
-
isTest: boolean;
|
|
1419
|
-
type: import("@package/databases").TokenType;
|
|
1420
|
-
isNative: boolean;
|
|
1421
|
-
price: number | null;
|
|
1422
|
-
updatedAt: number | null;
|
|
1423
|
-
priceSource: string | null;
|
|
1424
|
-
}[];
|
|
1425
|
-
} | {
|
|
1426
1347
|
distributionChain?: ({
|
|
1427
1348
|
endOfDisputePeriod: number;
|
|
1428
1349
|
icon: string;
|
|
@@ -1464,7 +1385,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1464
1385
|
childCampaignIds?: string[] | undefined;
|
|
1465
1386
|
rootCampaignId?: string | undefined;
|
|
1466
1387
|
parentCampaignId?: string | undefined;
|
|
1467
|
-
params: import("@prisma/client/runtime/
|
|
1388
|
+
params: import("@prisma/client/runtime/library").JsonValue & (import("@package/sdk").BaseCampaignParameters | import("@package/sdk").CLAMMCampaignParameters | import("@package/sdk").ERC20_SNAPSHOTCampaignParameters | import("@package/sdk").MorphoCampaignParameters<import("@package/sdk").MorphoSubCampaignType> | ((import("@package/sdk").BaseCampaignParameters & ({
|
|
1468
1389
|
poolId: string;
|
|
1469
1390
|
poolManager: string;
|
|
1470
1391
|
lpFee: number;
|
|
@@ -1506,7 +1427,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1506
1427
|
campaignId: string;
|
|
1507
1428
|
campaignStatus: {
|
|
1508
1429
|
computedUntil: number;
|
|
1509
|
-
details: import("@prisma/client/runtime/
|
|
1430
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
1510
1431
|
error: string;
|
|
1511
1432
|
processingStarted: number;
|
|
1512
1433
|
status: import("@package/databases").RunStatus;
|
|
@@ -1558,6 +1479,85 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
|
1558
1479
|
startTimestamp: number;
|
|
1559
1480
|
subType: number | null;
|
|
1560
1481
|
type: string;
|
|
1482
|
+
} | {
|
|
1483
|
+
id: string;
|
|
1484
|
+
chainId: number;
|
|
1485
|
+
type: string;
|
|
1486
|
+
identifier: string;
|
|
1487
|
+
name: string;
|
|
1488
|
+
status: "LIVE" | "PAST" | "SOON";
|
|
1489
|
+
action: any;
|
|
1490
|
+
tokens: ({
|
|
1491
|
+
address: string;
|
|
1492
|
+
chainId: number;
|
|
1493
|
+
decimals: number;
|
|
1494
|
+
icon: string;
|
|
1495
|
+
id: string;
|
|
1496
|
+
isNative: boolean;
|
|
1497
|
+
isTest: boolean;
|
|
1498
|
+
name: string | null;
|
|
1499
|
+
symbol: string;
|
|
1500
|
+
type: import("@package/databases").TokenType;
|
|
1501
|
+
verified: boolean;
|
|
1502
|
+
} & {
|
|
1503
|
+
price?: number | null | undefined;
|
|
1504
|
+
updatedAt?: number | null | undefined;
|
|
1505
|
+
priceSource?: string | null | undefined;
|
|
1506
|
+
isTokenWrapper?: boolean | undefined;
|
|
1507
|
+
tokenWrapperAddress?: string | undefined;
|
|
1508
|
+
})[];
|
|
1509
|
+
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
|
1510
|
+
description: string;
|
|
1511
|
+
howToSteps: string[];
|
|
1512
|
+
depositUrl: string | undefined;
|
|
1513
|
+
explorerAddress: string | undefined;
|
|
1514
|
+
tags: string[];
|
|
1515
|
+
} | {
|
|
1516
|
+
id: string;
|
|
1517
|
+
chainId: number;
|
|
1518
|
+
type: string;
|
|
1519
|
+
identifier: string;
|
|
1520
|
+
name: string;
|
|
1521
|
+
description: string;
|
|
1522
|
+
howToSteps: string[];
|
|
1523
|
+
depositUrl: string | null;
|
|
1524
|
+
explorerAddress: string | null;
|
|
1525
|
+
status: import("@package/databases").Status;
|
|
1526
|
+
action: import("@package/databases").OpportunityAction;
|
|
1527
|
+
mainProtocolId: string | null;
|
|
1528
|
+
tvl: number;
|
|
1529
|
+
apr: number;
|
|
1530
|
+
maxApr: number | null;
|
|
1531
|
+
dailyRewards: number;
|
|
1532
|
+
tags: string[];
|
|
1533
|
+
lastCampaignCreatedAt: Date;
|
|
1534
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1535
|
+
liveCampaigns: number;
|
|
1536
|
+
Protocols: {
|
|
1537
|
+
id: string;
|
|
1538
|
+
tags: string[];
|
|
1539
|
+
name: string;
|
|
1540
|
+
description: string;
|
|
1541
|
+
url: string;
|
|
1542
|
+
icon: string;
|
|
1543
|
+
}[];
|
|
1544
|
+
Tokens: {
|
|
1545
|
+
id: string;
|
|
1546
|
+
name: string | null;
|
|
1547
|
+
chainId: number;
|
|
1548
|
+
address: string;
|
|
1549
|
+
decimals: number;
|
|
1550
|
+
symbol: string;
|
|
1551
|
+
displaySymbol: string;
|
|
1552
|
+
icon: string;
|
|
1553
|
+
verified: boolean;
|
|
1554
|
+
isTest: boolean;
|
|
1555
|
+
type: import("@package/databases").TokenType;
|
|
1556
|
+
isNative: boolean;
|
|
1557
|
+
price: number | null;
|
|
1558
|
+
updatedAt: number | null;
|
|
1559
|
+
priceSource: string | null;
|
|
1560
|
+
}[];
|
|
1561
1561
|
};
|
|
1562
1562
|
422: {
|
|
1563
1563
|
type: "validation";
|
|
@@ -103,7 +103,7 @@ export declare const CampaignBatchController: Elysia<"campaign-batch", {
|
|
|
103
103
|
opportunityId: string;
|
|
104
104
|
startTimestamp: bigint;
|
|
105
105
|
endTimestamp: bigint;
|
|
106
|
-
params: import("@prisma/client/runtime/
|
|
106
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
107
107
|
description: string | null;
|
|
108
108
|
dailyRewards: number;
|
|
109
109
|
apr: number;
|
|
@@ -168,7 +168,7 @@ export declare const CampaignBatchController: Elysia<"campaign-batch", {
|
|
|
168
168
|
opportunityId: string;
|
|
169
169
|
startTimestamp: bigint;
|
|
170
170
|
endTimestamp: bigint;
|
|
171
|
-
params: import("@prisma/client/runtime/
|
|
171
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
172
172
|
description: string | null;
|
|
173
173
|
dailyRewards: number;
|
|
174
174
|
apr: number;
|
|
@@ -27,7 +27,7 @@ export declare abstract class CampaignBatchTemplateRepository {
|
|
|
27
27
|
opportunityId: string;
|
|
28
28
|
startTimestamp: bigint;
|
|
29
29
|
endTimestamp: bigint;
|
|
30
|
-
params: import("@prisma/client/runtime/
|
|
30
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
31
31
|
description: string | null;
|
|
32
32
|
dailyRewards: number;
|
|
33
33
|
apr: number;
|
|
@@ -63,7 +63,7 @@ export declare abstract class CampaignBatchTemplateRepository {
|
|
|
63
63
|
opportunityId: string;
|
|
64
64
|
startTimestamp: bigint;
|
|
65
65
|
endTimestamp: bigint;
|
|
66
|
-
params: import("@prisma/client/runtime/
|
|
66
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
67
67
|
description: string | null;
|
|
68
68
|
dailyRewards: number;
|
|
69
69
|
apr: number;
|
|
@@ -105,7 +105,7 @@ export declare abstract class CampaignBatchTemplateRepository {
|
|
|
105
105
|
opportunityId: string;
|
|
106
106
|
startTimestamp: bigint;
|
|
107
107
|
endTimestamp: bigint;
|
|
108
|
-
params: import("@prisma/client/runtime/
|
|
108
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
109
109
|
description: string | null;
|
|
110
110
|
dailyRewards: number;
|
|
111
111
|
apr: number;
|