deploying-contracts-on-gatelayer
Installation
SKILL.md
Deploying Contracts on GateLayer
Prerequisites
- Configure RPC endpoint (testnet:
https://gatelayer-testnet.gatenode.cc, mainnet:https://gatelayer-mainnet.gatenode.cc) - Store private keys in Foundry's encrypted keystore — never commit keys
- Obtain testnet GT from faucet (testnet only)
Security
- Never commit private keys to version control — use Foundry's encrypted keystore (
cast wallet import) - Never hardcode API keys in source files — use environment variables or
foundry.tomlwith${ENV_VAR}references - Never expose
.envfiles — add.envto.gitignore - Use production RPC providers (not public endpoints) for mainnet deployments to avoid rate limits and data leaks
- Verify contracts on GateScan to enable public audit of deployed code
Input Validation
Before constructing shell commands, validate all user-provided values: