setaddresses (System Addresses)¶
Overview¶
setaddresses is a deployment contract that registers known system addresses in CHO. It's a one-time initialization contract that populates the named address registry.
- License: Sharia
- Solidity: ^0.8.21
What This Means For Players¶
Plain English Summary: This is the system's phone book - it stores the addresses of important tokens and contracts by name. Instead of remembering long hex addresses, the game can look up "AFFECTION" or "dai" to find the right contract. It's set up once during deployment and never changes.
Real-World Analogy: Think of this like the contacts app on your phone. Instead of memorizing phone numbers, you just look up "Mom" or "Work". Similarly, the game looks up "Atropa" or "WITHOUT" instead of raw blockchain addresses.
How It Affects Your Gameplay: - Address lookup - Game contracts can find important tokens by name - Consistency - Everyone uses the same addresses for stablecoins, system tokens, etc. - WITHOUT token - The banned-user token address is registered here
Purpose¶
This contract provides a convenient way to register many system addresses in a single deployment transaction. It's used during system initialization to make important addresses discoverable by name.
Registered Categories¶
Infrastructure¶
"dead" → 0x000000000000000000000000000000000000dEaD
"source" → 0x7a20189B297343CF26d8548764b04891f37F3414
"trebizond" → 0x903030f7e2d6489F38B0f4F96F9b371ec7960F78
Stablecoins¶
"dai" → 0x6B175474E89094C44Da98b954EedeAC495271d0F
"usdc" → 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
"usdt" → 0xdAC17F958D2ee523a2206206994597C13D831ec7
Atropa Tokens¶
"Atropa" → 0xCc78A0acDF847A2C1714D2A925bB4477df5d48a6
"EasternLightning" → 0xCD6159D0a1aaE415E0c1504E90A5d741A28afc98
"Final" → 0x50E72874dCd7C198d370ac27c7B3cce9f9a0defd
"Ka" → 0x83a918056aB9316837Dc48a216119D679D561d91
// ... many more
System Contracts¶
"libAtropaMath" → 0xB680F0cc810317933F234f67EB6A9E923407f05D
"AFFECTION" → 0x24F0154C1dCe548AdF15da2098Fdd8B8A3B8151D
"RESTRAININGORDER" → 0xEf2125f5d1f7A3d68038F27e681258d13a73E718
"WITHOUT" → 0x173216Ed67eBF3E6767D86e8b3Ff32e0d64437bF
Constructor¶
constructor(address ChoAddress) {
CHOINTERFACE Cho = CHOINTERFACE(ChoAddress);
Cho.AddSystemAddress("dead", address(0x...dEaD));
Cho.AddSystemAddress("source", address(0x7a20...));
// ... 90+ more registrations
}
Usage¶
This contract is deployed once during system initialization:
// During deployment
CHO cho = new CHO(voidAddress);
new setaddresses(address(cho));
// Later usage
address daiAddress = cho.Addresses("dai");
address atropaAddress = cho.Addresses("Atropa");
Registered Addresses (Partial List)¶
| Alias | Address |
|---|---|
| dead | 0x000...dEaD |
| dai | 0x6B17...d0F |
| Atropa | 0xCc78...a6 |
| AFFECTION | 0x24F0...1D |
| WITHOUT | 0x1732...bF |
| mariarahel | 0xD32c...69 |
Notes¶
- All registrations are permanent (cannot be changed)
- Duplicate aliases are rejected
- This contract has no state after deployment
- The contract itself can be discarded after use
Contract Verification¶
| Property | Value |
|---|---|
| Keccak256 Hash | 0xed400ec95124bd44b9eb63d8dd200d163a2e53b6c2973e5a3b96b9c65946a612 |
| Source URL | https://raw.githubusercontent.com/busytoby/atropa_pulsechain/main/solidity/dysnomia/domain/dan/02c_systemaddresses.sol |
| Hash Generated | 2026-02-08T00:29:08Z |