@merkl/api 0.10.199 → 0.10.201

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