101 lines
2.1 KiB
Markdown
101 lines
2.1 KiB
Markdown
|
|
# Defender Deprecated - Migration Guide
|
||
|
|
|
||
|
|
**Date**: 2025-12-11
|
||
|
|
**Status**: Defender No Longer Available
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ⚠️ Important Notice
|
||
|
|
|
||
|
|
**OpenZeppelin Defender is no longer offered**. All references to Defender have been removed from the deployment scripts and documentation.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ✅ What's Been Updated
|
||
|
|
|
||
|
|
### Deployment Scripts
|
||
|
|
|
||
|
|
- ✅ `DeployMainnetTether.s.sol` - Removed Defender references
|
||
|
|
- ✅ `DeployTransactionMirror.s.sol` - Removed Defender references
|
||
|
|
- ✅ Now use `TETHER_ADMIN` and `MIRROR_ADMIN` directly
|
||
|
|
|
||
|
|
### Documentation
|
||
|
|
|
||
|
|
- ✅ Updated to use admin addresses (multisig or EOA)
|
||
|
|
- ✅ Removed Defender-specific instructions
|
||
|
|
- ✅ Added Gnosis Safe as recommended alternative
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 🔄 Migration Steps
|
||
|
|
|
||
|
|
### 1. Choose New Admin Solution
|
||
|
|
|
||
|
|
**Recommended**: Gnosis Safe (multisig wallet)
|
||
|
|
|
||
|
|
### 2. Set Up Admin Address
|
||
|
|
|
||
|
|
1. Create Gnosis Safe wallet: https://safe.global/
|
||
|
|
2. Add signers (3-5 recommended)
|
||
|
|
3. Set threshold (e.g., 2-of-3)
|
||
|
|
4. Copy Safe address
|
||
|
|
|
||
|
|
### 3. Update .env File
|
||
|
|
|
||
|
|
Remove any `DEFENDER_ADMIN` references and add:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
TETHER_ADMIN=<your_admin_address> # Gnosis Safe or EOA
|
||
|
|
MIRROR_ADMIN=<your_admin_address> # Can be same or different
|
||
|
|
```
|
||
|
|
|
||
|
|
### 4. Deploy Contracts
|
||
|
|
|
||
|
|
Deployment scripts now work with standard admin addresses:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
forge script script/DeployMainnetTether.s.sol \
|
||
|
|
--rpc-url $ETH_MAINNET_RPC_URL \
|
||
|
|
--private-key $PRIVATE_KEY \
|
||
|
|
--broadcast \
|
||
|
|
--verify \
|
||
|
|
-vvvv
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📚 Alternative Solutions
|
||
|
|
|
||
|
|
### Gnosis Safe (Recommended)
|
||
|
|
|
||
|
|
- Multi-signature wallet
|
||
|
|
- Web interface
|
||
|
|
- Multiple chain support
|
||
|
|
- Enhanced security
|
||
|
|
|
||
|
|
### EOA (Externally Owned Account)
|
||
|
|
|
||
|
|
- Simple wallet address
|
||
|
|
- For development/testing
|
||
|
|
- Use hardware wallet for security
|
||
|
|
|
||
|
|
### Custom Access Control
|
||
|
|
|
||
|
|
- OpenZeppelin AccessControl
|
||
|
|
- OpenZeppelin AccessManager
|
||
|
|
- Custom permission contracts
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📄 Related Documentation
|
||
|
|
|
||
|
|
- `ADMIN_ADDRESS_OPTIONS.md` - Detailed admin address options
|
||
|
|
- `DEPLOYMENT_ISSUES_AND_FIXES.md` - Deployment troubleshooting
|
||
|
|
- `FINAL_PRE_DEPLOYMENT_CHECKLIST.md` - Pre-deployment checklist
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Last Updated**: 2025-12-11
|
||
|
|
**Status**: Defender Deprecated - Migration Complete
|
||
|
|
|