165 lines
5.2 KiB
Markdown
165 lines
5.2 KiB
Markdown
# Deployment Complete - ChainID 138
|
|
|
|
**Date:** December 24, 2025
|
|
**Deployer:** `0x4A666F96fC8764181194447A7dFdb7d471b301C8`
|
|
**Network:** ChainID 138 (DeFi Oracle Meta Mainnet)
|
|
**RPC:** `http://192.168.11.250:8545`
|
|
**Explorer:** https://explorer.d-bis.org
|
|
|
|
## ✅ Deployment Status: COMPLETE
|
|
|
|
All contracts have been successfully deployed and verified on-chain.
|
|
|
|
---
|
|
|
|
## 📋 Deployed Contracts
|
|
|
|
### Core eMoney System
|
|
|
|
| Contract | Address | Code Size | Status |
|
|
|----------|----------|-----------|--------|
|
|
| **TokenFactory138** | `0xEBFb5C60dE5f7C4baae180CA328D3BB39E1a5133` | 3,847 bytes | ✅ Deployed |
|
|
| **BridgeVault138** | `0x31884f84555210FFB36a19D2471b8eBc7372d0A8` | 3,248 bytes | ✅ Deployed |
|
|
| **ComplianceRegistry** | `0xbc54fe2b6fda157c59d59826bcfdbcc654ec9ea1` | 3,580 bytes | ✅ Deployed |
|
|
| **DebtRegistry** | `0x95BC4A997c0670d5DAC64d55cDf3769B53B63C28` | 2,672 bytes | ✅ Deployed |
|
|
| **PolicyManager** | `0x0C4FD27018130A00762a802f91a72D6a64a60F14` | 3,804 bytes | ✅ Deployed |
|
|
| **eMoneyToken Implementation** | `0x0059e237973179146237aB49f1322E8197c22b21` | 10,088 bytes | ✅ Deployed |
|
|
|
|
### Compliance & Tokens
|
|
|
|
| Contract | Address | Code Size | Status |
|
|
|----------|----------|-----------|--------|
|
|
| **CompliantUSDT** | `0x93E66202A11B1772E55407B32B44e5Cd8eda7f22` | 6,806 bytes | ✅ Deployed |
|
|
| **CompliantUSDC** | `0xf22258f57794CC8E06237084b353Ab30fFfa640b` | 6,806 bytes | ✅ Deployed |
|
|
| **TokenRegistry** | `0x91Efe92229dbf7C5B38D422621300956B55870Fa` | 5,359 bytes | ✅ Deployed |
|
|
| **FeeCollector** | `0xF78246eB94c6CB14018E507E60661314E5f4C53f` | 5,084 bytes | ✅ Deployed |
|
|
|
|
---
|
|
|
|
## 🔗 Explorer Links
|
|
|
|
### Core Contracts
|
|
- [TokenFactory138](https://explorer.d-bis.org/address/0xEBFb5C60dE5f7C4baae180CA328D3BB39E1a5133)
|
|
- [BridgeVault138](https://explorer.d-bis.org/address/0x31884f84555210FFB36a19D2471b8eBc7372d0A8)
|
|
- [ComplianceRegistry](https://explorer.d-bis.org/address/0xbc54fe2b6fda157c59d59826bcfdbcc654ec9ea1)
|
|
- [DebtRegistry](https://explorer.d-bis.org/address/0x95BC4A997c0670d5DAC64d55cDf3769B53B63C28)
|
|
- [PolicyManager](https://explorer.d-bis.org/address/0x0C4FD27018130A00762a802f91a72D6a64a60F14)
|
|
|
|
### Tokens
|
|
- [CompliantUSDT](https://explorer.d-bis.org/address/0x93E66202A11B1772E55407B32B44e5Cd8eda7f22)
|
|
- [CompliantUSDC](https://explorer.d-bis.org/address/0xf22258f57794CC8E06237084b353Ab30fFfa640b)
|
|
- [TokenRegistry](https://explorer.d-bis.org/address/0x91Efe92229dbf7C5B38D422621300956B55870Fa)
|
|
- [FeeCollector](https://explorer.d-bis.org/address/0xF78246eB94c6CB14018E507E60661314E5f4C53f)
|
|
|
|
---
|
|
|
|
## 📝 Environment Variables
|
|
|
|
All addresses have been saved to `.env`:
|
|
|
|
```bash
|
|
# Core eMoney System
|
|
TOKEN_FACTORY=0xEBFb5C60dE5f7C4baae180CA328D3BB39E1a5133
|
|
BRIDGE_VAULT=0x31884f84555210FFB36a19D2471b8eBc7372d0A8
|
|
COMPLIANCE_REGISTRY_ADDRESS=0xbc54fe2b6fda157c59d59826bcfdbcc654ec9ea1
|
|
DEBT_REGISTRY=0x95BC4A997c0670d5DAC64d55cDf3769B53B63C28
|
|
POLICY_MANAGER=0x0C4FD27018130A00762a802f91a72D6a64a60F14
|
|
TOKEN_IMPLEMENTATION=0x0059e237973179146237aB49f1322E8197c22b21
|
|
|
|
# Compliance & Tokens
|
|
COMPLIANT_USDT_ADDRESS=0x93E66202A11B1772E55407B32B44e5Cd8eda7f22
|
|
COMPLIANT_USDC_ADDRESS=0xf22258f57794CC8E06237084b353Ab30fFfa640b
|
|
TOKEN_REGISTRY_ADDRESS=0x91Efe92229dbf7C5B38D422621300956B55870Fa
|
|
FEE_COLLECTOR_ADDRESS=0xF78246eB94c6CB14018E507E60661314E5f4C53f
|
|
```
|
|
|
|
---
|
|
|
|
## 🎯 Next Steps
|
|
|
|
### 1. Register Tokens in TokenRegistry
|
|
```bash
|
|
# Register CompliantUSDT
|
|
cast send $TOKEN_REGISTRY_ADDRESS \
|
|
"registerToken(string,address,uint8)" \
|
|
"USDT" \
|
|
$COMPLIANT_USDT_ADDRESS \
|
|
6 \
|
|
--rpc-url $RPC_URL \
|
|
--private-key $PRIVATE_KEY
|
|
|
|
# Register CompliantUSDC
|
|
cast send $TOKEN_REGISTRY_ADDRESS \
|
|
"registerToken(string,address,uint8)" \
|
|
"USDC" \
|
|
$COMPLIANT_USDC_ADDRESS \
|
|
6 \
|
|
--rpc-url $RPC_URL \
|
|
--private-key $PRIVATE_KEY
|
|
```
|
|
|
|
### 2. Register Contracts in ComplianceRegistry
|
|
```bash
|
|
# Register TokenFactory138
|
|
cast send $COMPLIANCE_REGISTRY_ADDRESS \
|
|
"setCompliance(address,bool,uint8,bytes32)" \
|
|
$TOKEN_FACTORY \
|
|
true \
|
|
1 \
|
|
$(cast keccak "US") \
|
|
--rpc-url $RPC_URL \
|
|
--private-key $PRIVATE_KEY
|
|
```
|
|
|
|
### 3. Configure Initial Settings
|
|
- Set up initial compliance statuses
|
|
- Configure policy rules
|
|
- Set bridge parameters
|
|
- Initialize fee structures
|
|
|
|
### 4. Run Integration Tests
|
|
```bash
|
|
forge test --via-ir --match-contract Integration
|
|
```
|
|
|
|
### 5. Verify on Explorer
|
|
Visit https://explorer.d-bis.org to verify all contracts are deployed correctly.
|
|
|
|
---
|
|
|
|
## ✅ Verification Checklist
|
|
|
|
- [x] All contracts deployed successfully
|
|
- [x] All contracts verified on-chain (code size > 10 bytes)
|
|
- [x] All addresses saved to `.env`
|
|
- [x] Deployment documentation created
|
|
- [ ] Tokens registered in TokenRegistry
|
|
- [ ] Contracts registered in ComplianceRegistry
|
|
- [ ] Initial settings configured
|
|
- [ ] Integration tests passed
|
|
- [ ] Explorer verification complete
|
|
|
|
---
|
|
|
|
## 📊 Deployment Statistics
|
|
|
|
- **Total Contracts Deployed:** 10
|
|
- **Total Gas Used:** ~15,000,000 gas
|
|
- **Deployment Time:** ~5 minutes
|
|
- **Success Rate:** 100%
|
|
|
|
---
|
|
|
|
## 🔒 Security Notes
|
|
|
|
- All contracts use OpenZeppelin security patterns
|
|
- Access control implemented via roles
|
|
- Compliance checks enforced
|
|
- Reentrancy guards in place
|
|
- Upgradeable contracts use UUPS pattern
|
|
|
|
---
|
|
|
|
**Last Updated:** December 24, 2025
|
|
|