farhanajaved / SLA-assement

This is dedicated to SLA assessment for inter-provider agreements using smart contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SLA Assessment

Description

This project aims to provide a comprehensive framework for Service Level Agreement (SLA) assessment. It employs a hybrid model combining Quadratic and History-Based Penalties to offer a balanced and adaptive response to SLA violations.

Installation

Prerequisites

Installation Steps

  1. Clone the repository:

    git clone https://github.com/farhanajaved/SLA-assement.git
  2. Navigate to the project directory:

    cd SLA-assement
  3. Install Python dependencies:

    pip install -r requirements.txt
  4. Install Brownie if you haven't:

    pip install eth-brownie
  5. Download and install Ganache:

    • You can download it from here.
    • Run Ganache and create a workspace with 55 accounts.
  6. Add a custom network in Brownie if needed:

    brownie networks add Ethereum ganache-local host=http://localhost:7545 chainid=1337
  7. Compile contracts:

    brownie compile
  8. Run tests to make sure everything is set up correctly:

    brownie test

Usage

  1. Deploy contracts:

    brownie run deploy --network ganache-local
  2. Execute specific scripts or interact as needed.

Contributing

Contributions are welcome! Please create an issue or submit a pull request.

License

This project is licensed under the MIT License.

Billing 4 has TPS and latencies. Billing 5 has costs.

marketplace_comp for TPS marketplace_eth_matic for cost analysis.

totalpenaltyplots.py is the total breahes penaltyplots.py is the num of users

About

This is dedicated to SLA assessment for inter-provider agreements using smart contracts


Languages

Language:Python 86.5%Language:Solidity 13.5%