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.
- Python 3.6 or above
- Brownie
- Ganache
- Node.js and npm
-
Clone the repository:
git clone https://github.com/farhanajaved/SLA-assement.git
-
Navigate to the project directory:
cd SLA-assement
-
Install Python dependencies:
pip install -r requirements.txt
-
Install Brownie if you haven't:
pip install eth-brownie
-
Download and install Ganache:
- You can download it from here.
- Run Ganache and create a workspace with 55 accounts.
-
Add a custom network in Brownie if needed:
brownie networks add Ethereum ganache-local host=http://localhost:7545 chainid=1337
-
Compile contracts:
brownie compile
-
Run tests to make sure everything is set up correctly:
brownie test
-
Deploy contracts:
brownie run deploy --network ganache-local
-
Execute specific scripts or interact as needed.
Contributions are welcome! Please create an issue or submit a pull request.
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