RollupState base class that can be extended to create a custom rollup.
You need to provide the
StateVariable and StateTransport types to the
RollupState class which you defined previously.Extending RollupState
You need to extend theRollupState class and implement 4 methods:
constructor
You need to call the super constructor with the StateVariable type for it to be able to use the defined state
createTransport
This method is used to create a transport object that will be used to wrap a StateVariable.
getState
This is the opposite of createTransport and is used to extract the state from a transport object.