@merkl/api 1.0.48 → 1.0.49
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 +4 -441
- 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 +2 -223
- 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.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 +2 -223
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -343,7 +343,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
343
343
|
campaignStatus?: {
|
344
344
|
error?: string | undefined;
|
345
345
|
details?: any;
|
346
|
-
campaignId: string;
|
347
346
|
status: string;
|
348
347
|
computedUntil: string | number;
|
349
348
|
processingStarted: string | number;
|
@@ -382,10 +381,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
382
381
|
computeChainId: number;
|
383
382
|
distributionChainId: number;
|
384
383
|
endTimestamp: string | number;
|
385
|
-
opportunityId: string;
|
386
384
|
creatorAddress: string;
|
387
385
|
subType: number | null;
|
388
|
-
rewardTokenId: string;
|
389
386
|
createdAt: string;
|
390
387
|
chain: {
|
391
388
|
explorers?: {
|
@@ -686,7 +683,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
686
683
|
campaignStatus?: {
|
687
684
|
error?: string | undefined;
|
688
685
|
details?: any;
|
689
|
-
campaignId: string;
|
690
686
|
status: string;
|
691
687
|
computedUntil: string | number;
|
692
688
|
processingStarted: string | number;
|
@@ -725,10 +721,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
725
721
|
computeChainId: number;
|
726
722
|
distributionChainId: number;
|
727
723
|
endTimestamp: string | number;
|
728
|
-
opportunityId: string;
|
729
724
|
creatorAddress: string;
|
730
725
|
subType: number | null;
|
731
|
-
rewardTokenId: string;
|
732
726
|
createdAt: string;
|
733
727
|
chain: {
|
734
728
|
explorers?: {
|
@@ -1726,7 +1720,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
1726
1720
|
campaignStatus?: {
|
1727
1721
|
error?: string | undefined;
|
1728
1722
|
details?: any;
|
1729
|
-
campaignId: string;
|
1730
1723
|
status: string;
|
1731
1724
|
computedUntil: string | number;
|
1732
1725
|
processingStarted: string | number;
|
@@ -1765,10 +1758,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
1765
1758
|
computeChainId: number;
|
1766
1759
|
distributionChainId: number;
|
1767
1760
|
endTimestamp: string | number;
|
1768
|
-
opportunityId: string;
|
1769
1761
|
creatorAddress: string;
|
1770
1762
|
subType: number | null;
|
1771
|
-
rewardTokenId: string;
|
1772
1763
|
createdAt: string;
|
1773
1764
|
chain: {
|
1774
1765
|
explorers?: {
|
@@ -2034,7 +2025,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
2034
2025
|
campaignStatus?: {
|
2035
2026
|
error?: string | undefined;
|
2036
2027
|
details?: any;
|
2037
|
-
campaignId: string;
|
2038
2028
|
status: string;
|
2039
2029
|
computedUntil: string | number;
|
2040
2030
|
processingStarted: string | number;
|
@@ -2073,10 +2063,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
2073
2063
|
computeChainId: number;
|
2074
2064
|
distributionChainId: number;
|
2075
2065
|
endTimestamp: string | number;
|
2076
|
-
opportunityId: string;
|
2077
2066
|
creatorAddress: string;
|
2078
2067
|
subType: number | null;
|
2079
|
-
rewardTokenId: string;
|
2080
2068
|
createdAt: string;
|
2081
2069
|
chain: {
|
2082
2070
|
explorers?: {
|
@@ -2408,55 +2396,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
2408
2396
|
};
|
2409
2397
|
};
|
2410
2398
|
};
|
2411
|
-
} & {
|
2412
|
-
campaigns: {
|
2413
|
-
metadata: {
|
2414
|
-
patch: {
|
2415
|
-
body: {
|
2416
|
-
campaignId: string;
|
2417
|
-
url: string;
|
2418
|
-
distributionChain: number;
|
2419
|
-
};
|
2420
|
-
params: {};
|
2421
|
-
query: unknown;
|
2422
|
-
headers: {
|
2423
|
-
authorization: string;
|
2424
|
-
};
|
2425
|
-
response: {
|
2426
|
-
200: {
|
2427
|
-
campaignId: string;
|
2428
|
-
description: string | null;
|
2429
|
-
id: string;
|
2430
|
-
params: import("@prisma/client/runtime/library").JsonValue;
|
2431
|
-
amount: string;
|
2432
|
-
startTimestamp: bigint;
|
2433
|
-
type: string;
|
2434
|
-
computeChainId: number;
|
2435
|
-
distributionChainId: number;
|
2436
|
-
endTimestamp: bigint;
|
2437
|
-
opportunityId: string;
|
2438
|
-
creatorAddress: string;
|
2439
|
-
distributionType: import("@package/databases").DistributionType;
|
2440
|
-
subType: number | null;
|
2441
|
-
rewardTokenId: string;
|
2442
|
-
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
2443
|
-
createdAt: Date;
|
2444
|
-
rootCampaignId: string | null;
|
2445
|
-
parentCampaignId: string | null;
|
2446
|
-
};
|
2447
|
-
422: {
|
2448
|
-
type: "validation";
|
2449
|
-
on: string;
|
2450
|
-
summary?: string;
|
2451
|
-
message?: string;
|
2452
|
-
found?: unknown;
|
2453
|
-
property?: string;
|
2454
|
-
expected?: string;
|
2455
|
-
};
|
2456
|
-
};
|
2457
|
-
};
|
2458
|
-
};
|
2459
|
-
};
|
2460
2399
|
} & {
|
2461
2400
|
campaigns: {
|
2462
2401
|
tvls: {
|
@@ -7668,87 +7607,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7668
7607
|
createdAt: Date;
|
7669
7608
|
rootCampaignId: string | null;
|
7670
7609
|
parentCampaignId: string | null;
|
7671
|
-
}) |
|
7672
|
-
params: any;
|
7673
|
-
chain: {
|
7674
|
-
name: string;
|
7675
|
-
id: number;
|
7676
|
-
icon: string;
|
7677
|
-
};
|
7678
|
-
endTimestamp: number;
|
7679
|
-
startTimestamp: number;
|
7680
|
-
rewardToken: {
|
7681
|
-
symbol: string;
|
7682
|
-
name: string | null;
|
7683
|
-
decimals: number;
|
7684
|
-
address: string;
|
7685
|
-
id: string;
|
7686
|
-
chainId: number;
|
7687
|
-
icon: string;
|
7688
|
-
isNative: boolean;
|
7689
|
-
isPoint: boolean;
|
7690
|
-
isPreTGE: boolean;
|
7691
|
-
isTest: boolean;
|
7692
|
-
verified: boolean;
|
7693
|
-
} & {
|
7694
|
-
price?: number | null | undefined;
|
7695
|
-
isTokenWrapper?: boolean | undefined;
|
7696
|
-
tokenWrapperAddress?: string | undefined;
|
7697
|
-
};
|
7698
|
-
distributionChain: {
|
7699
|
-
name: string;
|
7700
|
-
id: number;
|
7701
|
-
icon: string;
|
7702
|
-
} | undefined;
|
7703
|
-
campaignStatus: {
|
7704
|
-
computedUntil: number;
|
7705
|
-
processingStarted: number;
|
7706
|
-
campaignId: string;
|
7707
|
-
error: string;
|
7708
|
-
status: import("@package/databases").RunStatus;
|
7709
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
7710
|
-
} | undefined;
|
7711
|
-
creatorAddress: string;
|
7712
|
-
creator: {
|
7713
|
-
address: string;
|
7714
|
-
tags: string[];
|
7715
|
-
creatorId: string | null;
|
7716
|
-
};
|
7717
|
-
createdAt: string;
|
7718
|
-
description: string | undefined;
|
7719
|
-
parentCampaignId: string | undefined;
|
7720
|
-
rootCampaignId: string | undefined;
|
7721
|
-
Opportunity: {
|
7722
|
-
name: string;
|
7723
|
-
apr: number;
|
7724
|
-
tvl: number;
|
7725
|
-
description: string;
|
7726
|
-
id: string;
|
7727
|
-
status: import("@package/databases").Status;
|
7728
|
-
chainId: number;
|
7729
|
-
action: import("@package/databases").OpportunityAction;
|
7730
|
-
type: string;
|
7731
|
-
depositUrl: string | null;
|
7732
|
-
explorerAddress: string | null;
|
7733
|
-
howToSteps: string[];
|
7734
|
-
mainProtocolId: string | null;
|
7735
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
7736
|
-
identifier: string;
|
7737
|
-
dailyRewards: number;
|
7738
|
-
tags: string[];
|
7739
|
-
lastCampaignCreatedAt: Date;
|
7740
|
-
};
|
7741
|
-
campaignId: string;
|
7742
|
-
id: string;
|
7743
|
-
amount: string;
|
7744
|
-
type: string;
|
7745
|
-
computeChainId: number;
|
7746
|
-
distributionChainId: number;
|
7747
|
-
opportunityId: string;
|
7748
|
-
distributionType: import("@package/databases").DistributionType;
|
7749
|
-
subType: number | null;
|
7750
|
-
rewardTokenId: string;
|
7751
|
-
})[];
|
7610
|
+
}) | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">)[];
|
7752
7611
|
422: {
|
7753
7612
|
type: "validation";
|
7754
7613
|
on: string;
|
@@ -7819,87 +7678,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7819
7678
|
createdAt: Date;
|
7820
7679
|
rootCampaignId: string | null;
|
7821
7680
|
parentCampaignId: string | null;
|
7822
|
-
})[] |
|
7823
|
-
params: any;
|
7824
|
-
chain: {
|
7825
|
-
name: string;
|
7826
|
-
id: number;
|
7827
|
-
icon: string;
|
7828
|
-
};
|
7829
|
-
endTimestamp: number;
|
7830
|
-
startTimestamp: number;
|
7831
|
-
rewardToken: {
|
7832
|
-
symbol: string;
|
7833
|
-
name: string | null;
|
7834
|
-
decimals: number;
|
7835
|
-
address: string;
|
7836
|
-
id: string;
|
7837
|
-
chainId: number;
|
7838
|
-
icon: string;
|
7839
|
-
isNative: boolean;
|
7840
|
-
isPoint: boolean;
|
7841
|
-
isPreTGE: boolean;
|
7842
|
-
isTest: boolean;
|
7843
|
-
verified: boolean;
|
7844
|
-
} & {
|
7845
|
-
price?: number | null | undefined;
|
7846
|
-
isTokenWrapper?: boolean | undefined;
|
7847
|
-
tokenWrapperAddress?: string | undefined;
|
7848
|
-
};
|
7849
|
-
distributionChain: {
|
7850
|
-
name: string;
|
7851
|
-
id: number;
|
7852
|
-
icon: string;
|
7853
|
-
} | undefined;
|
7854
|
-
campaignStatus: {
|
7855
|
-
computedUntil: number;
|
7856
|
-
processingStarted: number;
|
7857
|
-
campaignId: string;
|
7858
|
-
error: string;
|
7859
|
-
status: import("@package/databases").RunStatus;
|
7860
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
7861
|
-
} | undefined;
|
7862
|
-
creatorAddress: string;
|
7863
|
-
creator: {
|
7864
|
-
address: string;
|
7865
|
-
tags: string[];
|
7866
|
-
creatorId: string | null;
|
7867
|
-
};
|
7868
|
-
createdAt: string;
|
7869
|
-
description: string | undefined;
|
7870
|
-
parentCampaignId: string | undefined;
|
7871
|
-
rootCampaignId: string | undefined;
|
7872
|
-
Opportunity: {
|
7873
|
-
name: string;
|
7874
|
-
apr: number;
|
7875
|
-
tvl: number;
|
7876
|
-
description: string;
|
7877
|
-
id: string;
|
7878
|
-
status: import("@package/databases").Status;
|
7879
|
-
chainId: number;
|
7880
|
-
action: import("@package/databases").OpportunityAction;
|
7881
|
-
type: string;
|
7882
|
-
depositUrl: string | null;
|
7883
|
-
explorerAddress: string | null;
|
7884
|
-
howToSteps: string[];
|
7885
|
-
mainProtocolId: string | null;
|
7886
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
7887
|
-
identifier: string;
|
7888
|
-
dailyRewards: number;
|
7889
|
-
tags: string[];
|
7890
|
-
lastCampaignCreatedAt: Date;
|
7891
|
-
};
|
7892
|
-
campaignId: string;
|
7893
|
-
id: string;
|
7894
|
-
amount: string;
|
7895
|
-
type: string;
|
7896
|
-
computeChainId: number;
|
7897
|
-
distributionChainId: number;
|
7898
|
-
opportunityId: string;
|
7899
|
-
distributionType: import("@package/databases").DistributionType;
|
7900
|
-
subType: number | null;
|
7901
|
-
rewardTokenId: string;
|
7902
|
-
}[];
|
7681
|
+
})[] | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">[];
|
7903
7682
|
422: {
|
7904
7683
|
type: "validation";
|
7905
7684
|
on: string;
|
@@ -10529,7 +10308,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
10529
10308
|
campaignStatus?: {
|
10530
10309
|
error?: string | undefined;
|
10531
10310
|
details?: any;
|
10532
|
-
campaignId: string;
|
10533
10311
|
status: string;
|
10534
10312
|
computedUntil: string | number;
|
10535
10313
|
processingStarted: string | number;
|
@@ -10568,10 +10346,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
10568
10346
|
computeChainId: number;
|
10569
10347
|
distributionChainId: number;
|
10570
10348
|
endTimestamp: string | number;
|
10571
|
-
opportunityId: string;
|
10572
10349
|
creatorAddress: string;
|
10573
10350
|
subType: number | null;
|
10574
|
-
rewardTokenId: string;
|
10575
10351
|
createdAt: string;
|
10576
10352
|
chain: {
|
10577
10353
|
explorers?: {
|
@@ -11017,7 +10793,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
11017
10793
|
campaignStatus?: {
|
11018
10794
|
error?: string | undefined;
|
11019
10795
|
details?: any;
|
11020
|
-
campaignId: string;
|
11021
10796
|
status: string;
|
11022
10797
|
computedUntil: string | number;
|
11023
10798
|
processingStarted: string | number;
|
@@ -11056,10 +10831,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
11056
10831
|
computeChainId: number;
|
11057
10832
|
distributionChainId: number;
|
11058
10833
|
endTimestamp: string | number;
|
11059
|
-
opportunityId: string;
|
11060
10834
|
creatorAddress: string;
|
11061
10835
|
subType: number | null;
|
11062
|
-
rewardTokenId: string;
|
11063
10836
|
createdAt: string;
|
11064
10837
|
chain: {
|
11065
10838
|
explorers?: {
|
@@ -11562,7 +11335,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
11562
11335
|
campaignStatus?: {
|
11563
11336
|
error?: string | undefined;
|
11564
11337
|
details?: any;
|
11565
|
-
campaignId: string;
|
11566
11338
|
status: string;
|
11567
11339
|
computedUntil: string | number;
|
11568
11340
|
processingStarted: string | number;
|
@@ -11601,10 +11373,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
11601
11373
|
computeChainId: number;
|
11602
11374
|
distributionChainId: number;
|
11603
11375
|
endTimestamp: string | number;
|
11604
|
-
opportunityId: string;
|
11605
11376
|
creatorAddress: string;
|
11606
11377
|
subType: number | null;
|
11607
|
-
rewardTokenId: string;
|
11608
11378
|
createdAt: string;
|
11609
11379
|
chain: {
|
11610
11380
|
explorers?: {
|
@@ -11957,7 +11727,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
11957
11727
|
campaignStatus?: {
|
11958
11728
|
error?: string | undefined;
|
11959
11729
|
details?: any;
|
11960
|
-
campaignId: string;
|
11961
11730
|
status: string;
|
11962
11731
|
computedUntil: string | number;
|
11963
11732
|
processingStarted: string | number;
|
@@ -11996,10 +11765,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
11996
11765
|
computeChainId: number;
|
11997
11766
|
distributionChainId: number;
|
11998
11767
|
endTimestamp: string | number;
|
11999
|
-
opportunityId: string;
|
12000
11768
|
creatorAddress: string;
|
12001
11769
|
subType: number | null;
|
12002
|
-
rewardTokenId: string;
|
12003
11770
|
createdAt: string;
|
12004
11771
|
chain: {
|
12005
11772
|
explorers?: {
|
@@ -12240,50 +12007,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
12240
12007
|
};
|
12241
12008
|
}>>;
|
12242
12009
|
};
|
12243
|
-
metadata: {
|
12244
|
-
patch: (body: {
|
12245
|
-
campaignId: string;
|
12246
|
-
url: string;
|
12247
|
-
distributionChain: number;
|
12248
|
-
}, options: {
|
12249
|
-
headers: {
|
12250
|
-
authorization: string;
|
12251
|
-
};
|
12252
|
-
query?: Record<string, unknown> | undefined;
|
12253
|
-
fetch?: RequestInit | undefined;
|
12254
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
12255
|
-
200: {
|
12256
|
-
campaignId: string;
|
12257
|
-
description: string | null;
|
12258
|
-
id: string;
|
12259
|
-
params: import("@prisma/client/runtime/library").JsonValue;
|
12260
|
-
amount: string;
|
12261
|
-
startTimestamp: bigint;
|
12262
|
-
type: string;
|
12263
|
-
computeChainId: number;
|
12264
|
-
distributionChainId: number;
|
12265
|
-
endTimestamp: bigint;
|
12266
|
-
opportunityId: string;
|
12267
|
-
creatorAddress: string;
|
12268
|
-
distributionType: import("@package/databases").DistributionType;
|
12269
|
-
subType: number | null;
|
12270
|
-
rewardTokenId: string;
|
12271
|
-
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
12272
|
-
createdAt: Date;
|
12273
|
-
rootCampaignId: string | null;
|
12274
|
-
parentCampaignId: string | null;
|
12275
|
-
};
|
12276
|
-
422: {
|
12277
|
-
type: "validation";
|
12278
|
-
on: string;
|
12279
|
-
summary?: string;
|
12280
|
-
message?: string;
|
12281
|
-
found?: unknown;
|
12282
|
-
property?: string;
|
12283
|
-
expected?: string;
|
12284
|
-
};
|
12285
|
-
}>>;
|
12286
|
-
};
|
12287
12010
|
tvls: ((params: {
|
12288
12011
|
opportunityId: string | number;
|
12289
12012
|
}) => {
|
@@ -16767,87 +16490,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16767
16490
|
createdAt: Date;
|
16768
16491
|
rootCampaignId: string | null;
|
16769
16492
|
parentCampaignId: string | null;
|
16770
|
-
}) |
|
16771
|
-
params: any;
|
16772
|
-
chain: {
|
16773
|
-
name: string;
|
16774
|
-
id: number;
|
16775
|
-
icon: string;
|
16776
|
-
};
|
16777
|
-
endTimestamp: number;
|
16778
|
-
startTimestamp: number;
|
16779
|
-
rewardToken: {
|
16780
|
-
symbol: string;
|
16781
|
-
name: string | null;
|
16782
|
-
decimals: number;
|
16783
|
-
address: string;
|
16784
|
-
id: string;
|
16785
|
-
chainId: number;
|
16786
|
-
icon: string;
|
16787
|
-
isNative: boolean;
|
16788
|
-
isPoint: boolean;
|
16789
|
-
isPreTGE: boolean;
|
16790
|
-
isTest: boolean;
|
16791
|
-
verified: boolean;
|
16792
|
-
} & {
|
16793
|
-
price?: number | null | undefined;
|
16794
|
-
isTokenWrapper?: boolean | undefined;
|
16795
|
-
tokenWrapperAddress?: string | undefined;
|
16796
|
-
};
|
16797
|
-
distributionChain: {
|
16798
|
-
name: string;
|
16799
|
-
id: number;
|
16800
|
-
icon: string;
|
16801
|
-
} | undefined;
|
16802
|
-
campaignStatus: {
|
16803
|
-
computedUntil: number;
|
16804
|
-
processingStarted: number;
|
16805
|
-
campaignId: string;
|
16806
|
-
error: string;
|
16807
|
-
status: import("@package/databases").RunStatus;
|
16808
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
16809
|
-
} | undefined;
|
16810
|
-
creatorAddress: string;
|
16811
|
-
creator: {
|
16812
|
-
address: string;
|
16813
|
-
tags: string[];
|
16814
|
-
creatorId: string | null;
|
16815
|
-
};
|
16816
|
-
createdAt: string;
|
16817
|
-
description: string | undefined;
|
16818
|
-
parentCampaignId: string | undefined;
|
16819
|
-
rootCampaignId: string | undefined;
|
16820
|
-
Opportunity: {
|
16821
|
-
name: string;
|
16822
|
-
apr: number;
|
16823
|
-
tvl: number;
|
16824
|
-
description: string;
|
16825
|
-
id: string;
|
16826
|
-
status: import("@package/databases").Status;
|
16827
|
-
chainId: number;
|
16828
|
-
action: import("@package/databases").OpportunityAction;
|
16829
|
-
type: string;
|
16830
|
-
depositUrl: string | null;
|
16831
|
-
explorerAddress: string | null;
|
16832
|
-
howToSteps: string[];
|
16833
|
-
mainProtocolId: string | null;
|
16834
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
16835
|
-
identifier: string;
|
16836
|
-
dailyRewards: number;
|
16837
|
-
tags: string[];
|
16838
|
-
lastCampaignCreatedAt: Date;
|
16839
|
-
};
|
16840
|
-
campaignId: string;
|
16841
|
-
id: string;
|
16842
|
-
amount: string;
|
16843
|
-
type: string;
|
16844
|
-
computeChainId: number;
|
16845
|
-
distributionChainId: number;
|
16846
|
-
opportunityId: string;
|
16847
|
-
distributionType: import("@package/databases").DistributionType;
|
16848
|
-
subType: number | null;
|
16849
|
-
rewardTokenId: string;
|
16850
|
-
})[];
|
16493
|
+
}) | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">)[];
|
16851
16494
|
422: {
|
16852
16495
|
type: "validation";
|
16853
16496
|
on: string;
|
@@ -16996,87 +16639,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16996
16639
|
createdAt: Date;
|
16997
16640
|
rootCampaignId: string | null;
|
16998
16641
|
parentCampaignId: string | null;
|
16999
|
-
})[] |
|
17000
|
-
params: any;
|
17001
|
-
chain: {
|
17002
|
-
name: string;
|
17003
|
-
id: number;
|
17004
|
-
icon: string;
|
17005
|
-
};
|
17006
|
-
endTimestamp: number;
|
17007
|
-
startTimestamp: number;
|
17008
|
-
rewardToken: {
|
17009
|
-
symbol: string;
|
17010
|
-
name: string | null;
|
17011
|
-
decimals: number;
|
17012
|
-
address: string;
|
17013
|
-
id: string;
|
17014
|
-
chainId: number;
|
17015
|
-
icon: string;
|
17016
|
-
isNative: boolean;
|
17017
|
-
isPoint: boolean;
|
17018
|
-
isPreTGE: boolean;
|
17019
|
-
isTest: boolean;
|
17020
|
-
verified: boolean;
|
17021
|
-
} & {
|
17022
|
-
price?: number | null | undefined;
|
17023
|
-
isTokenWrapper?: boolean | undefined;
|
17024
|
-
tokenWrapperAddress?: string | undefined;
|
17025
|
-
};
|
17026
|
-
distributionChain: {
|
17027
|
-
name: string;
|
17028
|
-
id: number;
|
17029
|
-
icon: string;
|
17030
|
-
} | undefined;
|
17031
|
-
campaignStatus: {
|
17032
|
-
computedUntil: number;
|
17033
|
-
processingStarted: number;
|
17034
|
-
campaignId: string;
|
17035
|
-
error: string;
|
17036
|
-
status: import("@package/databases").RunStatus;
|
17037
|
-
details: import("@prisma/client/runtime/library").JsonValue;
|
17038
|
-
} | undefined;
|
17039
|
-
creatorAddress: string;
|
17040
|
-
creator: {
|
17041
|
-
address: string;
|
17042
|
-
tags: string[];
|
17043
|
-
creatorId: string | null;
|
17044
|
-
};
|
17045
|
-
createdAt: string;
|
17046
|
-
description: string | undefined;
|
17047
|
-
parentCampaignId: string | undefined;
|
17048
|
-
rootCampaignId: string | undefined;
|
17049
|
-
Opportunity: {
|
17050
|
-
name: string;
|
17051
|
-
apr: number;
|
17052
|
-
tvl: number;
|
17053
|
-
description: string;
|
17054
|
-
id: string;
|
17055
|
-
status: import("@package/databases").Status;
|
17056
|
-
chainId: number;
|
17057
|
-
action: import("@package/databases").OpportunityAction;
|
17058
|
-
type: string;
|
17059
|
-
depositUrl: string | null;
|
17060
|
-
explorerAddress: string | null;
|
17061
|
-
howToSteps: string[];
|
17062
|
-
mainProtocolId: string | null;
|
17063
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
17064
|
-
identifier: string;
|
17065
|
-
dailyRewards: number;
|
17066
|
-
tags: string[];
|
17067
|
-
lastCampaignCreatedAt: Date;
|
17068
|
-
};
|
17069
|
-
campaignId: string;
|
17070
|
-
id: string;
|
17071
|
-
amount: string;
|
17072
|
-
type: string;
|
17073
|
-
computeChainId: number;
|
17074
|
-
distributionChainId: number;
|
17075
|
-
opportunityId: string;
|
17076
|
-
distributionType: import("@package/databases").DistributionType;
|
17077
|
-
subType: number | null;
|
17078
|
-
rewardTokenId: string;
|
17079
|
-
}[];
|
16642
|
+
})[] | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">[];
|
17080
16643
|
422: {
|
17081
16644
|
type: "validation";
|
17082
16645
|
on: string;
|
@@ -4,7 +4,7 @@ import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.m
|
|
4
4
|
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
5
5
|
type campaignType = CampaignType.AJNA;
|
6
6
|
export declare class AjnaMetadata implements MetadataBuilder<campaignType> {
|
7
|
-
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
7
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
8
8
|
action: "LEND" | "BORROW";
|
9
9
|
name: string;
|
10
10
|
tokens: {
|
@@ -4,7 +4,7 @@ import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.m
|
|
4
4
|
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
5
5
|
type campaignType = CampaignType.AMBIENTPROCESSOR;
|
6
6
|
export declare class AmbientMetadata implements MetadataBuilder<campaignType> {
|
7
|
-
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
7
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
8
8
|
name: string;
|
9
9
|
action: "POOL";
|
10
10
|
tokens: {
|
@@ -4,7 +4,7 @@ import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
|
4
4
|
import type { MetadataBuilder } from "../../metadata/interface";
|
5
5
|
type campaignType = CampaignType.BADGER;
|
6
6
|
export declare class BadgerMetadata implements MetadataBuilder<campaignType> {
|
7
|
-
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
7
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
8
8
|
action: "BORROW";
|
9
9
|
name: string;
|
10
10
|
tokens: {
|
@@ -29,7 +29,7 @@ export declare const sushiswapv3Chains: {
|
|
29
29
|
[C in ChainId]?: string;
|
30
30
|
};
|
31
31
|
export declare class ClammMetadata implements MetadataBuilder<campaignType> {
|
32
|
-
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
32
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
33
33
|
name: string;
|
34
34
|
action: "POOL";
|
35
35
|
tokens: {
|
@@ -4,7 +4,7 @@ import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.m
|
|
4
4
|
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
5
5
|
type campaignType = CampaignType.COMPOUND;
|
6
6
|
export declare class CompoundMetadata implements MetadataBuilder<campaignType> {
|
7
|
-
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
7
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
8
8
|
action: "LEND" | "BORROW";
|
9
9
|
name: string;
|
10
10
|
tokens: {
|
@@ -4,7 +4,7 @@ import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.m
|
|
4
4
|
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
5
5
|
type campaignType = CampaignType.COMPOUND_V3;
|
6
6
|
export declare class CompoundV3Metadata implements MetadataBuilder<campaignType> {
|
7
|
-
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides">): Promise<{
|
7
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
8
8
|
action: "LEND" | "BORROW";
|
9
9
|
name: string;
|
10
10
|
tokens: {
|