chore: update DBIS contracts and integrate EIP-712 helper

- Updated DBIS_ConversionRouter and DBIS_SettlementRouter to utilize IDBIS_EIP712Helper for EIP-712 hashing and signature recovery, improving stack depth management.
- Refactored minting logic in DBIS_GRU_MintController to streamline recipient processing.
- Enhanced BUILD_NOTES.md with updated build instructions and test coverage details.
- Added new functions in DBIS_SignerRegistry for duplicate signer checks and active signer validation.
- Introduced a new submodule, DBIS_EIP712Helper, to encapsulate EIP-712 related functionalities.

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-04 02:00:09 -08:00
parent 51b9b7458b
commit 1511f33857
50 changed files with 1315 additions and 272 deletions

View File

@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- mock middleware
export function cacheMiddleware(_ttl?: number) {
return (req: unknown, res: unknown, next: () => void) => next();
}

View File

@@ -1,7 +1,7 @@
import { Request, Response, NextFunction } from 'express';
interface CacheEntry {
data: any;
data: unknown;
expiresAt: number;
}
@@ -21,7 +21,7 @@ export function cacheMiddleware(ttl: number = DEFAULT_TTL) {
const originalJson = res.json.bind(res);
// Override json method to cache response
res.json = function (body: any) {
res.json = function (body: unknown) {
cache.set(key, {
data: body,
expiresAt: Date.now() + ttl,