@merkl/api 0.21.37 → 0.21.38
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 +562 -554
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.js +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/detect.js +4 -0
- package/dist/src/engine/implementations/Erc20/subTypes/factories.js +8 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.js +38 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.js +83 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +30 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.js +65 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.js +94 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
- package/dist/src/engine/implementations/Erc20/subTypes/index.js +1 -0
- package/dist/src/index.d.ts +151 -147
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.test.controller.js +2 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +149 -145
- package/dist/src/modules/v4/creator/creator.controller.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
- package/dist/src/modules/v4/router.d.ts +151 -147
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
@@ -2433,7 +2433,7 @@ declare const app: Elysia<"", false, {
|
|
2433
2433
|
} & {
|
2434
2434
|
"dry-run": {
|
2435
2435
|
metadata: {
|
2436
|
-
|
2436
|
+
index: {
|
2437
2437
|
post: {
|
2438
2438
|
body: {
|
2439
2439
|
id?: string | undefined;
|
@@ -2557,7 +2557,7 @@ declare const app: Elysia<"", false, {
|
|
2557
2557
|
} & {
|
2558
2558
|
"dry-run": {
|
2559
2559
|
metadata: {
|
2560
|
-
|
2560
|
+
index: {
|
2561
2561
|
get: {
|
2562
2562
|
body: unknown;
|
2563
2563
|
params: {};
|
@@ -5771,24 +5771,26 @@ declare const app: Elysia<"", false, {
|
|
5771
5771
|
};
|
5772
5772
|
} & {
|
5773
5773
|
creators: {
|
5774
|
-
|
5775
|
-
|
5776
|
-
|
5777
|
-
|
5778
|
-
|
5779
|
-
|
5780
|
-
|
5781
|
-
|
5782
|
-
|
5783
|
-
|
5784
|
-
|
5785
|
-
|
5786
|
-
|
5787
|
-
|
5788
|
-
|
5789
|
-
|
5790
|
-
|
5791
|
-
|
5774
|
+
user: {
|
5775
|
+
":address": {
|
5776
|
+
dashboard: {
|
5777
|
+
get: {
|
5778
|
+
body: unknown;
|
5779
|
+
params: {
|
5780
|
+
address: string;
|
5781
|
+
};
|
5782
|
+
query: unknown;
|
5783
|
+
headers: unknown;
|
5784
|
+
response: {
|
5785
|
+
200: {
|
5786
|
+
pastCampaigns: number;
|
5787
|
+
liveCampaigns: number;
|
5788
|
+
futureCampaigns: number;
|
5789
|
+
totalTvl: number;
|
5790
|
+
totalWallets: number;
|
5791
|
+
totalCampaigns: number;
|
5792
|
+
creatorId: string | null;
|
5793
|
+
};
|
5792
5794
|
};
|
5793
5795
|
};
|
5794
5796
|
};
|
@@ -5797,138 +5799,140 @@ declare const app: Elysia<"", false, {
|
|
5797
5799
|
};
|
5798
5800
|
} & {
|
5799
5801
|
creators: {
|
5800
|
-
|
5801
|
-
|
5802
|
-
|
5803
|
-
|
5804
|
-
|
5805
|
-
|
5806
|
-
|
5807
|
-
|
5808
|
-
|
5809
|
-
|
5810
|
-
|
5811
|
-
|
5812
|
-
|
5813
|
-
|
5814
|
-
|
5802
|
+
user: {
|
5803
|
+
":address": {
|
5804
|
+
campaigns: {
|
5805
|
+
get: {
|
5806
|
+
body: unknown;
|
5807
|
+
params: {
|
5808
|
+
address: string;
|
5809
|
+
};
|
5810
|
+
query: {
|
5811
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
5812
|
+
};
|
5813
|
+
headers: unknown;
|
5814
|
+
response: {
|
5815
|
+
200: ({
|
5816
|
+
Opportunity: {
|
5817
|
+
status: import("@db/api").$Enums.Status;
|
5818
|
+
type: string;
|
5819
|
+
name: string;
|
5820
|
+
description: string;
|
5821
|
+
id: string;
|
5822
|
+
tags: string[];
|
5823
|
+
identifier: string;
|
5824
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
5825
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5826
|
+
chainId: number;
|
5827
|
+
howToSteps: string[];
|
5828
|
+
depositUrl: string | null;
|
5829
|
+
explorerAddress: string | null;
|
5830
|
+
mainProtocolId: string | null;
|
5831
|
+
tvl: number;
|
5832
|
+
apr: number;
|
5833
|
+
dailyRewards: number;
|
5834
|
+
lastCampaignCreatedAt: Date;
|
5835
|
+
};
|
5836
|
+
} & {
|
5815
5837
|
type: string;
|
5816
|
-
|
5817
|
-
description: string;
|
5818
|
-
id: string;
|
5819
|
-
tags: string[];
|
5820
|
-
identifier: string;
|
5821
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
5822
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5823
|
-
chainId: number;
|
5824
|
-
howToSteps: string[];
|
5825
|
-
depositUrl: string | null;
|
5826
|
-
explorerAddress: string | null;
|
5827
|
-
mainProtocolId: string | null;
|
5828
|
-
tvl: number;
|
5829
|
-
apr: number;
|
5830
|
-
dailyRewards: number;
|
5831
|
-
lastCampaignCreatedAt: Date;
|
5832
|
-
};
|
5833
|
-
} & {
|
5834
|
-
type: string;
|
5835
|
-
description: string | null;
|
5836
|
-
id: string;
|
5837
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
5838
|
-
subType: number | null;
|
5839
|
-
computeChainId: number;
|
5840
|
-
distributionChainId: number;
|
5841
|
-
campaignId: string;
|
5842
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
5843
|
-
rewardTokenId: string;
|
5844
|
-
amount: string;
|
5845
|
-
opportunityId: string;
|
5846
|
-
startTimestamp: bigint;
|
5847
|
-
endTimestamp: bigint;
|
5848
|
-
creatorAddress: string;
|
5849
|
-
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
5850
|
-
createdAt: Date;
|
5851
|
-
rootCampaignId: string | null;
|
5852
|
-
parentCampaignId: string | null;
|
5853
|
-
})[] | {
|
5854
|
-
params: any;
|
5855
|
-
chain: {
|
5856
|
-
name: string;
|
5857
|
-
id: number;
|
5858
|
-
icon: string;
|
5859
|
-
};
|
5860
|
-
endTimestamp: number;
|
5861
|
-
startTimestamp: number;
|
5862
|
-
rewardToken: {
|
5863
|
-
symbol: string;
|
5864
|
-
name: string | null;
|
5838
|
+
description: string | null;
|
5865
5839
|
id: string;
|
5866
|
-
|
5867
|
-
|
5868
|
-
|
5869
|
-
|
5870
|
-
verified: boolean;
|
5871
|
-
isTest: boolean;
|
5872
|
-
isPoint: boolean;
|
5873
|
-
isPreTGE: boolean;
|
5874
|
-
isNative: boolean;
|
5875
|
-
} & {
|
5876
|
-
price?: number | null | undefined;
|
5877
|
-
};
|
5878
|
-
distributionChain: {
|
5879
|
-
name: string;
|
5880
|
-
id: number;
|
5881
|
-
icon: string;
|
5882
|
-
} | undefined;
|
5883
|
-
campaignStatus: {
|
5884
|
-
computedUntil: number;
|
5885
|
-
processingStarted: number;
|
5886
|
-
status: import("@db/api").$Enums.RunStatus;
|
5887
|
-
error: string;
|
5888
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
5840
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
5841
|
+
subType: number | null;
|
5842
|
+
computeChainId: number;
|
5843
|
+
distributionChainId: number;
|
5889
5844
|
campaignId: string;
|
5890
|
-
|
5891
|
-
|
5892
|
-
|
5893
|
-
|
5894
|
-
|
5895
|
-
|
5896
|
-
|
5897
|
-
|
5898
|
-
|
5899
|
-
|
5900
|
-
|
5901
|
-
|
5902
|
-
|
5845
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5846
|
+
rewardTokenId: string;
|
5847
|
+
amount: string;
|
5848
|
+
opportunityId: string;
|
5849
|
+
startTimestamp: bigint;
|
5850
|
+
endTimestamp: bigint;
|
5851
|
+
creatorAddress: string;
|
5852
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
5853
|
+
createdAt: Date;
|
5854
|
+
rootCampaignId: string | null;
|
5855
|
+
parentCampaignId: string | null;
|
5856
|
+
})[] | {
|
5857
|
+
params: any;
|
5858
|
+
chain: {
|
5859
|
+
name: string;
|
5860
|
+
id: number;
|
5861
|
+
icon: string;
|
5862
|
+
};
|
5863
|
+
endTimestamp: number;
|
5864
|
+
startTimestamp: number;
|
5865
|
+
rewardToken: {
|
5866
|
+
symbol: string;
|
5867
|
+
name: string | null;
|
5868
|
+
id: string;
|
5869
|
+
icon: string;
|
5870
|
+
address: string;
|
5871
|
+
chainId: number;
|
5872
|
+
decimals: number;
|
5873
|
+
verified: boolean;
|
5874
|
+
isTest: boolean;
|
5875
|
+
isPoint: boolean;
|
5876
|
+
isPreTGE: boolean;
|
5877
|
+
isNative: boolean;
|
5878
|
+
} & {
|
5879
|
+
price?: number | null | undefined;
|
5880
|
+
};
|
5881
|
+
distributionChain: {
|
5882
|
+
name: string;
|
5883
|
+
id: number;
|
5884
|
+
icon: string;
|
5885
|
+
} | undefined;
|
5886
|
+
campaignStatus: {
|
5887
|
+
computedUntil: number;
|
5888
|
+
processingStarted: number;
|
5889
|
+
status: import("@db/api").$Enums.RunStatus;
|
5890
|
+
error: string;
|
5891
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
5892
|
+
campaignId: string;
|
5893
|
+
} | undefined;
|
5894
|
+
creatorAddress: string;
|
5895
|
+
creator: {
|
5896
|
+
tags: string[];
|
5897
|
+
address: string;
|
5898
|
+
creatorId: string | null;
|
5899
|
+
};
|
5900
|
+
createdAt: string;
|
5901
|
+
description: string | undefined;
|
5902
|
+
parentCampaignId: string | undefined;
|
5903
|
+
rootCampaignId: string | undefined;
|
5904
|
+
Opportunity: {
|
5905
|
+
status: import("@db/api").$Enums.Status;
|
5906
|
+
type: string;
|
5907
|
+
name: string;
|
5908
|
+
description: string;
|
5909
|
+
id: string;
|
5910
|
+
tags: string[];
|
5911
|
+
identifier: string;
|
5912
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
5913
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5914
|
+
chainId: number;
|
5915
|
+
howToSteps: string[];
|
5916
|
+
depositUrl: string | null;
|
5917
|
+
explorerAddress: string | null;
|
5918
|
+
mainProtocolId: string | null;
|
5919
|
+
tvl: number;
|
5920
|
+
apr: number;
|
5921
|
+
dailyRewards: number;
|
5922
|
+
lastCampaignCreatedAt: Date;
|
5923
|
+
};
|
5903
5924
|
type: string;
|
5904
|
-
name: string;
|
5905
|
-
description: string;
|
5906
5925
|
id: string;
|
5907
|
-
|
5908
|
-
|
5909
|
-
|
5910
|
-
|
5911
|
-
|
5912
|
-
|
5913
|
-
|
5914
|
-
|
5915
|
-
|
5916
|
-
|
5917
|
-
apr: number;
|
5918
|
-
dailyRewards: number;
|
5919
|
-
lastCampaignCreatedAt: Date;
|
5920
|
-
};
|
5921
|
-
type: string;
|
5922
|
-
id: string;
|
5923
|
-
subType: number | null;
|
5924
|
-
computeChainId: number;
|
5925
|
-
distributionChainId: number;
|
5926
|
-
campaignId: string;
|
5927
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
5928
|
-
rewardTokenId: string;
|
5929
|
-
amount: string;
|
5930
|
-
opportunityId: string;
|
5931
|
-
}[];
|
5926
|
+
subType: number | null;
|
5927
|
+
computeChainId: number;
|
5928
|
+
distributionChainId: number;
|
5929
|
+
campaignId: string;
|
5930
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5931
|
+
rewardTokenId: string;
|
5932
|
+
amount: string;
|
5933
|
+
opportunityId: string;
|
5934
|
+
}[];
|
5935
|
+
};
|
5932
5936
|
};
|
5933
5937
|
};
|
5934
5938
|
};
|
@@ -129,7 +129,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
129
129
|
} & {
|
130
130
|
"dry-run": {
|
131
131
|
metadata: {
|
132
|
-
|
132
|
+
index: {
|
133
133
|
post: {
|
134
134
|
body: {
|
135
135
|
id?: string | undefined;
|
@@ -253,7 +253,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
253
253
|
} & {
|
254
254
|
"dry-run": {
|
255
255
|
metadata: {
|
256
|
-
|
256
|
+
index: {
|
257
257
|
get: {
|
258
258
|
body: unknown;
|
259
259
|
params: {};
|
@@ -81,7 +81,7 @@ export const CampaignTestController = new Elysia({
|
|
81
81
|
.group("/metadata", app => app
|
82
82
|
// ─── Test Opportunity creation through a campaign config ───────────────────────
|
83
83
|
// @dev Starts from the engine db to debug opportunity creation failing and preventing the api db to be filled
|
84
|
-
.post("/
|
84
|
+
.post("/", async ({ body }) => {
|
85
85
|
const engineCampaign = CampaignService.createFakeCampaignEngine(body);
|
86
86
|
return await CampaignService.create(engineCampaign, true);
|
87
87
|
}, {
|
@@ -89,7 +89,7 @@ export const CampaignTestController = new Elysia({
|
|
89
89
|
})
|
90
90
|
// ─── Test Opportunity creation through a campaign Id and a chain ───────────────────────
|
91
91
|
// @dev Starts from the engine db to debug opportunity creation failing and preventing the api db to be filled
|
92
|
-
.get("/
|
92
|
+
.get("/", async ({ query }) => {
|
93
93
|
if (!query.distributionChain) {
|
94
94
|
try {
|
95
95
|
query.distributionChain = (await CampaignService.findMany({ campaignId: query.campaignId, test: true }))?.[0]?.distributionChainId;
|