Files
smom-dbis-138/script/z-chain/DeployZChainEmoney.s.sol
zaragoza444 e35ad9047c
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m13s
CI/CD Pipeline / Security Scanning (push) Successful in 2m30s
CI/CD Pipeline / Lint and Format (push) Failing after 45s
CI/CD Pipeline / Terraform Validation (push) Failing after 26s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 28s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 39s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 21s
Validation / validate-genesis (push) Successful in 30s
Validation / validate-terraform (push) Failing after 25s
Validation / validate-kubernetes (push) Failing after 13s
Validation / validate-smart-contracts (push) Failing after 16s
Validation / validate-security (push) Failing after 1m28s
Validation / validate-documentation (push) Failing after 19s
Verify Deployment / Verify Deployment (push) Failing after 53s
feat: add Z Chain 900002 ecosystem with wallet, Z Bot, and deploy scripts
Ship Z Chain slot, International Z Wallet routes, in-app Z Bot APIs, Besu bootstrap, and local/production deployment tooling for digital.omdnl.org.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 05:25:10 -07:00

36 lines
1.2 KiB
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "forge-std/Script.sol";
import "forge-std/console.sol";
import "../../contracts/z-chain/ZChainUSDC.sol";
import "../../contracts/emoney/AccountWalletRegistry.sol";
/**
* @title DeployZChainEmoney
* @notice Deploys cUSDC + AccountWalletRegistry on Z Chain (900002)
*/
contract DeployZChainEmoney is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address deployer = vm.addr(deployerPrivateKey);
string memory rpcUrl = vm.envOr("CHAIN_900002_RPC_URL", string("http://127.0.0.1:8546"));
console.log("Deployer:", deployer);
console.log("RPC URL:", rpcUrl);
console.log("Chain ID: 900002");
vm.startBroadcast(deployerPrivateKey);
ZChainUSDC cUsdc = new ZChainUSDC(deployer);
AccountWalletRegistry registry = new AccountWalletRegistry(deployer);
vm.stopBroadcast();
console.log("\n=== Z Chain deployment ===");
console.log("cUSDC:", address(cUsdc));
console.log("AccountWalletRegistry:", address(registry));
console.log("\nUpdate config/z-chain-deployed.v1.json and hybx-omnl-cross-chain-lines.json chains.900002");
}
}