Skip to main content
Version: 2.0.2

protocol

ProtocolInterface Objects

class ProtocolInterface(ABC)

ProtocolInterface The ProtocolInterface gives access to the different protocols that are available in the simulation. Each protocol can have a dex, lending and custom implementation. None are required but atleast one should be implemented.

name

@property
@abstractmethod
def name()

The name of the protocol

version

@property
@abstractmethod
def version()

The version of the protocol

author

@property
@abstractmethod
def author()

The author of the protocol

description

@property
@abstractmethod
def description()

The description of the protocol

license

@property
@abstractmethod
def license()

The license of the protocol

dex

@property
@abstractmethod
def dex() -> DexInterface

The dex implementation of the protocol

lending

@property
@abstractmethod
def lending() -> LendingInterface

The lending implementation of the protocol

custom

@property
@abstractmethod
def custom() -> CustomProtocolInterface

The custom implementation of the protocol