Skip to Content
ContractsOverview

/contracts/overview

It’s not a roadmap, it’s a contract. Read it.

The graph

Dealers.sh is a set of small contracts that compose. The split keeps each piece auditable.

ContractWhat it does
DealersExeNFTThe ERC-721 itself. Holds ownership and per-token state.
DealersExeCoreShared game state and configuration.
DealersExeActionsRoutes player actions to the right module.
DealersExePVEBuy / sell / clear-heat / black market resolution.
DealersExePVPSame-area player-vs-player attacks.
DealersExeBoostsTime-limited multipliers. Grinder / Hustler / Kingpin.
DEDrugRegistryThe drug catalogue: types, rarities, base values.
DEAreaRegistryThe area catalogue: names, types, price bands.
DealersExeClaimsAchievement verification and reward issuance.
DealersExeMulticallBatched reads/writes for the in-NFT UI.
DealersExePaymentHandlerCash flows: mint, bail, shop, travel.
DealersExeRandomnessResolution source for stochastic outcomes.
DealersExeChatFactoryOn-chain chat / pager log per token.
DealerRendererSVGBuilds the character SVG from packed traits.
DealerRendererHTMLWraps the SVG and the embedded game into animation_url.

How a deal flows

A buy in plain English:

  1. Player taps BUY in the 🤝 tab. UI builds the call.
  2. DealersExeActions routes the call to DealersExePVE.
  3. PVE pulls drug data from DEDrugRegistry and area data from DEAreaRegistry.
  4. PVE asks DealersExeRandomness for a roll.
  5. PVE resolves the matchup, updates the dealer’s state on DealersExeCore.
  6. DealersExePaymentHandler settles cash.
  7. The chat log appends via DealersExeChatFactory. The pager picks it up.
  8. The UI reads the new state and renders.

Every step is a public, verified contract on Abstract. See /contracts/addresses.

Diagram

TODO: publish the contract-graph diagram (SVG) once the audit is signed off.