28 lines
604 B
TypeScript
28 lines
604 B
TypeScript
/**
|
|
|
|
* Blockchain network safety guards.
|
|
|
|
* Blocks accidental mainnet usage in non-production when testnet mode is expected.
|
|
|
|
*/
|
|
/**
|
|
|
|
* Validates that non-production runs use testnet endpoints and contracts.
|
|
|
|
*
|
|
|
|
* For the expected testnet setup:
|
|
|
|
* - TRON: Shasta (TRON_NODE_URL should include "shasta")
|
|
|
|
* - Asset: USDT TRC20 on Shasta
|
|
|
|
*
|
|
|
|
* Skipped in production or when NETWORK_MODE=mainnet.
|
|
|
|
* @throws When a configured URL or contract points at mainnet while testnet is required
|
|
|
|
*/
|
|
export declare function validateTestnetSafetyOrThrow(): void;
|
|
//# sourceMappingURL=networkGuard.d.ts.map
|