@merkl/api 0.10.298 → 0.10.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/eden/index.d.ts +7 -13
- package/dist/src/index.d.ts +1 -3
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -3
- package/dist/src/modules/v4/boost/boost.controller.js +0 -5
- package/dist/src/modules/v4/router.d.ts +1 -3
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -2269,13 +2269,11 @@ declare const eden: {
|
|
2269
2269
|
score: string;
|
2270
2270
|
}[] | {
|
2271
2271
|
addresses: string[];
|
2272
|
-
}, options
|
2273
|
-
headers
|
2274
|
-
authorization: string;
|
2275
|
-
};
|
2272
|
+
}, options?: {
|
2273
|
+
headers?: Record<string, unknown> | undefined;
|
2276
2274
|
query?: Record<string, unknown> | undefined;
|
2277
2275
|
fetch?: RequestInit | undefined;
|
2278
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
2276
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
2279
2277
|
200: {
|
2280
2278
|
address: string;
|
2281
2279
|
boost: string;
|
@@ -5702,9 +5700,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5702
5700
|
}[];
|
5703
5701
|
params: {};
|
5704
5702
|
query: unknown;
|
5705
|
-
headers:
|
5706
|
-
authorization: string;
|
5707
|
-
};
|
5703
|
+
headers: unknown;
|
5708
5704
|
response: {
|
5709
5705
|
200: {
|
5710
5706
|
address: string;
|
@@ -8744,13 +8740,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8744
8740
|
score: string;
|
8745
8741
|
}[] | {
|
8746
8742
|
addresses: string[];
|
8747
|
-
}, options
|
8748
|
-
headers
|
8749
|
-
authorization: string;
|
8750
|
-
};
|
8743
|
+
}, options?: {
|
8744
|
+
headers?: Record<string, unknown> | undefined;
|
8751
8745
|
query?: Record<string, unknown> | undefined;
|
8752
8746
|
fetch?: RequestInit | undefined;
|
8753
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
8747
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
8754
8748
|
200: {
|
8755
8749
|
address: string;
|
8756
8750
|
boost: string;
|
package/dist/src/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { AuthorizationHeadersDto, BackOfficeGuard } from "../../../guards/BackOffice.guard";
|
2
1
|
import Elysia from "elysia";
|
3
2
|
import { getEulerBoostBody } from "./boost.model";
|
4
3
|
import { BoostService } from "./boost.service";
|
@@ -6,9 +5,5 @@ export const BoostController = new Elysia({ prefix: "/boosts", detail: { tags: [
|
|
6
5
|
// ─── Get Euler Boost ─────────────────────────────────────────────────
|
7
6
|
.post("/euler", async ({ body }) => await BoostService.getEulerBoost(), {
|
8
7
|
body: getEulerBoostBody,
|
9
|
-
headers: AuthorizationHeadersDto,
|
10
|
-
beforeHandle: async ({ headers }) => {
|
11
|
-
await BackOfficeGuard({ headers });
|
12
|
-
},
|
13
8
|
detail: { hide: true },
|
14
9
|
});
|