Skip to main content

Dependencies

The simulator includes a dependency system that allows you to specify dependencies for certain classes within the simulation.

There are currently five types of dependencies:

  • Agents
  • Environments
  • Strategies
  • Metrics
  • Protocols

Each of these classes is a code structure that implements the respective interfaces provided by the SDK. Additionally, each class includes an almanak-library.yaml file, which defines variables used by the simulator to run these code files.

Subdependencies

Most classes support subdependencies, which can be configured in the almanak-library.yaml file. Depending on the class, it may support different dependencies (such as different versions) based on specific conditions, like which blockchain it is running on.