This release is a pre-release and may not be stable for production use.
DeFi Assessement (dass)
A prototype project to perform risk assessment on different DeFi lending platforms.
Overview
Web Page
Command-line Tool
Installation
From local repository:
pip3 install .[cpu] # for tensorflow with cpu only
pip3 install .[gpu] # for tensorflow-gpu
From PyPI:
pip3 install DeFi-Assessment[cpu]
pip3 install DeFi-Assessment[gpu]
Usage
This project is packed into a command-line tool with 4 subcommand:
Usage: dass [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
data Collect raw data.
process Process the data related to smart contracts.
train Train models.
web Create a simple local website to view the result.
The workflow of the 4 commands should be:
data -> process -> train -> web
Data collection
data command is used to collect data for training and assessment (prediction). All of the other three commands are dependent on it. Make sure to run this command at beginning.
To collect data for smart contracts, docs/platforms.csv shoud be used. This file provides the github repository link for different smart contracts. And it also provide intermediary status for corresponding platforms.
This command will NOT overwrite any existing data. Users can use --inc option to collect data in incremental mode, which means new records and new attributes will be collected. And old data still exists.
Data process
process command is aimed to process raw data. Currently, only sart contract data need to be processed after collection.
Model Training
train command is simple. It trains 2 models. A Random Forest model for smart contracts and a LSTM mdoel for financial risks.
Web Application
web command builds a local web interface for users to directly view the result of assessement.
Contributors
Metadata
Release files for DeFi-Assessment 0.2.3.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DeFi_Assessment-0.2.3.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / DeFi_Assessment-0.2.3.dev1-py3-none-any.whl
| Download URL | DeFi_Assessment-0.2.3.dev1-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c17bd67e18bba0642bf46cd53ed032d0513288550abca962b405de5678fc2dc
|
|
BLAKE2b-256 checksum How to use checksums |
88c8e112f7513892810eda0317ffc03c78bd1a01bf6a03b99237e06be1f40ec6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|