feat(chain138): Monad CCIP, token aggregation OMNL gates, HYBX client, and PMM deploy updates.
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s

Relay router, reserve system, oracle publisher, token-aggregation compliance middleware, and Monad deployment scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-06-18 00:11:33 -07:00
parent 1ec308c3a0
commit 11c97777d4
111 changed files with 5237 additions and 432 deletions

View File

@@ -19,13 +19,33 @@ function looksLikeGenericErrorPayload(body: unknown): boolean {
return true;
}
function buildCacheKey(req: Request): string {
const base = `${req.method}:${req.originalUrl}`;
if (req.method !== 'POST' && req.method !== 'PUT' && req.method !== 'PATCH') {
return base;
}
try {
const body = req.body;
if (body == null) {
return base;
}
const serialized = typeof body === 'string' ? body : JSON.stringify(body);
if (!serialized || serialized === '{}' || serialized === '[]') {
return base;
}
return `${base}:${serialized}`;
} catch {
return base;
}
}
export function cacheMiddleware(ttl: number = DEFAULT_TTL) {
return (req: Request, res: Response, next: NextFunction) => {
const bypassCache =
req.query.refresh === '1' ||
req.query.noCache === '1' ||
/\bno-cache\b|\bno-store\b/i.test(req.header('cache-control') || '');
const key = `${req.method}:${req.originalUrl}`;
const key = buildCacheKey(req);
const cached = bypassCache ? undefined : cache.get(key);
if (cached && cached.expiresAt > Date.now()) {

View File

@@ -8,6 +8,9 @@ export function omnlAuditMiddleware(req: Request, res: Response, next: NextFunct
correlationId: String(req.headers[CORRELATION_ID_HEADER] ?? req.headers['x-omnl-trace-id'] ?? ''),
requestId: String(req.headers[REQUEST_ID_HEADER] ?? ''),
});
req.headers[CORRELATION_ID_HEADER] = ctx.correlationId;
req.headers['x-omnl-trace-id'] = ctx.correlationId;
req.headers[REQUEST_ID_HEADER] = ctx.requestId;
const traceId = ctx.correlationId;
res.setHeader('X-OMNL-Trace-Id', traceId);
res.setHeader(CORRELATION_ID_HEADER, ctx.correlationId);

View File

@@ -1,7 +1,9 @@
import type { Request, Response, NextFunction } from 'express';
import { MockComplianceDecisionEngine } from '@dbis/integration-foundation';
import path from 'node:path';
import { createComplianceDecisionEngine } from '../../compliance/volume13-engine.js';
const engine = new MockComplianceDecisionEngine();
const PROXMOX_ROOT = process.env.PROXMOX_ROOT || path.resolve(process.cwd(), '../../../..');
const engine = createComplianceDecisionEngine(PROXMOX_ROOT);
const FINANCIAL_POST_PATHS = [
'/omnl/iso20022/messages',