// CBDC Layering Pattern

import { WAPLPattern } from '../types';

export const cbdcLayeringPattern: WAPLPattern = {
  id: 'CBDC_LAYERING',
  patternCode: 'CBDC_LAYERING',
  name: 'High-Velocity CBDC Layering',
  description: 'Detects CBDC transactions with high velocity and multiple hops (layering)',
  patternDefinition: `
    pattern CBDC_LAYERING:
      if velocity(wallet) > threshold &&
         hops(wallet) > 4 &&
         transaction_type == "micro-split":
         raise_alert("CBDC layering risk")
  `,
  severity: 'CRITICAL',
  status: 'ACTIVE',
};

