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
26 changes: 25 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,36 @@ out
.vscode
.idea
*.md
!README.md
README.md
*.log
*.local
.nvmrc
.npmrc
biome.json
coverage
.yarn
scripts

# Testing files
test
tests
vite.config.mts
**/test
**/tests
__tests__
**/__tests__
*.test.ts
*.spec.ts
vitest.config.*

# Documentation
docs
**/docs
*.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
SECURITY.md
LICENSE

# Environment files
.env
Expand Down
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.5.0
YARN_VERSION: 4.9.2
NODE_VERSION: 24.6.0
YARN_VERSION: 4.9.3

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.5.0
YARN_VERSION: 4.9.2
NODE_VERSION: 24.6.0
YARN_VERSION: 4.9.3

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
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.5.0-bookworm-slim AS builder
FROM node:24.6.0-bookworm-slim AS builder

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

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.5.0-bookworm-slim AS production
FROM node:24.6.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.2 --activate && \
yarn set version 4.9.2
corepack prepare yarn@4.9.3 --activate && \
yarn set version 4.9.3

RUN apt-get update && \
apt-get install -y --no-install-recommends \
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@biomejs/biome": "2.2.0",
"@biomejs/biome": "2.2.2",
"@vitest/coverage-v8": "^3.2.4",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"packageManager": "yarn@4.9.2",
"packageManager": "yarn@4.9.3",
"volta": {
"node": "24.5.0",
"yarn": "4.9.2"
"node": "24.6.0",
"yarn": "4.9.3"
}
}
1 change: 1 addition & 0 deletions packages/bridge-monitor/src/service/job.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const performJob = async () => {
BridgeTransactionStatus.VERIFIED,
BridgeTransactionStatus.BLOCKED,
],
alertSent: false,
});

const sortedTransactions = bridgeTransactions.sort((a, b) => a.nonce - b.nonce);
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/blockchain/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createWalletClient, fallback } from "viem";
import { mnemonicToAccount, privateKeyToAccount } from "viem/accounts";
import { config } from "../config";
import type { NetworkLayer } from "./../types/blockchain";
import type { NetworkLayer } from "./../types";
import { getClientConfig } from "./client";

type MockWalletType = "mockMessenger";
Expand Down
3 changes: 3 additions & 0 deletions packages/shared/src/db/bridgeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ export class BridgeTransaction {
if (filter?.statuses && filter.statuses.length > 0) {
modified = modified.where("status", "in", filter.statuses);
}
if (filter?.alertSent !== undefined) {
modified = modified.where("alertSent", "==", filter.alertSent);
}
return modified;
});
}
Expand Down
7 changes: 6 additions & 1 deletion packages/shared/src/types/bridgeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export interface BridgeTransactionData {
status: BridgeTransactionStatus;
nonce: number;
verifiedAt?: FirebaseFirestore.Timestamp;
alertSent?: boolean;
lastAlertAt?: FirebaseFirestore.Timestamp;
updatedAt: FirebaseFirestore.Timestamp;
createdAt: FirebaseFirestore.Timestamp;
}
Expand All @@ -16,10 +18,13 @@ export interface BridgeTransactionInput {

export interface BridgeTransactionUpdateInput {
status: BridgeTransactionStatus;
alertSent?: boolean;
lastAlertAt?: FirebaseFirestore.Timestamp;
}

export interface BridgeTransactionFilter {
statuses: BridgeTransactionStatus[];
statuses?: BridgeTransactionStatus[];
alertSent?: boolean;
}

export enum BridgeTransactionStatus {
Expand Down
76 changes: 38 additions & 38 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ __metadata:
languageName: node
linkType: hard

"@biomejs/biome@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/biome@npm:2.2.0"
dependencies:
"@biomejs/cli-darwin-arm64": "npm:2.2.0"
"@biomejs/cli-darwin-x64": "npm:2.2.0"
"@biomejs/cli-linux-arm64": "npm:2.2.0"
"@biomejs/cli-linux-arm64-musl": "npm:2.2.0"
"@biomejs/cli-linux-x64": "npm:2.2.0"
"@biomejs/cli-linux-x64-musl": "npm:2.2.0"
"@biomejs/cli-win32-arm64": "npm:2.2.0"
"@biomejs/cli-win32-x64": "npm:2.2.0"
"@biomejs/biome@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/biome@npm:2.2.2"
dependencies:
"@biomejs/cli-darwin-arm64": "npm:2.2.2"
"@biomejs/cli-darwin-x64": "npm:2.2.2"
"@biomejs/cli-linux-arm64": "npm:2.2.2"
"@biomejs/cli-linux-arm64-musl": "npm:2.2.2"
"@biomejs/cli-linux-x64": "npm:2.2.2"
"@biomejs/cli-linux-x64-musl": "npm:2.2.2"
"@biomejs/cli-win32-arm64": "npm:2.2.2"
"@biomejs/cli-win32-x64": "npm:2.2.2"
dependenciesMeta:
"@biomejs/cli-darwin-arm64":
optional: true
Expand All @@ -109,62 +109,62 @@ __metadata:
optional: true
bin:
biome: bin/biome
checksum: 10c0/092ee79cad7f253427499aa193374e4c1fe5935be916d426f96fd1b8864b9c95f623d447c096894a4f864a15618c965f71863987c7afdcf77e5cdb79ec28fecd
checksum: 10c0/108690efd8c3a5fcee9faf89371319b2d066208e8adbb05855650032a1cc9afc98ec4206b73b0be2c49cdf64ef765cf5a24785456b814d5846ab65b293791daf
languageName: node
linkType: hard

"@biomejs/cli-darwin-arm64@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-darwin-arm64@npm:2.2.0"
"@biomejs/cli-darwin-arm64@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-darwin-arm64@npm:2.2.2"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@biomejs/cli-darwin-x64@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-darwin-x64@npm:2.2.0"
"@biomejs/cli-darwin-x64@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-darwin-x64@npm:2.2.2"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@biomejs/cli-linux-arm64-musl@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-linux-arm64-musl@npm:2.2.0"
"@biomejs/cli-linux-arm64-musl@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-linux-arm64-musl@npm:2.2.2"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@biomejs/cli-linux-arm64@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-linux-arm64@npm:2.2.0"
"@biomejs/cli-linux-arm64@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-linux-arm64@npm:2.2.2"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@biomejs/cli-linux-x64-musl@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-linux-x64-musl@npm:2.2.0"
"@biomejs/cli-linux-x64-musl@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-linux-x64-musl@npm:2.2.2"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@biomejs/cli-linux-x64@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-linux-x64@npm:2.2.0"
"@biomejs/cli-linux-x64@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-linux-x64@npm:2.2.2"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@biomejs/cli-win32-arm64@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-win32-arm64@npm:2.2.0"
"@biomejs/cli-win32-arm64@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-win32-arm64@npm:2.2.2"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@biomejs/cli-win32-x64@npm:2.2.0":
version: 2.2.0
resolution: "@biomejs/cli-win32-x64@npm:2.2.0"
"@biomejs/cli-win32-x64@npm:2.2.2":
version: 2.2.2
resolution: "@biomejs/cli-win32-x64@npm:2.2.2"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -3294,7 +3294,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "intmax2-function@workspace:."
dependencies:
"@biomejs/biome": "npm:2.2.0"
"@biomejs/biome": "npm:2.2.2"
"@vitest/coverage-v8": "npm:^3.2.4"
typescript: "npm:^5.9.2"
vitest: "npm:^3.2.4"
Expand Down