@merkl/api 0.10.199 → 0.10.200

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. package/dist/src/eden/index.d.ts +2 -6398
  2. package/dist/src/errors/HttpError.d.ts +5 -0
  3. package/dist/src/errors/HttpError.js +6 -0
  4. package/dist/src/errors/NotFound.error.d.ts +4 -0
  5. package/dist/src/errors/NotFound.error.js +5 -0
  6. package/dist/src/index.d.ts +1 -2464
  7. package/dist/src/index.js +56 -7
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +15 -22
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +1 -0
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GammaProcessor.d.ts +43 -0
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GammaProcessor.js +63 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.d.ts +3 -3
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.js +3 -1
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/NoLinkVaultProcessor.d.ts +36 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/NoLinkVaultProcessor.js +51 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.d.ts +0 -1
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.js +15 -7
  20. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
  21. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +1 -1
  22. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.js +13 -572
  23. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +2 -21
  24. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +197 -1174
  25. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.d.ts +1 -5
  26. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.js +11 -634
  27. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.d.ts +1 -4
  28. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.js +10 -380
  29. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.d.ts +3 -3
  30. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.js +11 -312
  31. package/dist/src/libs/campaigns/campaignTypes/EulerDynamicData.js +8 -8
  32. package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +3 -4
  33. package/dist/src/libs/campaigns/campaignsDynamicData.js +0 -5
  34. package/dist/src/modules/v4/accounting/accounting.controller.js +1 -1
  35. package/dist/src/modules/v4/apr/apr.model.d.ts +26 -0
  36. package/dist/src/modules/v4/apr/apr.model.js +15 -1
  37. package/dist/src/modules/v4/blacklist/blacklist.controller.js +1 -1
  38. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -4
  39. package/dist/src/modules/v4/campaign/campaign.controller.js +14 -4
  40. package/dist/src/modules/v4/campaign/campaign.model.d.ts +50 -5
  41. package/dist/src/modules/v4/campaign/campaign.model.js +47 -13
  42. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -2
  43. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -2
  44. package/dist/src/modules/v4/chain/chain.controller.d.ts +2 -2
  45. package/dist/src/modules/v4/chain/chain.controller.js +7 -2
  46. package/dist/src/modules/v4/chain/chain.model.d.ts +6 -1
  47. package/dist/src/modules/v4/chain/chain.model.js +8 -1
  48. package/dist/src/modules/v4/chain/chain.repository.js +1 -1
  49. package/dist/src/modules/v4/claims/claims.controller.js +1 -1
  50. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +4 -1
  51. package/dist/src/modules/v4/enso/enso.model.d.ts +1 -1
  52. package/dist/src/modules/v4/enso/enso.model.js +2 -1
  53. package/dist/src/modules/v4/enso/enso.service.d.ts +0 -1
  54. package/dist/src/modules/v4/enso/enso.service.js +4 -4
  55. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +26 -17
  56. package/dist/src/modules/v4/interaction/interaction.controller.js +19 -28
  57. package/dist/src/modules/v4/interaction/interaction.model.d.ts +17 -5
  58. package/dist/src/modules/v4/interaction/interaction.model.js +3 -3
  59. package/dist/src/modules/v4/interaction/interaction.service.d.ts +18 -3
  60. package/dist/src/modules/v4/interaction/interaction.service.js +89 -11
  61. package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +72 -0
  62. package/dist/src/modules/v4/kyberzap/kyberzap.model.js +79 -0
  63. package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +15 -0
  64. package/dist/src/modules/v4/kyberzap/kyberzap.service.js +84 -0
  65. package/dist/src/modules/v4/liquidity/liquidity.controller.js +1 -1
  66. package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +1 -1
  67. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +224 -213
  68. package/dist/src/modules/v4/opportunity/opportunity.controller.js +39 -10
  69. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +252 -22
  70. package/dist/src/modules/v4/opportunity/opportunity.model.js +58 -15
  71. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -11
  72. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -232
  73. package/dist/src/modules/v4/opportunity/opportunity.service.js +0 -32
  74. package/dist/src/modules/v4/price/price.controller.js +1 -1
  75. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +23 -24
  76. package/dist/src/modules/v4/protocol/protocol.controller.js +15 -9
  77. package/dist/src/modules/v4/protocol/protocol.model.d.ts +13 -1
  78. package/dist/src/modules/v4/protocol/protocol.model.js +12 -8
  79. package/dist/src/modules/v4/reward/reward.controller.js +1 -1
  80. package/dist/src/modules/v4/reward/reward.model.d.ts +44 -1
  81. package/dist/src/modules/v4/reward/reward.model.js +15 -0
  82. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -2
  83. package/dist/src/modules/v4/reward/reward.service.d.ts +11 -11
  84. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  85. package/dist/src/modules/v4/router.d.ts +287 -268
  86. package/dist/src/modules/v4/status/status.controller.js +2 -3
  87. package/dist/src/modules/v4/status/status.model.d.ts +12 -0
  88. package/dist/src/modules/v4/status/status.model.js +12 -0
  89. package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
  90. package/dist/src/modules/v4/token/token.controller.js +1 -1
  91. package/dist/src/modules/v4/token/token.model.d.ts +12 -0
  92. package/dist/src/modules/v4/token/token.model.js +12 -0
  93. package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
  94. package/dist/src/modules/v4/token/token.service.d.ts +7 -7
  95. package/dist/src/modules/v4/tvl/tvl.model.d.ts +24 -0
  96. package/dist/src/modules/v4/tvl/tvl.model.js +15 -1
  97. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
  98. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +9 -8
  99. package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
  100. package/dist/src/modules/v4/user/user.controller.js +20 -17
  101. package/dist/src/modules/v4/user/user.model.d.ts +30 -0
  102. package/dist/src/modules/v4/user/user.model.js +27 -0
  103. package/dist/src/modules/v4/zyfi/zyfi.model.d.ts +45 -0
  104. package/dist/src/modules/v4/zyfi/zyfi.model.js +1 -0
  105. package/dist/src/modules/v4/zyfi/zyfi.service.d.ts +30 -0
  106. package/dist/src/modules/v4/zyfi/zyfi.service.js +35 -0
  107. package/dist/src/plugins/error-handling.plugin.d.ts +2 -2
  108. package/dist/src/plugins/error-handling.plugin.js +9 -3
  109. package/dist/src/plugins/logger.plugin.js +1 -20
  110. package/dist/src/routes/v1/allowances.d.ts +1 -1
  111. package/dist/src/routes/v1/allowances.js +1 -1
  112. package/dist/src/routes/v1/balances.d.ts +1 -1
  113. package/dist/src/routes/v1/balances.js +1 -1
  114. package/dist/src/routes/v1/prices.d.ts +1 -1
  115. package/dist/src/routes/v1/prices.js +1 -1
  116. package/dist/src/routes/v1/router.d.ts +102 -0
  117. package/dist/src/routes/v1/router.js +6 -0
  118. package/dist/src/routes/v1/tokens.d.ts +1 -1
  119. package/dist/src/routes/v1/tokens.js +1 -1
  120. package/dist/src/routes/v2/merkl.d.ts +5 -5
  121. package/dist/src/routes/v2/merkl.js +1 -1
  122. package/dist/src/routes/v2/router.d.ts +46 -0
  123. package/dist/src/routes/v2/router.js +3 -0
  124. package/dist/src/routes/v3/app.d.ts +1 -1
  125. package/dist/src/routes/v3/app.js +1 -1
  126. package/dist/src/routes/v3/blacklist.d.ts +1 -2479
  127. package/dist/src/routes/v3/blacklist.js +1 -1
  128. package/dist/src/routes/v3/campaignClaims.d.ts +1 -1
  129. package/dist/src/routes/v3/campaignClaims.js +1 -1
  130. package/dist/src/routes/v3/campaignReport.d.ts +1 -1
  131. package/dist/src/routes/v3/campaignReport.js +1 -1
  132. package/dist/src/routes/v3/campaignUnclaimed.d.ts +1 -1
  133. package/dist/src/routes/v3/campaignUnclaimed.js +1 -1
  134. package/dist/src/routes/v3/campaigns.d.ts +1 -2483
  135. package/dist/src/routes/v3/campaigns.js +1 -1
  136. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +1 -1
  137. package/dist/src/routes/v3/campaignsForMainParameter.js +1 -1
  138. package/dist/src/routes/v3/campaignsInfo.d.ts +1 -2481
  139. package/dist/src/routes/v3/campaignsInfo.js +1 -1
  140. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +1 -1
  141. package/dist/src/routes/v3/campaignsRewardsReport.js +1 -1
  142. package/dist/src/routes/v3/claims.d.ts +1 -1
  143. package/dist/src/routes/v3/claims.js +1 -1
  144. package/dist/src/routes/v3/compoundV2.d.ts +1 -1
  145. package/dist/src/routes/v3/compoundV2.js +1 -1
  146. package/dist/src/routes/v3/createCampaign.d.ts +1 -1
  147. package/dist/src/routes/v3/createCampaign.js +1 -1
  148. package/dist/src/routes/v3/dolomite.d.ts +1 -1
  149. package/dist/src/routes/v3/dolomite.js +1 -1
  150. package/dist/src/routes/v3/euler.d.ts +1 -1
  151. package/dist/src/routes/v3/euler.js +1 -1
  152. package/dist/src/routes/v3/fetch.d.ts +1 -1
  153. package/dist/src/routes/v3/fetch.js +1 -1
  154. package/dist/src/routes/v3/health.d.ts +1 -1
  155. package/dist/src/routes/v3/health.js +1 -1
  156. package/dist/src/routes/v3/lostyield.d.ts +1 -1
  157. package/dist/src/routes/v3/lostyield.js +1 -1
  158. package/dist/src/routes/v3/merkl.d.ts +1 -1
  159. package/dist/src/routes/v3/merkl.js +1 -1
  160. package/dist/src/routes/v3/morphoMarkets.d.ts +1 -1
  161. package/dist/src/routes/v3/morphoMarkets.js +1 -1
  162. package/dist/src/routes/v3/morphoVaults.d.ts +1 -1
  163. package/dist/src/routes/v3/morphoVaults.js +1 -1
  164. package/dist/src/routes/v3/multiChainPositions.d.ts +1 -2480
  165. package/dist/src/routes/v3/multiChainPositions.js +1 -1
  166. package/dist/src/routes/v3/opportunity.d.ts +1 -2483
  167. package/dist/src/routes/v3/opportunity.js +1 -1
  168. package/dist/src/routes/v3/overview.d.ts +1 -1
  169. package/dist/src/routes/v3/overview.js +1 -1
  170. package/dist/src/routes/v3/parse.d.ts +1 -1
  171. package/dist/src/routes/v3/parse.js +1 -1
  172. package/dist/src/routes/v3/payload.d.ts +1 -1
  173. package/dist/src/routes/v3/payload.js +1 -1
  174. package/dist/src/routes/v3/poolInfo.js +1 -1
  175. package/dist/src/routes/v3/positions.d.ts +1 -2479
  176. package/dist/src/routes/v3/positions.js +1 -1
  177. package/dist/src/routes/v3/radiant.d.ts +1 -1
  178. package/dist/src/routes/v3/radiant.js +1 -1
  179. package/dist/src/routes/v3/recipients.d.ts +1 -1
  180. package/dist/src/routes/v3/recipients.js +1 -1
  181. package/dist/src/routes/v3/rewards.d.ts +1 -2508
  182. package/dist/src/routes/v3/rewards.js +1 -1
  183. package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
  184. package/dist/src/routes/v3/rewardsReport.js +1 -1
  185. package/dist/src/routes/v3/router.d.ts +1 -0
  186. package/dist/src/routes/v3/router.js +74 -0
  187. package/dist/src/routes/v3/silo.d.ts +1 -1
  188. package/dist/src/routes/v3/silo.js +1 -1
  189. package/dist/src/routes/v3/token.d.ts +1 -1
  190. package/dist/src/routes/v3/token.js +1 -1
  191. package/dist/src/routes/v3/tokenUnclaimed.d.ts +1 -1
  192. package/dist/src/routes/v3/tokenUnclaimed.js +1 -1
  193. package/dist/src/routes/v3/updates.d.ts +1 -2483
  194. package/dist/src/routes/v3/updates.js +1 -1
  195. package/dist/src/routes/v3/userRewards.d.ts +1 -2499
  196. package/dist/src/routes/v3/userRewards.js +1 -1
  197. package/dist/src/utils/decodeCalls.js +12 -1
  198. package/dist/src/utils/encodeCalls.js +26 -3
  199. package/dist/src/utils/generateCardName.js +2 -0
  200. package/dist/tsconfig.package.tsbuildinfo +1 -1
  201. package/package.json +2 -3
  202. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.d.ts +0 -3
  203. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.js +0 -155
  204. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +0 -4
  205. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.js +0 -24
  206. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +0 -4
  207. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +0 -230
  208. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.d.ts +0 -3
  209. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.js +0 -22
  210. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.d.ts +0 -3
  211. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.js +0 -22
  212. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.d.ts +0 -4
  213. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.js +0 -22
  214. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.d.ts +0 -3
  215. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.js +0 -75
@@ -1,2515 +1,8 @@
1
1
  import type { App } from "../../index";
2
- import { RewardService } from "../../modules/v4/reward";
3
2
  export declare const query: import("@sinclair/typebox").TObject<{
4
3
  chainIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
5
4
  user: import("@sinclair/typebox").TString;
6
5
  creatorTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
6
  }>;
8
- declare const _default: (app: App) => import("elysia").default<"", false, {
9
- decorator: {};
10
- store: {};
11
- derive: {};
12
- resolve: {};
13
- }, {
14
- type: {};
15
- error: {
16
- readonly HttpError: import("../../errors").HttpError;
17
- readonly BadRequestError: import("../../errors").BadRequestError;
18
- readonly ConflictError: import("../../errors").ConflictError;
19
- readonly NotFoundError: import("../../errors").NotFoundError;
20
- readonly UnauthorizedError: import("../../errors").UnauthorizedError;
21
- readonly InvalidParameter: import("../../utils/error").InvalidParameter;
22
- readonly UnsupportedNetwork: import("../../utils/error").UnsupportedNetwork;
23
- readonly OpportunityNotFound: import("../../utils/error").OpportunityNotFound;
24
- readonly MerkleRootNotFound: import("../../utils/error").MerkleRootNotFound;
25
- readonly ValidationError: import("elysia").ValidationError;
26
- readonly InvalidCacheCall: import("../../utils/error").InvalidCacheCall;
27
- };
28
- }, {
29
- schema: {};
30
- macro: {};
31
- macroFn: {};
32
- }, false & {
33
- index: {
34
- get: {
35
- body: unknown;
36
- params: {};
37
- query: unknown;
38
- headers: unknown;
39
- response: {
40
- 200: string;
41
- };
42
- };
43
- };
44
- } & {
45
- v4: {};
46
- } & {
47
- v4: {
48
- opportunities: {
49
- index: {
50
- post: {
51
- body: {
52
- name?: string | undefined;
53
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4";
54
- tokens: {
55
- chainId: number;
56
- address: string;
57
- }[];
58
- status: "NONE" | "PAST" | "LIVE" | "SOON";
59
- identifier: string;
60
- chainId: number;
61
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
62
- protocols: string[];
63
- mainProtocol: string;
64
- };
65
- params: {};
66
- query: unknown;
67
- headers: {
68
- authorization: string;
69
- };
70
- response: {
71
- 200: void;
72
- };
73
- };
74
- };
75
- };
76
- } & {
77
- opportunities: {
78
- ":id": {
79
- get: {
80
- body: unknown;
81
- params: {
82
- id: string;
83
- };
84
- query: unknown;
85
- headers: unknown;
86
- response: {
87
- 200: {
88
- aprRecord: {
89
- cumulated: number;
90
- timestamp: bigint;
91
- breakdowns: {
92
- type: import("../../../database/api/.generated").$Enums.AprType;
93
- id: number;
94
- identifier: string;
95
- value: number;
96
- aprRecordId: string;
97
- }[];
98
- };
99
- tvlRecord: {
100
- id: string;
101
- total: number;
102
- timestamp: bigint;
103
- breakdowns: {
104
- type: import("../../../database/api/.generated").$Enums.TvlType;
105
- id: number;
106
- identifier: string;
107
- value: number;
108
- tvlRecordId: string;
109
- }[];
110
- };
111
- rewardsRecord: {
112
- id: string;
113
- total: number;
114
- timestamp: bigint;
115
- breakdowns: {
116
- id: number;
117
- value: number;
118
- campaignId: string;
119
- dailyRewardsRecordId: string;
120
- token: {
121
- symbol: string;
122
- name: string | null;
123
- id: string;
124
- chainId: number;
125
- address: string;
126
- icon: string;
127
- decimals: number;
128
- displaySymbol: string;
129
- verified: boolean;
130
- isTest: boolean;
131
- price: number | null;
132
- };
133
- amount: bigint;
134
- }[];
135
- };
136
- id: string;
137
- tokens: ({
138
- symbol: string;
139
- name: string | null;
140
- id: string;
141
- chainId: number;
142
- address: string;
143
- icon: string;
144
- decimals: number;
145
- verified: boolean;
146
- isTest: boolean;
147
- } & {
148
- price?: number | null | undefined;
149
- })[];
150
- chain: {
151
- name: string;
152
- id: number;
153
- icon: string;
154
- };
155
- protocol: {
156
- name: string;
157
- url: string;
158
- description: string;
159
- id: string;
160
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
161
- icon: string;
162
- } | undefined;
163
- name: string;
164
- type: import("../../../database/api/.generated").$Enums.CampaignType;
165
- status: import("../../../database/api/.generated").$Enums.Status;
166
- tags: string[];
167
- identifier: string;
168
- chainId: number;
169
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
170
- tvl: number;
171
- apr: number;
172
- dailyRewards: number;
173
- } | undefined;
174
- };
175
- };
176
- };
177
- };
178
- } & {
179
- opportunities: {
180
- ":id": {
181
- campaigns: {
182
- get: {
183
- body: unknown;
184
- params: {
185
- id: string;
186
- };
187
- query: unknown;
188
- headers: unknown;
189
- response: {
190
- 200: {
191
- aprRecord: {
192
- cumulated: number;
193
- timestamp: bigint;
194
- breakdowns: {
195
- type: import("../../../database/api/.generated").$Enums.AprType;
196
- id: number;
197
- identifier: string;
198
- value: number;
199
- aprRecordId: string;
200
- }[];
201
- };
202
- tvlRecord: {
203
- id: string;
204
- total: number;
205
- timestamp: bigint;
206
- breakdowns: {
207
- type: import("../../../database/api/.generated").$Enums.TvlType;
208
- id: number;
209
- identifier: string;
210
- value: number;
211
- tvlRecordId: string;
212
- }[];
213
- };
214
- rewardsRecord: {
215
- id: string;
216
- total: number;
217
- timestamp: bigint;
218
- breakdowns: {
219
- id: number;
220
- value: number;
221
- campaignId: string;
222
- dailyRewardsRecordId: string;
223
- token: {
224
- symbol: string;
225
- name: string | null;
226
- id: string;
227
- chainId: number;
228
- address: string;
229
- icon: string;
230
- decimals: number;
231
- displaySymbol: string;
232
- verified: boolean;
233
- isTest: boolean;
234
- price: number | null;
235
- };
236
- amount: bigint;
237
- }[];
238
- };
239
- id: string;
240
- tokens: ({
241
- symbol: string;
242
- name: string | null;
243
- id: string;
244
- chainId: number;
245
- address: string;
246
- icon: string;
247
- decimals: number;
248
- verified: boolean;
249
- isTest: boolean;
250
- } & {
251
- price?: number | null | undefined;
252
- })[];
253
- chain: {
254
- name: string;
255
- id: number;
256
- icon: string;
257
- };
258
- protocol: {
259
- name: string;
260
- url: string;
261
- description: string;
262
- id: string;
263
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
264
- icon: string;
265
- } | undefined;
266
- name: string;
267
- type: import("../../../database/api/.generated").$Enums.CampaignType;
268
- status: import("../../../database/api/.generated").$Enums.Status;
269
- tags: string[];
270
- identifier: string;
271
- chainId: number;
272
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
273
- tvl: number;
274
- apr: number;
275
- dailyRewards: number;
276
- campaigns: {
277
- params: any;
278
- chain: {
279
- name: string;
280
- id: number;
281
- icon: string;
282
- };
283
- rewardToken: {
284
- symbol: string;
285
- name: string | null;
286
- id: string;
287
- chainId: number;
288
- address: string;
289
- icon: string;
290
- decimals: number;
291
- verified: boolean;
292
- isTest: boolean;
293
- } & {
294
- price?: number | null | undefined;
295
- };
296
- distributionChain: {
297
- name: string;
298
- id: number;
299
- icon: string;
300
- } | undefined;
301
- campaignStatus: {
302
- error: string;
303
- details: import("database/api/.generated/runtime/library").JsonValue;
304
- status: import("../../../database/api/.generated").$Enums.RunStatus;
305
- campaignId: string;
306
- computedUntil: bigint;
307
- processingStarted: bigint;
308
- };
309
- type: import("../../../database/api/.generated").$Enums.CampaignType;
310
- id: string;
311
- subType: number | null;
312
- startTimestamp: bigint;
313
- endTimestamp: bigint;
314
- computeChainId: number;
315
- distributionChainId: number;
316
- campaignId: string;
317
- rewardTokenId: string;
318
- amount: string;
319
- opportunityId: string;
320
- creatorAddress: string;
321
- }[];
322
- } | null | undefined;
323
- };
324
- };
325
- };
326
- };
327
- };
328
- } & {
329
- opportunities: {
330
- index: {
331
- get: {
332
- body: unknown;
333
- params: {};
334
- query: {
335
- sort?: "tvl" | "apr" | "rewards" | undefined;
336
- name?: string | undefined;
337
- tokens?: string | undefined;
338
- status?: string | undefined;
339
- items?: number | undefined;
340
- tags?: string | undefined;
341
- chainId?: string | undefined;
342
- page?: number | undefined;
343
- action?: string | undefined;
344
- mainProtocolId?: string | undefined;
345
- order?: "asc" | "desc" | undefined;
346
- test?: boolean | undefined;
347
- minimumTvl?: number | undefined;
348
- };
349
- headers: unknown;
350
- response: {
351
- 200: {
352
- aprRecord: {
353
- cumulated: number;
354
- timestamp: bigint;
355
- breakdowns: {
356
- type: import("../../../database/api/.generated").$Enums.AprType;
357
- id: number;
358
- identifier: string;
359
- value: number;
360
- aprRecordId: string;
361
- }[];
362
- };
363
- tvlRecord: {
364
- id: string;
365
- total: number;
366
- timestamp: bigint;
367
- breakdowns: {
368
- type: import("../../../database/api/.generated").$Enums.TvlType;
369
- id: number;
370
- identifier: string;
371
- value: number;
372
- tvlRecordId: string;
373
- }[];
374
- };
375
- rewardsRecord: {
376
- id: string;
377
- total: number;
378
- timestamp: bigint;
379
- breakdowns: {
380
- id: number;
381
- value: number;
382
- campaignId: string;
383
- dailyRewardsRecordId: string;
384
- token: {
385
- symbol: string;
386
- name: string | null;
387
- id: string;
388
- chainId: number;
389
- address: string;
390
- icon: string;
391
- decimals: number;
392
- displaySymbol: string;
393
- verified: boolean;
394
- isTest: boolean;
395
- price: number | null;
396
- };
397
- amount: bigint;
398
- }[];
399
- };
400
- id: string;
401
- tokens: ({
402
- symbol: string;
403
- name: string | null;
404
- id: string;
405
- chainId: number;
406
- address: string;
407
- icon: string;
408
- decimals: number;
409
- verified: boolean;
410
- isTest: boolean;
411
- } & {
412
- price?: number | null | undefined;
413
- })[];
414
- chain: {
415
- name: string;
416
- id: number;
417
- icon: string;
418
- };
419
- protocol: {
420
- name: string;
421
- url: string;
422
- description: string;
423
- id: string;
424
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
425
- icon: string;
426
- } | undefined;
427
- name: string;
428
- type: import("../../../database/api/.generated").$Enums.CampaignType;
429
- status: import("../../../database/api/.generated").$Enums.Status;
430
- tags: string[];
431
- identifier: string;
432
- chainId: number;
433
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
434
- tvl: number;
435
- apr: number;
436
- dailyRewards: number;
437
- }[];
438
- };
439
- };
440
- };
441
- };
442
- } & {
443
- opportunities: {
444
- count: {
445
- get: {
446
- body: unknown;
447
- params: {};
448
- query: {
449
- sort?: "tvl" | "apr" | "rewards" | undefined;
450
- name?: string | undefined;
451
- tokens?: string | undefined;
452
- status?: string | undefined;
453
- items?: number | undefined;
454
- tags?: string | undefined;
455
- chainId?: string | undefined;
456
- page?: number | undefined;
457
- action?: string | undefined;
458
- mainProtocolId?: string | undefined;
459
- order?: "asc" | "desc" | undefined;
460
- test?: boolean | undefined;
461
- minimumTvl?: number | undefined;
462
- };
463
- headers: unknown;
464
- response: {
465
- 200: number;
466
- };
467
- };
468
- };
469
- };
470
- } & {
471
- opportunities: {
472
- aggregate: {
473
- ":field": {
474
- get: {
475
- body: unknown;
476
- params: {
477
- field: never;
478
- };
479
- query: {
480
- sort?: "tvl" | "apr" | "rewards" | undefined;
481
- name?: string | undefined;
482
- tokens?: string | undefined;
483
- status?: string | undefined;
484
- items?: number | undefined;
485
- tags?: string | undefined;
486
- chainId?: string | undefined;
487
- page?: number | undefined;
488
- action?: string | undefined;
489
- mainProtocolId?: string | undefined;
490
- order?: "asc" | "desc" | undefined;
491
- test?: boolean | undefined;
492
- minimumTvl?: number | undefined;
493
- };
494
- headers: unknown;
495
- response: {
496
- 200: {
497
- sum: File;
498
- };
499
- };
500
- };
501
- };
502
- };
503
- };
504
- } & {
505
- opportunities: {
506
- ":id": {
507
- patch: {
508
- body: {
509
- name?: string | undefined;
510
- tags?: string[] | undefined;
511
- };
512
- params: {
513
- id: string;
514
- };
515
- query: unknown;
516
- headers: {
517
- authorization: string;
518
- };
519
- response: {
520
- 200: {
521
- name: string;
522
- type: import("../../../database/api/.generated").$Enums.CampaignType;
523
- id: string;
524
- status: import("../../../database/api/.generated").$Enums.Status;
525
- tags: string[];
526
- identifier: string;
527
- chainId: number;
528
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
529
- mainProtocolId: string | null;
530
- tvl: number;
531
- apr: number;
532
- dailyRewards: number;
533
- };
534
- };
535
- };
536
- };
537
- };
538
- };
539
- } & {
540
- v4: {
541
- campaigns: {
542
- index: {
543
- post: {
544
- body: {
545
- identifier?: string | undefined;
546
- subType?: number | undefined;
547
- type: number;
548
- params: string;
549
- chainId: number;
550
- startTimestamp: string;
551
- endTimestamp: string;
552
- computeChainId: number;
553
- campaignId: string;
554
- amount: string;
555
- creator: string;
556
- rewardTokenAddress: string;
557
- opportunityIdentifier: string;
558
- };
559
- params: {};
560
- query: unknown;
561
- headers: {
562
- authorization: string;
563
- };
564
- response: {
565
- 200: {
566
- type: import("../../../database/api/.generated").$Enums.CampaignType;
567
- id: string;
568
- params: import("database/api/.generated/runtime/library").JsonValue;
569
- subType: number | null;
570
- startTimestamp: bigint;
571
- endTimestamp: bigint;
572
- computeChainId: number;
573
- distributionChainId: number;
574
- campaignId: string;
575
- rewardTokenId: string;
576
- amount: string;
577
- opportunityId: string;
578
- creatorAddress: string;
579
- } | undefined;
580
- };
581
- };
582
- };
583
- } & {
584
- index: {
585
- get: {
586
- body: unknown;
587
- params: {};
588
- query: {
589
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
590
- items?: number | undefined;
591
- subType?: number | undefined;
592
- chainId?: number | undefined;
593
- startTimestamp?: string | undefined;
594
- endTimestamp?: string | undefined;
595
- tokenAddress?: string | undefined;
596
- page?: number | undefined;
597
- mainParameter?: string | undefined;
598
- campaignId?: string | undefined;
599
- opportunityId?: string | undefined;
600
- test?: boolean | undefined;
601
- tokenSymbol?: string | undefined;
602
- };
603
- headers: unknown;
604
- response: {
605
- 200: {
606
- params: any;
607
- chain: {
608
- name: string;
609
- id: number;
610
- icon: string;
611
- };
612
- rewardToken: {
613
- symbol: string;
614
- name: string | null;
615
- id: string;
616
- chainId: number;
617
- address: string;
618
- icon: string;
619
- decimals: number;
620
- verified: boolean;
621
- isTest: boolean;
622
- } & {
623
- price?: number | null | undefined;
624
- };
625
- distributionChain: {
626
- name: string;
627
- id: number;
628
- icon: string;
629
- } | undefined;
630
- campaignStatus: {
631
- error: string;
632
- details: import("database/api/.generated/runtime/library").JsonValue;
633
- status: import("../../../database/api/.generated").$Enums.RunStatus;
634
- campaignId: string;
635
- computedUntil: bigint;
636
- processingStarted: bigint;
637
- };
638
- type: import("../../../database/api/.generated").$Enums.CampaignType;
639
- id: string;
640
- subType: number | null;
641
- startTimestamp: bigint;
642
- endTimestamp: bigint;
643
- computeChainId: number;
644
- distributionChainId: number;
645
- campaignId: string;
646
- rewardTokenId: string;
647
- amount: string;
648
- opportunityId: string;
649
- creatorAddress: string;
650
- }[];
651
- };
652
- };
653
- };
654
- } & {
655
- count: {
656
- get: {
657
- body: unknown;
658
- params: {};
659
- query: {
660
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
661
- items?: number | undefined;
662
- subType?: number | undefined;
663
- chainId?: number | undefined;
664
- startTimestamp?: string | undefined;
665
- endTimestamp?: string | undefined;
666
- tokenAddress?: string | undefined;
667
- page?: number | undefined;
668
- mainParameter?: string | undefined;
669
- campaignId?: string | undefined;
670
- opportunityId?: string | undefined;
671
- test?: boolean | undefined;
672
- tokenSymbol?: string | undefined;
673
- };
674
- headers: unknown;
675
- response: {
676
- 200: number;
677
- };
678
- };
679
- };
680
- } & {
681
- "campaigns-to-process": {
682
- index: {
683
- get: {
684
- body: unknown;
685
- params: {};
686
- query: {
687
- chainId: number;
688
- };
689
- headers: unknown;
690
- response: {
691
- 200: {
692
- endTimestamp: bigint;
693
- campaignId: string;
694
- CampaignStatus: {
695
- computedUntil: bigint;
696
- }[];
697
- }[];
698
- };
699
- };
700
- };
701
- };
702
- } & {
703
- "campaigns-to-process": {
704
- count: {
705
- get: {
706
- body: unknown;
707
- params: {};
708
- query: {
709
- chainId: number;
710
- };
711
- headers: unknown;
712
- response: {
713
- 200: number;
714
- };
715
- };
716
- };
717
- };
718
- } & {
719
- "campaigns-to-process": {
720
- engine: {
721
- post: {
722
- body: unknown;
723
- params: {};
724
- query: {
725
- chainId: number;
726
- };
727
- headers: {
728
- authorization: string;
729
- };
730
- response: {
731
- 200: string;
732
- };
733
- };
734
- };
735
- };
736
- };
737
- };
738
- } & {
739
- v4: {
740
- protocols: {
741
- ":id": {
742
- get: {
743
- body: unknown;
744
- params: {
745
- id: string;
746
- };
747
- query: unknown;
748
- headers: unknown;
749
- response: {
750
- 200: {
751
- name: string;
752
- url: string;
753
- description: string;
754
- id: string;
755
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
756
- icon: string;
757
- } | null;
758
- };
759
- };
760
- };
761
- };
762
- } & {
763
- protocols: {
764
- index: {
765
- get: {
766
- body: unknown;
767
- params: {};
768
- query: {
769
- name?: string | undefined;
770
- id?: string[] | undefined;
771
- items?: number | undefined;
772
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
773
- page?: number | undefined;
774
- };
775
- headers: unknown;
776
- response: {
777
- 200: ({
778
- name: string;
779
- url: string;
780
- description: string;
781
- id: string;
782
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
783
- icon: string;
784
- } & {})[];
785
- };
786
- };
787
- };
788
- };
789
- } & {
790
- protocols: {
791
- count: {
792
- get: {
793
- body: unknown;
794
- params: {};
795
- query: unknown;
796
- headers: unknown;
797
- response: {
798
- 200: number;
799
- };
800
- };
801
- };
802
- };
803
- } & {
804
- protocols: {
805
- ":id": {
806
- patch: {
807
- body: {
808
- url?: string | undefined;
809
- description?: string | undefined;
810
- icon?: string | undefined;
811
- };
812
- params: {
813
- id: string;
814
- };
815
- query: unknown;
816
- headers: {
817
- authorization: string;
818
- };
819
- response: {
820
- 200: {
821
- name: string;
822
- url: string;
823
- description: string;
824
- id: string;
825
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
826
- icon: string;
827
- };
828
- };
829
- };
830
- };
831
- };
832
- };
833
- } & {
834
- v4: {
835
- tokens: {
836
- ":id": {
837
- get: {
838
- body: unknown;
839
- params: {
840
- id: string;
841
- };
842
- query: unknown;
843
- headers: unknown;
844
- response: {
845
- 200: {
846
- symbol: string;
847
- name: string | null;
848
- id: string;
849
- chainId: number;
850
- address: string;
851
- icon: string;
852
- decimals: number;
853
- verified: boolean;
854
- isTest: boolean;
855
- price?: number | null | undefined;
856
- } | undefined;
857
- };
858
- };
859
- };
860
- };
861
- } & {
862
- tokens: {
863
- balances: {
864
- get: {
865
- body: unknown;
866
- params: {};
867
- query: {
868
- tokenAddress?: string | undefined;
869
- additionalTokenAddresses?: string[] | undefined;
870
- chainId: number;
871
- userAddress: string;
872
- };
873
- headers: unknown;
874
- response: {
875
- 200: ({
876
- symbol: string;
877
- name: string | null;
878
- id: string;
879
- chainId: number;
880
- address: string;
881
- icon: string;
882
- decimals: number;
883
- verified: boolean;
884
- isTest: boolean;
885
- } & {
886
- price?: number | null | undefined;
887
- } & {
888
- balance: bigint;
889
- })[];
890
- };
891
- };
892
- };
893
- };
894
- } & {
895
- tokens: {
896
- index: {
897
- get: {
898
- body: unknown;
899
- params: {};
900
- query: {
901
- symbol?: string | undefined;
902
- name?: string | undefined;
903
- chainId?: any;
904
- address?: string | undefined;
905
- verified?: boolean | undefined;
906
- test?: boolean | undefined;
907
- };
908
- headers: unknown;
909
- response: {
910
- 200: ({
911
- symbol: string;
912
- name: string | null;
913
- id: string;
914
- chainId: number;
915
- address: string;
916
- icon: string;
917
- decimals: number;
918
- verified: boolean;
919
- isTest: boolean;
920
- } & {
921
- price?: number | null | undefined;
922
- })[];
923
- };
924
- };
925
- };
926
- };
927
- } & {
928
- tokens: {
929
- count: {
930
- get: {
931
- body: unknown;
932
- params: {};
933
- query: {
934
- symbol?: string | undefined;
935
- name?: string | undefined;
936
- chainId?: any;
937
- address?: string | undefined;
938
- verified?: boolean | undefined;
939
- test?: boolean | undefined;
940
- };
941
- headers: unknown;
942
- response: {
943
- 200: number;
944
- };
945
- };
946
- };
947
- };
948
- } & {
949
- tokens: {
950
- ":id": {
951
- patch: {
952
- body: {
953
- icon?: string | undefined;
954
- displaySymbol?: string | undefined;
955
- isTest?: boolean | undefined;
956
- };
957
- params: {
958
- id: string;
959
- };
960
- query: unknown;
961
- headers: {
962
- authorization: string;
963
- };
964
- response: {
965
- 200: {
966
- symbol: string;
967
- name: string | null;
968
- id: string;
969
- chainId: number;
970
- address: string;
971
- icon: string;
972
- decimals: number;
973
- displaySymbol: string;
974
- verified: boolean;
975
- isTest: boolean;
976
- price: number | null;
977
- };
978
- };
979
- };
980
- };
981
- };
982
- };
983
- } & {
984
- v4: {
985
- rewards: {
986
- index: {
987
- get: {
988
- body: unknown;
989
- params: {};
990
- query: {
991
- items?: number | undefined;
992
- page?: number | undefined;
993
- chainId: number;
994
- campaignId: string;
995
- };
996
- headers: unknown;
997
- response: {
998
- 200: import("../../modules/v4/reward").BreakdownForCampaignsRaw[];
999
- };
1000
- };
1001
- };
1002
- } & {
1003
- total: {
1004
- get: {
1005
- body: unknown;
1006
- params: {};
1007
- query: {
1008
- items?: number | undefined;
1009
- page?: number | undefined;
1010
- chainId: number;
1011
- campaignId: string;
1012
- };
1013
- headers: unknown;
1014
- response: {
1015
- 200: {
1016
- campaignId: string;
1017
- amount: bigint;
1018
- };
1019
- };
1020
- };
1021
- };
1022
- } & {
1023
- engine: {
1024
- post: {
1025
- body: {
1026
- recipient: string;
1027
- distributionChainId: number;
1028
- root: string;
1029
- proofs: string[];
1030
- rewardToken: string;
1031
- }[];
1032
- params: {};
1033
- query: unknown;
1034
- headers: {
1035
- authorization: string;
1036
- };
1037
- response: {
1038
- 200: {
1039
- count: number;
1040
- };
1041
- };
1042
- };
1043
- };
1044
- } & {
1045
- engine: {
1046
- breakdowns: {
1047
- post: {
1048
- body: {
1049
- distributionChainId: number;
1050
- campaignId: string;
1051
- root: string;
1052
- rewardToken: string;
1053
- breakdowns: {
1054
- protocolId?: string | undefined;
1055
- auxiliaryData1?: string | undefined;
1056
- auxiliaryData2?: string | undefined;
1057
- reason: string;
1058
- pending: string;
1059
- recipient: string;
1060
- amount: string;
1061
- claimed: string;
1062
- }[];
1063
- }[];
1064
- params: {};
1065
- query: unknown;
1066
- headers: {
1067
- authorization: string;
1068
- };
1069
- response: {
1070
- 200: {
1071
- count: number;
1072
- } | undefined;
1073
- };
1074
- };
1075
- };
1076
- };
1077
- } & {
1078
- engine: {
1079
- claims: {
1080
- post: {
1081
- body: {
1082
- token: string;
1083
- chainId: number;
1084
- recipient: string;
1085
- root: string;
1086
- }[];
1087
- params: {};
1088
- query: unknown;
1089
- headers: {
1090
- authorization: string;
1091
- };
1092
- response: {
1093
- 200: void;
1094
- };
1095
- };
1096
- };
1097
- };
1098
- } & {
1099
- engine: {
1100
- pendings: {
1101
- post: {
1102
- body: {
1103
- distributionChainId: number;
1104
- campaignId: string;
1105
- root: string;
1106
- rewardToken: string;
1107
- toUpdate: {
1108
- auxiliaryData1?: string | undefined;
1109
- auxiliaryData2?: string | undefined;
1110
- reason: string;
1111
- pending: string;
1112
- recipient: string;
1113
- }[];
1114
- toCreate: {
1115
- auxiliaryData1?: string | undefined;
1116
- auxiliaryData2?: string | undefined;
1117
- reason: string;
1118
- pending: string;
1119
- recipient: string;
1120
- }[];
1121
- };
1122
- params: {};
1123
- query: unknown;
1124
- headers: {
1125
- authorization: string;
1126
- };
1127
- response: {
1128
- 200: boolean;
1129
- };
1130
- };
1131
- };
1132
- };
1133
- } & {
1134
- count: {
1135
- get: {
1136
- body: unknown;
1137
- params: {};
1138
- query: {
1139
- items?: number | undefined;
1140
- page?: number | undefined;
1141
- chainId: number;
1142
- campaignId: string;
1143
- };
1144
- headers: unknown;
1145
- response: {
1146
- 200: {
1147
- count: number;
1148
- };
1149
- };
1150
- };
1151
- };
1152
- } & {
1153
- count: {
1154
- chains: {
1155
- get: {
1156
- body: unknown;
1157
- params: {};
1158
- query: unknown;
1159
- headers: {
1160
- authorization: string;
1161
- };
1162
- response: {
1163
- 200: {
1164
- [x: string]: {
1165
- breakdown: number;
1166
- rewards: Record<string, number>;
1167
- };
1168
- };
1169
- };
1170
- };
1171
- };
1172
- };
1173
- } & {
1174
- unclaim: {
1175
- index: {
1176
- get: {
1177
- body: unknown;
1178
- params: {};
1179
- query: {
1180
- chainId: number;
1181
- campaignIds: string[];
1182
- };
1183
- headers: unknown;
1184
- response: {
1185
- 200: {
1186
- [x: string]: string;
1187
- };
1188
- };
1189
- };
1190
- };
1191
- };
1192
- };
1193
- };
1194
- } & {
1195
- v4: {
1196
- chains: {
1197
- ":chainId": {
1198
- get: {
1199
- body: unknown;
1200
- params: {
1201
- chainId: number;
1202
- };
1203
- query: unknown;
1204
- headers: unknown;
1205
- response: {
1206
- 200: {
1207
- name: string;
1208
- id: number;
1209
- icon: string;
1210
- explorers: {
1211
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1212
- url: string;
1213
- id: string;
1214
- chainId: number;
1215
- }[];
1216
- } | null;
1217
- };
1218
- };
1219
- };
1220
- } & {
1221
- index: {
1222
- get: {
1223
- body: unknown;
1224
- params: {};
1225
- query: {
1226
- search?: string | undefined;
1227
- };
1228
- headers: unknown;
1229
- response: {
1230
- 200: {
1231
- name: string;
1232
- id: number;
1233
- icon: string;
1234
- explorers: {
1235
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1236
- url: string;
1237
- id: string;
1238
- chainId: number;
1239
- }[];
1240
- }[];
1241
- };
1242
- };
1243
- };
1244
- } & {
1245
- count: {
1246
- get: {
1247
- body: unknown;
1248
- params: {};
1249
- query: {
1250
- search?: string | undefined;
1251
- };
1252
- headers: unknown;
1253
- response: {
1254
- 200: number;
1255
- };
1256
- };
1257
- };
1258
- } & {
1259
- explorers: {
1260
- post: {
1261
- body: {
1262
- type: "ETHERSCAN" | "BLOCKSCOUT";
1263
- url: string;
1264
- chainId: number;
1265
- };
1266
- params: {};
1267
- query: unknown;
1268
- headers: {
1269
- authorization: string;
1270
- };
1271
- response: {
1272
- 200: {
1273
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1274
- url: string;
1275
- id: string;
1276
- chainId: number;
1277
- };
1278
- };
1279
- };
1280
- };
1281
- };
1282
- } & {
1283
- chains: {
1284
- ":chainId": {
1285
- patch: {
1286
- body: {
1287
- icon?: string | undefined;
1288
- };
1289
- params: {
1290
- chainId: number;
1291
- };
1292
- query: unknown;
1293
- headers: {
1294
- authorization: string;
1295
- };
1296
- response: {
1297
- 200: {
1298
- name: string;
1299
- id: number;
1300
- icon: string;
1301
- };
1302
- };
1303
- };
1304
- };
1305
- };
1306
- };
1307
- } & {
1308
- v4: {
1309
- prices: {
1310
- index: {
1311
- get: {
1312
- body: unknown;
1313
- params: {};
1314
- query: unknown;
1315
- headers: unknown;
1316
- response: {
1317
- 200: {
1318
- [x: string]: number;
1319
- };
1320
- };
1321
- };
1322
- };
1323
- } & {
1324
- array: {
1325
- get: {
1326
- body: unknown;
1327
- params: {};
1328
- query: unknown;
1329
- headers: unknown;
1330
- response: {
1331
- 200: {
1332
- rate: number;
1333
- token: string;
1334
- }[];
1335
- };
1336
- };
1337
- };
1338
- } & {
1339
- symbol: {
1340
- ":symbol": {
1341
- get: {
1342
- body: unknown;
1343
- params: {
1344
- symbol: string;
1345
- };
1346
- query: unknown;
1347
- headers: unknown;
1348
- response: {
1349
- 200: number;
1350
- };
1351
- };
1352
- };
1353
- };
1354
- } & {
1355
- sources: {
1356
- index: {
1357
- get: {
1358
- body: unknown;
1359
- params: {};
1360
- query: unknown;
1361
- headers: unknown;
1362
- response: {
1363
- 200: {
1364
- symbol: string;
1365
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1366
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1367
- id: number;
1368
- }[];
1369
- };
1370
- };
1371
- };
1372
- };
1373
- } & {
1374
- sources: {
1375
- symbol: {
1376
- ":symbol": {
1377
- get: {
1378
- body: unknown;
1379
- params: {
1380
- symbol: string;
1381
- };
1382
- query: unknown;
1383
- headers: unknown;
1384
- response: {
1385
- 200: {
1386
- symbol: string;
1387
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1388
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1389
- id: number;
1390
- };
1391
- };
1392
- };
1393
- };
1394
- };
1395
- };
1396
- } & {
1397
- sources: {
1398
- index: {
1399
- post: {
1400
- body: {
1401
- symbol: string;
1402
- method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
1403
- args: {};
1404
- };
1405
- params: {};
1406
- query: unknown;
1407
- headers: {
1408
- authorization: string;
1409
- };
1410
- response: {
1411
- 200: number | undefined;
1412
- };
1413
- };
1414
- };
1415
- };
1416
- } & {
1417
- sources: {
1418
- symbol: {
1419
- ":symbol": {
1420
- patch: {
1421
- body: {
1422
- symbol?: string | undefined;
1423
- method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
1424
- args?: {} | undefined;
1425
- };
1426
- params: {
1427
- symbol: string;
1428
- };
1429
- query: unknown;
1430
- headers: {
1431
- authorization: string;
1432
- };
1433
- response: {
1434
- 200: {
1435
- symbol: string;
1436
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1437
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1438
- id: number;
1439
- };
1440
- };
1441
- };
1442
- };
1443
- };
1444
- };
1445
- } & {
1446
- sources: {
1447
- symbol: {
1448
- ":symbol": {
1449
- delete: {
1450
- body: unknown;
1451
- params: {
1452
- symbol: string;
1453
- };
1454
- query: unknown;
1455
- headers: {
1456
- authorization: string;
1457
- };
1458
- response: {
1459
- 200: {
1460
- symbol: string;
1461
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1462
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1463
- id: number;
1464
- };
1465
- };
1466
- };
1467
- };
1468
- };
1469
- };
1470
- };
1471
- };
1472
- } & {
1473
- v4: {
1474
- blacklists: {
1475
- index: {
1476
- get: {
1477
- body: unknown;
1478
- params: {};
1479
- query: unknown;
1480
- headers: unknown;
1481
- response: {
1482
- 200: {
1483
- id: string;
1484
- chainId: number;
1485
- poolAddress: string;
1486
- userAddress: string;
1487
- arrestTimestamp: bigint;
1488
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1489
- }[];
1490
- };
1491
- };
1492
- };
1493
- };
1494
- } & {
1495
- blacklists: {
1496
- mapping: {
1497
- get: {
1498
- body: unknown;
1499
- params: {};
1500
- query: unknown;
1501
- headers: unknown;
1502
- response: {
1503
- 200: unknown;
1504
- };
1505
- };
1506
- };
1507
- };
1508
- } & {
1509
- blacklists: {
1510
- check: {
1511
- ":address": {
1512
- get: {
1513
- body: unknown;
1514
- params: {
1515
- address: string;
1516
- };
1517
- query: unknown;
1518
- headers: unknown;
1519
- response: {
1520
- 200: boolean;
1521
- };
1522
- };
1523
- };
1524
- };
1525
- };
1526
- } & {
1527
- blacklists: {
1528
- index: {
1529
- post: {
1530
- body: {
1531
- reason?: string | undefined;
1532
- chainId: number;
1533
- poolAddress: string;
1534
- userAddress: string;
1535
- };
1536
- params: {};
1537
- query: unknown;
1538
- headers: {
1539
- authorization: string;
1540
- };
1541
- response: {
1542
- 200: {
1543
- id: string;
1544
- chainId: number;
1545
- poolAddress: string;
1546
- userAddress: string;
1547
- arrestTimestamp: bigint;
1548
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1549
- };
1550
- };
1551
- };
1552
- };
1553
- };
1554
- } & {
1555
- blacklists: {
1556
- user: {
1557
- ":address": {
1558
- delete: {
1559
- body: unknown;
1560
- params: {
1561
- address: string;
1562
- };
1563
- query: unknown;
1564
- headers: {
1565
- authorization: string;
1566
- };
1567
- response: {
1568
- 200: boolean;
1569
- };
1570
- };
1571
- };
1572
- };
1573
- };
1574
- };
1575
- } & {
1576
- v4: {
1577
- users: {
1578
- index: {
1579
- get: {
1580
- body: unknown;
1581
- params: {};
1582
- query: {
1583
- items?: number | undefined;
1584
- tags?: string[] | undefined;
1585
- page?: number | undefined;
1586
- address?: string | undefined;
1587
- };
1588
- headers: unknown;
1589
- response: {
1590
- 200: {
1591
- tags: string[];
1592
- address: string;
1593
- }[];
1594
- };
1595
- };
1596
- };
1597
- };
1598
- } & {
1599
- users: {
1600
- tags: {
1601
- get: {
1602
- body: unknown;
1603
- params: {};
1604
- query: unknown;
1605
- headers: {
1606
- authorization: string;
1607
- };
1608
- response: {
1609
- 200: {
1610
- tags: string[];
1611
- address: string;
1612
- }[];
1613
- };
1614
- };
1615
- };
1616
- };
1617
- } & {
1618
- users: {
1619
- ":address": {
1620
- get: {
1621
- body: unknown;
1622
- params: {
1623
- address: string;
1624
- };
1625
- query: unknown;
1626
- headers: unknown;
1627
- response: {
1628
- 200: {
1629
- tags: string[];
1630
- address: string;
1631
- } | null;
1632
- };
1633
- };
1634
- };
1635
- };
1636
- } & {
1637
- users: {
1638
- ":address": {
1639
- rewards: {
1640
- breakdowns: {
1641
- get: {
1642
- body: unknown;
1643
- params: {
1644
- address: string;
1645
- };
1646
- query: {
1647
- chainId?: number | undefined;
1648
- };
1649
- headers: unknown;
1650
- response: {
1651
- 200: (Omit<{
1652
- chain: import("../../../database/api/.generated").Chain;
1653
- rewards: Awaited<ReturnType<(typeof RewardService)["format"]>>;
1654
- }, "rewards"> & {
1655
- rewards: (Omit<{
1656
- token: {
1657
- symbol: string;
1658
- name: string | null;
1659
- id: string;
1660
- chainId: number;
1661
- address: string;
1662
- icon: string;
1663
- decimals: number;
1664
- displaySymbol: string;
1665
- verified: boolean;
1666
- isTest: boolean;
1667
- price: number | null;
1668
- };
1669
- breakdowns: {
1670
- campaignId: string;
1671
- opportunity: {
1672
- Chain: {
1673
- name: string;
1674
- id: number;
1675
- icon: string;
1676
- };
1677
- Tokens: {
1678
- symbol: string;
1679
- name: string | null;
1680
- id: string;
1681
- chainId: number;
1682
- address: string;
1683
- icon: string;
1684
- decimals: number;
1685
- displaySymbol: string;
1686
- verified: boolean;
1687
- isTest: boolean;
1688
- price: number | null;
1689
- }[];
1690
- Protocols: {
1691
- name: string;
1692
- url: string;
1693
- description: string;
1694
- id: string;
1695
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1696
- icon: string;
1697
- }[];
1698
- MainProtocol: {
1699
- name: string;
1700
- url: string;
1701
- description: string;
1702
- id: string;
1703
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1704
- icon: string;
1705
- } | null;
1706
- } & {
1707
- name: string;
1708
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1709
- id: string;
1710
- status: import("../../../database/api/.generated").$Enums.Status;
1711
- tags: string[];
1712
- identifier: string;
1713
- chainId: number;
1714
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1715
- mainProtocolId: string | null;
1716
- tvl: number;
1717
- apr: number;
1718
- dailyRewards: number;
1719
- };
1720
- reason: string;
1721
- pending: string;
1722
- amount: string;
1723
- claimed: string;
1724
- auxiliaryData1: string | null;
1725
- auxiliaryData2: string | null;
1726
- }[];
1727
- claimed: bigint;
1728
- amount: bigint;
1729
- pending: bigint;
1730
- recipient: string;
1731
- root: string;
1732
- proofs: string[];
1733
- }, "breakdowns"> & {
1734
- breakdowns: {
1735
- opportunity: import("../../modules/v4").Opportunity["model"];
1736
- claimed: bigint;
1737
- amount: bigint;
1738
- pending: bigint;
1739
- auxiliaryData1: string | null;
1740
- auxiliaryData2: string | null;
1741
- }[];
1742
- })[];
1743
- distributor: string;
1744
- })[];
1745
- };
1746
- };
1747
- };
1748
- };
1749
- };
1750
- };
1751
- } & {
1752
- users: {
1753
- ":address": {
1754
- rewards: {
1755
- get: {
1756
- body: unknown;
1757
- params: {
1758
- address: string;
1759
- };
1760
- query: {
1761
- chainId: number[];
1762
- };
1763
- headers: unknown;
1764
- response: {
1765
- 200: (Omit<{
1766
- chain: import("../../../database/api/.generated").Chain;
1767
- rewards: Awaited<ReturnType<(typeof RewardService)["format"]>>;
1768
- }, "rewards"> & {
1769
- rewards: (Omit<{
1770
- token: {
1771
- symbol: string;
1772
- name: string | null;
1773
- id: string;
1774
- chainId: number;
1775
- address: string;
1776
- icon: string;
1777
- decimals: number;
1778
- displaySymbol: string;
1779
- verified: boolean;
1780
- isTest: boolean;
1781
- price: number | null;
1782
- };
1783
- breakdowns: {
1784
- campaignId: string;
1785
- opportunity: {
1786
- Chain: {
1787
- name: string;
1788
- id: number;
1789
- icon: string;
1790
- };
1791
- Tokens: {
1792
- symbol: string;
1793
- name: string | null;
1794
- id: string;
1795
- chainId: number;
1796
- address: string;
1797
- icon: string;
1798
- decimals: number;
1799
- displaySymbol: string;
1800
- verified: boolean;
1801
- isTest: boolean;
1802
- price: number | null;
1803
- }[];
1804
- Protocols: {
1805
- name: string;
1806
- url: string;
1807
- description: string;
1808
- id: string;
1809
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1810
- icon: string;
1811
- }[];
1812
- MainProtocol: {
1813
- name: string;
1814
- url: string;
1815
- description: string;
1816
- id: string;
1817
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1818
- icon: string;
1819
- } | null;
1820
- } & {
1821
- name: string;
1822
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1823
- id: string;
1824
- status: import("../../../database/api/.generated").$Enums.Status;
1825
- tags: string[];
1826
- identifier: string;
1827
- chainId: number;
1828
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1829
- mainProtocolId: string | null;
1830
- tvl: number;
1831
- apr: number;
1832
- dailyRewards: number;
1833
- };
1834
- reason: string;
1835
- pending: string;
1836
- amount: string;
1837
- claimed: string;
1838
- auxiliaryData1: string | null;
1839
- auxiliaryData2: string | null;
1840
- }[];
1841
- claimed: bigint;
1842
- amount: bigint;
1843
- pending: bigint;
1844
- recipient: string;
1845
- root: string;
1846
- proofs: string[];
1847
- }, "breakdowns"> & {
1848
- breakdowns: {
1849
- campaignId: string;
1850
- reason: string;
1851
- pending: string;
1852
- amount: string;
1853
- claimed: string;
1854
- auxiliaryData1: string | null;
1855
- auxiliaryData2: string | null;
1856
- }[];
1857
- })[];
1858
- })[];
1859
- };
1860
- };
1861
- };
1862
- };
1863
- };
1864
- } & {
1865
- users: {
1866
- index: {
1867
- post: {
1868
- body: {
1869
- tags: string[];
1870
- address: string;
1871
- };
1872
- params: {};
1873
- query: unknown;
1874
- headers: {
1875
- authorization: string;
1876
- };
1877
- response: {
1878
- 200: {
1879
- tags: string[];
1880
- address: string;
1881
- };
1882
- };
1883
- };
1884
- };
1885
- };
1886
- } & {
1887
- users: {
1888
- sync: {
1889
- post: {
1890
- body: unknown;
1891
- params: {};
1892
- query: unknown;
1893
- headers: {
1894
- authorization: string;
1895
- };
1896
- response: {
1897
- 200: void;
1898
- };
1899
- };
1900
- };
1901
- };
1902
- } & {
1903
- users: {
1904
- ":address": {
1905
- tags: {
1906
- patch: {
1907
- body: {
1908
- tags: string[];
1909
- };
1910
- params: {
1911
- address: string;
1912
- };
1913
- query: unknown;
1914
- headers: {
1915
- authorization: string;
1916
- };
1917
- response: {
1918
- 200: {
1919
- tags: string[];
1920
- address: string;
1921
- };
1922
- };
1923
- };
1924
- };
1925
- };
1926
- };
1927
- };
1928
- } & {
1929
- v4: {
1930
- roots: {
1931
- index: {
1932
- get: {
1933
- body: unknown;
1934
- params: {};
1935
- query: {
1936
- chainId: number;
1937
- fromTimestamp: string;
1938
- toTimestamp: string;
1939
- };
1940
- headers: unknown;
1941
- response: {
1942
- 200: {
1943
- timestamp: bigint;
1944
- chainId: number;
1945
- root: string;
1946
- epoch: number;
1947
- }[];
1948
- };
1949
- };
1950
- };
1951
- };
1952
- } & {
1953
- roots: {
1954
- live: {
1955
- get: {
1956
- body: unknown;
1957
- params: {};
1958
- query: unknown;
1959
- headers: unknown;
1960
- response: {
1961
- 200: {
1962
- live: string;
1963
- tree: string;
1964
- lastTree: string;
1965
- }[];
1966
- };
1967
- };
1968
- };
1969
- };
1970
- } & {
1971
- roots: {
1972
- engine: {
1973
- post: {
1974
- body: {
1975
- timestamp: number;
1976
- chainId: number;
1977
- root: string;
1978
- epoch: number;
1979
- };
1980
- params: {};
1981
- query: unknown;
1982
- headers: {
1983
- authorization: string;
1984
- };
1985
- response: {
1986
- 200: {
1987
- timestamp: bigint;
1988
- chainId: number;
1989
- root: string;
1990
- epoch: number;
1991
- };
1992
- };
1993
- };
1994
- };
1995
- };
1996
- };
1997
- } & {
1998
- v4: {
1999
- interaction: {
2000
- targets: {
2001
- get: {
2002
- body: unknown;
2003
- params: {};
2004
- query: {
2005
- identifier?: string | undefined;
2006
- chainId: number;
2007
- protocolId: string;
2008
- };
2009
- headers: unknown;
2010
- response: {
2011
- 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
2012
- };
2013
- };
2014
- };
2015
- };
2016
- } & {
2017
- interaction: {
2018
- protocols: {
2019
- get: {
2020
- body: unknown;
2021
- params: {};
2022
- query: {
2023
- chainId?: number | undefined;
2024
- };
2025
- headers: unknown;
2026
- response: {
2027
- 200: ({
2028
- name: string;
2029
- url: string;
2030
- description: string;
2031
- id: string;
2032
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
2033
- icon: string;
2034
- } & {})[];
2035
- };
2036
- };
2037
- };
2038
- };
2039
- } & {
2040
- interaction: {
2041
- quote: {
2042
- get: {
2043
- body: unknown;
2044
- params: {};
2045
- query: {
2046
- identifier: string;
2047
- chainId: number;
2048
- protocolId: string;
2049
- userAddress: string;
2050
- fromAmount: string;
2051
- fromTokenAddress: string;
2052
- };
2053
- headers: unknown;
2054
- response: {
2055
- 200: {
2056
- amountOut: {};
2057
- gas: string;
2058
- feeAmount: string[];
2059
- priceImpact: number;
2060
- } | undefined;
2061
- };
2062
- };
2063
- };
2064
- };
2065
- } & {
2066
- interaction: {
2067
- transaction: {
2068
- get: {
2069
- body: unknown;
2070
- params: {};
2071
- query: {
2072
- identifier: string;
2073
- chainId: number;
2074
- protocolId: string;
2075
- userAddress: string;
2076
- fromAmount: string;
2077
- fromTokenAddress: string;
2078
- };
2079
- headers: unknown;
2080
- response: {
2081
- 200: {
2082
- amountOut: string;
2083
- gas: string;
2084
- feeAmount: string[];
2085
- priceImpact: number;
2086
- createAt: number;
2087
- tx: {
2088
- data: string;
2089
- from: string;
2090
- value: string;
2091
- to: string;
2092
- };
2093
- } | undefined;
2094
- };
2095
- };
2096
- };
2097
- };
2098
- };
2099
- } & {
2100
- v4: {
2101
- accounting: {
2102
- index: {
2103
- get: {
2104
- body: unknown;
2105
- params: {};
2106
- query: {
2107
- items?: number | undefined;
2108
- page?: number | undefined;
2109
- };
2110
- headers: {
2111
- authorization: string;
2112
- };
2113
- response: {
2114
- 200: {
2115
- id: string;
2116
- timestamp: number;
2117
- chainId: number;
2118
- fromTokenId: string;
2119
- toTokenId: string;
2120
- multisig: string;
2121
- recipient: string;
2122
- amountIn: string;
2123
- amountOut: string;
2124
- datetime: Date;
2125
- }[];
2126
- };
2127
- };
2128
- };
2129
- } & {
2130
- revenues: {
2131
- get: {
2132
- body: unknown;
2133
- params: {};
2134
- query: unknown;
2135
- headers: {
2136
- authorization: string;
2137
- };
2138
- response: {
2139
- 200: {
2140
- totalAmount: number;
2141
- };
2142
- };
2143
- };
2144
- };
2145
- } & {
2146
- revenues: {
2147
- "per-month": {
2148
- ":year": {
2149
- ":month": {
2150
- get: {
2151
- body: unknown;
2152
- params: {
2153
- month: number;
2154
- year: number;
2155
- };
2156
- query: unknown;
2157
- headers: {
2158
- authorization: string;
2159
- };
2160
- response: {
2161
- 200: {
2162
- totalAmount: number;
2163
- from: string;
2164
- to: string;
2165
- };
2166
- };
2167
- };
2168
- };
2169
- };
2170
- };
2171
- };
2172
- } & {
2173
- revenues: {
2174
- chains: {
2175
- ":chainId": {
2176
- get: {
2177
- body: unknown;
2178
- params: {
2179
- chainId: number;
2180
- };
2181
- query: unknown;
2182
- headers: {
2183
- authorization: string;
2184
- };
2185
- response: {
2186
- 200: {
2187
- totalAmount: number;
2188
- };
2189
- };
2190
- };
2191
- };
2192
- };
2193
- };
2194
- } & {
2195
- revenues: {
2196
- chains: {
2197
- ":chainId": {
2198
- "per-month": {
2199
- ":year": {
2200
- ":month": {
2201
- get: {
2202
- body: unknown;
2203
- params: {
2204
- chainId: number;
2205
- month: number;
2206
- year: number;
2207
- };
2208
- query: unknown;
2209
- headers: {
2210
- authorization: string;
2211
- };
2212
- response: {
2213
- 200: {
2214
- totalAmount: number;
2215
- from: string;
2216
- to: string;
2217
- };
2218
- };
2219
- };
2220
- };
2221
- };
2222
- };
2223
- };
2224
- };
2225
- };
2226
- } & {
2227
- tokens: {
2228
- ":chainId": {
2229
- ":tokenAddress": {
2230
- get: {
2231
- body: unknown;
2232
- params: {
2233
- chainId: number;
2234
- tokenAddress: string;
2235
- };
2236
- query: unknown;
2237
- headers: {
2238
- authorization: string;
2239
- };
2240
- response: {
2241
- 200: {
2242
- totalAmount: number;
2243
- totalAmountUSD: number;
2244
- };
2245
- };
2246
- };
2247
- };
2248
- };
2249
- };
2250
- } & {
2251
- tokens: {
2252
- ":chainId": {
2253
- ":tokenAddress": {
2254
- "per-month": {
2255
- ":year": {
2256
- ":month": {
2257
- get: {
2258
- body: unknown;
2259
- params: {
2260
- chainId: number;
2261
- tokenAddress: string;
2262
- month: number;
2263
- year: number;
2264
- };
2265
- query: unknown;
2266
- headers: {
2267
- authorization: string;
2268
- };
2269
- response: {
2270
- 200: {
2271
- totalAmount: number;
2272
- totalAmountUSD: number;
2273
- from: string;
2274
- to: string;
2275
- };
2276
- };
2277
- };
2278
- };
2279
- };
2280
- };
2281
- };
2282
- };
2283
- };
2284
- };
2285
- };
2286
- } & {
2287
- v4: {
2288
- "dynamic-data": {
2289
- index: {
2290
- get: {
2291
- body: unknown;
2292
- params: {};
2293
- query: {
2294
- chainId: number;
2295
- tokenAddress: string;
2296
- };
2297
- headers: {
2298
- authorization: string;
2299
- };
2300
- response: {
2301
- 200: {
2302
- tvl: number;
2303
- totalSupply: number;
2304
- cardName: string;
2305
- blacklistedSupply: number;
2306
- priceTargetToken: number;
2307
- };
2308
- };
2309
- };
2310
- };
2311
- };
2312
- };
2313
- } & {
2314
- v4: {
2315
- "campaign-status": {
2316
- engine: {
2317
- ":campaignId": {
2318
- put: {
2319
- body: {
2320
- value: "SUCCESS";
2321
- computedUntil: number;
2322
- } | {
2323
- value: "PROCESSING";
2324
- } | {
2325
- error: string;
2326
- details: string;
2327
- value: "SKIPPED";
2328
- } | {
2329
- error: string;
2330
- details: string;
2331
- value: "FAILED";
2332
- };
2333
- params: {
2334
- campaignId: string;
2335
- };
2336
- query: unknown;
2337
- headers: {
2338
- authorization: string;
2339
- };
2340
- response: {
2341
- 200: void;
2342
- };
2343
- };
2344
- };
2345
- };
2346
- };
2347
- } & {
2348
- "campaign-status": {
2349
- engine: {
2350
- overlaps: {
2351
- get: {
2352
- body: unknown;
2353
- params: {};
2354
- query: {
2355
- campaignId: string;
2356
- distributionChain: number;
2357
- };
2358
- headers: {
2359
- authorization: string;
2360
- };
2361
- response: {
2362
- 200: boolean;
2363
- };
2364
- };
2365
- };
2366
- };
2367
- };
2368
- } & {
2369
- "campaign-status": {
2370
- index: {
2371
- get: {
2372
- body: unknown;
2373
- params: {};
2374
- query: {
2375
- status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2376
- computeChainId?: number | undefined;
2377
- };
2378
- headers: unknown;
2379
- response: {
2380
- 200: {
2381
- error: string;
2382
- details: import("database/api/.generated/runtime/library").JsonValue;
2383
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2384
- campaignId: string;
2385
- computedUntil: bigint;
2386
- processingStarted: bigint;
2387
- }[];
2388
- };
2389
- };
2390
- };
2391
- };
2392
- } & {
2393
- "campaign-status": {
2394
- ":campaignId": {
2395
- get: {
2396
- body: unknown;
2397
- params: {
2398
- campaignId: string;
2399
- };
2400
- query: unknown;
2401
- headers: unknown;
2402
- response: {
2403
- 200: {
2404
- error: string;
2405
- details: import("database/api/.generated/runtime/library").JsonValue;
2406
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2407
- campaignId: string;
2408
- computedUntil: bigint;
2409
- processingStarted: bigint;
2410
- }[] | {
2411
- error: string;
2412
- details: import("database/api/.generated/runtime/library").JsonValue;
2413
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2414
- campaignId: string;
2415
- computedUntil: bigint;
2416
- processingStarted: bigint;
2417
- };
2418
- };
2419
- };
2420
- };
2421
- };
2422
- };
2423
- } & {
2424
- v4: {
2425
- liquidity: {
2426
- index: {
2427
- get: {
2428
- body: unknown;
2429
- params: {};
2430
- query: {
2431
- chainId: number;
2432
- address: string;
2433
- };
2434
- headers: unknown;
2435
- response: {
2436
- 200: import("../../modules/v4/liquidity").PositionT[];
2437
- };
2438
- };
2439
- };
2440
- };
2441
- };
2442
- } & {
2443
- v4: {
2444
- claims: {
2445
- ":address": {
2446
- get: {
2447
- body: unknown;
2448
- params: {
2449
- address: string;
2450
- };
2451
- query: unknown;
2452
- headers: unknown;
2453
- response: {
2454
- 200: (import("../../modules/v4/claims").ClaimModel & {
2455
- token: import("../../modules/v4").Token["model"];
2456
- })[];
2457
- };
2458
- };
2459
- };
2460
- };
2461
- };
2462
- } & {
2463
- index: {
2464
- get: {
2465
- body: unknown;
2466
- params: {};
2467
- query: {
2468
- chainIds?: string | string[] | undefined;
2469
- creatorTag?: string | undefined;
2470
- user: string;
2471
- };
2472
- headers: unknown;
2473
- response: {
2474
- 200: {
2475
- [x: string]: {
2476
- campaignData: {
2477
- [x: string]: {
2478
- [x: string]: {
2479
- pending?: string | undefined;
2480
- symbol: string;
2481
- token: string;
2482
- mainParameter: string;
2483
- decimals: number;
2484
- auxiliaryData1: string;
2485
- auxiliaryData2: string;
2486
- unclaimed: string;
2487
- accumulated: string;
2488
- };
2489
- };
2490
- };
2491
- tokenData: {
2492
- [x: string]: {
2493
- pending?: string | undefined;
2494
- symbol: string;
2495
- decimals: number;
2496
- proof: string[];
2497
- unclaimed: string;
2498
- accumulated: string;
2499
- };
2500
- };
2501
- };
2502
- };
2503
- };
2504
- };
2505
- };
2506
- }, {
2507
- derive: {};
2508
- resolve: {};
2509
- schema: {};
2510
- }, {
2511
- derive: {};
2512
- resolve: {};
2513
- schema: {};
2514
- }>;
7
+ declare const _default: (app: App) => any;
2515
8
  export default _default;