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>
29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.MockTravelRuleTransmitter = exports.MockSanctionsScreeningProvider = exports.MockAmlScreeningProvider = void 0;
|
|
class MockAmlScreeningProvider {
|
|
async screen(request) {
|
|
const amount = Number(request.amount);
|
|
if (request.entityId.startsWith('blocked-'))
|
|
return 'block';
|
|
if (amount >= 1_000_000)
|
|
return 'review';
|
|
return 'clear';
|
|
}
|
|
}
|
|
exports.MockAmlScreeningProvider = MockAmlScreeningProvider;
|
|
class MockSanctionsScreeningProvider {
|
|
async screen(request) {
|
|
const hit = request.names.some((n) => /sanction|blocked/i.test(n));
|
|
return hit ? 'block' : 'clear';
|
|
}
|
|
}
|
|
exports.MockSanctionsScreeningProvider = MockSanctionsScreeningProvider;
|
|
class MockTravelRuleTransmitter {
|
|
async transmit(payload) {
|
|
const ref = `TR-${payload.originatorVaspId}-${Date.now()}`;
|
|
return { referenceId: ref };
|
|
}
|
|
}
|
|
exports.MockTravelRuleTransmitter = MockTravelRuleTransmitter;
|