Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions:
contents: read

env:
NODE_VERSION: 24.6.0
YARN_VERSION: 4.9.3
NODE_VERSION: 24.8.0
YARN_VERSION: 4.10.2

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions:
contents: read

env:
NODE_VERSION: 24.6.0
YARN_VERSION: 4.9.3
NODE_VERSION: 24.8.0
YARN_VERSION: 4.10.2

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
Expand Down
12 changes: 6 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:24.6.0-bookworm-slim AS builder
FROM node:24.8.0-bookworm-slim AS builder

RUN corepack enable && \
corepack prepare yarn@4.9.3 --activate && \
yarn set version 4.9.3
corepack prepare yarn@4.10.2 --activate && \
yarn set version 4.10.2

RUN apt-get update && apt-get install -y \
python3 \
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN mkdir -p /tmp/packages && \
find /tmp/packages/$pkg_name -type d -empty -delete; \
done

FROM node:24.6.0-bookworm-slim AS production
FROM node:24.8.0-bookworm-slim AS production

ENV NODE_ENV=production
ENV NODE_OPTIONS="\
Expand All @@ -46,8 +46,8 @@ ENV NODE_OPTIONS="\
--zero-fill-buffers"

RUN corepack enable && \
corepack prepare yarn@4.9.3 --activate && \
yarn set version 4.9.3
corepack prepare yarn@4.10.2 --activate && \
yarn set version 4.10.2

RUN apt-get update && \
apt-get install -y --no-install-recommends \
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intmax2-function",
"version": "1.0.14",
"version": "1.0.15",
"license": "MIT",
"description": "A collection of function for INTMAX2 blockchain",
"repository": {
Expand All @@ -19,7 +19,7 @@
"token"
],
"engines": {
"node": ">=20.0.0",
"node": ">=22.0.0",
"yarn": ">=4.0.0"
},
"workspaces": [
Expand All @@ -39,14 +39,14 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@biomejs/biome": "2.2.2",
"@biomejs/biome": "2.2.4",
"@vitest/coverage-v8": "^3.2.4",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"packageManager": "yarn@4.9.3",
"packageManager": "yarn@4.10.2",
"volta": {
"node": "24.6.0",
"yarn": "4.9.3"
"node": "24.8.0",
"yarn": "4.10.2"
}
}
4 changes: 2 additions & 2 deletions packages/block-sync-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"viem": "^2.36.0"
"axios": "^1.12.2",
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/bridge-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"viem": "^2.36.0"
"axios": "^1.12.2",
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/deposit-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"ethers": "^6.15.0",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer-cache-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"axios": "^1.12.2",
"semver": "^7.7.2",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-event-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"axios": "^1.12.2",
"semver": "^7.7.2",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "indexer",
"version": "1.0.0",
"dependencies": {
"@hono/node-server": "^1.19.1",
"@hono/node-server": "^1.19.4",
"@intmax2-function/shared": "workspace:*",
"hono": "^4.9.6"
"hono": "^4.9.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/indexer/src/controllers/indexer.controller.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { addressSchema } from "@intmax2-function/shared";
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import * as indexerService from "../services/indexer.service";

export const listBlockBuilderNodes = async (c: Context) => {
export const listBlockBuilderNodes = async (c: Context): Promise<TypedResponse> => {
const result = await indexerService.listBlockBuilderNodes();
return c.json(result);
};

export const getBlockBuilderMeta = async (c: Context) => {
export const getBlockBuilderMeta = async (c: Context): Promise<TypedResponse> => {
const result = await indexerService.getBlockBuilderMeta();
return c.json(result);
};

export const checkIndexerRegistration = async (c: Context) => {
export const checkIndexerRegistration = async (c: Context): Promise<TypedResponse> => {
const inputAddress = c.req.param("address");
const address = await addressSchema.parseAsync(inputAddress);

Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/src/controllers/proxy.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import * as proxyService from "../services/proxy.service";

export const getProxyMeta = async (c: Context) => {
export const getProxyMeta = async (c: Context): Promise<TypedResponse> => {
const result = await proxyService.getProxyMeta();
return c.json(result);
};
4 changes: 2 additions & 2 deletions packages/indexer/src/controllers/time.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import * as timeService from "../services/time.service";

export const getTime = (c: Context) => {
export const getTime = (c: Context): TypedResponse => {
const result = timeService.getTime();
return c.json(result);
};
4 changes: 2 additions & 2 deletions packages/messenger-relayer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"axios": "^1.12.2",
"ethers": "^6.15.0",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start:withdrawal": "node dist/index.js withdrawal",
Expand Down
2 changes: 1 addition & 1 deletion packages/mint-executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mock-l1-to-l2-relayer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"ethers": "^6.15.0",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mock-l2-to-l1-relayer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"ethers": "^6.15.0",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/predicate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "predicate",
"version": "1.0.0",
"dependencies": {
"@hono/node-server": "^1.19.1",
"@hono/node-server": "^1.19.4",
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"hono": "^4.9.6"
"axios": "^1.12.2",
"hono": "^4.9.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/predicate/src/controllers/predicate.controller.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fetchPredicateSignaturesValidation } from "@intmax2-function/shared";
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import * as predicateService from "../services/predicate.service";

export const fetchPredicateSignatures = async (c: Context) => {
export const fetchPredicateSignatures = async (c: Context): Promise<TypedResponse> => {
const body = await c.req.json();
const parsed = await fetchPredicateSignaturesValidation.parseAsync(body);
const signatures = await predicateService.fetchPredicateSignatures(parsed);
Expand Down
18 changes: 9 additions & 9 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
"version": "1.0.0",
"main": "dist/index.js",
"dependencies": {
"@google-cloud/firestore": "^7.11.3",
"@google-cloud/storage": "^7.17.0",
"@hono/node-server": "^1.19.1",
"abitype": "^1.0.9",
"@google-cloud/firestore": "^7.11.5",
"@google-cloud/storage": "^7.17.1",
"@hono/node-server": "^1.19.4",
"abitype": "^1.1.1",
"alchemy-sdk": "^3.6.3",
"axios": "^1.11.0",
"axios": "^1.12.2",
"discord.js": "^14.22.1",
"envalid": "^8.1.0",
"ethers": "^6.15.0",
"hono": "^4.9.6",
"hono": "^4.9.8",
"hono-rate-limiter": "^0.4.2",
"http-status": "2.1.0",
"ioredis": "^5.7.0",
"node-cache": "^5.1.2",
"pino": "^9.9.0",
"pino": "^9.11.0",
"pino-pretty": "^13.1.1",
"viem": "^2.36.0",
"zod": "4.1.5"
"viem": "^2.37.8",
"zod": "4.1.11"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/controllers/health.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import * as healthService from "../services/health.service";

export const healthCheck = async (c: Context) => {
export const healthCheck = (c: Context): TypedResponse => {
const result = healthService.healthCheck();
return c.json(result);
};
2 changes: 1 addition & 1 deletion packages/shared/src/lib/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class InternalServerError extends AppError {

const IGNORE_ERROR_MESSAGES = ["URI malformed"];

export const handleError = (err: unknown, c: Context) => {
export const handleError = (err: unknown, c: Context): Response => {
if (err instanceof ZodError) {
return c.json(
{
Expand Down
2 changes: 1 addition & 1 deletion packages/token-map-register/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/token-metadata-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"dependencies": {
"@intmax2-function/shared": "workspace:*",
"axios": "^1.11.0",
"axios": "^1.12.2",
"coingecko-api-v3": "^0.0.31",
"viem": "^2.36.0"
"viem": "^2.37.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "token",
"version": "1.0.0",
"dependencies": {
"@hono/node-server": "^1.19.1",
"@hono/node-server": "^1.19.4",
"@intmax2-function/shared": "workspace:*",
"hono": "^4.9.6"
"hono": "^4.9.8"
},
"scripts": {
"start": "node dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/token/src/controllers/tokenMaps.controller.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { tokenIndexesValidation, tokenPaginationValidation } from "@intmax2-function/shared";
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import { extractQueriesParams, extractQueryParams } from "../lib/query";
import * as tokenMapsService from "../services/tokenMaps.service";

export const list = async (c: Context) => {
export const list = async (c: Context): Promise<TypedResponse> => {
const queries = extractQueryParams(c.req.queries());
const { tokenIndexes } = await tokenIndexesValidation.parseAsync(queries);

Expand Down
4 changes: 2 additions & 2 deletions packages/token/src/controllers/tokenPrices.controller.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { tokenPaginationValidation, tokenPricesValidation } from "@intmax2-function/shared";
import type { Context } from "hono";
import type { Context, TypedResponse } from "hono";
import { extractQueriesParams, extractQueryParams } from "../lib/query";
import * as tokenPricesService from "../services/tokenPrices.service";

export const list = async (c: Context) => {
export const list = async (c: Context): Promise<TypedResponse> => {
const queries = extractQueryParams(c.req.queries());
const { contractAddresses } = await tokenPricesValidation.parseAsync(queries);

Expand Down
Loading