Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m27s
CI/CD Pipeline / Security Scanning (push) Successful in 2m28s
CI/CD Pipeline / Lint and Format (push) Failing after 51s
CI/CD Pipeline / Terraform Validation (push) Failing after 29s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 25s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 29s
Validation / validate-genesis (push) Successful in 29s
Validation / validate-terraform (push) Failing after 29s
Validation / validate-kubernetes (push) Failing after 14s
Validation / validate-smart-contracts (push) Failing after 12s
Validation / validate-security (push) Failing after 1m9s
Validation / validate-documentation (push) Failing after 20s
Verify Deployment / Verify Deployment (push) Failing after 1m2s
Point server-side RPC default at 192.168.11.235:8545 and treat zero issued c* with funded reserves as sufficient for institutional smoke. Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
/** Browser/wallet-facing Chain 138 RPC FQDNs — public tier only (never core 192.168.11.211). */
|
|
export const CHAIN138_PUBLIC_RPC_URLS = [
|
|
'https://rpc.public-0138.defi-oracle.io',
|
|
'https://rpc-http-pub.d-bis.org',
|
|
'https://rpc.defi-oracle.io',
|
|
] as const;
|
|
|
|
const DEFAULT_CHAIN138_PUBLIC_RPC_URL = CHAIN138_PUBLIC_RPC_URLS[0];
|
|
const DEFAULT_CHAIN138_SERVER_RPC_URL = 'http://192.168.11.235:8545';
|
|
|
|
/** HTTPS FQDN for wallets, MetaMask, and browser JSON-RPC (same on LAN and external). */
|
|
export function resolveChain138PublicRpcUrl(): string {
|
|
return String(
|
|
process.env.CHAIN138_RPC_HTTP_PUBLIC_FQDN ||
|
|
process.env.RPC_URL_138_PUBLIC ||
|
|
process.env.CHAIN138_RPC_URL_PUBLIC ||
|
|
process.env.CHAIN_138_RPC_URL ||
|
|
DEFAULT_CHAIN138_PUBLIC_RPC_URL
|
|
).trim();
|
|
}
|
|
|
|
export function resolveChain138PublicRpcUrls(): string[] {
|
|
const fromEnv = process.env.CHAIN138_PUBLIC_RPC_URLS?.trim();
|
|
if (fromEnv) {
|
|
return fromEnv.split(/[\s,]+/).filter(Boolean);
|
|
}
|
|
return [...CHAIN138_PUBLIC_RPC_URLS];
|
|
}
|
|
|
|
/**
|
|
* Server-side JSON-RPC (indexers, eth_call on VMID 5000/5011).
|
|
* Uses LAN public Besu (2201 / 192.168.11.221) when set — still public tier, not core.
|
|
*/
|
|
export function resolveChain138RpcUrl(): string {
|
|
const lan =
|
|
process.env.CHAIN138_SERVER_RPC_URL?.trim() ||
|
|
process.env.RPC_HTTP_PUB_URL?.trim() ||
|
|
(process.env.RPC_URL_138_PUBLIC?.includes('192.168.11.') ? process.env.RPC_URL_138_PUBLIC : '') ||
|
|
DEFAULT_CHAIN138_SERVER_RPC_URL;
|
|
return lan;
|
|
}
|
|
|
|
export { DEFAULT_CHAIN138_PUBLIC_RPC_URL as DEFAULT_CHAIN138_RPC_URL };
|