3 Commits

Author SHA1 Message Date
e58cdf9c9d depot v3: running balance guard + sysio.payer auth + clearmsgs admin action
Fixes:
- yield_reward and wire_purchase transfers now check available WIRE balance
  before sending, preventing overdrawn balance errors during crank
- Running balance tracker across process_ready_messages loop prevents
  deferred inline action overdraw (inline actions execute after caller returns)
- sysio.payer permission_level added to transfer actions for Wire ROA model
- clearmsgs admin action to flush garbage inbound messages (testnet only)

Deploy tx: 5ab93b7c (wasm), b67ccc07 (wasm+abi)
Code hash: eca6e8ee71c4b8d4e96f8543036f677775320bcea87aaf522b096f18a4cae9ac
Wasm size: 113,014 bytes
2026-03-13 17:26:39 +00:00
10a8884fc9 depot contract v2: all 7 process_assertion handlers + deadlock fix
- balance_sheet (0xAA00): deserialize + upsert reserves
- stake_update (0xEE00): update reserves + queue outbound
- yield_reward (0xEE01): calculate + inline transfer WIRE
- wire_purchase (0xEE02): constant-product swap + transfer
- operator_registration (0xEE03): create/reactivate/deregister
- challenge_response (0xEE04): route to challenge FSM
- slash_operator (0xEE05): slash + queue outbound ack
- default: silently pass unknown types (fixes permanent deadlock)
- includes compiled wasm (110,570 bytes) and ABI
2026-03-13 17:11:31 +00:00
d8e2e25e38 Initial commit 2026-03-13 17:10:58 +00:00