Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m22s
CI/CD Pipeline / Security Scanning (push) Successful in 2m30s
CI/CD Pipeline / Lint and Format (push) Failing after 44s
CI/CD Pipeline / Terraform Validation (push) Failing after 27s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 31s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 56s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 29s
Validation / validate-genesis (push) Successful in 34s
Validation / validate-terraform (push) Failing after 39s
Validation / validate-kubernetes (push) Failing after 14s
Validation / validate-smart-contracts (push) Failing after 20s
Validation / validate-security (push) Failing after 1m19s
Validation / validate-documentation (push) Failing after 27s
Verify Deployment / Verify Deployment (push) Failing after 1m13s
Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
782 B
JavaScript
30 lines
782 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.nextPhase = nextPhase;
|
|
exports.canAdvance = canAdvance;
|
|
const ORDER = [
|
|
'RECEIVED',
|
|
'VALIDATED',
|
|
'VERBIAGE_ROLLED',
|
|
'FINERACT_POSTED',
|
|
'HYBX_RAIL_DISPATCHED',
|
|
'ISO20022_ARCHIVED',
|
|
'CHAIN_MINT_REQUESTED',
|
|
'SETTLED',
|
|
];
|
|
function nextPhase(current) {
|
|
if (current === 'FAILED' || current === 'SETTLED')
|
|
return null;
|
|
const idx = ORDER.indexOf(current);
|
|
if (idx < 0 || idx >= ORDER.length - 1)
|
|
return null;
|
|
return ORDER[idx + 1];
|
|
}
|
|
function canAdvance(from, to) {
|
|
const fi = ORDER.indexOf(from);
|
|
const ti = ORDER.indexOf(to);
|
|
if (fi < 0 || ti < 0)
|
|
return to === 'FAILED';
|
|
return ti === fi + 1 || to === 'FAILED';
|
|
}
|