nullcount / rain

Evaporate stagnant liquidity from source nodes and condensate to sinks. Make it rain.
MIT License
2 stars 5 forks source link

swap operators inherit base class #58

Closed nullcount closed 1 year ago

nullcount commented 1 year ago

Example of inheritance

class State:
    def transition(self, event):
        raise NotImplementedError

class InitialState(State):
    def transition(self, event):
        if event == "start":
            return StartedState()
        return self