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, termsheets, valuation-oracle input, or browser views.

Architecture Overview

Sequence Diagram

The following sequence diagram illustrates the concept of fetching partial contract state referenced in an event (a contract may expose its xml-complete state via stateXmlTemplateor a specific part of its state via statePartXmlTemplate).

Event Life Cycle - Fetching State by Reference