@merkl/api 0.10.115 → 0.10.117
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/api/.generated/default.d.ts +1 -1
- package/dist/database/api/.generated/edge.d.ts +1 -1
- package/dist/database/api/.generated/index.d.ts +335 -311
- package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +15 -2
- package/dist/database/api/.generated/runtime/library.d.ts +195 -79
- package/dist/database/api/.generated/schema.prisma +1 -1
- package/dist/database/api/.generated/wasm.d.ts +1 -1
- package/dist/database/engine/.generated/default.d.ts +1 -1
- package/dist/database/engine/.generated/edge.d.ts +1 -1
- package/dist/database/engine/.generated/index.d.ts +16 -104
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +14 -1
- package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
- package/dist/database/engine/.generated/wasm.d.ts +1 -1
- package/dist/src/eden/index.d.ts +543 -426
- package/dist/src/index.d.ts +188 -141
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +5 -3
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +5 -3
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
- package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
- package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
- package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +4 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +2 -1
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +22 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
- package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
- package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
- package/dist/src/modules/v4/price/price.service.d.ts +8 -8
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.controller.d.ts +32 -8
- package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
- package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
- package/dist/src/modules/v4/reward/reward.service.d.ts +134 -131
- package/dist/src/modules/v4/router.d.ts +188 -141
- package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
- package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
- package/dist/src/modules/v4/status/status.service.d.ts +20 -20
- package/dist/src/modules/v4/user/user.controller.d.ts +44 -44
- package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
- package/dist/src/modules/v4/user/user.service.d.ts +3 -3
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +188 -141
- package/dist/src/routes/v3/blacklist.d.ts +188 -141
- package/dist/src/routes/v3/campaigns.d.ts +188 -141
- package/dist/src/routes/v3/campaignsInfo.d.ts +188 -141
- package/dist/src/routes/v3/multiChainPositions.d.ts +188 -141
- package/dist/src/routes/v3/opportunity.d.ts +188 -141
- package/dist/src/routes/v3/positions.d.ts +188 -141
- package/dist/src/routes/v3/rewards.d.ts +188 -141
- package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
- package/dist/src/routes/v3/updates.d.ts +188 -141
- package/dist/src/routes/v3/userRewards.d.ts +188 -141
- package/dist/src/utils/bigintToString.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -19,11 +19,13 @@ export declare const DynamicDataController: Elysia<"/dynamicData", false, {
|
|
19
19
|
get: {
|
20
20
|
body: unknown;
|
21
21
|
params: {
|
22
|
-
chainId:
|
22
|
+
chainId: number;
|
23
23
|
tokenAddress: string;
|
24
24
|
};
|
25
25
|
query: unknown;
|
26
|
-
headers:
|
26
|
+
headers: {
|
27
|
+
authorization: string;
|
28
|
+
};
|
27
29
|
response: {
|
28
30
|
200: {
|
29
31
|
tvl: number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const DynamicDataSourceIdentifier: import("@sinclair/typebox").TObject<{
|
2
|
-
chainId: import("@sinclair/typebox").
|
2
|
+
chainId: import("@sinclair/typebox").TNumber;
|
3
3
|
tokenAddress: import("@sinclair/typebox").TString;
|
4
4
|
}>;
|
5
|
-
export type
|
5
|
+
export type DynamicDataSourceModel = typeof DynamicDataSourceIdentifier.static;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { type ChainId } from "@sdk";
|
1
2
|
type output = {
|
2
3
|
tvl: number;
|
3
4
|
totalSupply: number;
|
@@ -7,6 +8,6 @@ type output = {
|
|
7
8
|
};
|
8
9
|
export declare class DynamicDataService {
|
9
10
|
/** Fetches a single price */
|
10
|
-
static queryERC20DynamicData(chainId:
|
11
|
+
static queryERC20DynamicData(chainId: ChainId, tokenAddress: string): Promise<output>;
|
11
12
|
}
|
12
13
|
export {};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { ExplorerType } from "../../../../database/api/.generated";
|
2
2
|
export declare abstract class ExplorerRepository {
|
3
3
|
static getByChainId(chainId: number): Promise<{
|
4
|
-
id: string;
|
5
4
|
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
6
5
|
url: string;
|
6
|
+
id: string;
|
7
7
|
chainId: number;
|
8
8
|
}>;
|
9
9
|
/**
|
@@ -13,9 +13,9 @@ export declare abstract class ExplorerRepository {
|
|
13
13
|
* @param url base url without / suffix
|
14
14
|
*/
|
15
15
|
static create(chainId: number, type: ExplorerType, url: string): Promise<{
|
16
|
-
id: string;
|
17
16
|
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
18
17
|
url: string;
|
18
|
+
id: string;
|
19
19
|
chainId: number;
|
20
20
|
}>;
|
21
21
|
}
|
@@ -3,9 +3,9 @@ import type { Explorer } from "./explorer.model";
|
|
3
3
|
export declare abstract class ExplorerService {
|
4
4
|
static hashId(type: ExplorerType, chainId: number): string;
|
5
5
|
static getByChainId(chainId: number): Promise<{
|
6
|
-
id: string;
|
7
6
|
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
8
7
|
url: string;
|
8
|
+
id: string;
|
9
9
|
chainId: number;
|
10
10
|
}>;
|
11
11
|
static format(explorer: Explorer["raw"]): {
|
@@ -20,9 +20,9 @@ export declare abstract class ExplorerService {
|
|
20
20
|
* @param url base url without / suffix
|
21
21
|
*/
|
22
22
|
static create(chainId: number, type: ExplorerType, url: string): Promise<{
|
23
|
-
id: string;
|
24
23
|
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
25
24
|
url: string;
|
25
|
+
id: string;
|
26
26
|
chainId: number;
|
27
27
|
}>;
|
28
28
|
}
|
@@ -12,7 +12,7 @@ export declare const MerklRootController: Elysia<"/roots", false, {
|
|
12
12
|
macro: {};
|
13
13
|
}, {
|
14
14
|
roots: {
|
15
|
-
|
15
|
+
timestamps: {
|
16
16
|
get: {
|
17
17
|
body: unknown;
|
18
18
|
params: Record<never, string>;
|
@@ -24,15 +24,34 @@ export declare const MerklRootController: Elysia<"/roots", false, {
|
|
24
24
|
headers: unknown;
|
25
25
|
response: {
|
26
26
|
200: {
|
27
|
-
|
27
|
+
timestamp: bigint;
|
28
28
|
chainId: number;
|
29
|
+
root: string;
|
29
30
|
epoch: number;
|
30
|
-
timestamp: bigint;
|
31
31
|
}[];
|
32
32
|
};
|
33
33
|
};
|
34
34
|
};
|
35
35
|
};
|
36
|
+
} & {
|
37
|
+
roots: {
|
38
|
+
index: {
|
39
|
+
get: {
|
40
|
+
body: unknown;
|
41
|
+
params: Record<never, string>;
|
42
|
+
query: unknown;
|
43
|
+
headers: unknown;
|
44
|
+
response: {
|
45
|
+
200: {
|
46
|
+
[chainId: number]: {
|
47
|
+
live: string;
|
48
|
+
lastTree: string;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
};
|
52
|
+
};
|
53
|
+
};
|
54
|
+
};
|
36
55
|
}, {
|
37
56
|
derive: {};
|
38
57
|
resolve: {};
|
@@ -2,16 +2,16 @@ import { type ChainId } from "@sdk";
|
|
2
2
|
import type { RootByTimestampModel } from "./merklRoot.model";
|
3
3
|
export declare class MerklRootRepository {
|
4
4
|
static firstRoot(chainId: ChainId): Promise<{
|
5
|
-
|
5
|
+
timestamp: bigint;
|
6
6
|
chainId: number;
|
7
|
+
root: string;
|
7
8
|
epoch: number;
|
8
|
-
timestamp: bigint;
|
9
9
|
} | null>;
|
10
10
|
static rootForTimestamp(x: RootByTimestampModel): Promise<{
|
11
|
-
|
11
|
+
timestamp: bigint;
|
12
12
|
chainId: number;
|
13
|
+
root: string;
|
13
14
|
epoch: number;
|
14
|
-
timestamp: bigint;
|
15
15
|
}[]>;
|
16
16
|
static fetch(chainId: ChainId): Promise<{
|
17
17
|
live: any;
|
@@ -3,16 +3,16 @@ import type { ChainId } from "@sdk";
|
|
3
3
|
import type { RootByTimestampModel } from "./merklRoot.model";
|
4
4
|
export declare class MerklRootService {
|
5
5
|
static firstRoot(chainId: ChainId): Promise<{
|
6
|
-
|
6
|
+
timestamp: bigint;
|
7
7
|
chainId: number;
|
8
|
+
root: string;
|
8
9
|
epoch: number;
|
9
|
-
timestamp: bigint;
|
10
10
|
} | null>;
|
11
11
|
static rootForTimestamp(x: RootByTimestampModel): Promise<{
|
12
|
-
|
12
|
+
timestamp: bigint;
|
13
13
|
chainId: number;
|
14
|
+
root: string;
|
14
15
|
epoch: number;
|
15
|
-
timestamp: bigint;
|
16
16
|
}[]>;
|
17
17
|
/**
|
18
18
|
* Fetch roots for the provided chain
|
@@ -55,9 +55,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
55
55
|
cumulated: number;
|
56
56
|
timestamp: bigint;
|
57
57
|
breakdowns: {
|
58
|
+
type: import("../../../../database/api/.generated").$Enums.AprType;
|
58
59
|
id: number;
|
59
60
|
identifier: string;
|
60
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
61
61
|
value: number;
|
62
62
|
aprRecordId: string;
|
63
63
|
}[];
|
@@ -67,9 +67,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
67
67
|
total: number;
|
68
68
|
timestamp: bigint;
|
69
69
|
breakdowns: {
|
70
|
+
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
70
71
|
id: number;
|
71
72
|
identifier: string;
|
72
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
73
73
|
value: number;
|
74
74
|
tvlRecordId: string;
|
75
75
|
}[];
|
@@ -87,27 +87,27 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
87
87
|
};
|
88
88
|
id: string;
|
89
89
|
tokens: {
|
90
|
-
|
90
|
+
symbol: string;
|
91
91
|
name: string | null;
|
92
|
+
id: string;
|
92
93
|
chainId: number;
|
93
94
|
address: string;
|
94
|
-
decimals: number;
|
95
|
-
symbol: string;
|
96
95
|
icon: string;
|
96
|
+
decimals: number;
|
97
97
|
verified: boolean;
|
98
98
|
price: number | null;
|
99
99
|
}[];
|
100
100
|
chain: {
|
101
|
-
id: number;
|
102
101
|
name: string;
|
102
|
+
id: number;
|
103
103
|
icon: string;
|
104
104
|
};
|
105
105
|
protocol: {
|
106
|
-
id: string;
|
107
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
108
106
|
name: string;
|
109
|
-
description: string;
|
110
107
|
url: string;
|
108
|
+
description: string;
|
109
|
+
id: string;
|
110
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
111
111
|
icon: string;
|
112
112
|
} | undefined;
|
113
113
|
name: string;
|
@@ -142,9 +142,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
142
142
|
cumulated: number;
|
143
143
|
timestamp: bigint;
|
144
144
|
breakdowns: {
|
145
|
+
type: import("../../../../database/api/.generated").$Enums.AprType;
|
145
146
|
id: number;
|
146
147
|
identifier: string;
|
147
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
148
148
|
value: number;
|
149
149
|
aprRecordId: string;
|
150
150
|
}[];
|
@@ -154,9 +154,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
154
154
|
total: number;
|
155
155
|
timestamp: bigint;
|
156
156
|
breakdowns: {
|
157
|
+
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
157
158
|
id: number;
|
158
159
|
identifier: string;
|
159
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
160
160
|
value: number;
|
161
161
|
tvlRecordId: string;
|
162
162
|
}[];
|
@@ -174,27 +174,27 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
174
174
|
};
|
175
175
|
id: string;
|
176
176
|
tokens: {
|
177
|
-
|
177
|
+
symbol: string;
|
178
178
|
name: string | null;
|
179
|
+
id: string;
|
179
180
|
chainId: number;
|
180
181
|
address: string;
|
181
|
-
decimals: number;
|
182
|
-
symbol: string;
|
183
182
|
icon: string;
|
183
|
+
decimals: number;
|
184
184
|
verified: boolean;
|
185
185
|
price: number | null;
|
186
186
|
}[];
|
187
187
|
chain: {
|
188
|
-
id: number;
|
189
188
|
name: string;
|
189
|
+
id: number;
|
190
190
|
icon: string;
|
191
191
|
};
|
192
192
|
protocol: {
|
193
|
-
id: string;
|
194
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
195
193
|
name: string;
|
196
|
-
description: string;
|
197
194
|
url: string;
|
195
|
+
description: string;
|
196
|
+
id: string;
|
197
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
198
198
|
icon: string;
|
199
199
|
} | undefined;
|
200
200
|
name: string;
|
@@ -211,37 +211,37 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
211
211
|
campaigns: ({
|
212
212
|
params: any;
|
213
213
|
chain: {
|
214
|
-
id: number;
|
215
214
|
name: string;
|
215
|
+
id: number;
|
216
216
|
icon: string;
|
217
217
|
};
|
218
218
|
rewardToken: {
|
219
|
-
|
219
|
+
symbol: string;
|
220
220
|
name: string | null;
|
221
|
+
id: string;
|
221
222
|
chainId: number;
|
222
223
|
address: string;
|
223
|
-
decimals: number;
|
224
|
-
symbol: string;
|
225
224
|
icon: string;
|
225
|
+
decimals: number;
|
226
226
|
verified: boolean;
|
227
227
|
price: number | null;
|
228
228
|
};
|
229
229
|
distributionChain: {
|
230
|
-
id: number;
|
231
230
|
name: string;
|
231
|
+
id: number;
|
232
232
|
icon: string;
|
233
233
|
} | undefined;
|
234
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
234
235
|
id: string;
|
236
|
+
subType: number | null;
|
237
|
+
startTimestamp: bigint;
|
238
|
+
endTimestamp: bigint;
|
235
239
|
computeChainId: number;
|
236
240
|
distributionChainId: number;
|
237
241
|
campaignId: string;
|
238
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
239
|
-
subType: number | null;
|
240
242
|
rewardTokenId: string;
|
241
243
|
amount: string;
|
242
244
|
opportunityId: string;
|
243
|
-
startTimestamp: bigint;
|
244
|
-
endTimestamp: bigint;
|
245
245
|
creatorAddress: string;
|
246
246
|
} | null)[];
|
247
247
|
}) | null | undefined;
|
@@ -276,9 +276,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
276
276
|
cumulated: number;
|
277
277
|
timestamp: bigint;
|
278
278
|
breakdowns: {
|
279
|
+
type: import("../../../../database/api/.generated").$Enums.AprType;
|
279
280
|
id: number;
|
280
281
|
identifier: string;
|
281
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
282
282
|
value: number;
|
283
283
|
aprRecordId: string;
|
284
284
|
}[];
|
@@ -288,9 +288,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
288
288
|
total: number;
|
289
289
|
timestamp: bigint;
|
290
290
|
breakdowns: {
|
291
|
+
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
291
292
|
id: number;
|
292
293
|
identifier: string;
|
293
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
294
294
|
value: number;
|
295
295
|
tvlRecordId: string;
|
296
296
|
}[];
|
@@ -308,27 +308,27 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
308
308
|
};
|
309
309
|
id: string;
|
310
310
|
tokens: {
|
311
|
-
|
311
|
+
symbol: string;
|
312
312
|
name: string | null;
|
313
|
+
id: string;
|
313
314
|
chainId: number;
|
314
315
|
address: string;
|
315
|
-
decimals: number;
|
316
|
-
symbol: string;
|
317
316
|
icon: string;
|
317
|
+
decimals: number;
|
318
318
|
verified: boolean;
|
319
319
|
price: number | null;
|
320
320
|
}[];
|
321
321
|
chain: {
|
322
|
-
id: number;
|
323
322
|
name: string;
|
323
|
+
id: number;
|
324
324
|
icon: string;
|
325
325
|
};
|
326
326
|
protocol: {
|
327
|
-
id: string;
|
328
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
329
327
|
name: string;
|
330
|
-
description: string;
|
331
328
|
url: string;
|
329
|
+
description: string;
|
330
|
+
id: string;
|
331
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
332
332
|
icon: string;
|
333
333
|
} | undefined;
|
334
334
|
name: string;
|