@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/eden/index.d.ts
CHANGED
@@ -1990,7 +1990,7 @@ declare const eden: {
|
|
1990
1990
|
};
|
1991
1991
|
};
|
1992
1992
|
metadata: {
|
1993
|
-
|
1993
|
+
index: {
|
1994
1994
|
post: (body: {
|
1995
1995
|
id?: string | undefined;
|
1996
1996
|
subType?: number | undefined;
|
@@ -4636,157 +4636,8 @@ declare const eden: {
|
|
4636
4636
|
};
|
4637
4637
|
};
|
4638
4638
|
creators: ((params: {
|
4639
|
-
address: string | number;
|
4640
4639
|
creatorId: string | number;
|
4641
4640
|
}) => {
|
4642
|
-
dashboard: {
|
4643
|
-
get: (options?: {
|
4644
|
-
headers?: Record<string, unknown> | undefined;
|
4645
|
-
query?: Record<string, unknown> | undefined;
|
4646
|
-
fetch?: RequestInit | undefined;
|
4647
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4648
|
-
200: {
|
4649
|
-
pastCampaigns: number;
|
4650
|
-
liveCampaigns: number;
|
4651
|
-
futureCampaigns: number;
|
4652
|
-
totalTvl: number;
|
4653
|
-
totalWallets: number;
|
4654
|
-
totalCampaigns: number;
|
4655
|
-
creatorId: string | null;
|
4656
|
-
};
|
4657
|
-
}>>;
|
4658
|
-
};
|
4659
|
-
campaigns: {
|
4660
|
-
get: (options: {
|
4661
|
-
headers?: Record<string, unknown> | undefined;
|
4662
|
-
query: {
|
4663
|
-
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
4664
|
-
};
|
4665
|
-
fetch?: RequestInit | undefined;
|
4666
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4667
|
-
200: ({
|
4668
|
-
Opportunity: {
|
4669
|
-
status: import("@db/api").$Enums.Status;
|
4670
|
-
type: string;
|
4671
|
-
name: string;
|
4672
|
-
description: string;
|
4673
|
-
id: string;
|
4674
|
-
tags: string[];
|
4675
|
-
identifier: string;
|
4676
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
4677
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4678
|
-
chainId: number;
|
4679
|
-
howToSteps: string[];
|
4680
|
-
depositUrl: string | null;
|
4681
|
-
explorerAddress: string | null;
|
4682
|
-
mainProtocolId: string | null;
|
4683
|
-
tvl: number;
|
4684
|
-
apr: number;
|
4685
|
-
dailyRewards: number;
|
4686
|
-
lastCampaignCreatedAt: Date;
|
4687
|
-
};
|
4688
|
-
} & {
|
4689
|
-
type: string;
|
4690
|
-
description: string | null;
|
4691
|
-
id: string;
|
4692
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
4693
|
-
subType: number | null;
|
4694
|
-
computeChainId: number;
|
4695
|
-
distributionChainId: number;
|
4696
|
-
campaignId: string;
|
4697
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
4698
|
-
rewardTokenId: string;
|
4699
|
-
amount: string;
|
4700
|
-
opportunityId: string;
|
4701
|
-
startTimestamp: bigint;
|
4702
|
-
endTimestamp: bigint;
|
4703
|
-
creatorAddress: string;
|
4704
|
-
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
4705
|
-
createdAt: Date;
|
4706
|
-
rootCampaignId: string | null;
|
4707
|
-
parentCampaignId: string | null;
|
4708
|
-
})[] | {
|
4709
|
-
params: any;
|
4710
|
-
chain: {
|
4711
|
-
name: string;
|
4712
|
-
id: number;
|
4713
|
-
icon: string;
|
4714
|
-
};
|
4715
|
-
endTimestamp: number;
|
4716
|
-
startTimestamp: number;
|
4717
|
-
rewardToken: {
|
4718
|
-
symbol: string;
|
4719
|
-
name: string | null;
|
4720
|
-
id: string;
|
4721
|
-
icon: string;
|
4722
|
-
address: string;
|
4723
|
-
chainId: number;
|
4724
|
-
decimals: number;
|
4725
|
-
verified: boolean;
|
4726
|
-
isTest: boolean;
|
4727
|
-
isPoint: boolean;
|
4728
|
-
isPreTGE: boolean;
|
4729
|
-
isNative: boolean;
|
4730
|
-
} & {
|
4731
|
-
price?: number | null | undefined;
|
4732
|
-
};
|
4733
|
-
distributionChain: {
|
4734
|
-
name: string;
|
4735
|
-
id: number;
|
4736
|
-
icon: string;
|
4737
|
-
} | undefined;
|
4738
|
-
campaignStatus: {
|
4739
|
-
computedUntil: number;
|
4740
|
-
processingStarted: number;
|
4741
|
-
status: import("@db/api").$Enums.RunStatus;
|
4742
|
-
error: string;
|
4743
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
4744
|
-
campaignId: string;
|
4745
|
-
} | undefined;
|
4746
|
-
creatorAddress: string;
|
4747
|
-
creator: {
|
4748
|
-
tags: string[];
|
4749
|
-
address: string;
|
4750
|
-
creatorId: string | null;
|
4751
|
-
};
|
4752
|
-
createdAt: string;
|
4753
|
-
description: string | undefined;
|
4754
|
-
parentCampaignId: string | undefined;
|
4755
|
-
rootCampaignId: string | undefined;
|
4756
|
-
Opportunity: {
|
4757
|
-
status: import("@db/api").$Enums.Status;
|
4758
|
-
type: string;
|
4759
|
-
name: string;
|
4760
|
-
description: string;
|
4761
|
-
id: string;
|
4762
|
-
tags: string[];
|
4763
|
-
identifier: string;
|
4764
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
4765
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4766
|
-
chainId: number;
|
4767
|
-
howToSteps: string[];
|
4768
|
-
depositUrl: string | null;
|
4769
|
-
explorerAddress: string | null;
|
4770
|
-
mainProtocolId: string | null;
|
4771
|
-
tvl: number;
|
4772
|
-
apr: number;
|
4773
|
-
dailyRewards: number;
|
4774
|
-
lastCampaignCreatedAt: Date;
|
4775
|
-
};
|
4776
|
-
type: string;
|
4777
|
-
id: string;
|
4778
|
-
subType: number | null;
|
4779
|
-
computeChainId: number;
|
4780
|
-
distributionChainId: number;
|
4781
|
-
campaignId: string;
|
4782
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
4783
|
-
rewardTokenId: string;
|
4784
|
-
amount: string;
|
4785
|
-
opportunityId: string;
|
4786
|
-
}[];
|
4787
|
-
}>>;
|
4788
|
-
};
|
4789
|
-
} | {
|
4790
4641
|
get: (options?: {
|
4791
4642
|
headers?: Record<string, unknown> | undefined;
|
4792
4643
|
query?: Record<string, unknown> | undefined;
|
@@ -4879,126 +4730,277 @@ declare const eden: {
|
|
4879
4730
|
})[];
|
4880
4731
|
}>>;
|
4881
4732
|
};
|
4882
|
-
|
4883
|
-
|
4733
|
+
user: ((params: {
|
4734
|
+
address: string | number;
|
4884
4735
|
}) => {
|
4885
|
-
|
4886
|
-
|
4887
|
-
query?: Record<string, unknown> | undefined;
|
4888
|
-
fetch?: RequestInit | undefined;
|
4889
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4890
|
-
200: {
|
4891
|
-
tvlRecords: {
|
4892
|
-
total: number;
|
4893
|
-
timestamp: bigint;
|
4894
|
-
}[];
|
4895
|
-
aprRecords: {
|
4896
|
-
timestamp: bigint;
|
4897
|
-
apr: number;
|
4898
|
-
}[];
|
4899
|
-
dailyRewardsRecords: {
|
4900
|
-
total: number;
|
4901
|
-
timestamp: bigint;
|
4902
|
-
}[];
|
4903
|
-
walletCount: {
|
4904
|
-
timestamp: bigint;
|
4905
|
-
walletCount: number;
|
4906
|
-
}[];
|
4907
|
-
tvlInflowPerDollar: number;
|
4908
|
-
};
|
4909
|
-
}>>;
|
4910
|
-
}) & {};
|
4911
|
-
};
|
4912
|
-
referral: {
|
4913
|
-
code: {
|
4914
|
-
get: (options: {
|
4915
|
-
headers?: Record<string, unknown> | undefined;
|
4916
|
-
query: {
|
4917
|
-
address: string;
|
4918
|
-
chainId: number;
|
4919
|
-
referralKey: string;
|
4920
|
-
};
|
4921
|
-
fetch?: RequestInit | undefined;
|
4922
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4923
|
-
200: {
|
4924
|
-
code: string;
|
4925
|
-
referrer: boolean;
|
4926
|
-
referredUsers: never[];
|
4927
|
-
transaction: {
|
4928
|
-
to: string;
|
4929
|
-
data: `0x${string}`;
|
4930
|
-
};
|
4931
|
-
} | {
|
4932
|
-
code: any;
|
4933
|
-
referrer: boolean;
|
4934
|
-
referredUsers: any;
|
4935
|
-
transaction?: undefined;
|
4936
|
-
};
|
4937
|
-
}>>;
|
4938
|
-
};
|
4939
|
-
redeem: {
|
4940
|
-
get: (options: {
|
4941
|
-
headers?: Record<string, unknown> | undefined;
|
4942
|
-
query: {
|
4943
|
-
code: string;
|
4944
|
-
chainId: number;
|
4945
|
-
referralKey: string;
|
4946
|
-
};
|
4947
|
-
fetch?: RequestInit | undefined;
|
4948
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4949
|
-
200: {
|
4950
|
-
code: string;
|
4951
|
-
referrer: any;
|
4952
|
-
transaction?: undefined;
|
4953
|
-
} | {
|
4954
|
-
code: string;
|
4955
|
-
referrer: any;
|
4956
|
-
transaction: {
|
4957
|
-
to: string;
|
4958
|
-
data: `0x${string}`;
|
4959
|
-
};
|
4960
|
-
};
|
4961
|
-
}>>;
|
4962
|
-
};
|
4963
|
-
};
|
4964
|
-
uniswap: {
|
4965
|
-
reward: {
|
4966
|
-
3: {
|
4967
|
-
get: (options: {
|
4736
|
+
dashboard: {
|
4737
|
+
get: (options?: {
|
4968
4738
|
headers?: Record<string, unknown> | undefined;
|
4969
|
-
query
|
4970
|
-
chainId?: number | undefined;
|
4971
|
-
pool?: string | undefined;
|
4972
|
-
positionId?: string | undefined;
|
4973
|
-
address: string;
|
4974
|
-
};
|
4739
|
+
query?: Record<string, unknown> | undefined;
|
4975
4740
|
fetch?: RequestInit | undefined;
|
4976
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4741
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4977
4742
|
200: {
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
|
-
|
4985
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
4986
|
-
}[]>>;
|
4743
|
+
pastCampaigns: number;
|
4744
|
+
liveCampaigns: number;
|
4745
|
+
futureCampaigns: number;
|
4746
|
+
totalTvl: number;
|
4747
|
+
totalWallets: number;
|
4748
|
+
totalCampaigns: number;
|
4749
|
+
creatorId: string | null;
|
4987
4750
|
};
|
4988
4751
|
}>>;
|
4989
4752
|
};
|
4990
|
-
|
4753
|
+
campaigns: {
|
4991
4754
|
get: (options: {
|
4992
4755
|
headers?: Record<string, unknown> | undefined;
|
4993
4756
|
query: {
|
4994
|
-
|
4995
|
-
pool?: string | undefined;
|
4996
|
-
positionId?: string | undefined;
|
4997
|
-
address: string;
|
4757
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
4998
4758
|
};
|
4999
4759
|
fetch?: RequestInit | undefined;
|
5000
4760
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5001
|
-
200: {
|
4761
|
+
200: ({
|
4762
|
+
Opportunity: {
|
4763
|
+
status: import("@db/api").$Enums.Status;
|
4764
|
+
type: string;
|
4765
|
+
name: string;
|
4766
|
+
description: string;
|
4767
|
+
id: string;
|
4768
|
+
tags: string[];
|
4769
|
+
identifier: string;
|
4770
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4771
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4772
|
+
chainId: number;
|
4773
|
+
howToSteps: string[];
|
4774
|
+
depositUrl: string | null;
|
4775
|
+
explorerAddress: string | null;
|
4776
|
+
mainProtocolId: string | null;
|
4777
|
+
tvl: number;
|
4778
|
+
apr: number;
|
4779
|
+
dailyRewards: number;
|
4780
|
+
lastCampaignCreatedAt: Date;
|
4781
|
+
};
|
4782
|
+
} & {
|
4783
|
+
type: string;
|
4784
|
+
description: string | null;
|
4785
|
+
id: string;
|
4786
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
4787
|
+
subType: number | null;
|
4788
|
+
computeChainId: number;
|
4789
|
+
distributionChainId: number;
|
4790
|
+
campaignId: string;
|
4791
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
4792
|
+
rewardTokenId: string;
|
4793
|
+
amount: string;
|
4794
|
+
opportunityId: string;
|
4795
|
+
startTimestamp: bigint;
|
4796
|
+
endTimestamp: bigint;
|
4797
|
+
creatorAddress: string;
|
4798
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
4799
|
+
createdAt: Date;
|
4800
|
+
rootCampaignId: string | null;
|
4801
|
+
parentCampaignId: string | null;
|
4802
|
+
})[] | {
|
4803
|
+
params: any;
|
4804
|
+
chain: {
|
4805
|
+
name: string;
|
4806
|
+
id: number;
|
4807
|
+
icon: string;
|
4808
|
+
};
|
4809
|
+
endTimestamp: number;
|
4810
|
+
startTimestamp: number;
|
4811
|
+
rewardToken: {
|
4812
|
+
symbol: string;
|
4813
|
+
name: string | null;
|
4814
|
+
id: string;
|
4815
|
+
icon: string;
|
4816
|
+
address: string;
|
4817
|
+
chainId: number;
|
4818
|
+
decimals: number;
|
4819
|
+
verified: boolean;
|
4820
|
+
isTest: boolean;
|
4821
|
+
isPoint: boolean;
|
4822
|
+
isPreTGE: boolean;
|
4823
|
+
isNative: boolean;
|
4824
|
+
} & {
|
4825
|
+
price?: number | null | undefined;
|
4826
|
+
};
|
4827
|
+
distributionChain: {
|
4828
|
+
name: string;
|
4829
|
+
id: number;
|
4830
|
+
icon: string;
|
4831
|
+
} | undefined;
|
4832
|
+
campaignStatus: {
|
4833
|
+
computedUntil: number;
|
4834
|
+
processingStarted: number;
|
4835
|
+
status: import("@db/api").$Enums.RunStatus;
|
4836
|
+
error: string;
|
4837
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
4838
|
+
campaignId: string;
|
4839
|
+
} | undefined;
|
4840
|
+
creatorAddress: string;
|
4841
|
+
creator: {
|
4842
|
+
tags: string[];
|
4843
|
+
address: string;
|
4844
|
+
creatorId: string | null;
|
4845
|
+
};
|
4846
|
+
createdAt: string;
|
4847
|
+
description: string | undefined;
|
4848
|
+
parentCampaignId: string | undefined;
|
4849
|
+
rootCampaignId: string | undefined;
|
4850
|
+
Opportunity: {
|
4851
|
+
status: import("@db/api").$Enums.Status;
|
4852
|
+
type: string;
|
4853
|
+
name: string;
|
4854
|
+
description: string;
|
4855
|
+
id: string;
|
4856
|
+
tags: string[];
|
4857
|
+
identifier: string;
|
4858
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4859
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4860
|
+
chainId: number;
|
4861
|
+
howToSteps: string[];
|
4862
|
+
depositUrl: string | null;
|
4863
|
+
explorerAddress: string | null;
|
4864
|
+
mainProtocolId: string | null;
|
4865
|
+
tvl: number;
|
4866
|
+
apr: number;
|
4867
|
+
dailyRewards: number;
|
4868
|
+
lastCampaignCreatedAt: Date;
|
4869
|
+
};
|
4870
|
+
type: string;
|
4871
|
+
id: string;
|
4872
|
+
subType: number | null;
|
4873
|
+
computeChainId: number;
|
4874
|
+
distributionChainId: number;
|
4875
|
+
campaignId: string;
|
4876
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
4877
|
+
rewardTokenId: string;
|
4878
|
+
amount: string;
|
4879
|
+
opportunityId: string;
|
4880
|
+
}[];
|
4881
|
+
}>>;
|
4882
|
+
};
|
4883
|
+
}) & {};
|
4884
|
+
campaigns: ((params: {
|
4885
|
+
campaignId: string | number;
|
4886
|
+
}) => {
|
4887
|
+
get: (options?: {
|
4888
|
+
headers?: Record<string, unknown> | undefined;
|
4889
|
+
query?: Record<string, unknown> | undefined;
|
4890
|
+
fetch?: RequestInit | undefined;
|
4891
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4892
|
+
200: {
|
4893
|
+
tvlRecords: {
|
4894
|
+
total: number;
|
4895
|
+
timestamp: bigint;
|
4896
|
+
}[];
|
4897
|
+
aprRecords: {
|
4898
|
+
timestamp: bigint;
|
4899
|
+
apr: number;
|
4900
|
+
}[];
|
4901
|
+
dailyRewardsRecords: {
|
4902
|
+
total: number;
|
4903
|
+
timestamp: bigint;
|
4904
|
+
}[];
|
4905
|
+
walletCount: {
|
4906
|
+
timestamp: bigint;
|
4907
|
+
walletCount: number;
|
4908
|
+
}[];
|
4909
|
+
tvlInflowPerDollar: number;
|
4910
|
+
};
|
4911
|
+
}>>;
|
4912
|
+
}) & {};
|
4913
|
+
};
|
4914
|
+
referral: {
|
4915
|
+
code: {
|
4916
|
+
get: (options: {
|
4917
|
+
headers?: Record<string, unknown> | undefined;
|
4918
|
+
query: {
|
4919
|
+
address: string;
|
4920
|
+
chainId: number;
|
4921
|
+
referralKey: string;
|
4922
|
+
};
|
4923
|
+
fetch?: RequestInit | undefined;
|
4924
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4925
|
+
200: {
|
4926
|
+
code: string;
|
4927
|
+
referrer: boolean;
|
4928
|
+
referredUsers: never[];
|
4929
|
+
transaction: {
|
4930
|
+
to: string;
|
4931
|
+
data: `0x${string}`;
|
4932
|
+
};
|
4933
|
+
} | {
|
4934
|
+
code: any;
|
4935
|
+
referrer: boolean;
|
4936
|
+
referredUsers: any;
|
4937
|
+
transaction?: undefined;
|
4938
|
+
};
|
4939
|
+
}>>;
|
4940
|
+
};
|
4941
|
+
redeem: {
|
4942
|
+
get: (options: {
|
4943
|
+
headers?: Record<string, unknown> | undefined;
|
4944
|
+
query: {
|
4945
|
+
code: string;
|
4946
|
+
chainId: number;
|
4947
|
+
referralKey: string;
|
4948
|
+
};
|
4949
|
+
fetch?: RequestInit | undefined;
|
4950
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4951
|
+
200: {
|
4952
|
+
code: string;
|
4953
|
+
referrer: any;
|
4954
|
+
transaction?: undefined;
|
4955
|
+
} | {
|
4956
|
+
code: string;
|
4957
|
+
referrer: any;
|
4958
|
+
transaction: {
|
4959
|
+
to: string;
|
4960
|
+
data: `0x${string}`;
|
4961
|
+
};
|
4962
|
+
};
|
4963
|
+
}>>;
|
4964
|
+
};
|
4965
|
+
};
|
4966
|
+
uniswap: {
|
4967
|
+
reward: {
|
4968
|
+
3: {
|
4969
|
+
get: (options: {
|
4970
|
+
headers?: Record<string, unknown> | undefined;
|
4971
|
+
query: {
|
4972
|
+
chainId?: number | undefined;
|
4973
|
+
pool?: string | undefined;
|
4974
|
+
positionId?: string | undefined;
|
4975
|
+
address: string;
|
4976
|
+
};
|
4977
|
+
fetch?: RequestInit | undefined;
|
4978
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4979
|
+
200: {
|
4980
|
+
[x: number]: Record<string, Record<string, {
|
4981
|
+
campaignId: string;
|
4982
|
+
amount: string;
|
4983
|
+
claimed: string;
|
4984
|
+
pending: string;
|
4985
|
+
reason: string;
|
4986
|
+
rewardToken: import("../modules/v4/token/token.model").Token["model"];
|
4987
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
4988
|
+
}[]>>;
|
4989
|
+
};
|
4990
|
+
}>>;
|
4991
|
+
};
|
4992
|
+
4: {
|
4993
|
+
get: (options: {
|
4994
|
+
headers?: Record<string, unknown> | undefined;
|
4995
|
+
query: {
|
4996
|
+
chainId?: number | undefined;
|
4997
|
+
pool?: string | undefined;
|
4998
|
+
positionId?: string | undefined;
|
4999
|
+
address: string;
|
5000
|
+
};
|
5001
|
+
fetch?: RequestInit | undefined;
|
5002
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5003
|
+
200: {
|
5002
5004
|
[x: number]: Record<string, Record<string, {
|
5003
5005
|
campaignId: string;
|
5004
5006
|
amount: string;
|
@@ -8192,7 +8194,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8192
8194
|
} & {
|
8193
8195
|
"dry-run": {
|
8194
8196
|
metadata: {
|
8195
|
-
|
8197
|
+
index: {
|
8196
8198
|
post: {
|
8197
8199
|
body: {
|
8198
8200
|
id?: string | undefined;
|
@@ -8316,7 +8318,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8316
8318
|
} & {
|
8317
8319
|
"dry-run": {
|
8318
8320
|
metadata: {
|
8319
|
-
|
8321
|
+
index: {
|
8320
8322
|
get: {
|
8321
8323
|
body: unknown;
|
8322
8324
|
params: {};
|
@@ -11530,24 +11532,26 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
11530
11532
|
};
|
11531
11533
|
} & {
|
11532
11534
|
creators: {
|
11533
|
-
|
11534
|
-
|
11535
|
-
|
11536
|
-
|
11537
|
-
|
11538
|
-
|
11539
|
-
|
11540
|
-
|
11541
|
-
|
11542
|
-
|
11543
|
-
|
11544
|
-
|
11545
|
-
|
11546
|
-
|
11547
|
-
|
11548
|
-
|
11549
|
-
|
11550
|
-
|
11535
|
+
user: {
|
11536
|
+
":address": {
|
11537
|
+
dashboard: {
|
11538
|
+
get: {
|
11539
|
+
body: unknown;
|
11540
|
+
params: {
|
11541
|
+
address: string;
|
11542
|
+
};
|
11543
|
+
query: unknown;
|
11544
|
+
headers: unknown;
|
11545
|
+
response: {
|
11546
|
+
200: {
|
11547
|
+
pastCampaigns: number;
|
11548
|
+
liveCampaigns: number;
|
11549
|
+
futureCampaigns: number;
|
11550
|
+
totalTvl: number;
|
11551
|
+
totalWallets: number;
|
11552
|
+
totalCampaigns: number;
|
11553
|
+
creatorId: string | null;
|
11554
|
+
};
|
11551
11555
|
};
|
11552
11556
|
};
|
11553
11557
|
};
|
@@ -11556,138 +11560,140 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
11556
11560
|
};
|
11557
11561
|
} & {
|
11558
11562
|
creators: {
|
11559
|
-
|
11560
|
-
|
11561
|
-
|
11562
|
-
|
11563
|
-
|
11564
|
-
|
11565
|
-
|
11566
|
-
|
11567
|
-
|
11568
|
-
|
11569
|
-
|
11570
|
-
|
11571
|
-
|
11572
|
-
|
11573
|
-
|
11563
|
+
user: {
|
11564
|
+
":address": {
|
11565
|
+
campaigns: {
|
11566
|
+
get: {
|
11567
|
+
body: unknown;
|
11568
|
+
params: {
|
11569
|
+
address: string;
|
11570
|
+
};
|
11571
|
+
query: {
|
11572
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
11573
|
+
};
|
11574
|
+
headers: unknown;
|
11575
|
+
response: {
|
11576
|
+
200: ({
|
11577
|
+
Opportunity: {
|
11578
|
+
status: import("@db/api").$Enums.Status;
|
11579
|
+
type: string;
|
11580
|
+
name: string;
|
11581
|
+
description: string;
|
11582
|
+
id: string;
|
11583
|
+
tags: string[];
|
11584
|
+
identifier: string;
|
11585
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
11586
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
11587
|
+
chainId: number;
|
11588
|
+
howToSteps: string[];
|
11589
|
+
depositUrl: string | null;
|
11590
|
+
explorerAddress: string | null;
|
11591
|
+
mainProtocolId: string | null;
|
11592
|
+
tvl: number;
|
11593
|
+
apr: number;
|
11594
|
+
dailyRewards: number;
|
11595
|
+
lastCampaignCreatedAt: Date;
|
11596
|
+
};
|
11597
|
+
} & {
|
11574
11598
|
type: string;
|
11575
|
-
|
11576
|
-
description: string;
|
11577
|
-
id: string;
|
11578
|
-
tags: string[];
|
11579
|
-
identifier: string;
|
11580
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
11581
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
11582
|
-
chainId: number;
|
11583
|
-
howToSteps: string[];
|
11584
|
-
depositUrl: string | null;
|
11585
|
-
explorerAddress: string | null;
|
11586
|
-
mainProtocolId: string | null;
|
11587
|
-
tvl: number;
|
11588
|
-
apr: number;
|
11589
|
-
dailyRewards: number;
|
11590
|
-
lastCampaignCreatedAt: Date;
|
11591
|
-
};
|
11592
|
-
} & {
|
11593
|
-
type: string;
|
11594
|
-
description: string | null;
|
11595
|
-
id: string;
|
11596
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
11597
|
-
subType: number | null;
|
11598
|
-
computeChainId: number;
|
11599
|
-
distributionChainId: number;
|
11600
|
-
campaignId: string;
|
11601
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
11602
|
-
rewardTokenId: string;
|
11603
|
-
amount: string;
|
11604
|
-
opportunityId: string;
|
11605
|
-
startTimestamp: bigint;
|
11606
|
-
endTimestamp: bigint;
|
11607
|
-
creatorAddress: string;
|
11608
|
-
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
11609
|
-
createdAt: Date;
|
11610
|
-
rootCampaignId: string | null;
|
11611
|
-
parentCampaignId: string | null;
|
11612
|
-
})[] | {
|
11613
|
-
params: any;
|
11614
|
-
chain: {
|
11615
|
-
name: string;
|
11616
|
-
id: number;
|
11617
|
-
icon: string;
|
11618
|
-
};
|
11619
|
-
endTimestamp: number;
|
11620
|
-
startTimestamp: number;
|
11621
|
-
rewardToken: {
|
11622
|
-
symbol: string;
|
11623
|
-
name: string | null;
|
11599
|
+
description: string | null;
|
11624
11600
|
id: string;
|
11625
|
-
|
11626
|
-
|
11627
|
-
|
11628
|
-
|
11629
|
-
verified: boolean;
|
11630
|
-
isTest: boolean;
|
11631
|
-
isPoint: boolean;
|
11632
|
-
isPreTGE: boolean;
|
11633
|
-
isNative: boolean;
|
11634
|
-
} & {
|
11635
|
-
price?: number | null | undefined;
|
11636
|
-
};
|
11637
|
-
distributionChain: {
|
11638
|
-
name: string;
|
11639
|
-
id: number;
|
11640
|
-
icon: string;
|
11641
|
-
} | undefined;
|
11642
|
-
campaignStatus: {
|
11643
|
-
computedUntil: number;
|
11644
|
-
processingStarted: number;
|
11645
|
-
status: import("@db/api").$Enums.RunStatus;
|
11646
|
-
error: string;
|
11647
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
11601
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
11602
|
+
subType: number | null;
|
11603
|
+
computeChainId: number;
|
11604
|
+
distributionChainId: number;
|
11648
11605
|
campaignId: string;
|
11649
|
-
|
11650
|
-
|
11651
|
-
|
11652
|
-
|
11653
|
-
|
11654
|
-
|
11655
|
-
|
11656
|
-
|
11657
|
-
|
11658
|
-
|
11659
|
-
|
11660
|
-
|
11661
|
-
|
11606
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
11607
|
+
rewardTokenId: string;
|
11608
|
+
amount: string;
|
11609
|
+
opportunityId: string;
|
11610
|
+
startTimestamp: bigint;
|
11611
|
+
endTimestamp: bigint;
|
11612
|
+
creatorAddress: string;
|
11613
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
11614
|
+
createdAt: Date;
|
11615
|
+
rootCampaignId: string | null;
|
11616
|
+
parentCampaignId: string | null;
|
11617
|
+
})[] | {
|
11618
|
+
params: any;
|
11619
|
+
chain: {
|
11620
|
+
name: string;
|
11621
|
+
id: number;
|
11622
|
+
icon: string;
|
11623
|
+
};
|
11624
|
+
endTimestamp: number;
|
11625
|
+
startTimestamp: number;
|
11626
|
+
rewardToken: {
|
11627
|
+
symbol: string;
|
11628
|
+
name: string | null;
|
11629
|
+
id: string;
|
11630
|
+
icon: string;
|
11631
|
+
address: string;
|
11632
|
+
chainId: number;
|
11633
|
+
decimals: number;
|
11634
|
+
verified: boolean;
|
11635
|
+
isTest: boolean;
|
11636
|
+
isPoint: boolean;
|
11637
|
+
isPreTGE: boolean;
|
11638
|
+
isNative: boolean;
|
11639
|
+
} & {
|
11640
|
+
price?: number | null | undefined;
|
11641
|
+
};
|
11642
|
+
distributionChain: {
|
11643
|
+
name: string;
|
11644
|
+
id: number;
|
11645
|
+
icon: string;
|
11646
|
+
} | undefined;
|
11647
|
+
campaignStatus: {
|
11648
|
+
computedUntil: number;
|
11649
|
+
processingStarted: number;
|
11650
|
+
status: import("@db/api").$Enums.RunStatus;
|
11651
|
+
error: string;
|
11652
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
11653
|
+
campaignId: string;
|
11654
|
+
} | undefined;
|
11655
|
+
creatorAddress: string;
|
11656
|
+
creator: {
|
11657
|
+
tags: string[];
|
11658
|
+
address: string;
|
11659
|
+
creatorId: string | null;
|
11660
|
+
};
|
11661
|
+
createdAt: string;
|
11662
|
+
description: string | undefined;
|
11663
|
+
parentCampaignId: string | undefined;
|
11664
|
+
rootCampaignId: string | undefined;
|
11665
|
+
Opportunity: {
|
11666
|
+
status: import("@db/api").$Enums.Status;
|
11667
|
+
type: string;
|
11668
|
+
name: string;
|
11669
|
+
description: string;
|
11670
|
+
id: string;
|
11671
|
+
tags: string[];
|
11672
|
+
identifier: string;
|
11673
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
11674
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
11675
|
+
chainId: number;
|
11676
|
+
howToSteps: string[];
|
11677
|
+
depositUrl: string | null;
|
11678
|
+
explorerAddress: string | null;
|
11679
|
+
mainProtocolId: string | null;
|
11680
|
+
tvl: number;
|
11681
|
+
apr: number;
|
11682
|
+
dailyRewards: number;
|
11683
|
+
lastCampaignCreatedAt: Date;
|
11684
|
+
};
|
11662
11685
|
type: string;
|
11663
|
-
name: string;
|
11664
|
-
description: string;
|
11665
11686
|
id: string;
|
11666
|
-
|
11667
|
-
|
11668
|
-
|
11669
|
-
|
11670
|
-
|
11671
|
-
|
11672
|
-
|
11673
|
-
|
11674
|
-
|
11675
|
-
|
11676
|
-
apr: number;
|
11677
|
-
dailyRewards: number;
|
11678
|
-
lastCampaignCreatedAt: Date;
|
11679
|
-
};
|
11680
|
-
type: string;
|
11681
|
-
id: string;
|
11682
|
-
subType: number | null;
|
11683
|
-
computeChainId: number;
|
11684
|
-
distributionChainId: number;
|
11685
|
-
campaignId: string;
|
11686
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
11687
|
-
rewardTokenId: string;
|
11688
|
-
amount: string;
|
11689
|
-
opportunityId: string;
|
11690
|
-
}[];
|
11687
|
+
subType: number | null;
|
11688
|
+
computeChainId: number;
|
11689
|
+
distributionChainId: number;
|
11690
|
+
campaignId: string;
|
11691
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
11692
|
+
rewardTokenId: string;
|
11693
|
+
amount: string;
|
11694
|
+
opportunityId: string;
|
11695
|
+
}[];
|
11696
|
+
};
|
11691
11697
|
};
|
11692
11698
|
};
|
11693
11699
|
};
|
@@ -14825,7 +14831,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14825
14831
|
};
|
14826
14832
|
};
|
14827
14833
|
metadata: {
|
14828
|
-
|
14834
|
+
index: {
|
14829
14835
|
post: (body: {
|
14830
14836
|
id?: string | undefined;
|
14831
14837
|
subType?: number | undefined;
|
@@ -17471,157 +17477,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17471
17477
|
};
|
17472
17478
|
};
|
17473
17479
|
creators: ((params: {
|
17474
|
-
address: string | number;
|
17475
17480
|
creatorId: string | number;
|
17476
17481
|
}) => {
|
17477
|
-
dashboard: {
|
17478
|
-
get: (options?: {
|
17479
|
-
headers?: Record<string, unknown> | undefined;
|
17480
|
-
query?: Record<string, unknown> | undefined;
|
17481
|
-
fetch?: RequestInit | undefined;
|
17482
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17483
|
-
200: {
|
17484
|
-
pastCampaigns: number;
|
17485
|
-
liveCampaigns: number;
|
17486
|
-
futureCampaigns: number;
|
17487
|
-
totalTvl: number;
|
17488
|
-
totalWallets: number;
|
17489
|
-
totalCampaigns: number;
|
17490
|
-
creatorId: string | null;
|
17491
|
-
};
|
17492
|
-
}>>;
|
17493
|
-
};
|
17494
|
-
campaigns: {
|
17495
|
-
get: (options: {
|
17496
|
-
headers?: Record<string, unknown> | undefined;
|
17497
|
-
query: {
|
17498
|
-
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
17499
|
-
};
|
17500
|
-
fetch?: RequestInit | undefined;
|
17501
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17502
|
-
200: ({
|
17503
|
-
Opportunity: {
|
17504
|
-
status: import("@db/api").$Enums.Status;
|
17505
|
-
type: string;
|
17506
|
-
name: string;
|
17507
|
-
description: string;
|
17508
|
-
id: string;
|
17509
|
-
tags: string[];
|
17510
|
-
identifier: string;
|
17511
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
17512
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
17513
|
-
chainId: number;
|
17514
|
-
howToSteps: string[];
|
17515
|
-
depositUrl: string | null;
|
17516
|
-
explorerAddress: string | null;
|
17517
|
-
mainProtocolId: string | null;
|
17518
|
-
tvl: number;
|
17519
|
-
apr: number;
|
17520
|
-
dailyRewards: number;
|
17521
|
-
lastCampaignCreatedAt: Date;
|
17522
|
-
};
|
17523
|
-
} & {
|
17524
|
-
type: string;
|
17525
|
-
description: string | null;
|
17526
|
-
id: string;
|
17527
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
17528
|
-
subType: number | null;
|
17529
|
-
computeChainId: number;
|
17530
|
-
distributionChainId: number;
|
17531
|
-
campaignId: string;
|
17532
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
17533
|
-
rewardTokenId: string;
|
17534
|
-
amount: string;
|
17535
|
-
opportunityId: string;
|
17536
|
-
startTimestamp: bigint;
|
17537
|
-
endTimestamp: bigint;
|
17538
|
-
creatorAddress: string;
|
17539
|
-
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
17540
|
-
createdAt: Date;
|
17541
|
-
rootCampaignId: string | null;
|
17542
|
-
parentCampaignId: string | null;
|
17543
|
-
})[] | {
|
17544
|
-
params: any;
|
17545
|
-
chain: {
|
17546
|
-
name: string;
|
17547
|
-
id: number;
|
17548
|
-
icon: string;
|
17549
|
-
};
|
17550
|
-
endTimestamp: number;
|
17551
|
-
startTimestamp: number;
|
17552
|
-
rewardToken: {
|
17553
|
-
symbol: string;
|
17554
|
-
name: string | null;
|
17555
|
-
id: string;
|
17556
|
-
icon: string;
|
17557
|
-
address: string;
|
17558
|
-
chainId: number;
|
17559
|
-
decimals: number;
|
17560
|
-
verified: boolean;
|
17561
|
-
isTest: boolean;
|
17562
|
-
isPoint: boolean;
|
17563
|
-
isPreTGE: boolean;
|
17564
|
-
isNative: boolean;
|
17565
|
-
} & {
|
17566
|
-
price?: number | null | undefined;
|
17567
|
-
};
|
17568
|
-
distributionChain: {
|
17569
|
-
name: string;
|
17570
|
-
id: number;
|
17571
|
-
icon: string;
|
17572
|
-
} | undefined;
|
17573
|
-
campaignStatus: {
|
17574
|
-
computedUntil: number;
|
17575
|
-
processingStarted: number;
|
17576
|
-
status: import("@db/api").$Enums.RunStatus;
|
17577
|
-
error: string;
|
17578
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
17579
|
-
campaignId: string;
|
17580
|
-
} | undefined;
|
17581
|
-
creatorAddress: string;
|
17582
|
-
creator: {
|
17583
|
-
tags: string[];
|
17584
|
-
address: string;
|
17585
|
-
creatorId: string | null;
|
17586
|
-
};
|
17587
|
-
createdAt: string;
|
17588
|
-
description: string | undefined;
|
17589
|
-
parentCampaignId: string | undefined;
|
17590
|
-
rootCampaignId: string | undefined;
|
17591
|
-
Opportunity: {
|
17592
|
-
status: import("@db/api").$Enums.Status;
|
17593
|
-
type: string;
|
17594
|
-
name: string;
|
17595
|
-
description: string;
|
17596
|
-
id: string;
|
17597
|
-
tags: string[];
|
17598
|
-
identifier: string;
|
17599
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
17600
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
17601
|
-
chainId: number;
|
17602
|
-
howToSteps: string[];
|
17603
|
-
depositUrl: string | null;
|
17604
|
-
explorerAddress: string | null;
|
17605
|
-
mainProtocolId: string | null;
|
17606
|
-
tvl: number;
|
17607
|
-
apr: number;
|
17608
|
-
dailyRewards: number;
|
17609
|
-
lastCampaignCreatedAt: Date;
|
17610
|
-
};
|
17611
|
-
type: string;
|
17612
|
-
id: string;
|
17613
|
-
subType: number | null;
|
17614
|
-
computeChainId: number;
|
17615
|
-
distributionChainId: number;
|
17616
|
-
campaignId: string;
|
17617
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
17618
|
-
rewardTokenId: string;
|
17619
|
-
amount: string;
|
17620
|
-
opportunityId: string;
|
17621
|
-
}[];
|
17622
|
-
}>>;
|
17623
|
-
};
|
17624
|
-
} | {
|
17625
17482
|
get: (options?: {
|
17626
17483
|
headers?: Record<string, unknown> | undefined;
|
17627
17484
|
query?: Record<string, unknown> | undefined;
|
@@ -17714,6 +17571,157 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17714
17571
|
})[];
|
17715
17572
|
}>>;
|
17716
17573
|
};
|
17574
|
+
user: ((params: {
|
17575
|
+
address: string | number;
|
17576
|
+
}) => {
|
17577
|
+
dashboard: {
|
17578
|
+
get: (options?: {
|
17579
|
+
headers?: Record<string, unknown> | undefined;
|
17580
|
+
query?: Record<string, unknown> | undefined;
|
17581
|
+
fetch?: RequestInit | undefined;
|
17582
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17583
|
+
200: {
|
17584
|
+
pastCampaigns: number;
|
17585
|
+
liveCampaigns: number;
|
17586
|
+
futureCampaigns: number;
|
17587
|
+
totalTvl: number;
|
17588
|
+
totalWallets: number;
|
17589
|
+
totalCampaigns: number;
|
17590
|
+
creatorId: string | null;
|
17591
|
+
};
|
17592
|
+
}>>;
|
17593
|
+
};
|
17594
|
+
campaigns: {
|
17595
|
+
get: (options: {
|
17596
|
+
headers?: Record<string, unknown> | undefined;
|
17597
|
+
query: {
|
17598
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
17599
|
+
};
|
17600
|
+
fetch?: RequestInit | undefined;
|
17601
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17602
|
+
200: ({
|
17603
|
+
Opportunity: {
|
17604
|
+
status: import("@db/api").$Enums.Status;
|
17605
|
+
type: string;
|
17606
|
+
name: string;
|
17607
|
+
description: string;
|
17608
|
+
id: string;
|
17609
|
+
tags: string[];
|
17610
|
+
identifier: string;
|
17611
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
17612
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
17613
|
+
chainId: number;
|
17614
|
+
howToSteps: string[];
|
17615
|
+
depositUrl: string | null;
|
17616
|
+
explorerAddress: string | null;
|
17617
|
+
mainProtocolId: string | null;
|
17618
|
+
tvl: number;
|
17619
|
+
apr: number;
|
17620
|
+
dailyRewards: number;
|
17621
|
+
lastCampaignCreatedAt: Date;
|
17622
|
+
};
|
17623
|
+
} & {
|
17624
|
+
type: string;
|
17625
|
+
description: string | null;
|
17626
|
+
id: string;
|
17627
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
17628
|
+
subType: number | null;
|
17629
|
+
computeChainId: number;
|
17630
|
+
distributionChainId: number;
|
17631
|
+
campaignId: string;
|
17632
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
17633
|
+
rewardTokenId: string;
|
17634
|
+
amount: string;
|
17635
|
+
opportunityId: string;
|
17636
|
+
startTimestamp: bigint;
|
17637
|
+
endTimestamp: bigint;
|
17638
|
+
creatorAddress: string;
|
17639
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
17640
|
+
createdAt: Date;
|
17641
|
+
rootCampaignId: string | null;
|
17642
|
+
parentCampaignId: string | null;
|
17643
|
+
})[] | {
|
17644
|
+
params: any;
|
17645
|
+
chain: {
|
17646
|
+
name: string;
|
17647
|
+
id: number;
|
17648
|
+
icon: string;
|
17649
|
+
};
|
17650
|
+
endTimestamp: number;
|
17651
|
+
startTimestamp: number;
|
17652
|
+
rewardToken: {
|
17653
|
+
symbol: string;
|
17654
|
+
name: string | null;
|
17655
|
+
id: string;
|
17656
|
+
icon: string;
|
17657
|
+
address: string;
|
17658
|
+
chainId: number;
|
17659
|
+
decimals: number;
|
17660
|
+
verified: boolean;
|
17661
|
+
isTest: boolean;
|
17662
|
+
isPoint: boolean;
|
17663
|
+
isPreTGE: boolean;
|
17664
|
+
isNative: boolean;
|
17665
|
+
} & {
|
17666
|
+
price?: number | null | undefined;
|
17667
|
+
};
|
17668
|
+
distributionChain: {
|
17669
|
+
name: string;
|
17670
|
+
id: number;
|
17671
|
+
icon: string;
|
17672
|
+
} | undefined;
|
17673
|
+
campaignStatus: {
|
17674
|
+
computedUntil: number;
|
17675
|
+
processingStarted: number;
|
17676
|
+
status: import("@db/api").$Enums.RunStatus;
|
17677
|
+
error: string;
|
17678
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
17679
|
+
campaignId: string;
|
17680
|
+
} | undefined;
|
17681
|
+
creatorAddress: string;
|
17682
|
+
creator: {
|
17683
|
+
tags: string[];
|
17684
|
+
address: string;
|
17685
|
+
creatorId: string | null;
|
17686
|
+
};
|
17687
|
+
createdAt: string;
|
17688
|
+
description: string | undefined;
|
17689
|
+
parentCampaignId: string | undefined;
|
17690
|
+
rootCampaignId: string | undefined;
|
17691
|
+
Opportunity: {
|
17692
|
+
status: import("@db/api").$Enums.Status;
|
17693
|
+
type: string;
|
17694
|
+
name: string;
|
17695
|
+
description: string;
|
17696
|
+
id: string;
|
17697
|
+
tags: string[];
|
17698
|
+
identifier: string;
|
17699
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
17700
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
17701
|
+
chainId: number;
|
17702
|
+
howToSteps: string[];
|
17703
|
+
depositUrl: string | null;
|
17704
|
+
explorerAddress: string | null;
|
17705
|
+
mainProtocolId: string | null;
|
17706
|
+
tvl: number;
|
17707
|
+
apr: number;
|
17708
|
+
dailyRewards: number;
|
17709
|
+
lastCampaignCreatedAt: Date;
|
17710
|
+
};
|
17711
|
+
type: string;
|
17712
|
+
id: string;
|
17713
|
+
subType: number | null;
|
17714
|
+
computeChainId: number;
|
17715
|
+
distributionChainId: number;
|
17716
|
+
campaignId: string;
|
17717
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
17718
|
+
rewardTokenId: string;
|
17719
|
+
amount: string;
|
17720
|
+
opportunityId: string;
|
17721
|
+
}[];
|
17722
|
+
}>>;
|
17723
|
+
};
|
17724
|
+
}) & {};
|
17717
17725
|
campaigns: ((params: {
|
17718
17726
|
campaignId: string | number;
|
17719
17727
|
}) => {
|