Documentation
The contents of the Custom Proxy page block you are viewing are primarily for informational purposes. For complete details on Custom Proxy development, please refer to the official documentation linked below:Custom Proxy
Developer documentation within
@tonappchain/evm-ccl NPM-packageInstallation
Setting up TAC Proxy development requires installing the TAC cross-chain libraries and configuring your Solidity development environment. TAC Proxy development currently requires Hardhat. Foundry support is planned in future.Hardhat Environment Setup
Ensure your Hardhat project includes the necessary dependencies:package.json
hardhat.config.js for TAC networks:
hardhat.config.js
Project Structure Setup
Create an organized project structure for proxy development:Create Contract Directory
Organize your contracts with clear separation between proxy and application logic:
Verify Installation
Create a basic proxy contract to verify your setup:contracts/TestProxy.sol
Common Setup Issues
Compilation Errors
Compilation Errors
Problem: Import resolution failures or compilation errorsSolutions:
- Ensure
@tonappchain/evm-cclis properly installed - Verify Solidity version compatibility (0.8.28+)
- Check import paths are correct
- Reset and reinstall dependencies:
- Clean and rebuild:
Network Connection Issues
Network Connection Issues
Problem: Unable to connect to TAC networkSolutions:
- Verify RPC URLs are correct
- Check network configuration in hardhat.config.js
- Test connection manually:
curl https://spb.rpc.tac.build - Ensure firewall allows outbound connections
Private Key Issues
Private Key Issues
Problem: Deployment fails with account/key errorsSolutions:
- Verify private key is in
.envfile - Ensure private key starts with
0xif required by your configuration - Check that the account has sufficient TAC tokens for deployment. Get them here