@merkl/api 0.10.206 → 0.10.208
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/api/.generated/edge.js +5 -4
- package/dist/database/api/.generated/index-browser.js +2 -1
- package/dist/database/api/.generated/index.d.ts +2 -1
- package/dist/database/api/.generated/index.js +5 -4
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +1 -0
- package/dist/database/api/.generated/wasm.js +2 -1
- package/dist/src/eden/index.d.ts +8672 -2
- package/dist/src/index.d.ts +3358 -1
- package/dist/src/index.js +4 -4
- package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +31 -1
- package/dist/src/modules/v4/protocol/protocol.controller.js +8 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +11 -0
- package/dist/src/modules/v4/protocol/protocol.model.js +8 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -2
- package/dist/src/modules/v4/protocol/protocol.repository.js +12 -3
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
- package/dist/src/modules/v4/protocol/protocol.service.js +3 -0
- package/dist/src/modules/v4/router.d.ts +33 -3
- package/dist/src/routes/v2/merkl.d.ts +4 -4
- package/dist/src/routes/v2/router.d.ts +4 -4
- package/dist/src/routes/v3/blacklist.d.ts +38 -2
- package/dist/src/routes/v3/campaigns.d.ts +41 -2
- package/dist/src/routes/v3/campaignsInfo.d.ts +40 -2
- package/dist/src/routes/v3/claims.d.ts +1 -1
- package/dist/src/routes/v3/multiChainPositions.d.ts +39 -2
- package/dist/src/routes/v3/opportunity.d.ts +42 -2
- package/dist/src/routes/v3/positions.d.ts +38 -2
- package/dist/src/routes/v3/rewards.d.ts +66 -2
- package/dist/src/routes/v3/router.d.ts +773 -1
- package/dist/src/routes/v3/updates.d.ts +42 -2
- package/dist/src/routes/v3/userRewards.d.ts +56 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/utils/rateLimit.d.ts +0 -63
- package/dist/src/utils/rateLimit.js +0 -13
package/package.json
CHANGED
@@ -1,63 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
permissive: (app: import("elysia").default) => import("elysia").default<"", false, {
|
3
|
-
decorator: {};
|
4
|
-
store: {};
|
5
|
-
derive: {};
|
6
|
-
resolve: {};
|
7
|
-
}, {
|
8
|
-
type: {};
|
9
|
-
error: {};
|
10
|
-
}, {
|
11
|
-
schema: {};
|
12
|
-
macro: {};
|
13
|
-
}, {}, {
|
14
|
-
derive: {};
|
15
|
-
resolve: {};
|
16
|
-
schema: {};
|
17
|
-
}, {
|
18
|
-
derive: {};
|
19
|
-
resolve: {};
|
20
|
-
schema: {};
|
21
|
-
}>;
|
22
|
-
moderate: (app: import("elysia").default) => import("elysia").default<"", false, {
|
23
|
-
decorator: {};
|
24
|
-
store: {};
|
25
|
-
derive: {};
|
26
|
-
resolve: {};
|
27
|
-
}, {
|
28
|
-
type: {};
|
29
|
-
error: {};
|
30
|
-
}, {
|
31
|
-
schema: {};
|
32
|
-
macro: {};
|
33
|
-
}, {}, {
|
34
|
-
derive: {};
|
35
|
-
resolve: {};
|
36
|
-
schema: {};
|
37
|
-
}, {
|
38
|
-
derive: {};
|
39
|
-
resolve: {};
|
40
|
-
schema: {};
|
41
|
-
}>;
|
42
|
-
strict: (app: import("elysia").default) => import("elysia").default<"", false, {
|
43
|
-
decorator: {};
|
44
|
-
store: {};
|
45
|
-
derive: {};
|
46
|
-
resolve: {};
|
47
|
-
}, {
|
48
|
-
type: {};
|
49
|
-
error: {};
|
50
|
-
}, {
|
51
|
-
schema: {};
|
52
|
-
macro: {};
|
53
|
-
}, {}, {
|
54
|
-
derive: {};
|
55
|
-
resolve: {};
|
56
|
-
schema: {};
|
57
|
-
}, {
|
58
|
-
derive: {};
|
59
|
-
resolve: {};
|
60
|
-
schema: {};
|
61
|
-
}>;
|
62
|
-
};
|
63
|
-
export default _default;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { rateLimit } from "elysia-rate-limit";
|
2
|
-
import { app } from "..";
|
3
|
-
//returns ip from headers if server is null to make elysia-rate-limit logs stfu
|
4
|
-
const generator = req => {
|
5
|
-
return (app?.server?.requestIP?.(req)?.address ?? req.headers.get("X-Forwarded-For")?.split(",")?.[0]);
|
6
|
-
};
|
7
|
-
//use very permissive rates in local
|
8
|
-
const rate = (duration, max) => rateLimit(Bun.env.NODE_ENV !== "production" ? { duration: 1, max: 100 } : { duration, max });
|
9
|
-
export default {
|
10
|
-
permissive: rate(1000, 18),
|
11
|
-
moderate: rate(1000, 9),
|
12
|
-
strict: rate(1000, 3),
|
13
|
-
};
|