Class Settlement
java.lang.Object
net.finmath.smartcontracts.representablestate.xml.tuple.definitions.Settlement
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.web3j.abi.datatypes.StructType> Struct class for that tuple element type.ABI tuple element type string, e.g.
-
Constructor Details
-
Settlement
public Settlement()
-
-
Method Details
-
getTupleElementType
Description copied from interface:TupleBindingPluginABI 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:
getTupleElementTypein interfaceTupleBindingPlugin- Returns:
- The string of the tuple binding (to be matched in the XML bindings)
-
getStructClass
Description copied from interface:TupleBindingPluginStruct 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:
getStructClassin interfaceTupleBindingPlugin- Returns:
- The Java class representation of the tuple binding (to be used in Web3J)
-