Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m3s
CI/CD Pipeline / Security Scanning (push) Successful in 2m18s
CI/CD Pipeline / Lint and Format (push) Failing after 34s
CI/CD Pipeline / Terraform Validation (push) Failing after 20s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 22s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 40s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 49s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 21s
Validation / validate-genesis (push) Successful in 25s
Validation / validate-terraform (push) Failing after 21s
Validation / validate-kubernetes (push) Failing after 8s
Validation / validate-smart-contracts (push) Failing after 8s
Validation / validate-security (push) Failing after 1m11s
Validation / validate-documentation (push) Failing after 14s
Verify Deployment / Verify Deployment (push) Failing after 45s
Ship AddressActivityRegistry V1/V2, ISO20022IntakeGateway, Chain138ParticipantSurface, checkpoint hub contracts, checkpoint-core package, aggregator/indexer/sdk services, relay profile guards, M00 diamond bridge facet, and OMNL compliance contracts. Co-authored-by: Cursor <cursoragent@cursor.com>
115 lines
6.0 KiB
JavaScript
115 lines
6.0 KiB
JavaScript
"use strict";
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
}) : function(o, v) {
|
|
o["default"] = v;
|
|
});
|
|
var __importStar = (this && this.__importStar) || (function () {
|
|
var ownKeys = function(o) {
|
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
var ar = [];
|
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
return ar;
|
|
};
|
|
return ownKeys(o);
|
|
};
|
|
return function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
__setModuleDefault(result, mod);
|
|
return result;
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.checkpointAggregatorConfig = void 0;
|
|
exports.assertAggregatorConfig = assertAggregatorConfig;
|
|
const dotenv = __importStar(require("dotenv"));
|
|
const path = __importStar(require("path"));
|
|
dotenv.config();
|
|
function int(name, fallback) {
|
|
const v = process.env[name];
|
|
return v !== undefined && v !== '' ? parseInt(v, 10) : fallback;
|
|
}
|
|
function bigint(name, fallback) {
|
|
const v = process.env[name];
|
|
return BigInt(v !== undefined && v !== '' ? v : fallback);
|
|
}
|
|
const repoRoot = process.env.PROXMOX_ROOT || path.resolve(__dirname, '../../../../..');
|
|
exports.checkpointAggregatorConfig = {
|
|
chain138Rpc: process.env.CHAIN138_RPC_URL || 'http://192.168.11.211:8545',
|
|
mainnetRpc: process.env.MAINNET_RPC_URL ||
|
|
process.env.ETHEREUM_MAINNET_RPC ||
|
|
'https://ethereum-rpc.publicnode.com',
|
|
checkpointProxy: process.env.CHAIN138_MAINNET_CHECKPOINT_PROXY || '',
|
|
blockOracleExtension: process.env.EXT_BLOCK_ORACLE || '',
|
|
batchSize: int('CHECKPOINT_BATCH_SIZE', 10),
|
|
maxWaitMs: int('CHECKPOINT_MAX_WAIT_MS', 300_000),
|
|
confirmationBlocks: int('CHECKPOINT_CONFIRMATION_BLOCKS', 2),
|
|
minValueWei: bigint('CHECKPOINT_MIN_VALUE_WEI', '0'),
|
|
blockscoutApi: process.env.CHECKPOINT_BLOCKSCOUT_API || 'https://explorer.d-bis.org/api/v2',
|
|
useBlockscout: process.env.CHECKPOINT_USE_BLOCKSCOUT !== '0',
|
|
scanFromBlock: int('CHECKPOINT_SCAN_FROM_BLOCK', 0),
|
|
scanChunkBlocks: int('CHECKPOINT_SCAN_CHUNK_BLOCKS', 100),
|
|
scanPollMs: int('CHECKPOINT_SCAN_POLL_MS', 15_000),
|
|
scanStatePath: process.env.CHECKPOINT_SCAN_STATE_PATH ||
|
|
path.join(repoRoot, 'reports/status/checkpoint-aggregator-scan-state.json'),
|
|
ipfsApiUrl: process.env.CHECKPOINT_IPFS_API_URL || '',
|
|
payloadPublicUrl: process.env.CHECKPOINT_PAYLOAD_PUBLIC_URL || '',
|
|
batchPayloadDir: process.env.CHECKPOINT_BATCH_PAYLOAD_DIR ||
|
|
path.join(repoRoot, 'reports/checkpoint-indexer/batches'),
|
|
updateBlockOracle: process.env.CHECKPOINT_UPDATE_BLOCK_ORACLE !== '0',
|
|
requireValidatorSigs: process.env.CHECKPOINT_REQUIRE_VALIDATOR_SIGS !== 'false',
|
|
/** hashes (default) | commitment | leaves | leaves-v2 — official hub on 0xe2D6… */
|
|
submitMode: (process.env.CHECKPOINT_SUBMIT_MODE || 'hashes'),
|
|
batchEmitter138: process.env.CHAIN138_BATCH_EMITTER || '',
|
|
ccipIngressEnabled: process.env.CHECKPOINT_CCIP_INGRESS === '1',
|
|
usdEnrichEnabled: process.env.CHECKPOINT_USD_ENRICH !== '0',
|
|
tokenAggregationApiUrl: process.env.CHECKPOINT_TOKEN_AGGREGATION_URL ||
|
|
process.env.TOKEN_AGGREGATION_API_URL ||
|
|
'https://explorer.d-bis.org/api/v1',
|
|
usdRequestDelayMs: int('CHECKPOINT_USD_REQUEST_DELAY_MS', 80),
|
|
dualWriteV1Mirror: process.env.CHECKPOINT_DUAL_WRITE_V1_MIRROR !== '0',
|
|
recordAddressActivity: process.env.CHECKPOINT_RECORD_ADDRESS_ACTIVITY !== '0',
|
|
addressActivityRegistry: process.env.ADDRESS_ACTIVITY_REGISTRY_MAINNET || '',
|
|
transactionMirrorMainnet: process.env.TRANSACTION_MIRROR_MAINNET ||
|
|
'0x4CF42c4F1dBa748601b8938be3E7ABD732E87cE9',
|
|
attachReceiptMeta: process.env.CHECKPOINT_ATTACH_RECEIPT_META !== '0',
|
|
isoEnrichEnabled: process.env.CHECKPOINT_ISO_ENRICH !== '0',
|
|
recordIsoAttestation: process.env.CHECKPOINT_RECORD_ISO_ATTESTATION !== '0',
|
|
addressActivityRegistryV2: process.env.ADDRESS_ACTIVITY_REGISTRY_V2_MAINNET || '',
|
|
participantSurface: process.env.CHAIN138_PARTICIPANT_SURFACE_MAINNET || '',
|
|
surfaceParticipants: process.env.CHECKPOINT_SURFACE_PARTICIPANTS !== '0',
|
|
surfaceTopLevelZeroEth: process.env.CHECKPOINT_SURFACE_TOPLEVEL_ZERO_ETH === '1',
|
|
};
|
|
function assertAggregatorConfig() {
|
|
if (!process.env.PRIVATE_KEY)
|
|
throw new Error('PRIVATE_KEY required');
|
|
if (!exports.checkpointAggregatorConfig.checkpointProxy) {
|
|
throw new Error('CHAIN138_MAINNET_CHECKPOINT_PROXY required');
|
|
}
|
|
if (process.env.CHECKPOINT_RECORD_ADDRESS_ACTIVITY === '1' &&
|
|
!exports.checkpointAggregatorConfig.addressActivityRegistry) {
|
|
throw new Error('CHECKPOINT_RECORD_ADDRESS_ACTIVITY=1 requires ADDRESS_ACTIVITY_REGISTRY_MAINNET (deploy: bash scripts/deployment/deploy-address-activity-registry.sh)');
|
|
}
|
|
if (exports.checkpointAggregatorConfig.dualWriteV1Mirror &&
|
|
!exports.checkpointAggregatorConfig.transactionMirrorMainnet) {
|
|
throw new Error('CHECKPOINT_DUAL_WRITE_V1_MIRROR=1 requires TRANSACTION_MIRROR_MAINNET');
|
|
}
|
|
if (process.env.CHECKPOINT_RECORD_ISO_ATTESTATION === '1' &&
|
|
!exports.checkpointAggregatorConfig.addressActivityRegistryV2) {
|
|
throw new Error('CHECKPOINT_RECORD_ISO_ATTESTATION=1 requires ADDRESS_ACTIVITY_REGISTRY_V2_MAINNET');
|
|
}
|
|
}
|