java.lang.Object
net.finmath.smartcontracts.representablestate.xml.tuple.definitions.Settlement
All Implemented Interfaces:
TupleBindingPlugin

public class Settlement extends Object implements TupleBindingPlugin
Tuple plugin for a struct with ABI type tuple(uint256,int256). Matches: struct Settlement { uint256 time; int256 value; } Useful for functions that return arrays of Settlement-s. function settlementHistory() external view returns (Settlement[] memory);
Author:
Christian Fries
  • Constructor Details

    • Settlement

      public Settlement()
  • Method Details

    • getTupleElementType

      public String getTupleElementType()
      Description copied from interface: TupleBindingPlugin
      ABI tuple element type string, e.g. "tuple(uint256,int256)".

      MUST exactly match the element type in the evmstate:call output type, e.g. for "settlementHistory()(tuple(uint256,int256)[])" this method must return "tuple(uint256,int256)".

      Specified by:
      getTupleElementType in interface TupleBindingPlugin
      Returns:
      The string of the tuple binding (to be matched in the XML bindings)
    • getStructClass

      public Class<? extends org.web3j.abi.datatypes.StructType> getStructClass()
      Description copied from interface: TupleBindingPlugin
      Struct class for that tuple element type. Must extend StaticStruct or DynamicStruct and StructType, with a constructor that matches the component types. For example, for "tuple(uint256,int256)" this could be: public static class SettlementStruct extends StaticStruct { public SettlementStruct(Uint256 time, Int256 value) { super(time, value); } }
      Specified by:
      getStructClass in interface TupleBindingPlugin
      Returns:
      The Java class representation of the tuple binding (to be used in Web3J)