Representable Contract State

an XML-based canonical view of EVM contract state


Architecture

The diagram below illustrates the basic interaction between an on-chain contract implementing IXMLRepresentableState and the EvmXmlRenderer.

A standard XSLT processor can then transform the rendered XML into documents for different use cases, such as legal documentation, term sheets, valuation-oracle input, or browser views.

Architecture Overview

Sequence Diagram

The following sequence diagram illustrates how to fetch partial contract state referenced in an event. A contract may expose its XML-complete state via stateXmlTemplate() or a specific part of its state via statePartXmlTemplate(partId).

Event Life Cycle - Fetching State by Reference