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