java.lang.Object
net.finmath.smartcontracts.representablestate.xml.EvmXmlRenderer

public class EvmXmlRenderer extends Object
Reference implementation of an XML renderer for IXMLRepresentableState. Supports:
  • Core scalar profile
  • Multi-binding attributes (evmstate:calls)
  • Array binding profile for scalar arrays via evmstate:item-element + evmstate:item-field
Author:
Christian Fries
  • Constructor Details

    • EvmXmlRenderer

      public EvmXmlRenderer(String rpcUrl)
      Instantiate a renderer connected to a given chain's RPC URL.
      Parameters:
      rpcUrl - The RPC URL of the chain.
  • Method Details

    • render

      public String render(String contractAddress) throws Exception
      Extract the XML from a given contract address, executing the required calls to populate the bindings.
      Parameters:
      contractAddress - A given contract address as hex 0x1234567...
      Returns:
      The XML representing the current contract state.
      Throws:
      Exception - An exception.