Class EvmXmlRenderer
java.lang.Object
net.finmath.smartcontracts.representablestate.xml.EvmXmlRenderer
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 Summary
ConstructorsConstructorDescriptionEvmXmlRenderer(String rpcUrl) Instantiate a renderer connected to a given chain's RPC URL. -
Method Summary
-
Constructor Details
-
EvmXmlRenderer
Instantiate a renderer connected to a given chain's RPC URL.- Parameters:
rpcUrl- The RPC URL of the chain.
-
-
Method Details
-
render
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.
-