BlueprintsAI TradingDapp and Indexer

Dapp and Indexer

The dapp should resolve the AI Trading blueprint from first-party metadata and render the Arena app through the trusted iframe path.

Metadata Contract

FieldValue
blueprintUi.displayNameAI Trading Desk
blueprintUi.requestedSlugai-trading
blueprintUi.publisher.namespacetangle
resources.serviceNountrading instance
resources.resourceNounbot
externalApp.urlhttps://trading-arena.blueprint.tangle.tools/
externalApp.modeiframe

The metadata includes overview cards for the risk gate, venue capabilities, and protocol adapters. It also declares actions for bot activation and pausing.

Dapp Behavior

SurfaceBehavior
Blueprint routeClaim metadata with requestedSlug = "ai-trading" under the tangle namespace.
External appRender the Arena iframe only after host and iframe policy checks pass.
Chain switchingAllow only the chain IDs declared in iframe policy.
Protocol fallbackKeep the generic blueprint detail route available for raw on-chain service-instance data.

Indexed State

The Arena and Tangle Cloud need:

StateWhy it matters
Blueprint and source updatesFinds current binaries and metadata.
Operator registration and endpoint URLDiscovers live operators and their APIs.
Service instancesShows bot fleets and dedicated trading instances.
Job eventsTracks provision, configure, start, stop, status, and workflow activity.
Pricing stateShows operator quote surfaces and service-instance cost.
QoS heartbeatsRanks and filters operators by liveness.

Because operator endpoint URLs are self-reported at registration time, the dapp should treat the indexer as discovery, not proof that an endpoint is honest or healthy.