# Prerequisites for LINK Funding, PMM, and CCIPLogger
Complete these **before** running the three operator task scripts.
---
## 1. Environment
- **`.env`** in `smom-dbis-138` with at least:
-`PRIVATE_KEY` — deployer key (with gas on each chain and LINK where needed).
-`RPC_URL_138` — Chain 138 RPC.
- Per-chain RPC and CCIP vars (see runbook and `.env.example`).
**Check:** Run `scripts/deployment/ensure-prerequisites.sh` to validate and fix what can be automated.
---
## 2. Dependencies (for CCIPLogger)
- From **`smom-dbis-138`** run:
```bash
npm install --legacy-peer-deps
```
so Hardhat is available in `smom-dbis-138/node_modules`.
- If Hardhat compile fails (e.g. missing `@emoney/interfaces`), either:
- Install the missing package if it exists, or
- Skip CCIPLogger (optional) or use a Foundry-only workflow.
---
## 3. LINK funding
- **Requirement:** Deployer must hold **LINK** on each chain where you fund bridges (Chain 138, Ethereum, BSC, Polygon, Base, Optimism, Arbitrum, Avalanche, Cronos, Gnosis).
- **.env:** Bridge and LINK token vars are already set from deployment; no extra prereq except balance.