rb125 commited on
Commit
96a15a6
·
1 Parent(s): 32faa06

Updated README to clarify on-chain transactions and python side accounting

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -195,6 +195,23 @@ cgae/
195
  | Backend | FastAPI |
196
  | Economy engine | Python |
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  ## License
199
 
200
  Research code — ETH OpenAgents Hackathon submission.
 
195
  | Backend | FastAPI |
196
  | Economy engine | Python |
197
 
198
+ ## On-Chain vs Python-Side Accounting
199
+
200
+ | Component | Where it lives | Details |
201
+ |-----------|---------------|---------|
202
+ | Agent registration | **On-chain** (0G) | `CGAERegistry.registerAgent()` — wallet address + architecture hash |
203
+ | Robustness certification | **On-chain** (0G) | `CGAERegistry.certify()` — scores scaled to uint16 + 0G Storage Merkle root hash |
204
+ | Contract lifecycle | **On-chain** (0G) | `CGAEEscrow.createContract()` / `acceptContract()` / `completeContract()` / `failContract()` |
205
+ | ETH disbursements | **On-chain** (0G) | Real treasury → agent wallet transfers |
206
+ | ENS identity | **On-chain** (Sepolia) | Subnames + 6 text records per agent (tier, CC, ER, AS, IH, wallet) |
207
+ | Audit certificates | **On-chain** (0G Storage) | Full audit JSON uploaded, Merkle root hash stored in CGAERegistry |
208
+ | Agent balances | **Python-side** | In-memory float on `AgentRecord`. Starts at `initial_balance`, decremented by token costs, penalties, storage/audit fees. Not read from chain. |
209
+ | Penalty deductions | **Python-side** | Subtracted from agent balance in Python. No on-chain clawback. |
210
+ | Token cost accounting | **Python-side** | Estimated from model pricing tables, deducted from agent balance in Python. |
211
+ | Tier gate enforcement | **Both** | Python `Economy.accept_contract()` checks tier + ENS. `CGAEEscrow.acceptContract()` also enforces tier + budget ceiling on-chain. |
212
+
213
+ **Dashboard note:** The balances shown in the dashboard reflect the Python-side economic simulation, not on-chain wallet balances. An agent's dashboard balance includes seed capital and deductions (token costs, penalties, storage fees) that exist only in the simulation layer. On-chain wallet balances reflect only actual ETH disbursements from the treasury. These numbers will differ.
214
+
215
  ## License
216
 
217
  Research code — ETH OpenAgents Hackathon submission.