diff --git a/terraform/phases/phase1/config/env.chain2138.example b/terraform/phases/phase1/config/env.chain2138.example index e50e053..40be968 100644 --- a/terraform/phases/phase1/config/env.chain2138.example +++ b/terraform/phases/phase1/config/env.chain2138.example @@ -1,6 +1,6 @@ # Chain ID 2138 — Defi Oracle Meta Testnet # Copy to .env.chain2138 (or merge into smom-dbis-138/.env) and fill in values. -# Runbook: docs/testnet/DEFI_ORACLE_META_TESTNET_2138_RUNBOOK.md +# Runbook: proxmox parent repo docs/testnet/DEFI_ORACLE_META_TESTNET_2138_RUNBOOK.md # Chainlist metadata: pr-workspace/chains/_data/chains/eip155-2138.json # Network (public RPC example from chainlist; replace with your LAN or staging URL) diff --git a/test/config/Chain2138TestnetConfig.sol b/test/config/Chain2138TestnetConfig.sol new file mode 100644 index 0000000..196ee85 --- /dev/null +++ b/test/config/Chain2138TestnetConfig.sol @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +/** + * @title Chain2138TestnetConfig + * @notice Configuration constants for Chain ID 2138 (Defi Oracle Meta Testnet) tests. + * @dev Mirror of Chain138Config pattern; override RPC via env in off-chain runners. + */ +library Chain2138TestnetConfig { + uint256 public constant CHAIN_ID = 2138; + string public constant NETWORK_NAME = "Defi Oracle Meta Testnet"; + /// @dev Default public RPC from pr-workspace/chains/_data/chains/eip155-2138.json; use LAN/staging in CI as needed. + string public constant RPC_URL = "${RPC_URL_2138:-https://rpc.public-2138.defi-oracle.io}"; + string public constant EXPLORER_URL = "https://public-2138.defi-oracle.io"; + + uint256 public constant GAS_LIMIT = 8_000_000; + uint256 public constant GAS_PRICE = 1_000_000_000; // 1 gwei + uint256 public constant BLOCK_TIME = 2; // seconds (typical QBFT; confirm on live testnet) + uint256 public constant CONFIRMATIONS = 1; + + address public constant TEST_ADMIN = address(0x1); + address public constant TEST_USER1 = address(0x2); + address public constant TEST_USER2 = address(0x3); + address public constant TEST_MULTISIG = address(0x4); +}