2026-04-24 12:56:40 -07:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
pragma solidity ^0.8.20;
|
|
|
|
|
|
|
|
|
|
import {Script, console2} from "forge-std/Script.sol";
|
|
|
|
|
import {InstrumentRegistry} from "../../contracts/hybx-omnl/InstrumentRegistry.sol";
|
|
|
|
|
import {ReserveCommitmentStore} from "../../contracts/hybx-omnl/ReserveCommitmentStore.sol";
|
|
|
|
|
import {OMNLCircuitBreaker} from "../../contracts/hybx-omnl/OMNLCircuitBreaker.sol";
|
|
|
|
|
import {ComplianceCore} from "../../contracts/hybx-omnl/ComplianceCore.sol";
|
Add mainnet checkpoint stack: ISO attestation, participant Etherscan surface, and services.
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>
2026-05-25 00:30:45 -07:00
|
|
|
import {OMNLJurisdictionPolicyRegistry} from "../../contracts/hybx-omnl/OMNLJurisdictionPolicyRegistry.sol";
|
|
|
|
|
import {OMNLNotaryRegistry} from "../../contracts/hybx-omnl/OMNLNotaryRegistry.sol";
|
|
|
|
|
import {OMNLComplianceMultisig} from "../../contracts/hybx-omnl/OMNLComplianceMultisig.sol";
|
2026-04-24 12:56:40 -07:00
|
|
|
|
Add mainnet checkpoint stack: ISO attestation, participant Etherscan surface, and services.
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>
2026-05-25 00:30:45 -07:00
|
|
|
/// @notice Deploy core OMNL stack + Web3 compliance (registry, reserves, breakers, compliance, notary, multisig).
|
2026-04-24 12:56:40 -07:00
|
|
|
contract DeployOMNLStack is Script {
|
|
|
|
|
function run() external {
|
|
|
|
|
uint256 pk = vm.envUint("PRIVATE_KEY");
|
|
|
|
|
address admin = vm.addr(pk);
|
|
|
|
|
|
|
|
|
|
vm.startBroadcast(pk);
|
|
|
|
|
|
|
|
|
|
InstrumentRegistry registry = new InstrumentRegistry(admin);
|
|
|
|
|
ReserveCommitmentStore reserves = new ReserveCommitmentStore(admin);
|
|
|
|
|
OMNLCircuitBreaker breakers = new OMNLCircuitBreaker(admin);
|
|
|
|
|
ComplianceCore core = new ComplianceCore(address(registry), address(reserves), address(breakers));
|
|
|
|
|
|
Add mainnet checkpoint stack: ISO attestation, participant Etherscan surface, and services.
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>
2026-05-25 00:30:45 -07:00
|
|
|
OMNLJurisdictionPolicyRegistry jurisdiction = new OMNLJurisdictionPolicyRegistry(admin);
|
|
|
|
|
OMNLNotaryRegistry notary = new OMNLNotaryRegistry(admin, address(jurisdiction));
|
|
|
|
|
OMNLComplianceMultisig multisig = new OMNLComplianceMultisig(admin, address(notary));
|
|
|
|
|
|
|
|
|
|
bytes32 jurId = keccak256("ID");
|
|
|
|
|
bytes32 matrixId = keccak256("ID-OMNL-001");
|
|
|
|
|
reserves.configureNotaryGate(address(notary), false, jurId, matrixId);
|
|
|
|
|
|
2026-04-24 12:56:40 -07:00
|
|
|
vm.stopBroadcast();
|
|
|
|
|
|
|
|
|
|
console2.log("InstrumentRegistry", address(registry));
|
|
|
|
|
console2.log("ReserveCommitmentStore", address(reserves));
|
|
|
|
|
console2.log("OMNLCircuitBreaker", address(breakers));
|
|
|
|
|
console2.log("ComplianceCore", address(core));
|
Add mainnet checkpoint stack: ISO attestation, participant Etherscan surface, and services.
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>
2026-05-25 00:30:45 -07:00
|
|
|
console2.log("OMNLJurisdictionPolicyRegistry", address(jurisdiction));
|
|
|
|
|
console2.log("OMNLNotaryRegistry", address(notary));
|
|
|
|
|
console2.log("OMNLComplianceMultisig", address(multisig));
|
2026-04-24 12:56:40 -07:00
|
|
|
}
|
|
|
|
|
}
|